]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
Adds test for SMB keyword named_pipe with ascii and unicode
authorDEL VALLE Bastien <bastien.del-valle@telecomnancy.eu>
Tue, 14 Apr 2020 18:11:53 +0000 (20:11 +0200)
committerVictor Julien <victor@inliniac.net>
Sun, 26 Apr 2020 12:29:31 +0000 (14:29 +0200)
tests/smb-named-pipe-ascii/README.md [moved from tests/smb-named-pipe-unicode-ascii/README.md with 100% similarity]
tests/smb-named-pipe-ascii/input.pcap [moved from tests/smb-named-pipe-unicode-ascii/input.pcap with 100% similarity]
tests/smb-named-pipe-ascii/test.rules [moved from tests/smb-named-pipe-unicode-ascii/test.rules with 100% similarity]
tests/smb-named-pipe-ascii/test.yaml [moved from tests/smb-named-pipe-unicode-ascii/test.yaml with 100% similarity]
tests/smb-named-pipe-unicode/README.md [new file with mode: 0644]
tests/smb-named-pipe-unicode/input.pcap [new file with mode: 0644]
tests/smb-named-pipe-unicode/test.rules [new file with mode: 0644]
tests/smb-named-pipe-unicode/test.yaml [new file with mode: 0644]

diff --git a/tests/smb-named-pipe-unicode/README.md b/tests/smb-named-pipe-unicode/README.md
new file mode 100644 (file)
index 0000000..31befd7
--- /dev/null
@@ -0,0 +1,10 @@
+# Description
+
+Tests SMB unicode named pipe.
+
+# PCAP
+
+The pcap comes from running Linux client smbclient against a Windows 2019 Server (with a shared folder public without needed authentication)
+
+Command is
+`smbclient //ServerIP/IPC$/ -U username%password -m NT1` where ServerIP is the IP address of the Windows server
diff --git a/tests/smb-named-pipe-unicode/input.pcap b/tests/smb-named-pipe-unicode/input.pcap
new file mode 100644 (file)
index 0000000..06ac59f
Binary files /dev/null and b/tests/smb-named-pipe-unicode/input.pcap differ
diff --git a/tests/smb-named-pipe-unicode/test.rules b/tests/smb-named-pipe-unicode/test.rules
new file mode 100644 (file)
index 0000000..b8d6203
--- /dev/null
@@ -0,0 +1 @@
+alert smb any any -> any any (msg:"Ascii named_pipe"; flow:established; smb_named_pipe; content:"IPC$"; sid:1; rev:1;)
diff --git a/tests/smb-named-pipe-unicode/test.yaml b/tests/smb-named-pipe-unicode/test.yaml
new file mode 100644 (file)
index 0000000..c1282b1
--- /dev/null
@@ -0,0 +1,14 @@
+requires:
+  features:
+    - HAVE_LIBJANSSON
+
+# disables checksum verification
+args:
+- -k none
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: alert
+        alert.signature_id: 1