]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
Adds test about http event on chunk extension 1256/head
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 20 Jun 2023 10:02:57 +0000 (12:02 +0200)
committerPhilippe Antoine <pantoine@oisf.net>
Tue, 27 Jun 2023 15:46:21 +0000 (17:46 +0200)
tests/http-event-chunk/README.md [new file with mode: 0644]
tests/http-event-chunk/input.pcap [new file with mode: 0644]
tests/http-event-chunk/test.rules [new file with mode: 0644]
tests/http-event-chunk/test.yaml [new file with mode: 0644]

diff --git a/tests/http-event-chunk/README.md b/tests/http-event-chunk/README.md
new file mode 100644 (file)
index 0000000..78d4e2d
--- /dev/null
@@ -0,0 +1,8 @@
+# Description
+
+Test http event on chunk extension
+https://redmine.openinfosecfoundation.org/issues/6159
+
+# PCAP
+
+The pcap comes from running htptopcap on data from https://github.com/OISF/libhtp/issues/83
diff --git a/tests/http-event-chunk/input.pcap b/tests/http-event-chunk/input.pcap
new file mode 100644 (file)
index 0000000..0b9c056
Binary files /dev/null and b/tests/http-event-chunk/input.pcap differ
diff --git a/tests/http-event-chunk/test.rules b/tests/http-event-chunk/test.rules
new file mode 100644 (file)
index 0000000..8f19e50
--- /dev/null
@@ -0,0 +1 @@
+alert http any any -> any any (msg:"SURICATA HTTP request chunk extension"; flow:established,to_server; app-layer-event:http.request_chunk_extension; classtype:protocol-command-decode; sid:2221054; rev:1;)
diff --git a/tests/http-event-chunk/test.yaml b/tests/http-event-chunk/test.yaml
new file mode 100644 (file)
index 0000000..d74346c
--- /dev/null
@@ -0,0 +1,12 @@
+requires:
+  min-version: 7
+
+args:
+  - -k none
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: alert
+        alert.signature_id: 2221054