tencent cloud

Feedback

DescribeAbnormalProcessRuleDetail

Last updated: 2024-07-22 11:04:32

    1. API Description

    Domain name for API request: tcss.tencentcloudapi.com.

    This API is used to query the details of an abnormal process policy at runtime.

    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: DescribeAbnormalProcessRuleDetail.
    Version Yes String Common Params. The value used for this API: 2020-11-01.
    Region No String Common Params. This parameter is not required.
    RuleId No String Unique policy ID
    ImageId No String Image ID, which is used when an image is added to the allowlist.
    Limit No Integer Number of results to be returned. Default value: 10. Maximum value: 100.
    Offset No Integer Offset. Default value: 0.

    3. Output Parameters

    Parameter Name Type Description
    RuleDetail AbnormalProcessRuleInfo Details of the abnormal process policy
    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 rule details by rule ID (user policy)

    Input Example

    https://tcss.tencentcloudapi.com/?Action=DescribeAbnormalProcessRuleDetail
    &RuleId=xxx
    &Limit=10
    &Offset=0
    &<Common request parameters>
    

    Output Example

    {
        "Response": {
            "RequestId": "fee1bdb0-c13f-4c65-b567-8e270df211c1",
            "RuleDetail": {
                "RuleId": "6045892534b9a9000c4ae5ba",
                "IsEnable": true,
                "RuleName": "9999",
                "ChildRules": [
                    {
                        "RuleId": "6020e81134b9a9000c50b56a",
                        "RuleMode": "RULE_MODE_ALERT",
                        "ProcessPath": "/bin/ptest",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "60212ddd98dab16785dfeab2",
                        "RuleMode": "RULE_MODE_ALERT",
                        "ProcessPath": "/usr/bin/ps",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "6021472934b9a9000c358fa3",
                        "RuleMode": "RULE_MODE_RELEASE",
                        "ProcessPath": "/usr/bin/top",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "602f603d34b9a9000cb2b405",
                        "RuleMode": "RULE_MODE_ALERT",
                        "ProcessPath": "/usr/bin/tail",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "60326e4434b9a9000c0897a8",
                        "RuleMode": "RULE_MODE_ALERT",
                        "ProcessPath": "/usr/bin/busybox",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "60337df034b9a9000c2240c8",
                        "RuleMode": "RULE_MODE_ALERT",
                        "ProcessPath": "/usr/bin/sss",
                        "RuleLevel": "MIDDLE"
                    }
                ],
                "SystemChildRules": [],
                "ImageIds": [
                    "sha256:300e315adb2f96afe5f0b2780b87f28ae95231fe3bdd1e16b9ba606307728f55"
                ]
            }
        }
    }
    

    Example2 Querying rule details by rule ID (preset policy)

    Input Example

    https://tcss.tencentcloudapi.com/?Action=DescribeAbnormalProcessRuleDetail
    &RuleId=xxx
    &Limit=10
    &Offset=0
    &<Common request parameters>
    

    Output Example

    {
        "Response": {
            "RequestId": "fee1bdb0-c13f-4c65-b567-8e270df211c1",
            "RuleDetail": {
                "RuleId": "6048403bd620f3f9012c521d",
                "IsEnable": true,
                "IsDefault": true,
                "RuleName": "Preset policy",
                "ChildRules": [],
                "SystemChildRules": [
                    {
                        "RuleId": "100000000000000000000001",
                        "IsEnable": true,
                        "RuleMode": "RULE_MODE_ALERT",
                        "RuleType": "PROXY_TOOL",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "100000000000000000000002",
                        "IsEnable": true,
                        "RuleMode": "RULE_MODE_ALERT",
                        "RuleType": "TRANSFER_CONTROL",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "100000000000000000000003",
                        "IsEnable": true,
                        "RuleMode": "RULE_MODE_ALERT",
                        "RuleType": "ATTACK_CMD",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "100000000000000000000004",
                        "IsEnable": true,
                        "RuleMode": "RULE_MODE_ALERT",
                        "RuleType": "REVERSE_SHELL",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "100000000000000000000005",
                        "IsEnable": true,
                        "RuleMode": "RULE_MODE_ALERT",
                        "RuleType": "FILELESS",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "100000000000000000000006",
                        "IsEnable": true,
                        "RuleMode": "RULE_MODE_ALERT",
                        "RuleType": "RISK_CMD",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "100000000000000000000007",
                        "IsEnable": true,
                        "RuleMode": "RULE_MODE_ALERT",
                        "RuleType": "ABNORMAL_CHILD_PROC",
                        "RuleLevel": "MIDDLE"
                    }
                ],
                "ImageIds": [
                    "sha256:300e315adb2f96afe5f0b2780b87f28ae95231fe3bdd1e16b9ba606307728f55"
                ]
            }
        }
    }
    

    Example3 Querying the rule details of the current image by image ID (user policy)

    Input Example

    https://tcss.tencentcloudapi.com/?Action=DescribeAbnormalProcessRuleDetail
    &ImageId=xxx
    &Limit=10
    &Offset=0
    &<Common request parameters>
    

    Output Example

    {
        "Response": {
            "RequestId": "fee1bdb0-c13f-4c65-b567-8e270df211c1",
            "RuleDetail": {
                "RuleId": "6045892534b9a9000c4ae5ba",
                "IsEnable": true,
                "RuleName": "9999",
                "ChildRules": [
                    {
                        "RuleId": "6020e81134b9a9000c50b56a",
                        "RuleMode": "RULE_MODE_ALERT",
                        "ProcessPath": "/bin/ptest",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "60212ddd98dab16785dfeab2",
                        "RuleMode": "RULE_MODE_ALERT",
                        "ProcessPath": "/usr/bin/ps",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "6021472934b9a9000c358fa3",
                        "RuleMode": "RULE_MODE_RELEASE",
                        "ProcessPath": "/usr/bin/top",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "602f603d34b9a9000cb2b405",
                        "RuleMode": "RULE_MODE_ALERT",
                        "ProcessPath": "/usr/bin/tail",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "60326e4434b9a9000c0897a8",
                        "RuleMode": "RULE_MODE_ALERT",
                        "ProcessPath": "/usr/bin/busybox",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "60337df034b9a9000c2240c8",
                        "RuleMode": "RULE_MODE_ALERT",
                        "ProcessPath": "/usr/bin/sss",
                        "RuleLevel": "MIDDLE"
                    }
                ],
                "SystemChildRules": [],
                "ImageIds": [
                    "sha256:300e315adb2f96afe5f0b2780b87f28ae95231fe3bdd1e16b9ba606307728f55"
                ]
            }
        }
    }
    

    Example4 Querying the rule details of the current image by image ID (preset policy)

    Input Example

    https://tcss.tencentcloudapi.com/?Action=DescribeAbnormalProcessRuleDetail
    &ImageId=xxx
    &Limit=10
    &Offset=0
    &<Common request parameters>
    

    Output Example

    {
        "Response": {
            "RequestId": "fee1bdb0-c13f-4c65-b567-8e270df211c1",
            "RuleDetail": {
                "RuleId": "6048403bd620f3f9012c521d",
                "IsEnable": true,
                "IsDefault": true,
                "RuleName": "Preset policy",
                "ChildRules": [],
                "SystemChildRules": [
                    {
                        "RuleId": "100000000000000000000001",
                        "IsEnable": true,
                        "RuleMode": "RULE_MODE_ALERT",
                        "RuleType": "PROXY_TOOL",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "100000000000000000000002",
                        "IsEnable": true,
                        "RuleMode": "RULE_MODE_ALERT",
                        "RuleType": "TRANSFER_CONTROL",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "100000000000000000000003",
                        "IsEnable": true,
                        "RuleMode": "RULE_MODE_ALERT",
                        "RuleType": "ATTACK_CMD",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "100000000000000000000004",
                        "IsEnable": true,
                        "RuleMode": "RULE_MODE_ALERT",
                        "RuleType": "REVERSE_SHELL",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "100000000000000000000005",
                        "IsEnable": true,
                        "RuleMode": "RULE_MODE_ALERT",
                        "RuleType": "FILELESS",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "100000000000000000000006",
                        "IsEnable": true,
                        "RuleMode": "RULE_MODE_ALERT",
                        "RuleType": "RISK_CMD",
                        "RuleLevel": "MIDDLE"
                    },
                    {
                        "RuleId": "100000000000000000000007",
                        "IsEnable": true,
                        "RuleMode": "RULE_MODE_ALERT",
                        "RuleType": "ABNORMAL_CHILD_PROC",
                        "RuleLevel": "MIDDLE"
                    }
                ],
                "ImageIds": [
                    "sha256:300e315adb2f96afe5f0b2780b87f28ae95231fe3bdd1e16b9ba606307728f55"
                ]
            }
        }
    }
    

    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
    AuthFailure A CAM signature/authentication error occurred.
    FailedOperation.RuleNotFind The rule is not found.
    InternalError An internal error occurred.
    InvalidParameter The parameter is incorrect.
    InvalidParameter.InvalidFormat The parameter format is incorrect.
    InvalidParameter.MissingParameter The required parameter is missing.
    InvalidParameterValue The parameter value is incorrect.
    ResourceNotFound The resource does not exist.