forked from OISF/suricata-verify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: engine-analysis pkt_stream rule type tests
To accompany Rule Types documentation. Related to Task #7031
- Loading branch information
1 parent
88fa0b6
commit 511c734
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Packet Stream rules | ||
alert tcp any any -> any any (msg:"tcp, anchored content"; content:"abc"; startswith; sid:303;) | ||
alert http any any -> any any (msg:"http, anchored content"; content:"abc"; depth:30; sid:603;) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
requires: | ||
min-version: 7 | ||
pcap: false | ||
|
||
args: | ||
- --engine-analysis | ||
|
||
checks: | ||
- filter: | ||
filename: rules.json | ||
count: 1 | ||
match: | ||
id: 303 | ||
type: pkt_stream | ||
- filter: | ||
filename: rules.json | ||
count: 1 | ||
match: | ||
id: 603 | ||
type: pkt_stream |