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.
- Loading branch information
1 parent
dd351c5
commit 6d25c67
Showing
26 changed files
with
427 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,10 @@ | ||
alert tcp any any -> any any (flow:to_client; content:"HTTP"; flowbits:set,rare; flowbits:set,common; sid:11;) | ||
alert tcp any any -> any any (dsize:10; flowbits:set,never; flowbits:set,common; sid:12;) | ||
alert tcp any any -> any any (flowbits:isset,never; sid:21;) | ||
alert tcp any any -> any any (flowbits:isset,common; prefilter; dsize:259; sid:22;) | ||
alert tcp any any -> any any (flowbits:isset,never; prefilter; dsize:10; sid:23;) | ||
alert tcp any any -> any any (flowbits:isset,rare; prefilter; dsize:11; sid:24;) | ||
alert tcp any any -> any any (flowbits:isset,rare; prefilter; ack:3308437468; sid:25;) | ||
alert tcp any any -> any any (priority:10; dsize:11; sid:31;) | ||
alert tcp any any -> any any (priority:10; dsize:10; sid:32;) | ||
alert tcp any any -> any any (priority:10; ack:3308437468; sid:33;) |
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,22 @@ | ||
requires: | ||
min-version: 8 | ||
|
||
pcap: ../flowbit-oring/input.pcap | ||
|
||
args: | ||
- -k none | ||
- --simulate-ips | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 11 | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 22 |
10 changes: 10 additions & 0 deletions
10
tests/flowbits-prefilter-02-auto/flowbit-prefilter-tx.rules
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,10 @@ | ||
alert tcp any any -> any any (flow:to_client; http.response_line; content:"HTTP"; flowbits:set,rare; flowbits:set,common; sid:11;) | ||
alert tcp any any -> any any (http.request_line; content:"ABC"; flowbits:set,never; flowbits:set,common; sid:12;) | ||
alert tcp any any -> any any (flowbits:isset,never; sid:21;) | ||
alert tcp any any -> any any (flowbits:isset,common; http.stat_code; content:"200"; sid:22;) | ||
alert tcp any any -> any any (flowbits:isset,never; http.stat_code; content:"200"; sid:23;) | ||
alert tcp any any -> any any (flowbits:isset,rare; http.stat_code; content:"201"; sid:24;) | ||
alert tcp any any -> any any (flowbits:isset,rare; http.stat_code; content:"200"; sid:25;) | ||
alert tcp any any -> any any (priority:10; http.stat_code; content:"202"; sid:31;) | ||
alert tcp any any -> any any (priority:10; http.stat_code; content:"201"; sid:32;) | ||
alert tcp any any -> any any (priority:10; http.stat_code; content:"200"; sid:33;) |
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,35 @@ | ||
requires: | ||
min-version: 8 | ||
|
||
pcap: ../flowbit-oring/input.pcap | ||
|
||
args: | ||
- -k none | ||
- --simulate-ips | ||
- --set detect.prefilter.default=auto | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 11 | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 22 | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 25 | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 33 |
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 @@ | ||
alert tcp any any -> any any (flow:to_server; content:"GET"; flowbits:set,abc; sid:1;) | ||
alert tcp any any -> any any (flow:to_client; content:"HTTP"; flowbits:isset,abc; 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,22 @@ | ||
requires: | ||
min-version: 8 | ||
|
||
pcap: ../flowbit-oring/input.pcap | ||
|
||
args: | ||
- -k none | ||
- --simulate-ips | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 4 | ||
alert.signature_id: 1 | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 2 |
10 changes: 10 additions & 0 deletions
10
tests/flowbits-prefilter-04-pkt-auto/flowbit-prefilter.rules
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,10 @@ | ||
alert tcp any any -> any any (flow:to_client; content:"HTTP"; flowbits:set,rare; flowbits:set,common; sid:11;) | ||
alert tcp any any -> any any (dsize:81; flowbits:set,common; sid:12;) | ||
alert tcp any any -> any any (flowbits:isset,never; sid:21;) | ||
alert tcp any any -> any any (flowbits:isset,common; dsize:259; sid:22;) | ||
alert tcp any any -> any any (flowbits:isset,never; dsize:10; sid:23;) | ||
alert tcp any any -> any any (flowbits:isset,rare; dsize:11; sid:24;) | ||
alert tcp any any -> any any (flowbits:isset,rare; ack:3308437468; sid:25;) | ||
alert tcp any any -> any any (priority:10; dsize:11; sid:31;) | ||
alert tcp any any -> any any (priority:10; dsize:10; sid:32;) | ||
alert tcp any any -> any any (priority:10; ack:3308437468; sid:33;) |
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,23 @@ | ||
requires: | ||
min-version: 8 | ||
|
||
pcap: ../flowbit-oring/input.pcap | ||
|
||
args: | ||
- -k none | ||
- --simulate-ips | ||
- --set detect.prefilter.default=auto | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 11 | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 22 |
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 @@ | ||
alert tcp any any -> any any (flow:to_client; dsize:259; flowbits:set,size; sid:1;) | ||
alert tcp any any -> any any (flowbits:isset,size; 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,22 @@ | ||
requires: | ||
min-version: 8 | ||
|
||
pcap: ../flowbit-oring/input.pcap | ||
|
||
args: | ||
- -k none | ||
- --simulate-ips | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 1 | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 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,4 @@ | ||
# packet 6 to client | ||
alert tcp any any -> any any (flow:to_client; dsize:259; flowbits:set,size; sid:1;) | ||
# packet 7 to server | ||
alert tcp any any -> any any (flow:to_server; tcp.flags:A; tcp.ack:2548486954; flowbits:isset,size; 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,22 @@ | ||
requires: | ||
min-version: 8 | ||
|
||
pcap: ../flowbit-oring/input.pcap | ||
|
||
args: | ||
- -k none | ||
- --simulate-ips | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 1 | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 7 | ||
alert.signature_id: 2 |
10 changes: 10 additions & 0 deletions
10
tests/flowbits-prefilter-07-tx-onedir/flowbit-prefilter-tx.rules
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,10 @@ | ||
alert tcp any any -> any any (flow:to_client; http.response_line; content:"HTTP"; flowbits:set,rare; flowbits:set,common; sid:11;) | ||
alert tcp any any -> any any (http.request_line; content:"ABC"; flowbits:set,never; flowbits:set,common; sid:12;) | ||
alert tcp any any -> any any (flowbits:isset,never; sid:21;) | ||
alert tcp any any -> any any (flowbits:isset,common; prefilter; http.stat_code; content:"200"; sid:22;) | ||
alert tcp any any -> any any (flowbits:isset,never; prefilter; http.stat_code; content:"200"; sid:23;) | ||
alert tcp any any -> any any (flowbits:isset,rare; prefilter; http.stat_code; content:"201"; sid:24;) | ||
alert tcp any any -> any any (flowbits:isset,rare; prefilter; http.stat_code; content:"200"; sid:25;) | ||
alert tcp any any -> any any (priority:10; http.stat_code; content:"202"; sid:31;) | ||
alert tcp any any -> any any (priority:10; http.stat_code; content:"201"; sid:32;) | ||
alert tcp any any -> any any (priority:10; http.stat_code; content:"200"; sid:33;) |
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,34 @@ | ||
requires: | ||
min-version: 8 | ||
|
||
pcap: ../flowbit-oring/input.pcap | ||
|
||
args: | ||
- -k none | ||
- --simulate-ips | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 11 | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 22 | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 25 | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 33 |
10 changes: 10 additions & 0 deletions
10
tests/flowbits-prefilter-08-tx-opdir/flowbit-prefilter-tx.rules
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,10 @@ | ||
alert tcp any any -> any any (http.request_line; content:"HTTP"; flowbits:set,common; sid:11;) | ||
alert tcp any any -> any any (http.request_line; content:"ABC"; flowbits:set,rare; flowbits:set,common; sid:12;) | ||
alert tcp any any -> any any (flowbits:isset,never; sid:21;) | ||
alert tcp any any -> any any (flowbits:isset,common; prefilter; http.stat_code; content:"200"; sid:22;) | ||
alert tcp any any -> any any (flowbits:isset,never; prefilter; http.stat_code; content:"200"; sid:23;) | ||
alert tcp any any -> any any (flowbits:isset,rare; prefilter; http.stat_code; content:"201"; sid:24;) | ||
alert tcp any any -> any any (flowbits:isset,rare; prefilter; http.stat_code; content:"200"; sid:25;) | ||
alert tcp any any -> any any (priority:10; http.stat_code; content:"202"; sid:31;) | ||
alert tcp any any -> any any (priority:10; http.stat_code; content:"201"; sid:32;) | ||
alert tcp any any -> any any (priority:10; http.stat_code; content:"200"; sid:33;) |
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,32 @@ | ||
requires: | ||
min-version: 8 | ||
|
||
pcap: ../flowbit-oring/input.pcap | ||
|
||
args: | ||
- -k none | ||
- --simulate-ips | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 4 | ||
alert.signature_id: 11 | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 22 | ||
- filter: | ||
count: 0 | ||
match: | ||
event_type: alert | ||
alert.signature_id: 23 | ||
- filter: | ||
count: 0 | ||
match: | ||
event_type: alert | ||
alert.signature_id: 25 |
2 changes: 2 additions & 0 deletions
2
tests/flowbits-prefilter-09-iponly-onedir/flowbit-prefilter.rules
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 @@ | ||
alert tcp 82.165.177.154 any -> any any (flowbits:set,set_by_iponly; sid:1;) | ||
alert tcp any any -> any any (flow:to_client; dsize:259; flowbits:isset,set_by_iponly; 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,22 @@ | ||
requires: | ||
min-version: 8 | ||
|
||
pcap: ../flowbit-oring/input.pcap | ||
|
||
args: | ||
- -k none | ||
- --simulate-ips | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 2 | ||
alert.signature_id: 1 | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 2 |
2 changes: 2 additions & 0 deletions
2
tests/flowbits-prefilter-10-iponly-opdir/flowbit-prefilter.rules
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 @@ | ||
alert tcp any any -> 82.165.177.154 any (flowbits:set,set_by_iponly; sid:1;) | ||
alert tcp any any -> any any (flow:to_client; dsize:259; flowbits:isset,set_by_iponly; 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,22 @@ | ||
requires: | ||
min-version: 8 | ||
|
||
pcap: ../flowbit-oring/input.pcap | ||
|
||
args: | ||
- -k none | ||
- --simulate-ips | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 1 | ||
alert.signature_id: 1 | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 2 |
10 changes: 10 additions & 0 deletions
10
tests/flowbits-prefilter-11-pkt-auto/flowbit-prefilter.rules
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,10 @@ | ||
alert tcp any any -> any any (flow:to_client; content:"HTTP"; flowbits:set,rare; flowbits:set,common; sid:11;) | ||
alert tcp any any -> any any (dsize:10; flowbits:set,never; flowbits:set,common; sid:12;) | ||
alert tcp any any -> any any (flowbits:isset,never; sid:21;) | ||
alert tcp any any -> any any (flowbits:isset,common; dsize:259; sid:22;) | ||
alert tcp any any -> any any (flowbits:isset,never; dsize:10; sid:23;) | ||
alert tcp any any -> any any (flowbits:isset,rare; dsize:11; sid:24;) | ||
alert tcp any any -> any any (flowbits:isset,rare; ack:3308437468; sid:25;) | ||
alert tcp any any -> any any (priority:10; dsize:11; sid:31;) | ||
alert tcp any any -> any any (priority:10; dsize:10; sid:32;) | ||
alert tcp any any -> any any (priority:10; ack:3308437468; sid:33;) |
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,23 @@ | ||
requires: | ||
min-version: 8 | ||
|
||
pcap: ../flowbit-oring/input.pcap | ||
|
||
args: | ||
- -k none | ||
- --simulate-ips | ||
- --set detect.prefilter.default=auto | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 11 | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
pcap_cnt: 6 | ||
alert.signature_id: 22 |
10 changes: 10 additions & 0 deletions
10
tests/flowbits-prefilter-12-toggle/flowbit-prefilter.rules
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,10 @@ | ||
alert tcp any any -> any any (flow:to_client; content:"HTTP"; flowbits:toggle,rare; flowbits:toggle,common; sid:11;) | ||
alert tcp any any -> any any (dsize:10; flowbits:set,never; flowbits:toggle,common; sid:12;) | ||
alert tcp any any -> any any (flowbits:isset,never; sid:21;) | ||
alert tcp any any -> any any (flowbits:isset,common; prefilter; dsize:259; sid:22;) | ||
alert tcp any any -> any any (flowbits:isset,never; prefilter; dsize:10; sid:23;) | ||
alert tcp any any -> any any (flowbits:isset,rare; prefilter; dsize:11; sid:24;) | ||
alert tcp any any -> any any (flowbits:isset,rare; prefilter; ack:3308437468; sid:25;) | ||
alert tcp any any -> any any (priority:10; dsize:11; sid:31;) | ||
alert tcp any any -> any any (priority:10; dsize:10; sid:32;) | ||
alert tcp any any -> any any (priority:10; ack:3308437468; sid:33;) |
Oops, something went wrong.