mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
ReStructuredText
46 lines
1.1 KiB
ReStructuredText
7 years ago
|
IP Reputation Keyword
|
||
|
=====================
|
||
9 years ago
|
|
||
7 years ago
|
IP Reputation can be used in rules through a new rule keyword "iprep".
|
||
|
|
||
|
For more information about IP Reputation see :doc:`/reputation/ipreputation/ip-reputation-config` and :doc:`/reputation/ipreputation/ip-reputation-format`.
|
||
9 years ago
|
|
||
|
iprep
|
||
7 years ago
|
-----
|
||
9 years ago
|
|
||
|
The iprep directive matches on the IP reputation information for a host.
|
||
|
|
||
|
::
|
||
|
|
||
8 years ago
|
iprep:<side to check>,<category>,<operator>,<reputation score>
|
||
9 years ago
|
|
||
|
|
||
|
side to check: <any|src|dst|both>
|
||
|
|
||
8 years ago
|
category: the category short name
|
||
9 years ago
|
|
||
|
operator: <, >, =
|
||
|
|
||
8 years ago
|
reputation score: 1-127
|
||
9 years ago
|
|
||
|
Example:
|
||
|
|
||
|
::
|
||
|
|
||
|
|
||
|
alert ip $HOME_NET any -> any any (msg:"IPREP internal host talking to CnC server"; flow:to_server; iprep:dst,CnC,>,30; sid:1; rev:1;)
|
||
|
|
||
8 years ago
|
This rule will alert when a system in $HOME_NET acts as a client while communicating with any IP in the CnC category that has a reputation score set to greater than 30.
|
||
8 years ago
|
|
||
9 years ago
|
IP-only
|
||
|
~~~~~~~
|
||
|
|
||
|
The "iprep" keyword is compatible to "IP-only" rules. This means that a rule like:
|
||
|
|
||
|
::
|
||
|
|
||
|
|
||
|
alert ip any any -> any any (msg:"IPREP High Value CnC"; iprep:src,CnC,>,100; sid:1; rev:1;)
|
||
|
|
||
|
will only be checked once per flow-direction.
|