From: Victor Julien Date: Thu, 7 Nov 2019 09:23:31 +0000 (+0100) Subject: tests: add empty TCP SACK test X-Git-Tag: suricata-6.0.4~375 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ffd4d2829d4785b16939512e2a223e8b56e468f;p=thirdparty%2Fsuricata-verify.git tests: add empty TCP SACK test --- diff --git a/tests/tcp-empty-sack/tcp-opt.pcap b/tests/tcp-empty-sack/tcp-opt.pcap new file mode 100644 index 000000000..38dff5d2f Binary files /dev/null and b/tests/tcp-empty-sack/tcp-opt.pcap differ diff --git a/tests/tcp-empty-sack/test.rules b/tests/tcp-empty-sack/test.rules new file mode 100644 index 000000000..eb6e981db --- /dev/null +++ b/tests/tcp-empty-sack/test.rules @@ -0,0 +1 @@ +alert pkthdr any any -> any any (msg:"SURICATA TCP option invalid length"; decode-event:tcp.opt_invalid_len; classtype:protocol-command-decode; sid:2200036; rev:2;) diff --git a/tests/tcp-empty-sack/test.yaml b/tests/tcp-empty-sack/test.yaml new file mode 100644 index 000000000..1650b7dd3 --- /dev/null +++ b/tests/tcp-empty-sack/test.yaml @@ -0,0 +1,10 @@ +requires: + features: + - HAVE_LIBJANSSON + +checks: + - filter: + count: 0 + match: + event_type: alert + alert.signature_id: 2200036