tencent cloud

APIs

DescribeSkillSecScanResult

Download
Focus Mode
Font Size
Last updated: 2026-11-17 19:19:04

1. API Description

Domain name for API request: waf.intl.tencentcloudapi.com.

This API is used to query Skill security detection results by file Hash.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeSkillSecScanResult.
Version Yes String Common Params. The value used for this API: 2018-01-25.
Region Yes String Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-hongkong, ap-jakarta, ap-singapore.
ServiceId Yes String

Service ID.

ContentHash Yes String

SHA256 hash of the ZIP file, in the format of sha256:hex_digest. Strictly follow the ZIP packaging specifications in the documentation

Lang No String

Response language. Valid values: zh / en. Default value: zh

3. Output Parameters

Parameter Name Type Description
Data SkillScanQueryData

Detection result

RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Querying skill Detection Results

This example shows you how to fill in ServiceId and ContentHash based on the actual situation.

Input Example

POST / HTTP/1.1
Host: waf.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeSkillSecScanResult
<Common request parameters>

{
    "ServiceId": "******",
    "ContentHash": "sha256:efbc*937af7cd8fa4835908d753dd6272*521da849b2cfdb58b5f5f281c79a*a",
    "Lang": "zh"
}

Output Example

{
    "Response": {
        "Data": {
            "CapabilityTags": [
                {
                    "Id": "command_execution",
                    "Name": "Command Execution"
                }
            ],
            "ContentHash": "sha256:efbc9937af7cd8fa4835908d753dd6272a521da849b2cfdb58b5f5f281c79a4a",
            "EngineVersion": 40400,
            "ReportUrl": "http://test-static-ai-scan.woa.com/html-reports/2026/05/07/125821_16d02efc38ccc323445bbcc0c97bb050.html",
            "RiskLevel": "malicious",
            "RuleCatalog": [
                {
                    "Key": "90005",
                    "Value": "Prompt injection risk"
                }
            ],
            "ScanItems": [
                {
                    "RuleList": [
                        {
                            "Description": "In scripts/run.py line 10, subprocess.run(cmd, shell=True) is found to execute commands through the shell; in scripts/run.py line 34, curl -sfL | bash is found to download and execute a remote script; in scripts/run.py line 54, unset HISTFILE is found to disable shell history.",
                            "RuleId": "90002"
                        }
                    ],
                    "ScanType": "AI"
                }
            ],
            "ScannedAt": "2026-05-07T19:19:59+08:00",
            "SecurityScore": 11,
            "Status": "success"
        },
        "RequestId": "ed07db13-df4d-4dde-97df-9bd1bd1b4df8"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InvalidParameter.SkillScanInvalidParam Parameter validation failed, such as an invalid content_hash format or missing required fields.
InvalidParameter.SkillScanInvalidRequest Invalid request format, such as an incorrect Content-Type or JSON parsing failure.
InvalidParameter.SkillScanQueryFailed Failed to query due to an internal service error.
InvalidParameter.SkillScanServiceIdEmpty ServiceId is empty.
InvalidParameter.SkillScanSwitchOff The protection switch is not enabled.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback