]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
smb2-named-pipe-unicode: new test for smb_named_pipe keyword
authorEloy Pérez González <zer1t0ps@protonmail.com>
Fri, 25 Feb 2022 10:18:40 +0000 (11:18 +0100)
committerJason Ish <jason.ish@oisf.net>
Fri, 29 Apr 2022 19:13:48 +0000 (13:13 -0600)
tests/smb2-named-pipe-unicode/README.md [new file with mode: 0644]
tests/smb2-named-pipe-unicode/input.pcap [new file with mode: 0644]
tests/smb2-named-pipe-unicode/test.rules [new file with mode: 0644]
tests/smb2-named-pipe-unicode/test.yaml [new file with mode: 0644]

diff --git a/tests/smb2-named-pipe-unicode/README.md b/tests/smb2-named-pipe-unicode/README.md
new file mode 100644 (file)
index 0000000..844d734
--- /dev/null
@@ -0,0 +1,10 @@
+# Description
+
+Tests SMBv2 named pipe.
+
+# PCAP
+
+The pcap comes from running Linux client smbclient against a Windows 10
+
+Command is
+`smbclient '\\ServerIP\IPC$ -U domain\\username` where ServerIP is the IP address of the Windows 10 server
diff --git a/tests/smb2-named-pipe-unicode/input.pcap b/tests/smb2-named-pipe-unicode/input.pcap
new file mode 100644 (file)
index 0000000..f6230fa
Binary files /dev/null and b/tests/smb2-named-pipe-unicode/input.pcap differ
diff --git a/tests/smb2-named-pipe-unicode/test.rules b/tests/smb2-named-pipe-unicode/test.rules
new file mode 100644 (file)
index 0000000..4647daa
--- /dev/null
@@ -0,0 +1 @@
+alert smb any any -> any any (msg:"named_pipe"; flow:established; smb_named_pipe; content:"IPC$"; sid:1; rev:1;)
diff --git a/tests/smb2-named-pipe-unicode/test.yaml b/tests/smb2-named-pipe-unicode/test.yaml
new file mode 100644 (file)
index 0000000..54b53cc
--- /dev/null
@@ -0,0 +1,15 @@
+requires:
+  features:
+    - HAVE_LIBJANSSON
+    - RUST
+
+# disables checksum verification
+args:
+- -k none
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: alert
+        alert.signature_id: 1