tencent cloud

Feedback

DescribeRiskProcessEvents

Last updated: 2024-12-06 15:39:23

1. API Description

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

This API is used to obtain the list of abnormal processes.

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: DescribeRiskProcessEvents.
Version Yes String Common Params. The value used for this API: 2018-02-28.
Region No String Common Params. This parameter is not required.
Filters.N No Array of Filter Filtering criteria
  • HostId - String - required: no - host ID
  • IpOrName - String - required: no - host IP or host name
  • VirusName - String - required: no - virus name
  • ProcessId - String - required: no - process ID
  • FilePath - String - required: no - process path
  • BeginTime - String - required: no - process startup time - begin
  • BeginTime - String - required: no - process startup time - end
  • Status - String - required: no - status for filtering: 0: pending; 1: scanning; 2: scanned; 3: exited; 4: trusted
  • Limit No Integer Number of results to be returned. Default value: 10. Maximum value: 100.
    Offset No Integer Offset. Default value: 0.
    Order No String Sorting order: [ASC|DESC]
    By No String [StartTime: Process start time | DetectTime: Last detection time]

    3. Output Parameters

    Parameter Name Type Description
    TotalCount Integer Total number
    List Array of RiskProcessEvent List of exceptional processes
    Note: This field may return null, indicating that no valid values can be obtained.
    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 Obtain Exceptional Process List

    Input Example

    POST / HTTP/1.1
    Host: cwp.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeRiskProcessEvents
    <Common request parameters>
    
    {
        "Limit": 30
    }
    

    Output Example

    {
        "Response": {
            "List": [
                {
                    "EventId": 24,
                    "HostName": "Public-Main-行致-IT-埃安流量管理与服务平台-后台-MNO业务工程-CVM2",
                    "Uuid": "364e2cb6-e3a3-****-9abd-b87711b880e3",
                    "HostIp": "10.***.***.248",
                    "WanIp": "127.5.**.**",
                    "ProcessId": 21595,
                    "FilePath": "/dev/shm/dev",
                    "CmdLine": "./dev -h 10.***.**.1/24 -m ssh -nopoc -t 200 -o ssh.txt ",
                    "StartTime": "2023-09-16 18:28:00",
                    "DetectTime": "2023-09-16 18:30:55",
                    "VirusName": "Linux.Scanner.Fscan",
                    "CheckPlatform": [
                        "1"
                    ],
                    "VirusTags": [
                        "scanner",
                        "hack_tools"
                    ],
                    "ThreatDesc": "发现主机上存在黑客工具进程,若不是您的主动行为,您的主机可能已经失陷。 黑客工具通常包含扫描器、爆破工具、密码窃取器等恶意软件程序,会被攻击者用来发起攻击。",
                    "SuggestSolution": "1.检查恶意进程及非法端口,删除可疑的启动项和定时任务;\n2.隔离或者删除相关的木马文件;\n3.对系统进行风险排查,并进行安全加固,详情可参考如下链接: \n【Linux】https://**.*.com/document/product/296/9604 \n【Windows】https://www.tencentcloud.com/document/product/296/9605?from_cn_redirect=1",
                    "ReferenceLink": "https://www.tencentcloud.com/document/product/296/9605?from_cn_redirect=1",
                    "HandleStatus": 3,
                    "OnlineStatus": 1,
                    "MachineExtraInfo": {
                        "WanIP": "10.*.*.*",
                        "PrivateIP": "10.*.*.*",
                        "NetworkType": 0,
                        "NetworkName": "eth1",
                        "InstanceID": "ins-jvi1gdu0",
                        "HostName": "dataHub"
                    }
                }
            ],
            "RequestId": "e8fc6e04-5b3d-405d-ab61-da7cc8be2583",
            "TotalCount": 89
        }
    }
    

    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
    FailedOperation Operation failed.
    InternalError Internal error
    InvalidParameter Incorrect parameter.