|
|
|
Custom signatures | Creating custom signatures |
Table 4: Content keywords (Continued)
Keyword and value | Description |
|
|
Specify the protocol field that the pattern should be | |
header body host}; | looked for. If context is not specified for a pattern, the |
FortiGate unit searches for the pattern anywhere in the | |
| packet buffer. The available context variables are: |
| • uri: Search the pattern in HTTP URI line. |
| • header: Search the pattern in HTTP header lines |
| or SMTP/POP3/SMTP control messages. |
| • body: Search the pattern in HTTP body or |
| SMTP/POP3/SMTP email body. |
| • host: Search the pattern in HTTP HOST line. |
| Example: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The | |
| perform a |
| The FortiGate unit starts looking for the contents the |
| specified number of bytes into the payload. The |
| specified number of bytes is an absolute value in the |
| payload. Follow the offset keyword with the depth |
| keyword to stop looking for a match after a specified |
| number of bytes. If no depth is specified, the FortiGate |
| unit continues looking for a match until the end of the |
| payload. |
| The offset must be between 0 and 65535. |
The FortiGate unit will search for the specified pattern. | |
[!]"<pattern_str>"; | A pattern keyword normally is followed by a |
| context keyword to define where to look for the |
| pattern in the packet. If a context keyword does not |
| present, the FortiGate unit looks for the pattern |
| anywhere in the packet buffer. |
| To have the FortiGate search for a packet that does not |
| contain the specified URI, add an exclamation mark (!) |
| before the URI. |
| Example: |
|
|
|
|
|
|
FortiGate IPS User Guide Version 3.0 MR7 |
|
27 |