一个针对 CVE-2020-5902 的 Zeek 检测包,该漏洞为 CVE10.0,影响 F5 Networks BIG-IP 设备。
默认情况下两个通知均启用,但若您只想启用关于成功利用的通知,可在 scripts/bigIPF5.zeek 中将选项改为 True,即 option only_monitor_for_successful_exploit: bool = T;
| 通知 | 默认启用? | 通过 only_monitor_for_successful_exploit = T 禁用 |
|---|---|---|
| BIGIP_exploit_attempt | 是 | 是 |
| BIGIP_exploit_success | 是 | 否 |
通知包含最多 1500 字节的 HTTP 请求头以及 URI 信息,这有助于加快事件响应和分类,无需一定回溯到 pcap。例如:
#separator \x09 #set_separator , #empty_field (empty) #unset_field - #path notice #open 2020-07-27-16-57-12 #fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p fuid file_mime_type file_desc proto note msg sub src dst p n peer_descr actions suppress_for remote_location.country_code remote_location.region remote_location.city remote_location.latitude remote_location.longitude #types time string addr port addr port string string string enum enum string string addr addr port count string set[enum] interval string stringstring double double
1595831352.218935 C9EcoD1bu0ertt08bb 192.168.31.37 63034 192.168.1.3 80 - - - tcp CVE_2020_5902::BIGIP_exploit_attempt 检测到通过 URI '/hsqldb;' 尝试利用 F5 BIG-IP 设备中的 CVE-2020-5902 漏洞,但服务器响应代码='404',原因='Not Found',表明利用尝试失败。HTTP 请求头为 '{\x0a\x09[1] = [original_name=User-Agent, name=USER-AGENT, value=Wget/1.20.3 (darwin19.0.0)],\x0a\x09[2] = [original_name=Accept, name=ACCEPT, value=*/*],\x0a\x09[3] = [original_name=Accept-Encoding, name=ACCEPT-ENCODING, value=identity],\x0a\x09[4] = [original_name=Host, name=HOST, value=192.168.1.3],\x0a\x09[5] = [original_name=Connection, name=CONNECTION, value=Keep-Alive]\x0a}'. 请参考 https://support.f5.com/csp/article/K52145254 - 192.168.31.37 192.168.1.3 80 - - Notice::ACTION_LOG 3600.000000 - - - - -
zeek -Cr your.pcap scripts/__load__.zeek