Queries a list of alert events that are generated without aggregation.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:DescribeSuspEvents | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SourceIp | string | No | The source IP address of the request. | 192.168.XX.XX |
Dealed | string | No | Specifies whether the alert event is handled. Valid values:
| N |
Name | string | No | The name of the asset that is affected by the alert event. | ecs-xxx |
Levels | string | No | The severity of the alert event. Separate multiple severities with commas (,). Valid values:
| serious |
ParentEventTypes | string | No | The alert type of the alert event. Valid values:
| Webshell |
EventNames | string | No | The subtype of the alert event. Separate multiple subtypes with commas (,). | WEBSHELL |
Remark | string | No | The name of the alert or the information about the asset. Note
Fuzzy search is supported. The asset information includes the name, public IP address, and private IP address of an asset.
| 192.168.XX.XX |
Status | string | No | The status of the alert event. Valid values:
| 1 |
PageSize | string | No | The number of entries per page. Default value: 20. Maximum value: 100. | 20 |
CurrentPage | string | No | The number of the page to return. Default value: 1. | 1 |
Lang | string | No | The language of the content within the request and response. Default value: zh. Valid values:
| zh |
AlarmUniqueInfo | string | No | The ID of the alert event. Note
To query the details of an alert event, you must specify the ID of the alert event. You can call the DescribeSuspEvents operation to query the IDs of alert events.
| 8df914418f4211fb**** |
UniqueInfo | string | No | The unique key of the alert. | 73fc06fb175a7405697e402f52864**** |
Id | long | No | The ID of the alert event. | 123 |
From | string | No | The data source of the alert event. Set the value to sas. | sas |
Source | string | No | The source of the alert. | aegis_suspicious_file_v2 |
GroupId | long | No | The ID of the asset group to which the affected asset belongs. | 18768 |
Uuids | string | No | The UUID of the server on which the alert is detected. Separate multiple UUIDs with commas (,). | bb5d2484-f10e-450d-8917-3e79667e****,0e7c2fcd-7100-42c7-a21a-db6e4f32**** |
ClusterId | string | No | The ID of the cluster of whose alert events you want to query. | c4af4fdf38a98496a9b63c2be5dae**** |
ContainerFieldName | string | No | The key of the condition that is used to query alert events on containers. Valid values:
| instanceId |
ContainerFieldValue | string | No | The value of the condition that is used to query alert events on containers. | ccf9769c22b844ff9b8d57417683b**** |
TargetType | string | No | The item that is used to search for the container. Valid values:
| containerId |
TacticId | string | No | The tactic ID of ATT&CK. | TA0001 |
OperateErrorCodeList | array | No | An array that consists of the handling result codes of alert events. | |
string | No | The handling result code of the alert event. Set the value in the following format: Operation type.Operation result code. The following operation types are supported:
The following handling result codes are supported:
| ignore. Success | |
OperateTimeStart | string | No | The timestamp when the handling operation starts. | 2022-07-05 13:50:38 |
OperateTimeEnd | string | No | The timestamp when the handling operation ends. | 2022-07-06 13:50:38 |
TimeStart | string | No | The start time when the alert event was last detected. | 2022-07-05 13:50:38 |
TimeEnd | string | No | The end time when the alert event was last detected. | 2022-07-06 13:50:38 |
SortColumn | string | No | The custom sorting field. Default value: operateTime. Valid values:
Note
This parameter takes effect if you set the Dealed parameter to Y.
| operateTime |
SortType | string | No | The custom sorting order. Default value: desc. Valid values:
Note
This parameter takes effect if you set the Dealed parameter to Y.
| desc |
AssetsTypeList | array | No | The types of the assets. | |
string | No | The type of the asset. Valid values:
| ECS | |
ResourceDirectoryAccountId | long | No | The Alibaba Cloud account ID of the member in the resource directory. Note
You can call the DescribeMonitorAccounts operation to query the ID.
| 16670360956***** |
StrictMode | string | No | Specifies whether to enable the strict alerting mode.
| Y |
MultiAccountActionType | integer | No | The type of the accounts that you want to query. Default value: 0. Valid values:
| 0 |
SourceAliUids | array | No | The IDs of the Alibaba Cloud accounts within which alerts are generated. | |
long | No | The ID of the Alibaba Cloud account within which an alert is generated. | 196072141348**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"CurrentPage": 1,
"PageSize": 20,
"RequestId": "0D6E20E4-8326-1D03-A553-2182BE9E82F9",
"TotalCount": 100,
"Count": 20,
"SuspEvents": [
{
"Stages": "\"[\"authority_maintenance\"]\"",
"TacticItems": [
{
"TacticId": "TA0001",
"TacticDisplayName": "Malicious scripts-Malicious script code execution"
}
],
"InternetIp": "1.2.XX.XX",
"K8sClusterName": "k8s-daily",
"ContainerImageId": "sha256:2e5a3b0ae5f452b3cb458789a9a7542ef40035a84318469a8528c5e444db1****",
"LastTimeStamp": 1631699497000,
"OccurrenceTime": "2018-09-26 01:51:01",
"AlarmUniqueInfo": "8df914418f****",
"Desc": "webshell",
"CanCancelFault": false,
"AlarmEventNameDisplay": "Login with unusual location",
"AppName": "pro-deploy-tibasic",
"SecurityEventIds": "270789",
"K8sClusterId": "c517b37e1401e4961b3951863a49a****",
"ContainerImageName": "centos7_apache:v1.0.1",
"MarkMisRules": "[{\\\"uuid\\\":\\\"ALL\\\",\\\"field\\\":\\\"gmtModified\\\",\\\"operate\\\":\\\"contains\\\",\\\"fieldValue\\\":\\\"222\\\"}]",
"CanBeDealOnLine": true,
"ContainHwMode": false,
"K8sNodeId": "i-bp14a1ay8e0aa9t0****\n",
"InstanceName": "nginx",
"EventStatus": 1,
"SaleVersion": "1",
"OperateErrorCode": "kill_and_quara.Success",
"Name": "Unusual Logon-Login with unusual location",
"HasTraceInfo": true,
"DataSource": "aegis_suspicious_****",
"OperateTime": 1631699497000,
"EventSubType": "login_common_location",
"Advanced": true,
"OccurrenceTimeStamp": 1631699497000,
"InstanceId": "i-9dp6dwsxdl9z5u1e2f****",
"AlarmEventTypeDisplay": "Unusual Logon",
"IntranetIp": "100.100.XX.XX",
"LastTime": "2018-09-26 01:51:01",
"OperateMsg": "success",
"Uuid": "bf6b30d3-eea8-4924-9f0a-****",
"K8sPodName": "myapp-pod\n",
"ContainerId": "container_1648601865161_14925_02_000****",
"AlarmEventType": "Unusual Logon",
"K8sNamespace": "default",
"AutoBreaking": true,
"K8sNodeName": "N/A",
"AlarmEventName": "login_common_location",
"UniqueInfo": "e17e****",
"MaliciousRuleStatus": "open",
"Level": "serious",
"Id": 1000,
"Details": [
{
"Type": "text",
"Value": "/etc/crontab",
"NameDisplay": "Login with unusual location",
"ValueDisplay": "/etc/crontab"
}
],
"EventNotes": [
{
"Note": "Test",
"NoteId": 123,
"NoteTime": "2018-09-26 01:51:01\n"
}
],
"clusterId": "c2051775877374cccbf68af596e6****",
"ImageUuid": "70489fb520cea585ad9761d5a842****",
"DisplaySandboxResult": true,
"LargeModel": true,
"MarkList": [
"mark"
],
"SourceAliUid": 0
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NoPermission | no permission | - |
400 | UnknownError | UnknownError | - |
400 | RdCheckNoPermission | Resource directory account verification has no permission. | - |
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | RdCheckInnerError | Resource directory account service internal error. | - |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-09-05 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
2024-06-21 | The Error code has changed. The response structure of the API has changed | View Change Details |
2024-05-13 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2024-01-24 | The Error code has changed | View Change Details |
2023-09-21 | The Error code has changed | View Change Details |
2023-09-20 | The Error code has changed | View Change Details |
2023-09-13 | The Error code has changed | View Change Details |
2023-09-07 | The Error code has changed | View Change Details |
2023-08-09 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-07-20 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-04-25 | The Error code has changed. The response structure of the API has changed | View Change Details |