match:
event_type: alert
alert.signature_id: 1
- alert.extra.src_ip.test: success
+ alert.context.src_ip.test: success
match:
event_type: alert
alert.signature_id: 1
- alert.extra.src_ip.test: success
- alert.extra.bad_host.year: 2005
+ alert.context.src_ip.test: success
+ alert.context.bad_host.year: 2005
-alert http any any -> any any (flow:established,to_server; http.host; dataset:isset,badhost,type string,load host.lst,format jsonline,enrichment_key bad_host,value_key host; ip.src; dataset:isset,src_ip,type ip,load src.lst,format jsonline,enrichment_key src_ip,value_key ip; sid:1;)
+alert http any any -> any any (flow:established,to_server; http.host; dataset:isset,badhost,type string,load host.lst,format ndjson,enrichment_key bad_host,value_key host; ip.src; dataset:isset,src_ip,type ip,load src.lst,format ndjson,enrichment_key src_ip,value_key ip; sid:1;)
match:
event_type: alert
alert.signature_id: 1
- alert.extra.src_ip.test: success
- alert.extra.bad_host.year: 2005
- alert.extra.src_ip.ip: "10.16.1.11"
- alert.extra.bad_host.host: "www.testmyids.com"
+ alert.context.src_ip.test: success
+ alert.context.bad_host.year: 2005
+ alert.context.src_ip.ip: "10.16.1.11"
+ alert.context.bad_host.host: "www.testmyids.com"
match:
event_type: alert
alert.signature_id: 1
- alert.extra.bad_sha.year: 2005
+ alert.context.bad_sha.year: 2005
- filter:
count: 1
match:
event_type: alert
alert.signature_id: 2
- alert.extra.bad_md5.year: 2007
+ alert.context.bad_md5.year: 2007
match:
event_type: alert
alert.signature_id: 1
- alert.extra.src_ip.test: success
- alert.extra.bad_host.year: 2005
+ alert.context.src_ip.test: success
+ alert.context.bad_host.year: 2005
-alert http any any -> any any (flow:established,to_server; http.host; dataset:isset,badhost,type string,load host.lst,format jsonline,enrichment_key bad_host,remove_key, value_key host; ip.src; dataset:isset,src_ip,type ip,load src.lst,format jsonline,enrichment_key src_ip,value_key ip, remove_key; sid:1;)
+alert http any any -> any any (flow:established,to_server; http.host; dataset:isset,badhost,type string,load host.lst,format ndjson,enrichment_key bad_host,remove_key, value_key host; ip.src; dataset:isset,src_ip,type ip,load src.lst,format ndjson,enrichment_key src_ip,value_key ip, remove_key; sid:1;)
match:
event_type: alert
alert.signature_id: 1
- alert.extra.src_ip.test: success
- alert.extra.bad_host.year: 2005
+ alert.context.src_ip.test: success
+ alert.context.bad_host.year: 2005
- filter:
count: 0
match:
event_type: alert
alert.signature_id: 1
- alert.extra.src_ip.test: success
- alert.extra.src_ip.ip: 10.16.1.11
- alert.extra.bad_host.year: 2005
+ alert.context.src_ip.test: success
+ alert.context.src_ip.ip: 10.16.1.11
+ alert.context.bad_host.year: 2005
- filter:
count: 0
match:
event_type: alert
alert.signature_id: 1
- alert.extra.src_ip.test: success
- alert.extra.bad_host.host: www.testmyids.com
+ alert.context.src_ip.test: success
+ alert.context.bad_host.host: www.testmyids.com
match:
event_type: alert
alert.signature_id: 1
- alert.extra.src_ip.test: success
- alert.extra.bad_host.year: 2005
+ alert.context.src_ip.test: success
+ alert.context.bad_host.year: 2005
- filter:
count: 1
match:
event_type: alert
alert.signature_id: 2
- alert.extra.src_ip.test: success
- alert.extra.dbad_host.year: 2005
+ alert.context.src_ip.test: success
+ alert.context.dbad_host.year: 2005
- filter:
count: 1
match:
event_type: alert
alert.signature_id: 3
- alert.extra.src_ip.test: success
- alert.extra.nbad_host.year: 2005
+ alert.context.src_ip.test: success
+ alert.context.nbad_host.year: 2005
- filter:
count: 1
match:
event_type: alert
alert.signature_id: 4
- alert.extra.src_ip.test: success
- alert.extra.nkbad_host.year: 2005
- alert.extra.nkbad_host.host.domain: testmyids.com
+ alert.context.src_ip.test: success
+ alert.context.nkbad_host.year: 2005
+ alert.context.nkbad_host.host.domain: testmyids.com
-alert http any any -> any any (flow:established,to_server; http.host; dataset:isset,badhost,type string,load host.lst,format jsonline,enrichment_key bad_host,value_key ioc.host,remove_key; ip.src; dataset:isset,src_ip,type ip,load src.lst,format jsonline,enrichment_key src_ip,value_key ip; sid:1;)
+alert http any any -> any any (flow:established,to_server; http.host; dataset:isset,badhost,type string,load host.lst,format ndjson,enrichment_key bad_host,value_key ioc.host,remove_key; ip.src; dataset:isset,src_ip,type ip,load src.lst,format ndjson,enrichment_key src_ip,value_key ip; sid:1;)
match:
event_type: alert
alert.signature_id: 1
- alert.extra.src_ip.test: success
- alert.extra.bad_host.year: 2005
- alert.extra.src_ip.ip: "10.16.1.11"
+ alert.context.src_ip.test: success
+ alert.context.bad_host.year: 2005
+ alert.context.src_ip.ip: "10.16.1.11"
- filter:
count: 0
match:
event_type: alert
alert.signature_id: 1
- alert.extra.src_ip.test: success
- alert.extra.bad_host.year: 2005
- alert.extra.src_ip.ip: "10.16.1.11"
- alert.extra.bad_host.host: "www.testmyids.com"
+ alert.context.src_ip.test: success
+ alert.context.bad_host.year: 2005
+ alert.context.src_ip.ip: "10.16.1.11"
+ alert.context.bad_host.host: "www.testmyids.com"
alert http any any -> any any (http.user_agent; pcre:"/^(?P<alert_ua>[a-zA-Z]+)/"; priority:1; sid:1;)
-alert http any any -> any any (http.user_agent; pcre:"/^([a-zA-Z]+).*Ubuntu\/(\d+\.\d).*Firefox\/(.*)/ ,alert:user_agent, flow:ubuntu, pkt:firefox"; sid:2;)
+alert http any any -> any any (http.user_agent; pcre:"/^([a-zA-Z]+).*Ubuntu\/(\d+\.\d).*Firefox\/(.*)/,alert:user_agent, flow:ubuntu, pkt:firefox"; sid:2;)
# Shouldn't match
alert http any any -> any any (msg:"pcre flowvar http header, user-agent, no match"; content:"User-Agent: "; http_header; pcre:"/(?P<alert_ua>.*)\r\n/HR"; content:"xyz"; http_header; priority:1; sid:3;)
alert http any any -> any any (msg:"pcre flowvar http header, server, no match"; content:"Server: "; http_header; pcre:"/(?P<alert_ua>.*)\r\n/HR"; content:"xyz"; http_header; priority:3; sid:4;)
match:
event_type: alert
alert.signature_id: 1
- alert.extra.ua: Mozilla
+ alert.context.ua: Mozilla
- filter:
count: 1
match:
event_type: alert
alert.signature_id: 2
- alert.extra.user_agent: Mozilla
+ alert.context.user_agent: Mozilla
metadata.flowvars[0].ubuntu: "8.1"
metadata.pktvars[0].firefox: "3.0.13"
- filter: