All Products
Search
Document Center

Security Center:GetFileDetectResult

Last Updated:Feb 20, 2024

Obtains file detection results.

Operation description

The HashKey parameter is included in all API operations that are related to the file detection feature. The parameter specifies the unique identifier of a file. Only MD5 hash values are supported. Before you call this operation, calculate the MD5 hash value of the file.

Debugging

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

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:GetFileDetectResultRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SourceIpstringNo

The source IP address of the request.

183.46.XX.XX
HashKeyListarrayYes

The identifiers of files. Only MD5 hash values are supported.

stringYes

The identifier of the file. Only MD5 hash values are supported.

0a212417e65c26ff133cfff28f9c****
TypeintegerYes

The type of the file. Valid values:

  • 0: unknown file
  • 1: binary file
  • 2: webshell file
  • 4: script file
Note If you do not know the type of the file, set this parameter to 0.
0

Response parameters

ParameterTypeDescriptionExample
object

The data returned.

RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

24A20733-10A0-4AF6-BE6B-E3322413BB68
ResultListobject []

An array that consists of file detection results.

HashKeystring

The identifier of the file. Only MD5 hash values are supported.

0a212417e65c26ff133cfff28f6c****
Resultinteger

The file detection result. Valid values:

  • 0: The file is normal.
  • 1: The file is suspicious.
  • 3: The detection is in progress.
0
Scoreinteger

The score of file detection result.

Note A higher score indicates a more suspicious file.
100
VirusTypestring

The type of the virus. Valid values:

  • Trojan: self-mutating trojan
  • WebShell: webshell
  • Backdoor: backdoor program
  • RansomWare: ransomware
  • Scanner: scanner
  • Stealer: tool that is used to steal information
  • Malbaseware: tainted basic software
  • Hacktool: attacker tool
  • Engtest: engine test program
  • Downloader: trojan downloader
  • Virus: infectious virus
  • Miner: mining program
  • Worm: worm
  • DDoS: DDoS trojan
  • Malware: malicious program
  • Backdoor: reverse shell
  • RiskWare: software that has risks
  • Proxytool: proxy
  • Suspicious: suspicious program
  • MalScript: malicious script
  • Rootkit: rootkit
  • Exploit: exploit
WEBSHELL
Codestring

The status code returned. The status code 200 indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.

200
Messagestring

The error message returned.

successful
Extstring

The extended information about the file detection result.

{"HighLight":[[23245,23212]]}

Examples

Sample success responses

JSONformat

{
  "RequestId": "24A20733-10A0-4AF6-BE6B-E3322413BB68",
  "ResultList": [
    {
      "HashKey": "0a212417e65c26ff133cfff28f6c****",
      "Result": 0,
      "Score": 100,
      "VirusType": "WEBSHELL",
      "Code": "200",
      "Message": "successful",
      "Ext": "{\"HighLight\":[[23245,23212]]}"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400RequestTooFrequentlyRequest too frequently, please try again later-
400GetResultFailGet result fail, found no detect record for this file or result has been expired-
400InvalidApiDetectTypeUnsupported Api Detect Type.The file type is not supported.
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-
500SystemBusySystem busy, please try again later.-

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

Change history

Change timeSummary of changesOperation
2023-06-19API Description Update. The Error code has changedsee changesets
Change itemChange content
API DescriptionAPI Description Update.
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 500