]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #3175: Wizard Updates for Talos
authorRuss Combs (rucombs) <rucombs@cisco.com>
Wed, 24 Nov 2021 16:21:01 +0000 (16:21 +0000)
committerRuss Combs (rucombs) <rucombs@cisco.com>
Wed, 24 Nov 2021 16:21:01 +0000 (16:21 +0000)
Merge in SNORT/snort3 from ~RUCOMBS/snort3:ff_ff to master

Squashed commit of the following:

commit 472d7f7b3c90c3229ee7f9ef1a4750e1bd26ae06
Author: russ <rucombs@cisco.com>
Date:   Sun Nov 21 08:05:51 2021 -0500

    wizard: add patterns to match unknown HTTP and SIP methods

commit 494a587f21fcfbceb8b95bb859082dad8290013e
Author: russ <rucombs@cisco.com>
Date:   Fri Nov 19 11:07:32 2021 -0500

    wizard: remove telnet IAC pattern

lua/snort_defaults.lua

index 547cd37818a41265de6390bdde710fb736fcde24..e6eacb5ffd5c8586975d1236e9669143c6f12424 100644 (file)
@@ -315,7 +315,11 @@ default_smtp =
 -- default wizard
 ---------------------------------------------------------------------------
 
-http_methods =  -- build from default_http_methods
+-- some HTTP and SIP methods match the whole start line to disambiguate
+-- between them or, in the case of ACK, from another protocol
+-- the * * patterns match unknown methods
+
+http_methods =
 {
     'GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'TRACE', 'CONNECT',
     'VERSION_CONTROL', 'REPORT', 'CHECKOUT', 'CHECKIN', 'UNCHECKOUT',
@@ -325,13 +329,15 @@ http_methods =  -- build from default_http_methods
     'UPDATEREDIRECTREF', 'PROPFIND', 'PROPPATCH', 'MKCOL', 'COPY',
     'MOVE', 'LOCK', 'UNLOCK', 'SEARCH', 'BCOPY', 'BDELETE', 'BMOVE',
     'BPROPFIND', 'BPROPPATCH', 'POLL', 'UNSUBSCRIBE', 'X_MS_ENUMATTS',
-    'NOTIFY * HTTP/', 'SUBSCRIBE * HTTP/', 'UPDATE * HTTP/', 'OPTIONS * HTTP/'
+    'NOTIFY * HTTP/', 'OPTIONS * HTTP/', 'SUBSCRIBE * HTTP/', 'UPDATE * HTTP/',
+    '* * HTTP/'
 }
 
 sip_requests =
 {
     'INVITE', 'CANCEL', 'BYE', 'REGISTER', 'PRACK', 'PUBLISH', 'REFER', 'INFO', 'MESSAGE',
-    'ACK * SIP/', 'SUBSCRIBE * SIP/', 'UPDATE * SIP/', 'NOTIFY * SIP/', 'OPTIONS * SIP/'
+    'NOTIFY * SIP/', 'OPTIONS * SIP/', 'SUBSCRIBE * SIP/', 'UPDATE * SIP/',
+    'ACK * SIP/', '* * SIP/'
 }
 
 telnet_commands =
@@ -339,7 +345,7 @@ telnet_commands =
     '|FF F0|', '|FF F1|', '|FF F2|', '|FF F3|',
     '|FF F4|', '|FF F5|', '|FF F6|', '|FF F7|',
     '|FF F8|', '|FF F9|', '|FF FA|', '|FF FB|',
-    '|FF FC|', '|FF FD|', '|FF FE|', '|FF FF|'
+    '|FF FC|', '|FF FD|', '|FF FE|'
 }