Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flow/pkt: add test for either dir
Browse files Browse the repository at this point in the history
inashivb committed Dec 2, 2024

Verified

This commit was signed with the committer’s verified signature.
thaJeztah Sebastiaan van Stijn
1 parent 08b0c8f commit d1cb450
Showing 3 changed files with 28 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/detect-flow-pkts-either/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Test
====

Test `flow.pkts:either`.. and `flow.bytes:either`.. keywords

PCAP
====

From existing s-v test.

Related tickets
==============
https://redmine.openinfosecfoundation.org/issues/5646
1 change: 1 addition & 0 deletions tests/detect-flow-pkts-either/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alert ip any any -> any any (msg:"Flow has more than 3000 bytes and 10 pkts in either direction";flow.pkts:either,=10;flow.bytes:either,>3000; sid:1;)
14 changes: 14 additions & 0 deletions tests/detect-flow-pkts-either/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
requires:
min-version: 8

pcap: ../decode-teredo-01/input.pcap

args:
- -k none

checks:
- filter:
count: 3
match:
event_type: alert
alert.signature_id: 1

0 comments on commit d1cb450

Please sign in to comment.