SearchQuarantine
- Print
- PDF
SearchQuarantine
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
Search for the desired item among quarantined webshell suspect files.
Request
The following describes the request format for the endpoint. The request format is as follows:
Method | URI |
---|---|
POST | /quarantines |
Request headers
For headers common to all Webshell Behavior Detector APIs, see Common Webshell Behavior Detector headers.
Request body
The following describes the request body.
Field | Type | Required | Description |
---|---|---|---|
fileOriginName | String | Optional | File name |
fileOwner | String | Optional | File owner |
hostName | String | Optional | VM's host name |
memo | String | Optional | Notes |
pageIndex | Integer | Required | Page number |
pageSize | Integer | Required | Number of page outputs |
quarantineFileName | String | Optional | Name of the isolated file |
quarantineTimeFrom | Integer | Optional | Quarantine start date and time (timestamp) |
quarantineTimeTo | Integer | Optional | Quarantine end date and time (timestamp) |
serverName | String | Optional | VM's server name |
Request example
The following is a sample request.
curl --location --request POST 'https://wbd.apigw.ntruss.com/api/v1/quarantines' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--header 'X-NCP-USE_PLATFORM_TYPE: VPC' \
--data '{
"fileOriginName": "",
"pageIndex": "0",
"pageSize": "2",
"serverName": "s18ee********"
}'
Response
The following describes the response format.
Response body
The following describes the response body.
Field | Type | Required | Description |
---|---|---|---|
success | Boolean | - | Request handling status |
code | Integer | - | Response code |
message | String | - | Response message |
result | Array | - | List of suspicious files |
result
The following describes result
.
Field | Type | Required | Description |
---|---|---|---|
suspicionFileId | String | - | File ID |
detectionId | String | - | Web shell behavior detection history ID |
hostName | String | - | VM's host name |
osType | String | - | VM's OS type |
fileOriginName | String | - | File name |
quarantineFileName | String | - | Name of the isolated file |
fileSize | Integer | - | File size |
sha1 | String | - | File's SHA1 hash value |
privateIPofServer | String | - | VM's private IP |
fileAuthority | String | - | File's authority |
fileOwner | String | - | File owner |
fileGroup | String | - | File owner group |
accessTime | Integer | - | File access date and time (timestamp) |
modifyTime | Integer | - | File change date and time (timestamp) |
changeTime | Integer | - | File modification date and time (timestamp) |
instanceNo | String | - | VM's instance number |
hashScanResult | String | - | Hash-based malware determination result
|
memo | String | - | Notes |
memberNo | Integer | - | Member ID for VM usage |
restoreTime | Integer | - | File recovery date and time (timestamp) |
quarantineTime | Integer | - | File quarantine date and time (timestamp) |
weight | Integer | - | Score
|
commandStatus | String | - | Quarantine/recovery command handling status
|
commandResult | String | - | Detailed messages about the results of the quarantine/recovery command |
isRestore | Boolean | - | Recovery status
|
isQuarantine | Boolean | - | Quarantine status
|
isExcepted | Boolean | - | Exception handling status
|
lastUpdatedTime | Integer | - | Last detection history record date and time (timestamp) |
resultCode | Integer | - | Quarantine/recovery command results code |
platform | String | - | VM environment
|
serverName | String | - | VM's server name |
containerName | String | - | VM's container name |
k8sName | String | - | Workload name
|
k8sType | String | - | Workload type for deployed pod
|
podName | String | - | Deployed pod name
|
isDeleted | Boolean | - | Deletion status of file
|
Response status codes
For response status codes common to all Webshell Behavior Detector APIs, see Common Webshell Behavior Detector response status codes.
Response example
The following is a sample example.
{
"success": true,
"code": 0,
"message": "success",
"result": {
"content": [
{
"suspicionFileId": "2024072409172700000036",
"detectionId": "2024072409172700000036",
"hostName": null,
"osType": "WINDOWS",
"fileOriginName": "{web-root-path}/{suspicious-object-name}",
"quarantineFileName": "{web-root-path}/{quarantined-object-name}",
"fileSize": 98,
"sha1": "********************************",
"privateIPofServer": "***.***.***.***",
"fileAuthority": "[{\"BUILTIN/Administrators\":\"(I)(F)\"},{\"BUILTIN/IIS_IUSRS\":\"(I)(RX)\"},{\"BUILTIN/Users\":\"(I)(RX)\"},{\"NT AUTHORITY/SYSTEM\":\"(I)(F)\"},{\"NT SERVICE/TrustedInstaller\":\"(I)(F)\"}]",
"fileOwner": "S-1-5-32-544",
"fileGroup": "S-1-5-32-544",
"accessTime": 1721742837000,
"modifyTime": 1721742837000,
"changeTime": 1721742803000,
"instanceNo": "23****68",
"hashScanResult": "notMalware",
"memo": null,
"memberNo": 26***90,
"restoreTime": 1722999457076,
"quarantineTime": 1722999351039,
"weight": 29,
"commandStatus": "restored",
"commandResult": "OK",
"isRestore": true,
"isQuarantine": true,
"isExcepted": false,
"lastUpdatedTime": 1722999457125,
"resultCode": 0,
"platform": "VPC",
"serverName": "{servername}",
"containerName": null,
"k8sName": null,
"k8sType": null,
"podName": null,
"isDeleted": false
},
{
"suspicionFileId": "2024072323001500000229",
"detectionId": "2024072323001500000230",
"hostName": null,
"osType": "WINDOWS",
"fileOriginName": "{web-root-path}/{suspicious-object-name}",
"quarantineFileName": "{web-root-path}/{quarantined-object-name}",
"fileSize": 98,
"sha1": "********************************",
"privateIPofServer": "***.***.***.***",
"fileAuthority": "[{\"BUILTIN/Administrators\":\"(I)(F)\"},{\"BUILTIN/IIS_IUSRS\":\"(I)(RX)\"},{\"BUILTIN/Users\":\"(I)(RX)\"},{\"NT AUTHORITY/SYSTEM\":\"(I)(F)\"},{\"NT SERVICE/TrustedInstaller\":\"(I)(F)\"}]",
"fileOwner": "S-1-5-32-544",
"fileGroup": "S-1-5-32-544",
"accessTime": 1721742837000,
"modifyTime": 1721742837000,
"changeTime": 1721742803000,
"instanceNo": "23****68",
"hashScanResult": "notMalware",
"memo": null,
"memberNo": 26***90,
"restoreTime": 1721743312629,
"quarantineTime": 1721743240602,
"weight": 29,
"commandStatus": "restored",
"commandResult": "OK",
"isRestore": true,
"isQuarantine": true,
"isExcepted": false,
"lastUpdatedTime": 1721743312629,
"resultCode": 0,
"platform": "VPC",
"serverName": "{servername}",
"containerName": null,
"k8sName": null,
"k8sType": null,
"podName": null,
"isDeleted": false
}
],
"totalCount": 2,
"pageSize": 2,
"pageIndex": 0,
"totalPages": 1
}
}
Was this article helpful?