@ -315,9 +315,9 @@ The time can be matched exactly, or compared using the _op_ setting::
flow.age:<3 # smaller than 3 seconds
flow.age:>=2 # greater or equal than 2 seconds
Signature example::
..container:: example-rule
alert tcp any any -> any any (msg:"Flow longer than one hour"; flow.age:>3600; flowbits: isnotset, onehourflow; flowbits: onehourflow, name; sid:1; rev:1;)
alert tcp any any -> any any (msg:"Flow longer than one hour"; flow.age:>3600; flowbits: isnotset, onehourflow; flowbits: set, onehourflow; sid:1; rev:1;)
In this example, we combine `flow.age` and `flowbits` to get an alert on the first packet after the flow's age is older than one hour.
@ -348,7 +348,7 @@ The number of packets can be matched exactly, or compared using the _op_ setting
flow.pkts:toserver,<3 # smaller than 3
flow.pkts:either,>=2 # greater than or equal to 2
Signature example::
..container:: example-rule
alert ip any any -> any any (msg:"Flow has 20 packets in toclient dir"; flow.pkts:toclient,20; sid:1;)
@ -383,7 +383,7 @@ The number of bytes can be matched exactly, or compared using the _op_ setting::
flow.bytes:toserver,<3 # smaller than 3
flow.bytes:either,>=2 # greater than or equal to 2
Signature example::
..container:: example-rule
alert ip any any -> any any (msg:"Flow has less than 2000 bytes in toserver dir"; flow.bytes:toserver,<2000; sid:1;)
@ -413,7 +413,7 @@ Syntax::
flow.elephant:<direction>
Signature example::
..container:: example-rule
alert tcp any any -> any any (msg:"Flow is elephant in toserver dir"; flow.elephant:toserver; sid:1;)
alert krb5 any any -> any any (msg:"Kerberos 5 des server name"; krb5_cname; content:"des"; sid:4; rev:1;)
@ -71,7 +71,7 @@ Syntax::
krb5_sname; content:"name";
Signature example::
..container:: example-rule
alert krb5 any any -> any any (msg:"Kerberos 5 krbtgt server name"; krb5_sname; content:"krbtgt"; sid:5; rev:1;)
@ -92,7 +92,7 @@ Syntax::
krb5_err_code:<number>
Signature example::
..container:: example-rule
alert krb5 any any -> any any (msg:"Kerberos 5 error C_PRINCIPAL_UNKNOWN"; krb5_err_code:6; sid:6; rev:1;)
@ -107,7 +107,7 @@ Syntax::
app-layer-event:krb5.weak_encryption
Signature example::
..container:: example-rule
alert krb5 any any -> any any (msg:"SURICATA Kerberos 5 weak encryption parameters"; flow:to_client; app-layer-event:krb5.weak_encryption; classtype:protocol-command-decode; sid:2226001; rev:1;)
@ -120,7 +120,7 @@ Syntax::
app-layer-event:krb5.malformed_data
Signature example::
..container:: example-rule
alert krb5 any any -> any any (msg:"SURICATA Kerberos 5 malformed request data"; flow:to_server; app-layer-event:krb5.malformed_data; classtype:protocol-command-decode; sid:2226000; rev:1;)
@ -135,8 +135,14 @@ Syntax::
krb5.ticket_encryption: (!)"weak" or (space or comma)-separated list of integer or string values for an encryption type
Signature example::
..container:: example-rule
alert krb5 any any -> any any (krb5.ticket_encryption: weak; sid:1;)
..container:: example-rule
alert krb5 any any -> any any (krb5.ticket_encryption: 23; sid:2;)
..container:: example-rule
alert krb5 any any -> any any (krb5.ticket_encryption: rc4-hmac,rc4-hmac-exp; sid:3;)