Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rule-types: add more rules - v1 #2153

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/iprep-12-rule-types/README.md
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`.
6 changes: 6 additions & 0 deletions tests/iprep-12-rule-types/iprep.rules
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;)
10 changes: 10 additions & 0 deletions tests/iprep-12-rule-types/scirius-categories.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1,2520000,ET TOR Known Tor Exit Node Traffic
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a big tests/iprep-12-rule-types/scirius-iprep.list ?

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
Loading