]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
Adds test about file deletion over SMB2
authorPhilippe Antoine <contact@catenacyber.fr>
Tue, 13 Jul 2021 08:56:52 +0000 (10:56 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 1 Sep 2021 05:56:45 +0000 (07:56 +0200)
tests/smb2-delete/README.md [new file with mode: 0644]
tests/smb2-delete/input.pcap [new file with mode: 0644]
tests/smb2-delete/test.yaml [new file with mode: 0644]

diff --git a/tests/smb2-delete/README.md b/tests/smb2-delete/README.md
new file mode 100644 (file)
index 0000000..25e28d2
--- /dev/null
@@ -0,0 +1,15 @@
+# Description
+
+Test SMB2 file deletion logging.
+
+# PCAP
+
+The pcap comes from running Macos client smbclient against a Windows 2019 Server (with a public shared folder without needed authentication)
+Commands on the client are
+```
+mount_smbfs "//GUEST@192.168.1.51/sand" tmp
+ls tmp/
+echo "to remove" > tmp/test
+rm tmp/test
+umount tmp
+```
diff --git a/tests/smb2-delete/input.pcap b/tests/smb2-delete/input.pcap
new file mode 100644 (file)
index 0000000..2aeb815
Binary files /dev/null and b/tests/smb2-delete/input.pcap differ
diff --git a/tests/smb2-delete/test.yaml b/tests/smb2-delete/test.yaml
new file mode 100644 (file)
index 0000000..0837bad
--- /dev/null
@@ -0,0 +1,14 @@
+requires:
+  min-version: 7
+
+# disables checksum verification
+args:
+- -k none
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: smb
+        smb.access: "delete on close"
+        smb.filename: "test"