Skip to Content
WEB应用防火墙 UEWAF查询WAF攻击详情 - DescribeWafAttackDetailListInfo

查询WAF攻击详情 - DescribeWafAttackDetailListInfo

简介

查询WAF攻击详情

定义

公共参数

参数名类型描述信息必填
Actionstring对应的 API 指令名称,当前 API 为 DescribeWafAttackDetailListInfoYes
PublicKeystring用户公钥,可从 控制台 获取Yes
Signaturestring根据公钥及 API 指令生成的用户签名,参见 签名算法Yes

请求参数

参数名类型描述信息必填
ProjectIdstring项目ID,不填表示默认项目No
Offsetint页面偏移Yes
Limitint每页数量限制Yes
TimeTypestring时间单位;可选项:Hour|Day|Week|Month|Custom;默认HourNo
AttackType.Nstring攻击类型[“scan”, “loopholes”, “xss”, “cc”, “sql”, “exec”, “webshell”, “infoleak”, “eaa”, “protocol”, “other”]No
RiskRank.Nstring风险级别No
ActionType.Nstring匹配动作,拦截、放行、告警No
BeginTimeint自定义开始时间戳No
EndTimeint自定义结束时间戳No
FullDomainstring要查询的域名,为空时查询所有No

响应字段

字段名类型描述信息必填
RetCodeint返回状态码,为 0 则为成功返回,非 0 为失败Yes
Actionstring操作指令名称Yes
Messagestring返回错误消息,当 RetCode 非 0 时提供详细的描述信息No
DetailListarray[WafAttack]攻击详情列表,参考WafAttackNo
TotalCountint攻击详情总数No

数据模型

WafAttack

字段名类型描述信息必填
Regionstring区域No
Protocolstring协议No
ServerNamestring服务器名称No
DestIpstring目标IP地址No
Portstring端口No
Alertsarray[WafAlert]告警匹配信息,参考WafAlertNo
Attackstring攻击类型No
Methodstring请求方法No
FalsePositiveboolean是否误报No
RiskRankstring风险等级No
TimeStampint攻击时间戳No
Hoststring主机名No
Refererstring引用地址No
Countint攻击次数No
UristringURINo
Clientstring客户端No
Modestring工作模式No
Actionstring匹配动作No
UAstring用户代理No
Argsstring参数No

WafAlert

字段名类型描述信息必填
Descriptionstring规则描述No
Idint匹配规则IDNo

示例

请求示例

https://api.an-link.com/?Action=DescribeWafAttackDetailListInfo &ProjectId=org-xxx &AttackType=xss &RiskRank=high &Domain=www.test.com &Offset=0 &Limit=10 &TimeType=Hour

响应示例

{ "Action": "DescribeWafAttackDetailListInfoResponse", "DetailList": [ { "AccessId": "183.238.16.138-f97f82ee", "Action": "DENY", "Alerts": [ { "Description": "XSS", "Id": 32003, "Match": { "0": "alert(", "14": "alert(", "34": "alert" } } ], "Args": "ctg=%22%20onmouseover=%22alert(1295)", "Attack": "xss", "Client": "183.238.16.138", "ClientIPInfo": { "city_name": "深圳", "country_name": "中国", "latitude": "22.547", "longitude": "114.085947", "owner_domain": "", "region_name": "广东", "timezone": "Asia/Shanghai" }, "Count": 1, "DestIp": "106.5.9.224", "FalsePositive": false, "Host": "www.test.com", "Id": "5e8c1db1243527db1df81bc2", "Method": "GET", "Mode": "SIMULATE", "Port": "80", "Protocol": "http", "Referer": "NULL", "Region": "cn-bj", "RequestBody": null, "RequestHeaders": { "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "AcceptEncoding": "", "AcceptLanguage": "en-US", "CacheControl": "", "Connection": "", "Cookie": "", "Host": "www.test.com", "UpgradeInsecureRequests": "", "UserAgent": "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0)", "XForwardFor": "" }, "RiskRank": "high", "ServerName": "www.test.com", "TimeStamp": 1586240945, "TopId": 0, "UA": "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0)", "Uri": "/professor.php?ctg=%22%20onmouseover=%22alert(1295)" } ], "RetCode": 0, "TotalCount": 1 }