--- /dev/null
+Extract the domain from a DNS request
--- /dev/null
+alert dns any any -> any any (dns.query; dotprefix; content:".windowsupdate.com"; sid:1;)
+alert dns any any -> any any (dns.query; dotprefix; content:".com"; endswith; sid:2;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 2
--- /dev/null
+Extract the domain from a DNS request
--- /dev/null
+alert dns any any -> any any (dns.query; dotprefix; content:".google.co.uk"; sid:1;)
+alert dns any any -> any any (dns.query; dotprefix; content:".co.uk"; endswith; sid:2;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 2
--- /dev/null
+Extract the domain from a DNS request
--- /dev/null
+alert dns any any -> any any (dns.query; dotprefix; content:".google.com"; sid:1;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+
+checks:
+ - filter:
+ count: 0
+ match:
+ event_type: alert
+ alert.signature_id: 1