--- /dev/null
+Match on SIP method field.
--- /dev/null
+alert sip any any -> any any (flow:to_server; sip.method; content:"REGISTER"; sid:1;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 5.0.0
+
+args:
+ - -k none
+
+pcap: sip.pcap
+
+checks:
+ - filter:
+ count: 36
+ match:
+ event_type: alert
--- /dev/null
+Match on SIP version field.
--- /dev/null
+alert sip any any -> any any (flow:to_server; sip.protocol; content:"SIP/2.0"; sid:1;)
+alert sip any any -> any any (flow:to_client; sip.protocol; content:"SIP/2.0"; sid:2;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 5.0.0
+
+args:
+ - -k none
+
+pcap: ../sip-method/sip.pcap
+
+checks:
+ - filter:
+ count: 81
+ match:
+ event_type: alert
+ - filter:
+ count: 47
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ - filter:
+ count: 34
+ match:
+ event_type: alert
+ alert.signature_id: 2
--- /dev/null
+Match on the whole SIP request line.
--- /dev/null
+alert sip any any -> any any (flow:to_server; sip.request_line; content:"REGISTER sip:sip.cybercity.dk SIP/2.0"; sid:1;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 5.0.0
+
+args:
+ - -k none
+
+pcap: ../sip-method/sip.pcap
+
+checks:
+ - filter:
+ count: 36
+ match:
+ event_type: alert
--- /dev/null
+Match on the whole SIP response line.
--- /dev/null
+alert sip any any -> any any (flow:to_client; sip.response_line; content:"SIP/2.0 200 OK"; sid:1;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 5.0.0
+
+args:
+ - -k none
+
+pcap: ../sip-method/sip.pcap
+
+checks:
+ - filter:
+ count: 5
+ match:
+ event_type: alert
--- /dev/null
+Match on SIP stat code field.
--- /dev/null
+alert sip any any -> any any (flow:to_client; sip.stat_code; content:"100"; sid:1;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 5.0.0
+
+args:
+ - -k none
+
+pcap: ../sip-method/sip.pcap
+
+checks:
+ - filter:
+ count: 7
+ match:
+ event_type: alert
--- /dev/null
+Match on SIP stat msg field.
--- /dev/null
+alert sip any any -> any any (flow:to_client; sip.stat_msg; content:"Trying"; sid:1;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 5.0.0
+
+args:
+ - -k none
+
+pcap: ../sip-method/sip.pcap
+
+checks:
+ - filter:
+ count: 6
+ match:
+ event_type: alert
--- /dev/null
+Match on SIP URI field.
--- /dev/null
+alert sip any any -> any any (flow:to_server; sip.uri; content:"sip:sip.cybercity.dk"; sid:1;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 5.0.0
+
+args:
+ - -k none
+
+pcap: ../sip-method/sip.pcap
+
+checks:
+ - filter:
+ count: 36
+ match:
+ event_type: alert