From: Olusegun Fajobi Date: Mon, 27 Oct 2025 14:13:10 +0000 (+0100) Subject: tests: add rule check for ttl keyword X-Git-Tag: suricata-8.0.2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fc55a721db3ec5435d88075de414559ba55bf1a2;p=thirdparty%2Fsuricata-verify.git tests: add rule check for ttl keyword Related to Issue: #6310 --- diff --git a/tests/rules/time_to_live/test.rules b/tests/rules/time_to_live/test.rules new file mode 100644 index 000000000..7b172c185 --- /dev/null +++ b/tests/rules/time_to_live/test.rules @@ -0,0 +1 @@ +alert ip $EXTERNAL_NET any -> $HOME_NET any (msg:"IP Packet With TTL 0"; ttl:0; classtype:misc-activity; sid:1; rev:1;) diff --git a/tests/rules/time_to_live/test.yaml b/tests/rules/time_to_live/test.yaml new file mode 100644 index 000000000..02f03da13 --- /dev/null +++ b/tests/rules/time_to_live/test.yaml @@ -0,0 +1,16 @@ +requires: + min-version: 9.0.0 + pcap: false + +args: + - --engine-analysis + +checks: + - filter: + filename: rules.json + count: 1 + match: + id: 1 + lists.packet.matches[0].name: "ttl" + lists.packet.matches[0].ttl.equal: 0 + \ No newline at end of file