📄 readme.flowbits
字号:
Flowbits Detection Capability-----------------------------The flowbits detection plugin uses the flow preprocessor to track rule stateacross transport protocol sessions. This is most useful for TCP sessions, asit allows rules to generically track the state of an application protocol.The general configuration of the flowbits rule option is: flowbits:<keyword>[,<STATE_NAME>];Flowbits Keywords-----------------There are seven keywords associated with flowbits, most of the options need auser defined name for the specific state that is being checked. This stringshould be limited to any alphanumeric string including periods, dashes, andunderscores. set---This keyword sets a STATE_NAME for a particular flow. This keyword alwaysreturns true.Usage: flowbits:set,FOO;unset-----This keyword unsets a STATE_NAME for a particular flow. This keyword alwaysreturns true.Usage: flowbits:unset,FOO;toggle------This keyword sets a STATE_NAME if unset, and unsets a STATE_NAME if set. Thiskeyword always returns true.Usage: flowbits:toggle,FOO;isset-----This keyword checks a STATE_NAME to see if it is set. It returns true if theSTATE_NAME is set, and returns false if the STATE_NAME is not set.Usage: flowbits:isset,FOO;isnotset--------This keyword checks a STATE_NAME to see if it is not set. It returns true ifthe STATE_NAME is not set, and returns false if the STATE_NAME is set.Usage: flowbits:isnotset,FOO;noalert-------This keyword always returns false. It allows users to write rules that set,unset, and toggle STATE_NAME without generating an alert. This is most usefulfor writing flowbit rules that set STATE_NAME on normal traffic andsignificantly reduces unwanted alerts. There is no STATE_NAME specified withthis keyword.Usage: flowbits:noalert;reset-----This keyword resets all of the states on a given flow. This always returnstrue. There is no STATE_NAME specified with this keyword.Usage: flowbits:reset;Sample Rules------------alert tcp any 143 -> any any (msg:"IMAP login"; content:"OK LOGIN"; flowbits:set,logged_in;)alert tcp any any -> any 143 (msg:"IMAP lsub"; content:"LSUB"; flowbits:isset,logged_in;)alert tcp any any -> any 143 (msg:"IMAP LIST WITHOUT LOGIN"; content:"LIST"; flowbits:isnotset,logged_in;)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -