docs: clarify how iprep works

pull/2624/head
Jon Zeolla 10 years ago committed by Victor Julien
parent 1a7c5a01a1
commit 1589a15495

@ -6,12 +6,12 @@ Description of IP Reputation file formats. For the configuration see :doc:`ip-re
Categories file
~~~~~~~~~~~~~~~
The categories file provides a mapping between a category number, short name and long description. It's a simple CSV file:
The categories file provides a mapping between a category number, short name, and long description. It's a simple CSV file:
::
<id>,<short name>,<discription>
<id>,<short name>,<description>
Example:
@ -27,9 +27,13 @@ Reputation file
~~~~~~~~~~~~~~~
The reputation file lists a reputation score for hosts in the categories. It's a simple CSV file:
> <ip>,<cat>,<score>
The IP is an IPv4 address in the quad-dotted notation. The category is the number as defined in the categories file and the value is a number between 1 and 127. 0 means no data.
::
<ip>,<category>,<reputation score>
The IP is an IPv4 address in the quad-dotted notation. The category is the number as defined in the categories file. The reputation score is the confidence that this IP is in the specified category, represented by a number between 1 and 127 (0 means no data).
Example:

@ -10,16 +10,16 @@ The iprep directive matches on the IP reputation information for a host.
::
iprep:<side to check>,<cat>,<operator>,<value>
iprep:<side to check>,<category>,<operator>,<reputation score>
side to check: <any|src|dst|both>
cat: the category short name
category: the category short name
operator: <, >, =
value: 1-127
reputation score: 1-127
Example:
@ -28,6 +28,8 @@ 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;)
This rule will alert when a system in $HOME_NET performs a client request while communicating with any IP in the CnC category that has a reputation score set to greater than 30.
IP-only
~~~~~~~

Loading…
Cancel
Save