]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
ssh: adds regression test for hassh kex parsing
authorPhilippe Antoine <contact@catenacyber.fr>
Mon, 13 Jul 2020 12:29:56 +0000 (14:29 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 3 Aug 2020 09:00:36 +0000 (11:00 +0200)
tests/ssh-hassh-incomplete/README.md [new file with mode: 0644]
tests/ssh-hassh-incomplete/input.pcap [new file with mode: 0644]
tests/ssh-hassh-incomplete/test.yaml [new file with mode: 0644]

diff --git a/tests/ssh-hassh-incomplete/README.md b/tests/ssh-hassh-incomplete/README.md
new file mode 100644 (file)
index 0000000..6c57712
--- /dev/null
@@ -0,0 +1,8 @@
+# Description
+
+Test regression against SSH kex parsing
+
+
+# PCAP
+
+The pcap comes from https://redmine.openinfosecfoundation.org/issues/3820
diff --git a/tests/ssh-hassh-incomplete/input.pcap b/tests/ssh-hassh-incomplete/input.pcap
new file mode 100644 (file)
index 0000000..62e773c
Binary files /dev/null and b/tests/ssh-hassh-incomplete/input.pcap differ
diff --git a/tests/ssh-hassh-incomplete/test.yaml b/tests/ssh-hassh-incomplete/test.yaml
new file mode 100644 (file)
index 0000000..389a56b
--- /dev/null
@@ -0,0 +1,15 @@
+requires:
+  min-version: 6.0.0
+features:
+    - RUST
+
+args:
+ - -k none --simulate-ips --set app-layer.protocols.ssh.hassh=yes
+
+checks:
+  # Check that we have the following events in eve.json
+  - filter:
+      count: 1
+      match:
+        event_type: ssh
+        ssh.client.hassh.hash: "46c5bd9748882f1a5d75753fb7d47a61"