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.
rules/test: add app-layer-protocol negated test
To complement bug-7241 tests.
- Loading branch information
1 parent
a51c90b
commit 32051f5
Showing
2 changed files
with
26 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,2 @@ | ||
drop tcp any any -> any any (flow:established; app-layer-protocol:!tls; sid:1;) | ||
drop tcp any any -> any any (flow:established; app-layer-protocol:!tls; prefilter; sid:2;) |
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,24 @@ | ||
requires: | ||
min-version: 7.0 | ||
pcap: false | ||
|
||
args: | ||
- --engine-analysis | ||
- --simulate-ips | ||
|
||
checks: | ||
- filter: | ||
filename: rules.json | ||
count: 1 | ||
match: | ||
id: 1 | ||
app_proto: "unknown" | ||
not-has-key: "prefilter" | ||
- filter: | ||
filename: rules.json | ||
count: 1 | ||
match: | ||
id: 2 | ||
app_proto: "unknown" | ||
prefilter.buffer: "packet" | ||
prefilter.name: app-layer-protocol |