藍隊
資安
https://docs.suricata.io/en/latest/rules/index.html
rule format
!
inverse, []
grouping, any
, $HOME_NET
:
range, !
inverse, []
grouping, any
->
, <>
alert tls any any -> any any (msg: "[TLS test] client hello"; ssl_state: client_hello; sid: 1;)
alert tcp any any -> $HOME_NET any (msg: "[SYN Scan test]"; tcp.flags: S; threshold: type both, track by_dst, count 1000, seconds 3; sid: 1;)
https://yara.readthedocs.io/en/stable/writingrules.html
rule format
optional
and
, or
#<string name>
countingat
offset, in (<start>..<end>)
rangefilesize
file size keywordentrypoint
entrypoint keyworduint32(<addr>)
address pointer<number> of ($<string name>, $<string name>)
for expression of string_set : ( boolean_expression )
https://docs.mitmproxy.org/stable/api/events.html
example: https://github.com/mitmproxy/mitmproxy/blob/main/examples/addons/http-trailers.py