]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
Adds passing test for IPv6 evasion atomic fragment
authorPhilippe Antoine <contact@catenacyber.fr>
Fri, 28 Feb 2020 14:17:59 +0000 (15:17 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 19 Mar 2020 08:35:31 +0000 (09:35 +0100)
tests/ipv6-evasion/ipv6-atomic-fragments-toobig/README.md [new file with mode: 0644]
tests/ipv6-evasion/ipv6-atomic-fragments-toobig/test.rules [new file with mode: 0644]
tests/ipv6-evasion/ipv6-atomic-fragments-toobig/test.yaml [new file with mode: 0644]
tests/ipv6-evasion/ipv6-atomic-fragments-toobig/toobig.pcap [new file with mode: 0644]

diff --git a/tests/ipv6-evasion/ipv6-atomic-fragments-toobig/README.md b/tests/ipv6-evasion/ipv6-atomic-fragments-toobig/README.md
new file mode 100644 (file)
index 0000000..43a1962
--- /dev/null
@@ -0,0 +1,7 @@
+# Description
+
+Test an attack causing atomic fragments and therefore a DOS attack as described in RFC8021
+
+# PCAP
+
+Pcap from https://redmine.cs.uni-potsdam.de/projects/pcap/files
diff --git a/tests/ipv6-evasion/ipv6-atomic-fragments-toobig/test.rules b/tests/ipv6-evasion/ipv6-atomic-fragments-toobig/test.rules
new file mode 100644 (file)
index 0000000..b684194
--- /dev/null
@@ -0,0 +1 @@
+alert pkthdr any any -> any any (msg:"SURICATA IPv6 atomic fragment"; icmpv6.mtu:<1280; sid:1;)
diff --git a/tests/ipv6-evasion/ipv6-atomic-fragments-toobig/test.yaml b/tests/ipv6-evasion/ipv6-atomic-fragments-toobig/test.yaml
new file mode 100644 (file)
index 0000000..0f1f776
--- /dev/null
@@ -0,0 +1,10 @@
+requires:
+    features:
+        - HAVE_LIBJANSSON
+
+checks:
+    - filter:
+        count: 1
+        match:
+            event_type: alert
+            alert.signature_id: 1
diff --git a/tests/ipv6-evasion/ipv6-atomic-fragments-toobig/toobig.pcap b/tests/ipv6-evasion/ipv6-atomic-fragments-toobig/toobig.pcap
new file mode 100644 (file)
index 0000000..1766edf
Binary files /dev/null and b/tests/ipv6-evasion/ipv6-atomic-fragments-toobig/toobig.pcap differ