From: Jon Zeolla Date: Mon, 13 Mar 2017 16:49:04 +0000 (-0400) Subject: docs: clarify how iprep works X-Git-Tag: suricata-4.0.0-beta1~249 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1589a154955f2f74044eb9dda758b6adc10d9c3b;p=thirdparty%2Fsuricata.git docs: clarify how iprep works --- diff --git a/doc/userguide/reputation/ipreputation/ip-reputation-format.rst b/doc/userguide/reputation/ipreputation/ip-reputation-format.rst index 679d51189e..b6bf186a22 100644 --- a/doc/userguide/reputation/ipreputation/ip-reputation-format.rst +++ b/doc/userguide/reputation/ipreputation/ip-reputation-format.rst @@ -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: :: - ,, + ,, 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: -> ,, -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. +:: + + + ,, + +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: diff --git a/doc/userguide/reputation/ipreputation/ip-reputation-rules.rst b/doc/userguide/reputation/ipreputation/ip-reputation-rules.rst index 1fcdfc5ee0..589800fb3e 100644 --- a/doc/userguide/reputation/ipreputation/ip-reputation-rules.rst +++ b/doc/userguide/reputation/ipreputation/ip-reputation-rules.rst @@ -10,16 +10,16 @@ The iprep directive matches on the IP reputation information for a host. :: - iprep:,,, + iprep:,,, side to check: -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 ~~~~~~~