-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add rule type checks for iprep rules
Added these separately, as they require extra config files. As the test name still includes `rule-types`, it's still possible to both batches of tests at once. Related to Task #https://redmine.openinfosecfoundation.org/issues/7031
- Loading branch information
1 parent
a5b3cb0
commit a6898cf
Showing
6 changed files
with
27,616 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,5 @@ | ||
# Test Description | ||
|
||
Check rule types with iprep keyword present: set, isset and isnotset options. | ||
|
||
Test setup copied and adapted from test `iprep-11-isset`. |
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,6 @@ | ||
alert ip any any -> any any (sid:1; iprep:dst,2402000,isset;) | ||
alert ip any any -> any any (sid:2; iprep:dst,2402000,isnotset;) | ||
alert ip any any -> any any (sid:3; iprep:dst,2402000,=,0;) | ||
alert http any any -> any any (sid:4; iprep:dst,2402000,=,0;) | ||
alert http any any -> any any (sid:5; iprep:dst,2402000,isset;) | ||
alert http any any -> any any (sid:6; iprep:dst,2402000,isnotset;) |
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 @@ | ||
1,2520000,ET TOR Known Tor Exit Node Traffic | ||
2,2522000,ET TOR Known Tor Relay/Router (Not Exit) Node Traffic | ||
3,2403300,ET CINS Active Threat Intelligence Poor Reputation IP | ||
4,2525000,ET 3CORESec Poor Reputation IP | ||
5,2400000,ET DROP Spamhaus DROP Listed Traffic Inbound | ||
6,2500000,ET COMPROMISED Known Compromised or Hostile Host Traffic | ||
7,2404033,ET CNC Shadowserver Reported CnC Server | ||
8,2404000,ET CNC Shadowserver Reported CnC Server IP | ||
9,2404300,ET CNC Feodo Tracker Reported CnC Server | ||
10,2402000,ET DROP Dshield Block Listed Source |
Oops, something went wrong.