GetExceptedWebshellSuspiciousObject

Prev Next

Available in VPC

Get details about a desired file in the exception-handled webshell behavior detection history.

Request

This section describes the request format. The method and URI are as follows:

Method URI
GET /api/v1/exceptions/{exception-id}/suspicious-objects

Request headers

For information about the request headers common to all Webshell Behavior Detector APIs, see Webshell Behavior Detector request headers.

Request path parameters

You can use the following path parameters with your request:

Field Type Required Description
exception-id Integer Required Exception-handled webshell behavior detection history ID

Request example

The request example is as follows:

curl --location --request GET 'https://wbd.apigw.ntruss.com/api/v1/exceptions/2024072321234500000010/suspicious-objects' \
--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'

Response

This section describes the response format.

Response body

The response body includes the following data:

Field Type Required Description
success Boolean - Request handling status
code Integer - Response code
message String - Response message
result Array - Suspected file list: result

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 format
modifyTime Integer - File change date and time
  • Timestamp format
changeTime Integer - File modification date and time
  • Timestamp format
instanceNo String - VM's instance number
hashScanResult String - Hash-based malware determination result
  • malware | notMalware
    • malware: Malicious
    • notMalware: Normal
memo String - Notes
memberNo Integer - Member ID for VM usage
restoreTime Integer - File recovery date and time
  • Timestamp format
quarantineTime Integer - File quarantine date and time
  • Timestamp format
weight Integer - Score
  • The higher the score, the more likely it is a webshell
commandStatus String - Quarantine/recovery command handling status
  • restoring | restored | restoreFailed | onQurantine | quarantined | quarantineFailed
    • restoring: Recovering
    • restored: Recovery completed
    • restoreFailed: Recovery failed
    • onQurantine: Quarantine in progress
    • quarantined: Quarantine completed
    • quarantineFailed: Quarantine failed
commandResult String - Detailed messages about the results of the quarantine/recovery command
isRestore Boolean - Recovery status
  • true | false
    • true: Recovered
    • false: Not recovered
isQuarantine Boolean - Quarantine status
  • true | false
    • true: Quarantined
    • false: Not quarantined
isExcepted Boolean - Exception handling status
  • true | false
    • true: Exception handled
    • false: Exception not handled
lastUpdatedTime Integer - Date and time of the last detection record
  • Timestamp format
resultCode Integer - Quarantine/recovery command results code
platform String - VM environment
  • VPC | CLASSIC
serverName String - VM's server name
containerName String - VM's container name
k8sName String - Workload name
  • Display valid values in Kubernetes environments
k8sType String - Workload type for deployed pod
  • Display valid values in Kubernetes environments
podName String - Deployed pod name
  • Display valid values in Kubernetes environments
isDeleted Boolean - Deletion status of file
  • true | false
    • true: Deleted
    • false: Not deleted

Response status codes

For information about the response status codes common to all Webshell Behavior Detector APIs, see Webshell Behavior Detector response status codes.

Response example

The response example is as follows:

{
    "success": true,
    "code": 0,
    "message": "success",
    "result": [
        {
            "suspicionFileId": "2024072321234500000008",
            "detectionId": "2024072321234500000010",
            "hostName": "{hostname}",
            "osType": "LINUX",
            "fileOriginName": "{web-root-path}/{suspicious-object-name}",
            "quarantineFileName": "{web-root-path}/{quarantined-object-name}",
            "fileSize": 222,
            "sha1": "********************************",
            "privateIPofServer": "***.***.***.***",
            "fileAuthority": "rw-r--r--",
            "fileOwner": "root",
            "fileGroup": "root",
            "accessTime": 1721737308457,
            "modifyTime": 1721362317000,
            "changeTime": 1721737326361,
            "instanceNo": "25****17",
            "hashScanResult": "notMalware",
            "memo": null,
            "memberNo": 26***90,
            "restoreTime": 1721737448315,
            "quarantineTime": 1721737443431,
            "weight": 29,
            "commandStatus": "restored",
            "commandResult": "OK",
            "isRestore": true,
            "isQuarantine": true,
            "isExcepted": false,
            "lastUpdatedTime": 1721737448341,
            "resultCode": 0,
            "platform": "VPC",
            "serverName": "{servername}",
            "containerName": "{containername}",
            "k8sName": "my-pod-jsp",
            "k8sType": "Pod",
            "podName": "my-pod-jsp",
            "isDeleted": false
        }
    ]
}