From: jason taylor Date: Wed, 18 Dec 2019 14:59:23 +0000 (-0500) Subject: doc: add bsize documentation and rule example X-Git-Tag: suricata-5.0.2~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f7dc4f136cec13c820ff062ad5ef76dca5d2a87;p=thirdparty%2Fsuricata.git doc: add bsize documentation and rule example Signed-off-by: jason taylor --- diff --git a/doc/userguide/rules/payload-keywords.rst b/doc/userguide/rules/payload-keywords.rst index 4cdf124d44..f071c76d81 100644 --- a/doc/userguide/rules/payload-keywords.rst +++ b/doc/userguide/rules/payload-keywords.rst @@ -264,6 +264,21 @@ You can also use the negation (!) before isdataat. .. image:: payload-keywords/isdataat1.png +bsize +----- + +With the bsize keyword, you can match on the length of the buffer. This adds precision to the content match, previously this could have been done with isdataat. + +Format:: + + bsize:; + +Example of bsize in a rule: + +.. container:: example-rule + + alert dns any any -> any any (msg:"test bsize rule"; dns.query; content:"google.com"; bsize:10; sid:123; rev:1;) + dsize -----