tencent cloud

Feedback

DescribeFileTamperEvents

Last updated: 2024-12-06 15:42:30

1. API Description

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

This API is used to obtain the list of core file monitoring events.

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: DescribeFileTamperEvents.
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 Filters Filter criteria
  • Status - String - required: no - processing status: 0: pending; 1: allowlisted; 2: deleted; 3: ignored
  • ModifyTime - String - required: no - last occurrence time
  • Uuid- String - required: no - query by host UUID
  • RuleCategory - string - required: no - rule category. 0: system rule; 1: custom rule
  • FileAction - string - required: no - threat behavior: read - read file; write - write file
  • Offset No Integer Offset. Default value: 0.
    Limit No Integer Number of items to be returned. It is 10 by default, and the maximum value is 100.
    Order No String Sorting method: ASC, DESC
    By No String Sorting field: CreateTime; ModifyTime

    3. Output Parameters

    Parameter Name Type Description
    List Array of FileTamperEvent Core File Event List
    Note: This field may return null, indicating that no valid values can be obtained.
    TotalCount Integer Total number of data entries
    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 List of Core File Monitoring Events

    This example shows you how to acquire it normally.

    Input Example

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

    Output Example

    {
        "Response": {
            "List": [
                {
                    "Id": 370572797,
                    "Uuid": "1c26308c-5493-4eaf-a817-112ec25f499e",
                    "Quuid": "1c26308c-5493-4eaf-a817-112ec25f499e",
                    "HostIp": "0.0.0.0",
                    "HostName": "销售许可测试机器",
                    "Type": 0,
                    "ProcessExe": "/usr/bin/crontab",
                    "ProcessArgv": "crontab /root/cron.tmp",
                    "Target": "/var/spool/cron/#tmp.VM-124-81-tencentos.2QUwZR",
                    "Status": 0,
                    "EventCount": 1,
                    "RuleId": 1,
                    "RuleName": "系统策略-篡改计划任务",
                    "Pstree": "[{\"pid\":980959,\"exe\":\"/usr/bin/crontab\",\"account\":\"root:root\",\"cmdline\":\"crontab /root/cron.tmp\",\"start_time\":1729557954,\"type\":1},{\"pid\":2288,\"exe\":\"/root/chaos-executor\",\"account\":\"root:root\",\"cmdline\":\"./chaos-executor d -p 29785a94e8324 -f id_rsa.pub -n Production -s  Production\",\"start_time\":1729471587,\"type\":2}]",
                    "CreateTime": "2024-10-22 08:45:58",
                    "ModifyTime": "2024-10-22 08:45:58",
                    "Level": 1,
                    "RuleCategory": 0,
                    "MachineStatus": "ONLINE",
                    "Description": "检测到系统计划任务被修改",
                    "Suggestion": "排查是否为正常业务需要的计划任务修改",
                    "PrivateIp": "10.1.1.15",
                    "ExePermission": "-rwsr-xr-x",
                    "UserName": "0",
                    "UserGroup": "0",
                    "ExeMd5": "569f953571579ec4ae613cca7862930a",
                    "ExeSize": 0,
                    "ExeTime": 1669715461,
                    "TargetSize": 981,
                    "TargetPermission": "-rw-------",
                    "TargetModifyTime": "2024-10-22 08:45:54",
                    "TargetCreatTime": "2024-10-22 08:45:54",
                    "ExePid": 980959,
                    "TargetName": "#tmp.VM-124-81-tencentos.QUwZR",
                    "Reference": "https://",
                    "ExeName": "crontab",
                    "FileAction": "write",
                    "MachineExtraInfo": {
                        "WanIP": "0.0.0.0",
                        "PrivateIP": "10.1.1.15",
                        "NetworkType": 0,
                        "NetworkName": "vpc-d7f***",
                        "InstanceID": "ins-dsdsds",
                        "HostName": "hn***"
                    }
                }
            ],
            "TotalCount": 1,
            "RequestId": "e5b4724c-49af-46ab-bd84-cdbae897e7e0"
        }
    }
    

    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
    InternalError Internal error
    InvalidParameter Incorrect parameter.
    InvalidParameterValue Invalid parameter value.
    MissingParameter Missing parameter error.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support