Queries the details of intrusion events.
Operation description
You can call the DescribeRiskEventGroup operation to query and download the details of intrusion events. We recommend that you query the details of 5 to 10 intrusion events at a time. If you do not need to query the geographical information about IP addresses, you can set the NoLocation parameter to true to prevent query timeout.
Limits
You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
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-cloudfirewall:DescribeRiskEventGroup | list | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Lang | string | No | The language of the content within the request and response. Valid values:
| zh |
StartTime | string | Yes | The beginning of the time range to query. The value is a UNIX timestamp. Unit: seconds. | 1534408189 |
EndTime | string | Yes | The end of the time range to query. The value is a UNIX timestamp. Unit: seconds. | 1534408267 |
Direction | string | No | The direction of the traffic for the intrusion events. Valid values:
Note
If you do not specify this parameter, the intrusion events that are recorded for both inbound and outbound traffic are queried.
| in |
PageSize | string | No | The number of entries to return on each page. Default value: 6. Maximum value: 10. | 6 |
CurrentPage | string | No | The number of the page to return. Default value: 1. | 1 |
DataType | string | Yes | The type of the risk events. | session |
RuleSource | string | No | The module of the rule that is used to detect the intrusion events. Valid values:
Note
If you do not specify this parameter, the intrusion events that are detected by all rules are queried.
| 1 |
RuleResult | string | No | The status of the firewall. Valid values:
Note
If you do not specify this parameter, all intrusion events that are detected by the firewall are queried, regardless of the firewall status.
| 1 |
SrcIP | string | No | The source IP address to query. If you specify this parameter, all intrusion events with the specified source IP address are queried. | 192.0.XX.XX |
DstIP | string | No | The destination IP address to query. If you specify this parameter, all intrusion events with the specified destination IP address are queried. | 192.0.XX.XX |
VulLevel | string | No | The risk level of the intrusion events. Valid values:
Note
If you do not specify this parameter, the intrusion events that are at all risk levels are queried.
| 1 |
FirewallType | string | No | The type of the firewall. Valid values:
| InternetFirewall |
SrcNetworkInstanceId | string | No | The ID of the source VPC. Note
If the FirewallType parameter is set to VpcFirewall, you must specify this parameter.
| vpc-uf6e9a9zyokj2ywuo**** |
DstNetworkInstanceId | string | No | The ID of the destination VPC. Note
If the FirewallType parameter is set to VpcFirewall, you must specify this parameter.
| vpc-uf6e9a9zyokj2ywuo**** |
AttackType | string | No | The attack type of the intrusion events. Valid values:
Note
If you do not specify this parameter, the intrusion events of all attack types are queried.
| 1 |
NoLocation | string | No | Specifies whether to query the information about the geographical locations of IP addresses.
| false |
AttackApp | array | No | The names of attacked applications. Set the value in the | |
string | No | The name of the attacked application. Set the value in the | Redis | |
BuyVersion | long | No | The edition of Cloud Firewall that you purchase. Valid values:
| 10 |
Sort | string | No | The field based on which you want to sort the results. Valid values:
| LastTime |
Order | string | No | The order in which you want to sort the results. Valid values:
| desc |
EventName | string | No | The name of the intrusion event. | Webshell communication |
IsOnlyPrivateAssoc | string | No | Whether to query only the data that has completed private network tracing. | true |
All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters. For more information about sample requests, see the "Examples" section of this topic.
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": 20,
"RequestId": "B14757D0-4640-4B44-AC67-7F558FE7E6EF",
"DataList": [
{
"Direction": "in",
"EventName": "Path traversal attack\n",
"DstIP": "192.0.XX.XX",
"AttackType": 1,
"Tag": "Threat intelligence provided for major events\n",
"RuleId": "1000****",
"EventId": "2b58efae-4c4b-4d96-9544-a586fb1f****",
"ResourceType": "EcsPublicIP",
"FirstEventTime": 1534408189,
"Description": "Path traversal attacks are detected in the web access requests over HTTP.\n",
"EventCount": 100,
"VulLevel": 1,
"AttackApp": "MySql",
"RuleSource": 1,
"RuleResult": 2,
"SrcIP": "192.0.XX.XX",
"LastEventTime": 1534408267,
"ResourcePrivateIPList": [
{
"ResourceInstanceName": "LD-shenzhen-zy****",
"ResourcePrivateIP": "10.255.XX.XX",
"ResourceInstanceId": "i-wz92jf4scg2zb74p****",
"RegionNo": "cn-hangzhou"
}
],
"SrcPrivateIPList": [
"[\"192.168.XX.XX\",\"192.168.XX.XX\"]"
],
"VpcSrcInfo": {
"EcsInstanceName": "LD-shenzhen-zy****",
"NetworkInstanceName": "VPC-SH-TX****",
"NetworkInstanceId": "vpc-uf6e9a9zyokj2ywuo****",
"EcsInstanceId": "i-wz92jf4scg2zb74p****",
"RegionNo": "cn-hangzhou"
},
"VpcDstInfo": {
"EcsInstanceName": "LD-shenzhen-zy****",
"NetworkInstanceName": "VPC-SH-TX****",
"NetworkInstanceId": "vpc-uf6e9a9zyokj2ywuo****",
"EcsInstanceId": "i-wz92jf4scg2zb74p****",
"RegionNo": "cn-hangzhou"
},
"IPLocationInfo": {
"CityId": "510100",
"CountryName": "China\n",
"CityName": "Chengdu, Sichuan Province\n",
"CountryId": "CN"
},
"SrcIPTag": "WAF Back-to-origin Address"
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ErrorAliUid | Aliuid invalid. | The aliuid is invalid. |
400 | ErrorFirewallType | The specified firewall type is invalid. | The firewall type of traffic log is invalid. |
400 | ErrorParameters | A parameter error occurred. | A parameter error occurred. |
400 | ErrorDirectionError | The direction is invalid. | The direction is invalid. |
400 | ErrorIpFormat | The IP address is invalid. | The IP address is invalid. |
400 | ErrorRuleSourceError | The rule source is invalid. | The rule source is invalid. |
400 | ErrorRuleResultError | The rule result is invalid. | The rule result is invalid. |
400 | ErrorVulLevelFailed | VulLevel has failed. | VulLevel has failed. |
400 | ErrorTimeError | time range invalid. | The specified time is invalid. Select again. |
400 | ErrorIntervalError | The interval is invalid. | The interval is invalid. |
400 | ErrorPageNo | Either page number or page size is invalid. | Either page number or page size is invalid. |
400 | ErrorDBSelectError | A database select error occurred. | The error message returned because an internal error has occurred in querying the database. |
400 | ErrorMarshalJSON | internal error. | Internal error. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-08-29 | API Description Update. The Error code has changed | View Change Details |
2023-03-16 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2022-09-27 | The API operation is not deprecated.. The Error code has changed. The request parameters of the API has changed | View Change Details |