]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tests: file_data depth inspection should keep working with other rules
authorGabriel L. Somlo <gsomlo@gmail.com>
Mon, 23 Sep 2019 13:47:41 +0000 (09:47 -0400)
committerJason Ish <jason.ish@oisf.net>
Fri, 20 Mar 2020 22:16:09 +0000 (16:16 -0600)
tests/file-data-depth-inspection/test.rules
tests/file-data-depth-inspection/test.yaml

index d71730033692f7a401331d04153e7058db8d4f33..5e2c1674c7d065c0658b589755504ad51c7c2458 100644 (file)
@@ -1 +1,4 @@
+# should match:
 alert tcp any any -> any 25 (msg:"VIRUS INBOUND bad file attachment"; flow:to_server,established; content:"content-disposition|3a| attachment|3b|"; nocase; content:".zip|22|"; nocase; within:128; file_data; content:".pdf.exe"; within:64; sid:13371339; rev:1;)
+# should match:
+alert tcp any any -> any any (msg:"ATTACK-RESPONSES directory listing"; flow:established; content:"Volume Serial Number"; sid:13371338; rev:1;)
index 46db7af4c93d45b441a9ddf8f03e564cd45f8335..93702a23bf9383afd8c472708e0ede801bb6d363 100644 (file)
@@ -8,3 +8,8 @@ checks:
         match:
             event_type: alert
             alert.signature_id: 13371339
+    - filter:
+        count: 1
+        match:
+            event_type: alert
+            alert.signature_id: 13371338