All Products
Search
Document Center

Security Center:ListAgentlessMaliciousFiles

Last Updated:Feb 20, 2024

Queries malicious files that are detected by agentless detection tasks.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
LangstringNo

The language of the content within the request and response. Default value: zh. Valid values:

  • zh: Chinese.
  • en: English.
zh
LevelsstringNo

The severities of the malicious files. Separate multiple values with commas (,). Valid values:

  • serious
  • suspicious
  • remind
remind,suspicious
FuzzyMaliciousNamestringNo

The name of the malicious file that you want to query.

Note Fuzzy match is supported.
WebShell
CurrentPageintegerYes

The page number.

1
PageSizestringYes

The number of entries per page.

20
MaliciousMd5stringNo

The MD5 hash value of the malicious file.

d836968041f7683b5459****
UuidstringNo

The UUID of the asset.

d2d94e8b-bb25-4744-8004-1e08a53c****
EventIdlongNo

The event ID.

81****
RemarkstringNo

The remarks for the asset affected by the vulnerability. The value can be the private IP address, public IP address, or name of the asset. Fuzzy match is supported.

192.168.XX.XX
DealedstringNo

Specifies whether the vulnerability is handled. Valid values:

  • Y: The vulnerability is handled.
  • N: The vulnerability is not handled.
Y
MaliciousTypestringNo

The alert type.

Valid values when Lang is set to zh:

  • WebShell
  • Malicious Software
  • Malicious Script

Valid values when Lang is set to en:

  • WebShell
  • Malicious Software
  • Malicious Script
WebShell

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

CE343162-35BF-565E-B85E-8E3B7A2B****
PageInfoobject

The pagination information.

CurrentPageinteger

The page number.

1
PageSizeinteger

The number of entries per page.

20
TotalCountinteger

The total number of entries returned.

23
Countinteger

The number of entries returned on the current page.

20
Listobject []

The malicious files.

Idlong

The event ID.

1****
FirstScanTimestamplong

The timestamp generated when the first scan was performed. Unit: milliseconds.

168257753****
LatestScanTimestamplong

The timestamp generated when the last scan was performed. Unit: milliseconds.

168257753****
Levelstring

The severity of the malicious file. Valid values:

  • serious
  • suspicious
  • remind
serious
MaliciousMd5string

The MD5 hash value of the malicious file.

1f2e13a7c51ee89316ae50066515****
FilePathlong

The file path.

/root/etc/g****
Uuidstring

The UUID of the asset.

49e25e0f-bb51-4a5a-a1b3-13a4ddaa****
InstanceNamestring

The name of the asset.

sql-test-001****
InternetIpstring

The public IP address of the server.

8.210.XX.XX
IntranetIpstring

The private IP address of the server.

172.25.XX.XX
TargetIdstring

The ID of the asset that is scanned.

m-****
TargetNamestring

The name of the asset that is scanned.

jenkins****
TargetTypestring

The type of the asset that is scanned. Valid values:

  • 2: The scanned asset is an image.
2
DownloadUrlstring

The URL to download the malicious image sample.

https://upgrade-rule-pkg.oss-cn-beijing.aliyuncs.com/totalpackage/rule/V3.166.2/totalpackage_rule_V3.16_6.2_tip_20230220110****
HighLightstring

The highlighted JSON string.

{\"highlight\":{\"ruleVersion\":\"20230223\",\"ruleId\":600139,\"events\":[[207,284]]}}
Notesobject []

The remarks.

Notestring

The remark.

Serious***
NoteIdstring

The ID of the remark.

50****
NoteTimestring

The time when the remark was created.

2023-04-27 14:49:21
Detailsobject []

The details of the alert event.

Namestring

The name of the detailed item.

MD5
Typestring

The type of the detailed item.

text
Valuestring

The value of the detailed item.

1
NameKeystring

The name key of the detailed item.

${suspicious.mp.db.maliciousfilemd5}
MaliciousNamestring

The name of the malicious file.

WebShell
Partitionstring

The partition of the disk.

/dev/xvda1
OperateResultstring

The handling result of the alert.

addWhitelist.USER.Success
OperateTimestampstring

The timestamp generated when the alert is handled. Unit: milliseconds.

168257753****
MaliciousTypestring

The type of the virus.

WebShell

Examples

Sample success responses

JSONformat

{
  "RequestId": "CE343162-35BF-565E-B85E-8E3B7A2B****",
  "PageInfo": {
    "CurrentPage": 1,
    "PageSize": 20,
    "TotalCount": 23,
    "Count": 20
  },
  "List": [
    {
      "Id": 0,
      "FirstScanTimestamp": 0,
      "LatestScanTimestamp": 0,
      "Level": "serious",
      "MaliciousMd5": "1f2e13a7c51ee89316ae50066515****",
      "FilePath": 0,
      "Uuid": "49e25e0f-bb51-4a5a-a1b3-13a4ddaa****",
      "InstanceName": "sql-test-001****",
      "InternetIp": "8.210.XX.XX",
      "IntranetIp": "172.25.XX.XX",
      "TargetId": "m-****",
      "TargetName": "jenkins****",
      "TargetType": "2",
      "DownloadUrl": "https://upgrade-rule-pkg.oss-cn-beijing.aliyuncs.com/totalpackage/rule/V3.166.2/totalpackage_rule_V3.16_6.2_tip_20230220110****",
      "HighLight": "{\\\"highlight\\\":{\\\"ruleVersion\\\":\\\"20230223\\\",\\\"ruleId\\\":600139,\\\"events\\\":[[207,284]]}}",
      "Notes": [
        {
          "Note": "Serious***",
          "NoteId": "50****",
          "NoteTime": "2023-04-27 14:49:21"
        }
      ],
      "Details": [
        {
          "Name": "MD5",
          "Type": "text",
          "Value": "1",
          "NameKey": "${suspicious.mp.db.maliciousfilemd5}"
        }
      ],
      "MaliciousName": "WebShell",
      "Partition": "/dev/xvda1",
      "OperateResult": "addWhitelist.USER.Success",
      "OperateTimestamp": "168257753****",
      "MaliciousType": "WebShell"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-09-12The Error code has changed. The request parameters of the API has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 403
    delete Error Codes: 500
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: MaliciousType
Output ParametersThe response structure of the API has changed.