Signature Engines
This appendix describes the IPS signature engines. It contains the following sections:
•
Understanding Signature Engines
•
Master Engine
•
Regular Expression Syntax
•
AIC Engine
•
Atomic Engine
•
Fixed Engine
•
Fixed Engine
•
Meta Engine
•
Multi String Engine
•
Normalizer Engine
•
Service Engines
•
State Engine
•
String Engines
•
Sweep Engines
•
Traffic Anomaly Engine
•
Traffic ICMP Engine
•
Trojan Engines
Understanding Signature Engines
A signature engine is a component of the Cisco IPS that is designed to support many signatures in a certain category. An engine is composed of a parser and an inspector. Each engine has a set of parameters that have allowable ranges or sets of values.
Note
The Cisco IPS engines support a standardized Regex.
Cisco IPS contains the following signature engines:
•
AIC—Provides thorough analysis of web traffic. The AIC engine provides granular control over HTTP sessions to prevent abuse of the HTTP protocol. It allows administrative control over applications, such as instant messaging and gotomypc, that try to tunnel over specified ports. You can also use AIC to inspect FTP traffic and control the commands being issued. There are two AIC engines: AIC FTP and AIC HTTP.
•
Atomic—The Atomic engines are now combined into four engines with multi-level selections. You can combine Layer 3 and Layer 4 attributes within one signature, for example IP + TCP. The Atomic engine uses the standardized Regex support.
–
Atomic ARP—Inspects Layer 2 ARP protocol. The Atomic ARP engine is different because most engines are based on Layer 3 IP protocol.
–
Atomic IP Advanced—Inspects IPv6 Layer 3 and ICMPv6 Layer 4 traffic.
–
Atomic IP—Inspects IP protocol packets and associated Layer 4 transport protocols.
This engine lets you specify values to match for fields in the IP and Layer 4 headers, and lets you use Regex to inspect Layer 4 payloads.
Note
All IP packets are inspected by the Atomic IP engine. This engine replaces the 4.x Atomic ICMP, Atomic IP Options, Atomic L3 IP, Atomic TCP, and Atomic UDP engines.
–
Atomic IPv6—Detects two IOS vulnerabilities that are stimulated by malformed IPv6 traffic.
•
Fixed—Performs parallel regular expression matches up to a fixed depth, then stops inspection using a single regular expression table. There are three Fixed engines: ICMP, TCP, and UDP.
•
Flood—Detects ICMP and UDP floods directed at hosts and networks. There are two Flood engines: Flood Host and Flood Net.
•
Meta—Defines events that occur in a related manner within a sliding time interval. This engine processes events rather than packets.
•
Multi String—Inspects Layer 4 transport protocols and payloads by matching several strings for one signature. This engine inspects stream-based TCP and single UDP and ICMP packets.
•
Normalizer—Configures how the IP and TCP normalizer functions and provides configuration for signature events related to the IP and TCP normalizer. Allows you to enforce RFC compliance.
•
Service—Deals with specific protocols. Service engine has the following protocol types:
–
DNS—Inspects DNS (TCP and UDP) traffic.
–
FTP—Inspects FTP traffic.
–
Generic—Decodes custom service and payload, and generically analyzes network protocols.
–
H225— Inspects VoIP traffic. Helps the network administrator make sure the SETUP message coming in to the VoIP network is valid and within the bounds that the policies describe. Is also helps make sure the addresses and Q.931 string fields such as url-ids, email-ids, and display information adhere to specific lengths and do not contain possible attack patterns.
–
HTTP—Inspects HTTP traffic. The WEBPORTS variable defines inspection port for HTTP traffic.
–
IDENT—Inspects IDENT (client and server) traffic.
–
MSRPC—Inspects MSRPC traffic.
–
MSSQL—Inspects Microsoft SQL traffic.
–
NTP—Inspects NTP traffic.
–
P2P—Inspects P2P traffic.
–
RPC—Inspects RPC traffic.
–
SMB Advanced—Processes Microsoft SMB and Microsoft DCE/RPC (MSRPC) over SMB packets.
Note
The SMB engine has been replaced by the SMB Advanced engine. Even though the SMB engine is still visible in the IDM, IME, and the CLI, its signatures have been obsoleted; that is, the new signatures have the obsoletes parameter set with the IDs of their corresponding old signatures. Use the new SMB Advanced engine to rewrite any custom signature that were in the SMB engine.
–
SNMP—Inspects SNMP traffic.
–
SSH—Inspects SSH traffic.
–
TNS—Inspects TNS traffic.
•
State—Stateful searches of strings in protocols such as SMTP. The state engine now has a hidden configuration file that is used to define the state transitions so new state definitions can be delivered in a signature update.
•
String—Searches on Regex strings based on ICMP, TCP, or UDP protocol. There are three String engines: String ICMP, String TCP, and String UDP.
•
Sweep—Analyzes sweeps from a single host (ICMP and TCP), from destination ports (TCP and UDP), and multiple ports with RPC requests between two nodes. There are two Sweep engines: Sweep and Sweep Other TCP.
•
Traffic Anomaly—Inspects TCP, UDP, and other traffic for worms.
•
Traffic ICMP—Analyzes nonstandard protocols, such as TFN2K, LOKI, and DDOS. There are only two signatures with configurable parameters.
•
Trojan—Analyzes traffic from nonstandard protocols, such as BO2K andTFN2K. There are three Trojan engines: Bo2k, Tfn2k, and UDP. There are no user-configurable parameters in these engines.
Master Engine
The Master engine provides structures and methods to the other engines and handles input from configuration and alert output. This section describes the Master engine, and contains the following topics:
•
General Parameters
•
Alert Frequency
•
Event Actions
General Parameters
The following parameters are part of the Master engine and apply to all signatures (if it makes sense for that signature engine).
Table B-1 lists the general master engine parameters.
Table B-1 Master Engine Parameters
|
|
|
Signature ID |
Specifies the ID of this signature. |
number |
Sub Signature ID |
Specifies the sub ID of this signature |
number |
Alert Severity |
Specifies the severity of the alert: • Dangerous alert • Medium-level alert • Low-level alert • Informational alert |
• High • Medium • Low • Informational (default) |
Sig Fidelity Rating |
Specifies the rating of the fidelity of this signature. |
0 to 100 (default = 100) |
Promiscuous Delta |
Specifies the delta value used to determine the seriousness of the alert. |
0 to 30 (default = 5) |
Signature Name |
Specifies the name of the signature. |
sig-name |
Alert Notes |
Provides additional information about this signature that will be included in the alert message. |
alert-notes |
User Comments |
Provides comments about this signature. |
comments |
Alert Traits |
Specifies traits you want to document about this signature. |
0 to 65335 |
Release |
Provides the release in which the signature was most recently updated. |
release |
Signature Creation Date |
Specifies the date the signature was created. |
— |
Signature Type |
Specifies the signature category. |
• Anomaly • Component • Exploit • Other |
Engine |
Specifies the engine to which the signature belongs. Note The engine-specific parameters appear under the Engine category. |
— |
Event Count |
Specifies the number of times an event must occur before an alert is generated. |
1 to 65535 (default = 1) |
Event Count Key |
Specifies the storage type on which to count events for this signature: • Attacker address • Attacker and victim addresses • Attacker address and victim port • Victim address • Attacker and victim addresses and ports |
• Axxx • AxBx • Axxb • xxBx • AaBb |
Specify Alert Interval {Yes | No} |
Enables the alert interval: • Alert Interval—Specifies the time in seconds before the event count is reset. |
2 to 1000 |
Status |
Specifies whether the signature is enabled or disabled, active or retired. |
Enabled | Retired {Yes | No} |
Obsoletes |
Indicates that a newer signature has disabled an older signature. |
— |
Vulnerable OS List |
When combined with passive OS fingerprinting, it allows the IPS to determine if it is likely a given attack is relevant to the target system. |
AIX BSD General OS HP-UX IOS IRIX Linux Mac OS Netware Other Solaris UNIX Windows Windows NT Windows NT/2K/XP |
Mars Category {Yes | No} |
Maps signatures to a MARS attack category.1 |
— |
Promiscuous Delta
The promiscuous delta lowers the risk rating of certain alerts in promiscuous mode. Because the sensor does not know the attributes of the target system and in promiscuous mode cannot deny packets, it is useful to lower the prioritization of promiscuous alerts (based on the lower risk rating) so the administrator can focus on investigating higher risk rating alerts. In inline mode, the sensor can deny the offending packets so that they never reach the target host, so it does not matter if the target was vulnerable. Because the attack was not allowed on the network, the IPS does not subtract from the risk rating value. Signatures that are not service, OS, or application-specific have 0 for the promiscuous delta. If the signature is specific to an OS, service, or application, it has a promiscuous delta of 5, 10, or 15 calculated from 5 points for each category.
Caution
We recommend that you do NOT change the promiscuous delta setting for a signature.
Obsoletes
The Cisco signature team uses the obsoletes field to indicate obsoleted, older signatures that have been replaced by newer, better signatures, and to indicate disabled signatures in an engine when a better instance of that engine is available.
Vulnerable OS List
When you combine the vulnerable OS setting of a signature with passive OS fingerprinting, the IPS can determine if it is likely that a given attack is relevant to the target system. If the attack is found to be relevant, the risk rating value of the resulting alert receives a boost. If the relevancy is unknown, usually because there is no entry in the passive OS fingerprinting list, then no change is made to the risk rating. If there is a passive OS fingerprinting entry and it does not match the vulnerable OS setting of a signature, the risk rating value is decreased. The default value by which to increase or decrease the risk rating is +/- 10 points.
For More Information
•
For more information about promiscuous mode, see Promiscuous Mode.
•
For more information about passive OS fingerprinting, see Configuring OS Identifications.
Alert Frequency
The purpose of the alert frequency parameter is to reduce the volume of the alerts written to the Event Store to counter IDS DoS tools, such as stick. There are four modes: Fire All, Fire Once, Summarize, and Global Summarize. The summary mode is changed dynamically to adapt to the current alert volume. For example, you can configure the signature to Fire All, but after a certain threshold is reached, it starts summarizing.
Table B-2 lists the alert frequency parameters.
Table B-2 Master Engine Alert Frequency Parameters
|
|
|
Alert Frequency |
Summary options for grouping alerts. |
— |
Summary Mode |
Mode used for summarization. |
— |
Fire All |
Fires an alert on all events. |
— |
Fire Once |
Fires an alert only once. |
— |
Global Summarize |
Summarizes an alert so that it only fires once regardless of how many attackers or victims. |
— |
Summarize |
Summarizes alerts. |
— |
Summary Threshold |
Threshold number of alerts to send signature into summary mode. |
0 to 65535 |
Global Summary Threshold |
Threshold number of events to take alerts into global summary. |
1 to 65535 |
Summary Interval |
Time in seconds used in each summary alert. |
1 to 1000 |
Summary Key |
The storage type on which to summarize this signature: • Attacker address • Attacker and victim addresses • Attacker address and victim port • Victim address • Attacker and victim addresses and ports |
Axxx AxBx Axxb xxBx AaBb |
Event Actions
The following event actions belong to each signature engine unless they are not appropriate for that particular engine.
•
Alert and Log Actions
–
Produce Alert—Writes an alert to Event Store.
Note
The Produce Alert action is not automatic when you enable alerts for a signature. To have an alert created in Event Store, you must select Produce Alert. If you add a second action, you must include Produce Alert if you want an alert sent to Event Store. Also, every time you configure the event actions, a new list is created and it replaces the old list. Make sure you include all the event actions you need for each signature.
Note
A Produce Alert event action is added for an event when global correlation has increased the risk rating of an event, and has added either the Deny Packet Inline or Deny Attacker Inline event action.
–
Produce Verbose Alert—Includes an encoded dump (possibly truncated) of the offending packet in the alert. This action causes an alert to be written to Event Store, even if Produce Alert is not selected.
–
Log Attacker Packets—Starts IP logging of packets containing the attacker address and sends an alert. This action causes an alert to be written to Event Store, even if Produce Alert is not selected.
–
Log Victim Packets—Starts IP logging of packets containing the victim address and sends an alert. This action causes an alert to be written to Event Store, even if Produce Alert is not selected.
–
Log Attacker/Victim Pair Packets—(inline mode only) Starts IP logging of packets containing the attacker/victim address pair. This action causes an alert to be written to Event Store, even if Produce Alert is not selected.
–
Request SNMP Trap—Sends request to NotificationApp to perform SNMP notification. This action causes an alert to be written to Event Store, even if Produce Alert is not selected. You must have SNMP configured on the sensor to implement this action.
•
Deny Actions
–
Deny Packet Inline—(inline mode only) Does not transmit this packet. You cannot delete the event action override for Deny Packet Inline because it is protected. If you do not want to use that override, disable it.
–
Deny Connection Inline—(inline mode only) Does not transmit this packet and future packets on the TCP Flow.
–
Deny Attacker Victim Pair Inline—(inline mode only) Does not transmit this packet and future packets on the attacker/victim address pair for a specified period of time. To set the specified period of time and maximum number of denied attackers, choose Configuration > sensor_name > Policies > Event Action Rules > rules0 > General Settings.
–
Deny Attacker Service Pair Inline—(inline mode only) Does not transmit this packet and future packets on the attacker address victim port pair for a specified period of time.
–
Deny Attacker Inline—(inline mode only) Does not transmit this packet and future packets from the attacker address for a specified period of time.
Note
This is the most severe of the deny actions. It denies the current and future packets from a single attacker address. Each deny address times out for X seconds from the first event that caused the deny to start, where X is the amount of seconds that you configured. You can clear all denied attacker entries by choosing Monitoring > Properties > Denied Attackers > Clear List, which permits the addresses back on the network.
–
Modify Packet Inline—(inline mode only) Modifies packet data to remove ambiguity about what the end point might do with the packet. Modify Packet Inline is not an option for Add Event Action Filter or Add Event Action Override. Modify Packet Inline is part of the Normalizer Engine. It scrubs the packet and corrects irregular issues such as bad checksum, out of range values, and other RFC violations.
•
Other Actions
Note
IPv6 does not support the following event actions: Request Block Host, Request Block Connection, or Request Rate Limit.
–
Request Block Connection—Requests ARC to block this connection.
–
Request Block Host—Requests ARC to block this attacker host. To set the duration of the block, choose Configuration > sensor_name > Policies > Event Action Rules > rules0 > General Settings.
–
Request Rate Limit—Requests ARC to perform rate limiting. Request Rate Limit applies to a select set of signatures.
–
Reset TCP Connection—Sends TCP resets to hijack and terminate the TCP flow. Reset TCP Connection only works on TCP signatures that analyze a single connection. It does not work for sweeps or floods.
Understanding Deny Packet Inline
For signatures that have Deny Packet Inline configured as an action or for an event action override that adds Deny Packet Inline as an action, the following actions may be taken:
•
droppedPacket
•
deniedFlow
•
tcpOneWayResetSent
The deny packet inline action is represented as a dropped packet action in the alert. When a deny packet inline occurs for a TCP connection, it is automatically upgraded to a deny connection inline action and seen as a denied flow in the alert. If the IPS denies just one packet, the TCP continues to try to send that same packet again and again, so the IPS denies the entire connection to ensure it never succeeds with the resends.
When a deny connection inline occurs, the IPS also automatically sends a TCP one-way reset, which shows up as a TCP one-way reset sent in the alert. When the IPS denies the connection, it leaves an open connection on both the client (generally the attacker) and the server (generally the victim). Too many open connections can result in resource problems on the victim. So the IPS sends a TCP reset to the victim to close the connection on the victim side (usually the server), which conserves the resources of the victim. It also prevents a failover that would otherwise allow the connection to fail over to a different network path and reach the victim. The IPS leaves the attacker side open and denies all traffic from it.
Regular Expression Syntax
Regular expressions (Regex) are a powerful and flexible notational language that allow you to describe text. In the context of pattern matching, regular expressions allow a succinct description of any arbitrary pattern.
Table B-3 lists the IPS signature Regex syntax.
Table B-3 Signature Regular Expression Syntax
|
|
|
? |
Question mark |
Repeat 0 or 1 times. |
* |
Star, asterisk |
Repeat 0 or more times. |
+ |
Plus |
Repeat 1 or more times. |
{x} |
Quantifier |
Repeat exactly X times. |
{x,} |
Minimum quantifier |
Repeat at least X times. |
. |
Dot |
Any one character except new line (0x0A). |
[abc] |
Character class |
Any character listed. |
[^abc] |
Negated character class |
Any character not listed. |
[a-z] |
Character range class |
Any character listed inclusively in the range. |
( ) |
Parenthesis |
Used to limit the scope of other metacharacters. |
| |
Alternation, or |
Matches either expression it separates. |
^ |
caret |
The beginning of the line. |
\char |
Escaped character |
When char is a metacharacter or not, matches the literal char. |
char |
Character |
When char is not a metacharacter, matches the literal char. |
\r |
Carriage return |
Matches the carriage return character (0x0D). |
\n |
New line |
Matches the new line character (0x0A). |
\t |
Tab |
Matches the tab character (0x09). |
\f |
Form feed |
Matches the form feed character (0x0C). |
\xNN |
Escaped hexadecimal character |
Matches character with the hexadecimal code 0xNN (0<=N<=F). |
\NNN |
Escaped octal character |
Matches the character with the octal code NNN (0<=N<=8). |
All repetition operators will match the shortest possible string as opposed to other operators that consume as much of the string as possible thus giving the longest string match.
Table B-4 lists examples of Regex patterns.
Table B-4 Regex Patterns
|
|
Hacker |
Hacker |
Hacker or hacker |
[Hh]acker |
Variations of bananas, banananas, banananananas |
ba(na)+s |
foo and bar on the same line with anything except a new line between them |
foo.*bar |
Either foo or bar |
foo|bar |
Either moon or soon |
(m|s)oon |
AIC Engine
The Application Inspection and Control (AIC) engine inspects HTTP web traffic and enforces FTP commands. This section describes the AIC engine and its parameters, and contains the following topics:
•
Understanding the AIC Engine
•
AIC Engine and Sensor Performance
•
AIC Engine Parameters
Understanding the AIC Engine
AIC provides thorough analysis of web traffic. It provides granular control over HTTP sessions to prevent abuse of the HTTP protocol. It allows administrative control over applications, such as instant messaging and gotomypc, that try to tunnel over specified ports. Inspection and policy checks for P2P and instant messaging are possible if these applications are running over HTTP. AIC also provides a way to inspect FTP traffic and control the commands being issued. You can enable or disable the predefined signatures or you can create policies through custom signatures.
The AIC engine runs when HTTP traffic is received on AIC web ports. If traffic is web traffic, but not received on the AIC web ports, the Service HTTP engine is executed. AIC inspection can be on any port if it is configured as an AIC web port and the traffic to be inspected is HTTP traffic.
AIC Engine and Sensor Performance
Application policy enforcement is a unique sensor feature. Rather than being based on traditional IPS technologies that inspect for exploits, vulnerabilities, and anomalies, AIC policy enforcement is designed to enforce HTTP and FTP service policies. The inspection work required for this policy enforcement is extreme compared with traditional IPS inspection work. A large performance penalty is associated with using this feature. When AIC is enabled, the overall bandwidth capacity of the sensor is reduced.
AIC policy enforcement is disabled in the IPS default configuration. If you want to activate AIC policy enforcement, we highly recommend that you carefully choose the exact policies of interest and disable those you do not need. Also, if your sensor is near its maximum inspection load capacity, we recommend that you not use this feature since it can oversubscribe the sensor. We recommend that you use the adaptive security appliance firewall to handle this type of policy enforcement.
AIC Engine Parameters
The AIC engine defines signatures for deep inspection of web traffic. It also defines signatures that authorize and enforce FTP commands. There are two AIC engines: AIC HTTP and AIC FTP.
The AIC engine has the following features:
•
Web traffic:
–
RFC compliance enforcement
–
HTTP request method authorization and enforcement
–
Response message validation
–
MIME type enforcement
–
Transfer encoding type validation
–
Content control based on message content and type of data being transferred
–
URI length enforcement
–
Message size enforcement according to policy configured and the header
–
Tunneling, P2P and instant messaging enforcement.
This enforcement is done using regular expressions. There are predefined signature but you can expand the list.
•
FTP traffic:
–
FTP command authorization and enforcement
Table B-5 lists the parameters that are specific to the AIC HTTP engine.
Table B-5 AIC HTTP Engine Parameters
|
|
Signature Type |
The type of AIC signature. |
Content Types |
AIC signature that deals with MIME types: • Define Content Type—Associates actions such as denying a specific MIME type (image/gif), defining a message-size violation, and determining that the MIME-type mentioned in the header and body do not match. • Define Recognized Content Types—Lists content types recognized by the sensor. |
Define Web Traffic Policy |
Specifies the action to take when noncompliant HTTP traffic is seen. Alarm on Non-HTTP Traffic Yes | No enables the signature. This signature is disabled by default. |
Max Outstanding Requests Overrun |
Maximum allowed HTTP requests per connection (1 to 16). |
Msg Body Pattern |
Uses Regex to define signatures that look for specific patterns in the message body. |
Request Methods |
AIC signature that allows actions to be associated with HTTP request methods: • Define Request Method—get, put, and so forth. • Recognized Request Methods—Lists methods recognized by the sensor. |
Transfer Encoding |
AIC signature that deals with transfer encodings: • Define Transfer Encoding—Associates an action with each method, such as compress, chunked, and so forth. • Recognized Transfer Encodings—Lists methods recognized by the sensor. • Chunked Transfer Encoding—Error specifies actions to be taken when a chunked encoding error is seen. |
Table B-6 lists the parameters that are specific to the AIC FTP engine.
Table B-6 AIC FTP Engine Parameters
|
|
Signature Type |
Specifies the type of AIC signature. |
FTP Commands |
Associates an action with an FTP command: • FTP Command—Lets you choose the FTP command you want to inspect. |
Unrecognized FTP Command |
Inspects unrecognized FTP commands. |
For More Information
•
For the procedures for configuring AIC engine signatures, see Configuring Application Policy.
•
For an example of a custom AIC signature, see Tuning an AIC Signature.
•
For more information on the parameters common to all signature engines, see Master Engine.
Atomic Engine
The Atomic engine contains signatures for simple, single packet conditions that cause alerts to be fired. This section describes the Atomic engine, and contains the following topics:
•
Atomic ARP Engine
•
Atomic IP Advanced Engine
•
Atomic IP Engine
•
Atomic IPv6 Engine
Atomic ARP Engine
The Atomic ARP engine defines basic Layer 2 ARP signatures and provides more advanced detection of the ARP spoof tools dsniff and ettercap.
Table B-7 lists the parameters that are specific to the Atomic ARP engine.
Table B-7 Atomic ARP Engine Parameters
|
|
|
Specify ARP Operation |
(Optional) Enables ARP operation: • ARP Operation—Type of ARP operation to inspect. |
0 to 65535 |
Specify Mac Flip Times |
(Optional) Enables MAC address flip times: • Mac Flip Times—Specifies how many times to flip the MAC address in the alert. |
0 to 65535 |
Specify Request Inbalance |
(Optional) Enables request inbalance: • Request Inbalance—Fires an alert when there are this many more requests than replies on the IP address. |
0 to 65535 |
Specify Type of ARP Sig |
(Optional) Enables type of ARP signatures: • Type of ARP Sig—Specifies the type of ARP signatures you want to fire on: – Destination Broadcast—Fires an alert for this signature when it sees an ARP destination address of 255.255.255.255. – Same Source and Destination—Fires an alert for this signature when it sees an ARP destination address with the same source and destination MAC address – Source Broadcast (default)—Fires an alert for this signature when it sees an ARP source address of 255.255.255.255. – Source Multicast—Fires an alert for this signature when it sees an ARP source MAC address of 01:00:5e:(00-7f). |
Dst Broadcast Same Src and Dst Src Broadcast Src Multicast |
Storage Key |
Type of address key used to store persistent data: • Attacker address • Attacker and victim addresses • Victim address • Global |
Axxx AxBx xxBx xxxx |
For More Information
For more information on the parameters common to all signature engines, see Master Engine.
Atomic IP Advanced Engine
This section describes the Atomic IP Advanced engine, and contains the following topics:
•
Understanding the Atomic IP Advanced Engine
•
Atomic IP Advanced Engine Restrictions
•
Atomic IP Advanced Engine Parameters
Understanding the Atomic IP Advanced Engine
The Atomic IP Advanced engine parses and interprets the IPv6 header and its extensions, the IPv4 header and its options, ICMP, ICMPv6, TCP, and UDP, and seeks out anomalies that indicate unusual activity.
Atomic IP Advanced engine signatures do the following:
•
Inspect for anomalies in IP addresses, for example, spoofed addresses
•
Inspect for bad information in the length fields of the packet
•
Fire informational alerts about the packet
•
Fire higher severity alerts for the limited set of known vulnerabilities
•
Duplicate any IPv6-specific signatures in Engine Atomic IP that can also apply to IPv6
•
Provide default signatures for identifying tunneled traffic based on IP address, port, protocol, and limited information from the packet data.
Only the outermost IP tunnel is identified. When an IPv6 tunnel or IPv6 traffic inside of an IPv4 tunnel is detected, a signature fires an alert. All of the other IPv6 traffic in embedded tunnels is not inspected. The following tunneling methods are supported, but not individually detected. For example, ISATAP, 6to4, and manual IPv6 RFC 4213 tunnels all appear as IPv6 in IPv4, which is detected by signature 1007:
•
ISATAP
•
6to4 (RFC 3056)
•
Manually configured tunnels (RFC 4213)
•
IPv6 over GRE
•
Teredo (IPv6) inside UDP
•
MPLS (unencrypted)
•
IPv6 over IPv6
IPv6 supports the following:
•
Denying by source IP address, destination IP address, or IP address pair
•
Alerts
•
Reset TCP Connection
•
Logging
For More Information
•
For an example custom Atomic IP Advanced Engine signature, see Example Atomic IP Advanced Engine Signature.
•
For a list of the Atomic IP Advanced Engine restrictions, see Atomic IP Advanced Engine Restrictions.
•
For a list of the Atomic IP Advanced Engine parameters, see Atomic IP Advanced Engine Parameters.
Atomic IP Advanced Engine Restrictions
The Atomic IP Advanced engine contains the following restrictions:
•
Cannot detect the Layer 4 field of the packets if the packets are fragmented so that the Layer 4 identifier does not appear in the first packet.
•
Cannot detect Layer 4 attacks in flows with packets that are fragmented by IPv6 because there is no fragment reassembly.
•
Cannot detect attacks with tunneled flows.
•
Limited check are provided for the fragmentation header.
•
The AIM IPS and the NME IPS do not support the IPv6 features, because the routers in which they are installed do not send them IPv6 data. IPv6 inspection may work on the IDSM2, but we do not officially support it. There is no support for IPv6 on the management (command and control) interface. With ASA 8.2(1), the AIP SSM supports IPv6 features.If there are illegal duplicate headers, a signature fires, but the individual headers cannot be separately inspected.
•
Anomaly detection does not support IPv6 traffic; only IPv4 traffic is directed to the anomaly detection processor.
•
Rate limiting and blocking are not supported for IPv6 traffic. If a signature is configured with a block or rate limit event action and is triggered by IPv6 traffic, an alert is generated but the action is not carried out.
Atomic IP Advanced Engine Parameters
Note
The second number in the ranges must be greater than or equal to the first number.
Table B-8 lists the parameters that are specific to the Atomic IP Advanced engine.
Table B-8 Atomic IP Advanced Engine Parameters
|
|
|
|
|
|
Fragment Status |
Specifies whether or not fragments are wanted. |
Any | No Fragments | Want Fragments |
Specify Encapsulation |
(Optional) Specifies any encapsulation before the start of L3 for the packet:1 • Encapsulation—Type of encapsulation for which to inspect. |
None | MPLS | GRE | Ipv4 in IPv6 | IP IP | Any |
Specify IP Version |
(Optional) Specifies IP protocol version: • IP Version—IPv4 or IPv6. |
IPv4| IPv6 |
Swap Attacker Victim |
Yes if attacker and victim addresses and ports (source and destination) are swapped in the alert message and actions. No for no swapping (default). |
Yes | No |
|
|
|
Specify Regex Inspection |
(Optional) Enables Regex inspection. |
Yes | No |
Regex Scope |
Specifies the start and end points for the search. |
• ipv6-doh-only • ipv6-doh-plus • ipv6-hoh-only • ipv6-hoh-plus • ipv6-rh-only • ipv6-rh-plus • layer3-only • layer3-plus • layer4 |
Regex String |
Specifies the regular expression to search for in a single TCP packet. |
string |
Specify Exact Match Offset |
Enables exact match offset: • Exact Match Offset—The exact stream offset the Regex String must report for a match to be valid. |
0 to 65535 |
Specify Minimum Match Length |
Enables minimum match length: • Minimum Match Length—Specifies the minimum number of bytes the Regex String must match. |
0 to 65535 |
Specify Minimum Match Offset |
Enables minimum match offset: • Minimum Match Offset—Specifies the minimum stream offset the Regex String must report for a match to be valid. |
0 to 65535 |
Specify Maximum Match Offset |
Enables maximum match offset: • Maximum Match Offset—Specifies the maximum stream offset the Regex String must report for a match to be valid. |
0 to 65535 |
|
|
|
Specify Authentication Header |
(Optional) Enables inspection of the authentication header: • AH Present—Specifies that the authentication header is present: – AH Length—Specifies the length of the authentication header. – AH Next Header—Specifies the value of the authentication header. |
Have AH | No AH 0 to 1028 0 to 255 |
Specify Destination Options Header |
(Optional) Enables inspection of the destination options header: • DOH Present—Specifies that the destination options header is present: – DOH Count—Specifies the number of destination options headers for which to inspect. – DOH Length—Specifies the length of destination options headers for which to inspect. – DOH Next Header—Specifies the number of next destination options headers for which to inspect. – DOH Option Type—Specifies the type of destination options headers for which to inspect. – DOH Option Length—Specifies the length of destination options headers for which to inspect. |
Have DOH | No DOH 0 to 2 8 to 2048 0 to 255 0 to 255 0 to 255 |
Specify ESP Header |
(Optional) Enables inspection of the ESP header: • ESP Present—Specifies that the ESP header is present. |
Have ESP | No ESP |
Specify First Next Header |
(Optional) Enables inspection of the first next header: • First Next Header—Specifies the value of the first next header for which to inspect. |
0 to 255 |
Specify Flow Label |
(Optional) Enables inspection of the flow label: • Flow Label—Specifies the value of the flow label for which to inspect. |
0 to 1048575 |
Specify Headers Out of Order |
(Optional) Enables inspection of out-of-order headers: • Headers Out of Order—Specifies the header order for which to inspect. |
Yes | No |
Specify Headers Repeated |
(Optional) Enables inspection of repeated headers: • Headers Repeated—Specifies the header repetition for which to inspect. |
Yes | No |
Specify Hop Limit |
(Optional) Enables hop limit: • Hop Limit—Specifies the value of the hop limit for which to inspect. |
0 to 255 |
Specify Hop Options Header |
(Optional) Enables inspection of the hop-by-hop options header: • HOH Present—Specifies that the hop-by-hop options header is present. |
Have HOH | No HOH |
Specify IPv6 Address Options |
(Optional) Enables the IPv6 address options: • IPv6 Address Options—Specifies the IPv6 address options: – Address With Localhost—IP address with ::1. – Documentation Address—IP address with 2001:db8::/32 prefix. – IPv6 Address—IP address. – Link Local Address—Inspects for an IPv6 link local address. – Multicast Destination—Inspects for a destination multicast address. – Multicast Source—Inspects for a source multicast address. – Not Link Local Address—Inspects for an address that is not link-local. – Not Valid Address—Inspects for an address that is not reserved for link-local, global, or multicast. – Source IP Equals Destination IP—Source and Destination addresses are the same. |
|
Specify IPv6 Data Length |
(Optional) Enables inspection of IPv6 data length: • IPv6 Data Length—Specifies the IPv6 data length for which to inspect. |
0-65535 |
Specify IPv6 Header Length |
(Optional) Enables inspection of IPv6 header length: • Pv6 Header Length—Specifies the length of the IPv6 header for which to inspect. |
0-65535 |
Specify IPv6 Total Length |
(Optional) Enables inspection of IPv6 total length: • IPv6 Total Length—Specifies the IPv6 total length for which to inspect. |
0-65535 |
Specify IPv6 Payload Length |
(Optional) Enables inspection of IPv6 payload length: • IPv6 Payload Length—Specifies the IPv6 payload length for which to inspect. |
0-65535 |
Specify Routing Header |
(Optional) Enables inspection of the routing header: • RH Present—Specifies that the routing header is present. |
Have RH | No RH |
Specify Traffic Class |
(Optional) Enables inspection of the traffic class: • Traffic Class—Specifies the value of the traffic class for which to inspect. |
0 to 255 |
|
|
|
Specify IP Addr Options |
(Optional) Enables IP address options: • IP Addr Options—Specifies the IP address options. |
Address With Localhost IP Address2 RFC 1918 Address Src IP Eq Dst IP |
Specify IP Header Length |
(Optional) Enables inspection of the IP header length: • IP Header Length—Specifies the length of the IP header for which to inspect. |
0 to 16 |
Specify IP Identifier |
(Optional) Enables inspection of the IP identifier: • IP Identifier—Specifies the IP ID for which to inspect. |
0 to 255 |
Specify IP Option Inspection |
(Optional) Enables inspection of the IP options: • IP Option Inspection—Specifies the value of the IP option: – IP Option—IP OPTION code to match. – IP Option Abnormal Options—The list of options is malformed. |
0 to 65535 Yes | No |
Specify IP Payload Length |
(Optional) Enables inspection of the IP payload length: • IP Payload Length—Specifies the length of IP payload for which to inspect. |
0 to 65535 |
Specify IP Type of Service |
(Optional) Specifies the IP type of service: • IP Type of Service—Specifies the IP type of service for which to inspect. |
0 to 255 |
Specify IP Total Length |
(Optional) Enables inspection of the IP total length: • IP Total Length—Specifies the total length of iP packet for which to inspect. |
0 to 65535 |
Specify IP Time-to-Live |
(Optional) Enables inspection of the IP time-to-live: • IP Time-to-Live—Specifies IP TTL inspection. |
0 to 255 |
Specify IP Version |
(Optional) Enables inspection of the IP version: • IP Version—Specifies which IP version for which to inspect. |
0 to 16 |
|
|
|
Specify L4 Protocol |
(Optional) Enables inspection of L4 protocol: • L4 Protocol—Specifies which L4 protocol to inspect. |
ICMP Protocol ICMPv6 Protocol TCP Protocol UDP Protocol Other IP Protocols |
|
|
|
Other IP Protocol ID |
(Optional) Enables inspection of other L4 protocols: • Other IP Protocol ID—Specifies which single IP protocol ID or single range of IP protocol IDs for which to send alerts. |
0 to 255 |
|
|
|
Specify ICMP Code |
(Optional) Enables inspection of L4 ICMP code: • ICMP Code—Specifies ICMP header CODE value. |
0 to 65535 |
Specify ICMP ID |
(Optional) Enables inspection of L4 ICMP ID: • ICMP ID—Specifies ICMP header IDENTIFIER value. |
0 to 65535 |
Specify ICMP Sequence |
(Optional) Enables inspection of L4 ICMP sequence: • ICMP Sequence—Specifies the ICMP sequence for which to look. |
0 to 65535 |
Specify ICMP Type |
(Optional) Enables inspection of the ICMP header type: • ICMP Type—Specifies the ICMP header TYPE value. |
0 to 65535 |
|
|
|
Specify ICMPv6 Code |
(Optional) Enables inspection of L4 ICMPv6 code: • ICMPv6 Code—Specifies ICMPv6 header CODE value. |
0 to 255 |
Specify ICMPv6 ID |
(Optional) Enables inspection of the L4 ICMPv6 identifier: • ICMPv6 ID—Specifies ICMPv6 header IDENTIFIER value. |
0 to 65535 |
Specify ICMPv6 Length |
(Optional) Enables inspection of L4 ICMPv6 length: • ICMPv6 Length—ICMPv6 header LENGTH value. |
0 to 65535 |
Specify ICMPv6 MTU Field |
(Optional) Enables inspection of the L4 ICMPv6 MTU field: • ICMPv6 MTU Field—ICMPv6 header MTU field value. |
4,294,967,295 |
Specify ICMPv6 Option Type |
(Optional) Enables inspection of L4 ICMPv6 type: • ICMPv6 Option Type—Specifies which ICMPv6 option type to inspect. |
0 to 255 |
Specify ICMPv6 Option Length |
(Optional) Enables inspection of L4 ICMPv6 option type: • ICMPv6 Option Length—Specifies which ICMPv6 option type to inspect. |
0 to 255 |
Specify ICMPv6 Sequence |
(Optional) Enables inspection of L4 ICMPv6 sequence: • ICMPv6 Sequence—ICMPv6 header SEQUENCE value. |
0 to 65535 |
Specify ICMPv6 Type |
(Optional) Enables inspection of L4 ICMPv6 type: • ICMPv6 Type—ICMPv6 header TYPE value. |
0 to 255 |
|
|
|
Specify Destination Port |
(Optional) Enables the destination port for use: • Destination Port—Destination port of interest for this signature. |
0 to 65535 |
Specify Source Port |
(Optional) Enables source port for use: • Source Port—Source port of interest for this signature. |
0 to 65535 |
Specify TCP Mask |
(Optional) Enables the TCP mask for use: • TCP Mask—Mask used in TCP flags comparison: – URG bit – ACK bit – PSH bit – RST bit – SYN bit – FIN bit |
• URG • ACK • PSH • RST • SYN • FIN |
Specify TCP Flags |
(Optional) Enables TCP flags for use: • TCP Flags—TCP flags to match when masked by mask: – URG bit – ACK bit – PSH bit – RST bit – SYN bit – FIN bit |
• URG • ACK • PSH • RST • SYN • FIN |
Specify TCP Reserved |
(Optional) Enables TCP reserved for use: • TCP Reserved—TCP reserved. |
0 to 63 |
Specify TCP Header Length |
(Optional) Enables inspection of L4 TCP header length: • TCP Header Length—Specifies length of TCP header used in inspection. |
0 to 60 |
Specify TCP Payload Length |
(Optional) Enables inspection of L4 TCP payload length: • TCP Payload Length—Specifies length of TCP payload. |
0 to 65535 |
Specify TCP URG Pointer |
(Optional) Enables inspection of the L4 TCP URG pointer: • TCP URG Pointer—Specifies TCP URG flag inspection. |
0 to 65535 |
Specify TCP Window Size |
(Optional) Enables inspection of L4 TCP window size: • TCP Window Size—Specifies the window size of the TCP packet. |
0 to 65535 |
Specify UDP Valid Length |
(Optional) Enables inspection of the L4 UDP valid length: • UDP Valid Length—Specifies UDP packet lengths that are considered valid and should not be inspected. |
0 to 65535 |
Specify UDP Length Mismatch |
(Optional) Enables inspection of L4 UDP length mismatch: • UDP Length Mismatch—Fires an alert when IP Data length is less than the UDP Header length. |
Yes | No |
For More Information
•
For more information on the parameters common to all signature engines, see Master Engine.
•
For a list of the signature regular expression syntax, see Regular Expression Syntax.
Atomic IP Engine
The Atomic IP engine defines signatures that inspect IP protocol headers and associated Layer 4 transport protocols (TCP, UDP, and ICMP) and payloads.
Note
The Atomic engines do not store persistent data across packets. Instead they can fire an alert from the analysis of a single packet.
Table B-9 lists the parameters that are specific to the Atomic IP engine.
Table B-9 Atomic IP Engine Parameters
|
|
|
Specify IP Addr Options |
(Optional) Enables IP address options: • IP Addr Options—Specifies the IP address options. |
Address With Localhost IP Address1 RFC 1918 Address Src IP Eq Dst IP |
Specify IP Header Length |
(Optional) Enables inspection of the IP header length: • IP Header Length—Specifies the length of the IP header for which to inspect. |
0 to 16 |
Specify IP Identifier |
(Optional) Enables inspection of the IP identifier: • IP Identifier—Specifies the IP ID for which to inspect. |
0 to 255 |
Specify IP Option Inspection |
(Optional) Enables inspection of the IP options: • IP Option Inspection—Specifies the value of the IP option: – IP Option—IP OPTION code to match. – IP Option Abnormal Options—The list of options is malformed. |
0 to 65535 Yes | No |
Specify IP Payload Length |
(Optional) Enables inspection of the IP payload length: • IP Payload Length—Specifies the length of IP payload for which to inspect. |
0 to 65535 |
Specify IP Type of Service |
(Optional) Specifies the IP type of service: • IP Type of Service—Specifies the IP type of service for which to inspect. |
0 t6o 255 |
Specify IP Total Length |
(Optional) Enables inspection of the IP total length: • IP Total Length—Specifies the total length of iP packet for which to inspect. |
0 to 65535 |
Specify IP Time-to-Live |
(Optional) Enables inspection of the IP time-to-live: • IP Time-to-Live—Specifies IP TTL inspection. |
0 to 255 |
Specify IP Version |
(Optional) Enables inspection of the IP version: • IP Version—Specifies which IP version for which to inspect. |
0 to 16 |
Specify L4 Protocol |
(Optional) Enables inspection of L4 protocol: • L4 Protocol—Specifies which L4 protocol to inspect. |
ICMP Protocol TCP Protocol UDP Protocol Other IP Protocols |
Specify ICMP Code |
(Optional) Enables inspection of L4 ICMP code: • ICMP Code—Specifies ICMP header CODE value. |
0 to 65535 |
Specify ICMP ID |
(Optional) Enables inspection of L4 ICMP ID: • ICMP ID—Specifies ICMP header IDENTIFIER value. |
0 to 65535 |
Specify ICMP Sequence |
(Optional) Enables inspection of L4 ICMP sequence: • ICMP Sequence—Specifies the ICMP sequence for which to look. |
0 to 65535 |
Specify ICMP Type |
(Optional) Enables inspection of the ICMP header type: • ICMP Type—Specifies the ICMP header TYPE value. |
0 to 65535 |
Specify ICMP Total Length |
(Optional) Enables inspection of L4 ICMP total header length: • ICMP Total Length—Specifies the ICMP total length value for which to inspect. |
0 to 65535 |
Other IP Protocol ID |
(Optional) Enables inspection of other L4 protocols: • Other IP Protocol ID—Specifies which single IP protocol ID or single range of IP protocol IDs for which to send alerts. |
0 to 255 |
Specify Destination Port |
(Optional) Enables the destination port for use: • Destination Port—Destination port of interest for this signature. |
0 to 65535 |
Specify Source Port |
(Optional) Enables source port for use: • Source Port—Source port of interest for this signature. |
0 to 65535 |
Specify TCP Mask |
(Optional) Enables the TCP mask for use: • TCP Mask—Mask used in TCP flags comparison: – URG bit – ACK bit – PSH bit – RST bit – SYN bit – FIN bit |
• URG • ACK • PSH • RST • SYN • FIN |
Specify TCP Flags |
(Optional) Enables TCP flags for use: • TCP Flags—TCP flags to match when masked by mask: – URG bit – ACK bit – PSH bit – RST bit – SYN bit – FIN bit |
• URG • ACK • PSH • RST • SYN • FIN |
Specify TCP Reserved |
(Optional) Enables TCP reserved for use: • TCP Reserved—TCP reserved. |
0 to 63 |
Specify TCP Header Length |
(Optional) Enables inspection of L4 TCP header length: • TCP Header Length—Specifies length of TCP header used in inspection. |
0 to 60 |
Specify TCP Payload Length |
(Optional) Enables inspection of L4 TCP payload length: • TCP Payload Length—Specifies length of TCP payload. |
0 to 65535 |
Specify TCP URG Pointer |
(Optional) Enables inspection of the L4 TCP URG pointer: • TCP URG Pointer—Specifies TCP URG flag inspection. |
0 to 65535 |
Specify TCP Window Size |
(Optional) Enables inspection of L4 TCP window size: • TCP Window Size—Specifies the window size of the TCP packet. |
0 to 65535 |
Specify UDP Length |
(Optional) Enables inspection of L4 UDP length: • UDP Length—Fires an alert when IP Data length is less than the UDP Header length. |
0 to 65535 |
Specify UDP Valid Length |
(Optional) Enables inspection of the L4 UDP valid length: • UDP Valid Length—Specifies UDP packet lengths that are considered valid and should not be inspected. |
0 to 65535 |
Specify UDP Length Mismatch |
(Optional) Enables inspection of L4 UDP length mismatch: • UDP Length Mismatch—Fires an alert when IP Data length is less than the UDP Header length. |
Yes | No |
For More Information
For more information on the parameters common to all signature engines, see Master Engine.
Atomic IPv6 Engine
The Atomic IPv6 engine detects two IOS vulnerabilities that are stimulated by malformed IPv6 traffic. These vulnerabilities can lead to router crashes and other security issues. One IOS vulnerability deals with multiple first fragments, which cause a buffer overflow. The other one deals with malformed ICMPv6 Neighborhood Discovery options, which also cause a buffer overflow.
Note
IPv6 increases the IP address size from 32 bits to 128 bits, which supports more levels of addressing hierarchy, a much greater number of addressable nodes, and autoconfiguration of addresses.
There are eight Atomic IPv6 signatures. The Atomic IPv6 inspects Neighborhood Discovery protocol of the following types:
•
Type 133—Router Solicitation
•
Type 134—Router Advertisement
•
Type 135—Neighbor Solicitation
•
Type 136—Neighbor Advertisement
•
Type 137—Redirect
Note
Hosts and routers use Neighborhood Discovery to determine the link-layer addresses for neighbors known to reside on attached links and to quickly purge cached values that become invalid. Hosts also use Neighborhood Discovery to find neighboring routers that will forward packets on their behalf.
Each Neighborhood Discovery type can have one or more Neighborhood Discovery options. The Atomic IPv6 engine inspects the length of each option for compliance with the legal values stated in RFC 2461. Violations of the length of an option results in an alert corresponding to the option type where the malformed length was encountered (signatures 1601 to 1605).
Note
The Atomic IPv6 signatures do not have any specific parameters to configure.
Table B-10 lists the Atomic IPv6 signatures.
Table B-10 Atomic IPv6 Signatures
|
|
|
|
1600 |
0 |
ICMPv6 zero length option |
For any option type that has ZERO stated as its length |
1601 |
0 |
ICMPv6 option type 1 violation |
Violation of the valid length of 8 or 16 bytes. |
1602 |
0 |
ICMPv6 option type 2 violation |
Violation of the valid length of 8 or 16 bytes. |
1603 |
0 |
ICMPv6 option type 3 violation |
Violation of the valid length of 32 bytes. |
1604 |
0 |
ICMPv6 option type 4 violation |
Violation of the valid length of 80 bytes. |
1605 |
0 |
ICMPv6 option type 5 violation |
Violation of the valid length of 8 bytes. |
1606 |
0 |
ICMPv6 short option data |
Not enough data signature (when the packet states there is more data for an option than is available in the real packet) |
1607 |
0 |
IPv6 multiple-crafted fragment packets |
Produces an alert when more than one first fragment is seen in a 30-second period. |
For More Information
For more information on the parameters common to all signature engines, see Master Engine.
Fixed Engine
This section describes the Fixed engine, and contains the following topics:
•
Understanding the Fixed Engine
•
Fixed ICMP Engine Parameters
•
Fixed TCP Engine Parameters
•
Fixed UDP Engine Parameters
Understanding the Fixed Engine
The Fixed engine combines multiple regular expression patterns in to a single pattern matching table that allows a single search through the data. It supports ICMP, TCP, and UDP protocols. After a minimum inspection depth is reached (1 to 100 bytes), inspection stops. There are three Fixed engines: Fixed ICMP, Fixed TCP, and Fixed UDP.
Note
Fixed TCP and Fixed UDP use the Service Ports parameter as exclusion ports. Fixed ICMP uses the Service Ports parameter as excluded ICMP types.
Fixed ICMP Engine Parameters
Table B-11 lists the parameters specific to the Fixed ICMP engine.
Table B-11 Fixed ICMP Engine Parameters
|
|
|
Direction |
Direction of traffic: • Traffic from service port destined to client port • Traffic from client port destined to service port |
From Service To Service |
Max Payload Inspect Length |
Specifies the maximum inspection depth for the signature. |
1 to 250 |
Regex String |
Specifies the regular expression to search for in a single packet. |
string |
Specify Exact Match Offset |
(Optional) Enables exact match offset: • Exact Match Offset—The exact stream offset the Regex String must report for a match to be valid. |
0 to 65535 |
Specify Minimum Match Length |
(Optional) Enables minimum match length: • Minimum Match Length—Specifies the minimum number of bytes the Regex String must match. |
0 to 65535 |
Specify ICMP Type |
(Optional) Enables inspection of the ICMP header type: • ICMP Type—Specifies the ICMP header TYPE value. |
0 to 65535 |
Swap Attacker Victim |
Yes if attacker and victim addresses and ports (source and destination) are swapped in the alert message and actions. No for no swapping (default). |
Yes | No |
For More Information
•
For more information on the parameters common to all signature engines, see Master Engine.
•
For a list of the signature regular expression syntax, see Regular Expression Syntax.
Fixed TCP Engine Parameters
Table B-12 lists the parameters specific to the Fixed TCP engine.
Table B-12 Fixed TCP Engine Parameters
|
|
|
Direction |
Direction of traffic: • Traffic from service port destined to client port • Traffic from client port destined to service port |
From Service To Service |
Max Payload Inspect Length |
Specifies the maximum inspection depth for the signature. |
1 to 250 |
Regex String |
Specifies the regular expression to search for in a single packet. |
string |
Specify Exact Match Offset |
(Optional) Enables exact match offset: • Exact Match Offset—The exact stream offset the Regex String must report for a match to be valid. |
0 to 65535 |
Specify Minimum Match Length |
(Optional) Enables minimum match length: • Minimum Match Length—Specifies the minimum number of bytes the Regex String must match. |
0 to 65535 |
Specify Service Ports |
Enables service ports for use: • Service Ports—A comma-separated list of ports or port ranges where the target service resides. |
0 to 655351 a-b[,c-d] |
Swap Attacker Victim |
Yes if attacker and victim addresses and ports (source and destination) are swapped in the alert message and actions. No for no swapping (default). |
Yes | No |
For More Information
•
For more information on the parameters common to all signature engines, see Master Engine.
•
For a list of the signature regular expression syntax, see Regular Expression Syntax.
Fixed UDP Engine Parameters
Table B-13 lists the parameters specific to the Fixed UDP engine.
Table B-13 Fixed UDP Engine Parameters
|
|
|
Direction |
Direction of traffic: • Traffic from service port destined to client port • Traffic from client port destined to service port |
From Service To Service |
Max Payload Inspect Length |
Specifies the maximum inspection depth for the signature. |
1 to 250 |
Regex String |
Specifies the regular expression to search for in a single packet. |
string |
Specify Exact Match Offset |
(Optional) Enables exact match offset: • Exact Match Offset—The exact stream offset the Regex String must report for a match to be valid. |
0 to 65535 |
Specify Minimum Match Length |
(Optional) Enables minimum match length: • Minimum Match Length—Specifies the minimum number of bytes the Regex String must match. |
0 to 65535 |
Specify Service Ports |
Enables service ports for use: • Service Ports—A comma-separated list of ports or port ranges where the target service resides. |
0 to 655351 a-b[,c-d] |
Swap Attacker Victim |
Yes if attacker and victim addresses and ports (source and destination) are swapped in the alert message and actions. No for no swapping (default). |
Yes | No |
For More Information
•
For more information on the parameters common to all signature engines, see Master Engine.
•
For a list of the signature regular expression syntax, see Regular Expression Syntax.
Flood Engine
The Flood engine defines signatures that watch for any host or network sending multiple packets to a single host or network. For example, you can create a signature that fires when 150 or more packets per second (of the specific type) are found going to the victim host. There are two types of Flood engines: Flood Host and Flood Net.
Table B-14 lists the parameters specific to the Flood Host engine.
Table B-14 Flood Host Engine Parameters
|
|
|
Protocol |
Which kind of traffic to inspect. |
ICMP UDP |
Rate |
Threshold number of packets per second. |
0 to 655351 |
ICMP Type |
Specifies the value for the ICMP header type. |
0 to 65535 |
Dst Ports |
Specifies the destination ports when you choose UDP protocol. |
0 to 655352 a-b[,c-d] |
Src Ports |
Specifies the source ports when you choose UDP protocol. |
0 to 655353 a-b[,c-d] |
Table B-15 lists the parameters specific to the Flood Net engine.
Table B-15 Flood Net Engine Parameters
|
|
|
Gap |
Gap of time allowed (in seconds) for a flood signature. |
0 to 65535 |
Peaks |
Number of allowed peaks of flood traffic. |
0 to 65535 |
Protocol |
Which kind of traffic to inspect. |
ICMP TCP UDP |
Rate |
Threshold number of packets per second. |
0 to 655351 |
Sampling Interval |
Interval used for sampling traffic. |
1 to 3600 |
ICMP Type |
Specifies the value for the ICMP header type. |
0 to 65535 |
For More Information
For more information on the parameters common to all signature engines, see Master Engine.
Meta Engine
Caution
large number of Meta signatures could adversely affect overall sensor performance.
Note
The Meta engine enhancement is available in IPS 7.0(2)E4 and later.
The Meta engine defines events that occur in a related manner within a sliding time interval. This engine processes events rather than packets. As signature events are generated, the Meta engine inspects them to determine if they match any or several Meta definitions. The Meta engine generates a signature event after all requirements for the event are met.
All signature events are handed off to the Meta engine by the Signature Event Action Processor. The Signature Event Action Processor hands off the event after processing the minimum hits option. Summarization and event action are processed after the Meta engine has processed the component events.
Component Signatures and the Meta Engine
Component signatures are not independent signatures, they are pieces of a Meta signature. The Signature Type option is marked as Component. Since these signatures are not independent signatures, the risk rating when triggered is automatically set to 0. The risk rating is applicable to the Meta signature rather than the component signatures. This prevents the component signatures from causing denial of packets by either event action overrides or global correlation. Event action overrides and global correlation are applied against the Meta signature rather than the component signature.
Note
Some component signatures in the Meta signatures are valuable as both independent signatures and component signatures. These signatures are not marked as Signature Type Component and instead are marked with the Signature Type set to either Vulnerability, Exploit, Anomaly, or Other. The risk rating for these signatures is calculated and is not set to 0.
Meta Signature Engine Enhancement
The purpose of the Meta engine is to detect a specified payload from an attacker and a corresponding payload from the victim. It is also used to inspect streams at different offsets. The Meta engine supports the AND and OR logical operators. ANDNOT capability has been added to the Meta engine. This clause is a negative clause used to complement the existing positive clause-based signatures. The previous signature format had the following form:
IF (A and B and C) then Alarm; alternatively, IF (A or B or C) then Alarm is also
supported; where A, B, and C are meta component signatures.
The addition of the negative clause allows for the following logic:
IF (A and/or B) AND NOT (C and/or D) then Alarm.
The (C and/or D) is the negative clause and is satisfied if (C and D) [alternatively (C or D)] do not occur before the Meta Reset Interval time expires.
A component of the positive clause must occur before the negative clause(s) to establish the Meta tracking state. The Meta engine cannot track the lack of past behavior. The state of the negative clause is evaluated when the Meta Reset Interval time expires.
Meta Engine Parameters
Table B-16 lists the parameters specific to the Meta engine.
Table B-16 Meta Engine Parameters
|
|
|
Component List |
Specifies the Meta engine component: • edit—Edits an existing entry. • insert—Inserts a new entry into the list: – begin—Places the entry at the beginning of the active list. – end—Places the entry at the end of the active list. – inactive—Places the entry into the inactive list. – before—Places the entry before the specified entry. – after—Places the entry after the specified entry. • move—Moves an entry in the list. • Component Count—Specifies the number of times component must fire before this component is satisfied • Component Sig ID—Specifies the signature ID of the signature to match this component on. • Component SubSig ID—Specifies the subsignature ID of the signature to match this component on. • Is Not Component—Specifies that the component is a NOT component. |
name1 Yes | No |
Component List In Order |
Specifies to fire the component list in order. |
Yes | No |
All Components Required |
Specifies to use all components. |
Yes | No |
All NOT Components Required |
Specifies to use all of the NOT components. |
Yes | No |
Swap Attacker Victim |
Swaps the attacker and victim addresses and ports (source and destination) in the alert message and in any actions taken. |
Yes | No (default) |
Meta Reset Interval |
Specifies the time in seconds to reset the Meta signature. |
0 to 3600 |
Meta Key |
Specifies the storage type for the Meta signature: • Attacker address • Attacker and victim addresses • Attacker and victim addresses and ports • Victim address |
• Axxx • AxBx • AaBb • xxBx |
Unique Victims |
Specifies the number of unique victims ports required per Meta signature. |
1 to 256 |
For More Information
•
For an example of a custom Meta engine signature, see Example Meta Engine Signature.
•
For more information on the parameters common to all signature engines, see Master Engine.
•
For detailed information about the Signature Event Action Processor, see Signature Event Action Processor.
Multi String Engine
The Multi String engine lets you define signatures that inspect Layer 4 transport protocol (ICMP, TCP, and UDP) payloads using multiple string matches for one signature. You can specify a series of regular expression patterns that must be matched to fire the signature. For example, you can define a signature that looks for regex 1 followed by regex 2 on a UDP service. For UDP and TCP you can specify port numbers and direction. You can specify a single source port, a single destination port, or both ports. The string matching takes place in both directions.
Use the Multi String engine when you need to specify more than one Regex pattern. Otherwise, you can use the String ICMP, String TCP, or String UDP engine to specify a single Regex pattern for one of those protocols.
Table B-17 lists the parameters specific to the Multi String Engine.
Table B-17 Multi String Engine Parameters
|
|
|
Inspect Length |
Length of stream or packet that must contain all offending strings for the signature to fire. |
0 to 4294967295 |
Protocol |
Layer 4 protocol selection. |
ICMP TCP UDP |
Regex Component |
List of regex components: • Regex String—The string to search for. • Spacing Type—Type of spacing required from the match before or from the beginning of the stream/packet if it is the first entry in the list. |
list (1 to 16 items) exact minimum |
Port Selection |
Type of TCP or UDP port to inspect: • Both Ports—Specifies both source and destination port. • Destination—Specifies a range of destination ports. • Source—Specifies a range of source ports.1 |
0 to 65535 2 |
Extra Spacing |
Exact number of bytes that must be between this regex string and the one before, or from the beginning of the stream/packet if it is the first entry in the list. |
0 to 4294967296 |
Minimum Spacing |
Minimum number of bytes that must be between this regex string and the one before, or from the beginning of the stream/packet if it is the first entry in the list. |
0 to 4294967296 |
Swap Attacker Victim |
Yes if attacker and victim addresses and ports (source and destination) are swapped in the alert message and actions. No for no swapping (default). |
Yes | No |
Caution
The Multi String engine can have a significant impact on memory usage.
For More Information
•
For more information on the parameters common to all signature engines, see Master Engine.
•
For a list of the signature regular expression syntax, see Regular Expression Syntax.
Normalizer Engine
Note
You cannot add custom signatures to the Normalizer engine. You can tune the existing ones.
The Normalizer engine deals with IP fragment reassembly and TCP stream reassembly. With the Normalizer engine you can set limits on system resource usage, for example, the maximum number of fragments the sensor tries to track at the same time. Sensors in promiscuous mode report alerts on violations. Sensors in inline mode perform the action specified in the event action parameter, such as Produce Alert, Deny Packet Inline, and Modify Packet Inline.
Caution
For signature 3050 Half Open SYN Attack, if you choose Modify Packet Inline as the action, you can see as much as 20 to 30% performance degradation while the protection is active. The protection is only active during an actual SYN flood.
IP Fragmentation Normalization
Intentional or unintentional fragmentation of IP datagrams can hide exploits making them difficult or impossible to detect. Fragmentation can also be used to circumvent access control policies like those found on firewalls and routers. And different operating systems use different methods to queue and dispatch fragmented datagrams. If the sensor has to check for all possible ways that the end host can reassemble the datagrams, the sensor becomes vulnerable to DoS attacks. Reassembling all fragmented datagrams inline and only forwarding completed datagrams, refragmenting the datagram if necessary, prevents this. The IP Fragmentation Normalization unit performs this function.
TCP Normalization
Through intentional or natural TCP session segmentation, some classes of attacks can be hidden. To make sure policy enforcement can occur with no false positives and false negatives, the state of the two TCP endpoints must be tracked and only the data that is actually processed by the real host endpoints should be passed on. Overlaps in a TCP stream can occur, but are extremely rare except for TCP segment retransmits. Overwrites in the TCP session should not occur. If overwrites do occur, someone is intentionally trying to elude the security policy or the TCP stack implementation is broken. Maintaining full information about the state of both endpoints is not possible unless the sensor acts as a TCP proxy. Instead of the sensor acting as a TCP proxy, the segments are ordered properly and the normalizer looks for any abnormal packets associated with evasion and attacks.
IPv6 Fragments
The Normalizer engine can reassemble IPv6 fragments and forward the reassembled buffer for inspection and actions by other engines and processors. The following differences exist between IPv4 and IPv6:
•
Modify Packet Inline for Normalizer engine signatures has no effect on IPv6 datagrams.
•
Signature 1206 (IP Fragment Too Small) does not fire for IPv6 datagrams. Signature 1741 in the Atomic IP Advanced engine fires for IPv6 fragments that are too small.
•
Signature 1202 allows 48 additional bytes beyond the Maximum Datagram Size for IPv6 because of the longer IPv6 header fields.
TCP Normalizer Signature Warning
You receive the following warning if you disable a default-enabled TCP Normalizer signature or remove a default-enabled modify packet inline, deny packet inline, or deny connection inline action:
Use caution when disabling, retiring, or changing the event action settings of a <Sig ID>
TCP Normalizer signature for a sensor operating in IPS mode. The TCP Normalizer signature
default values are essential for proper operation of the sensor.
If the sensor is seeing duplicate packets, consider assigning the traffic to multiple
virtual sensors. If you are having problems with asymmetric or out-of-order TCP packets,
consider changing the normalizer mode from strict evasion protection to asymmetric mode
protection. Contact Cisco TAC if you require further assistance.
AIP SSM and the Normalizer Engine
The majority of the features in the Normalizer engine are not used on the AIP SSM, because the ASA itself handles the normalization. Packets on the ASA IPS modules go through a special path in the Normalizer that only reassembles fragments and puts packets in the right order for the TCP stream. The Normalizer does not do any of the normalization that is done on an inline IPS appliance, because that causes problems in the way the ASA handles the packets.
The following Normalizer engine signatures are not supported:
•
1300.0
•
1304.0
•
1305.0
•
1307.0
•
1308.0
•
1309.0
•
1311.0
•
1315.0
•
1316.0
•
1317.0
•
1330.0
•
1330.1
•
1330.2
•
1330.9
•
1330.10
•
1330.12
•
1330.14
•
1330.15
•
1330.16
•
1330.17
•
1330.18
Normalizer Engine Parameters
Table B-18 lists the parameters that are specific to the Normalizer engine.
Table B-18 Normalizer Engine Parameters
|
|
Edit Defaults |
Editable signatures. |
Specify Fragment Reassembly Timeout |
(Optional) Enables fragment reassembly timeout. |
Specify Hijack Max Old Ack |
(Optional) Enables hijack-max-old-ack. |
Specify Max Datagram Size |
(Optional) Enables maximum datagram size. |
Specify Max Fragments |
(Optional) Enables maximum fragments. |
Specify Max Fragments per Datagram |
(Optional) Enables maximum fragments per datagram. |
Specify Max Last Fragments |
(Optional) Enables maximum last fragments. |
Specify Max Partial Datagrams |
(Optional) Enables maximum partial datagrams. |
Specify Max Small Frags |
(Optional) Enables maximum small fragments. |
Specify Min Fragment Size |
(Optional) Enables minimum fragment size. |
Specify Service Ports |
(Optional) Enables service ports. |
Specify SYN Flood Max Embryonic |
(Optional) Enables SYN flood maximum embryonic. |
Specify TCP Closed Timeout |
(Optional) Enables TCP closed timeout. |
Specify TCP Embryonic Timeout |
(Optional) Enables TCP embryonic timeout. |
Specify TCP Idle Timeout |
(Optional) Enables TCP idle timeout. |
Specify TCP Max MSS |
(Optional) Enables TCP maximum mss. |
Specify TCP Max Queue |
(Optional) Enables TCP maximum queue. |
Specify TCP Min MSS |
(Optional) Enables TCP minimum mss. |
Specify TCP Option Number |
(Optional) Enables TCP option number. |
For More Information
•
For the procedures for configuring signatures in the Normalizer engine, see Configuring IP Fragment Reassembly Signatures, and Configuring TCP Stream Reassembly Signatures.
•
For more information on the parameters common to all signature engines, see Master Engine.
Service Engines
This section describes the Service engines, and contains the following topics:
•
Understanding Signature Engines
•
Service DNS Engine
•
Service FTP Engine
•
Service Generic Engine
•
Service H225 Engine
•
Service HTTP Engine
•
Service IDENT Engine
•
Service MSRPC Engine
•
Service MSSQL Engine
•
Service NTP Engine
•
Service P2P
•
Service RPC Engine
•
Service SMB Advanced Engine
•
Service SNMP Engine
•
Service SSH Engine
•
Service TNS Engine
Understanding the Service Engine
The Service engines analyze Layer 5+ traffic between two hosts. These are one-to-one signatures that track persistent data. The engines analyze the Layer 5+ payload in a manner similar to the live service.
The Service engines have common characteristics but each engine has specific knowledge of the service that it is inspecting. The Service engines supplement the capabilities of the generic string engine specializing in algorithms where using the string engine is inadequate or undesirable.
Service DNS Engine
The Service DNS engine specializes in advanced DNS decode, which includes anti-evasive techniques, such as following multiple jumps. It has many parameters such as lengths, opcodes, strings, and so forth. The Service DNS engine is a biprotocol inspector operating on both TCP and UDP port 53. It uses the stream for TCP and the quad for UDP.
Table B-19 lists the parameters specific to the Service DNS engine.
Table B-19 Service DNS Engine Parameters
|
|
|
Protocol |
Protocol of interest for this inspector. |
TCP UDP |
Specify query Chaos String |
(Optional) Enables the DNS Query Class Chaos String. |
query-chaos-string |
Specify Query Class |
(Optional) Enables the query class: • Query Class—DNS Query Class 2 Byte Value |
0 to 65535 |
Specify query Invalid Domain Name |
(Optional) Enables query invalid domain name: • Query Invalid Domain Name—DNS Query Length greater than 255 |
Yes | No |
Specify Query Jump Count Exceeded |
(Optional) Enables query jump count exceeded: • Query Jump Count Exceeded—DNS compression counter |
Yes | No |
Specify Query Opcode |
(Optional) Enables query opcode: • Query Opcode—DNS Query Opcode 1 byte Value |
0 to 65535 |
Specify Query Record Data Invalid |
(Optional) Enables query record data invalid: • Query Record Data Invalid—DNS Record Data incomplete |
Yes | No |
Specify Query Record Data Length |
(Optional) Enables the query record data length: • Query Record Data Length—DNS Response Record Data Length |
0 to 65535 |
Specify Query Src Port 53 |
(Optional) Enables the query source port 53: • Query Src Port 53—DNS packet source port 53 |
Yes | No |
Specify Query Stream Length |
(Optional) Enables the query stream length: • Query Record Data Length—DNS Packet Length |
0 to 65535 |
Specify Query Type |
(Optional) Enables the query type: • Query Type—DNS Query Type 2 Byte Value |
0 to 65535 |
Specify Query Value |
(Optional) Enables the query value: • Query Value—Query 0 Response 1 |
Yes | No |
For More Information
For more information on the parameters common to all signature engines, see Master Engine.
Service FTP Engine
The Service FTP engine specializes in FTP port command decode, trapping invalid port commands and the PASV port spoof. It fills in the gaps when the String engine is not appropriate for detection. The parameters are Boolean and map to the various error trap conditions in the port command decode. The Service FTP engine runs on TCP ports 20 and 21. Port 20 is for data and the Service FTP engine does not do any inspection on this. It inspects the control transactions on port 21.
Table B-20 lists the parameters that are specific to the Service FTP engine.
Table B-20 Service FTP Engine Parameters
|
|
|
Direction |
Direction of traffic: • Traffic from service port destined to client port • Traffic from client port destined to service port |
From Service To Service |
FTP Inspection Type |
Type of inspection to perform: • Looks for an invalid address in the FTP port command • Looks for an invalid port in the FTP port command • Looks for the PASV port spoof |
Invalid Address in PORT Command Invalid Port in PORT Command PASV Port Spoof |
Service Ports |
A comma-separated list of ports or port ranges where the target service resides. |
0 to 655351 a-b[,c-d] |
Swap Attacker Victim |
Yes if attacker and victim addresses and ports (source and destination) are swapped in the alert message and actions. No for no swapping (default). |
Yes | No |
For More Information
For more information on the parameters common to all signature engines, see Master Engine.
Service Generic Engine
The Service Generic engine allows programmatic signatures to be issued in a config-file-only signature update. It has a simple machine and assembly language that is defined in the configuration file. It runs the machine code (distilled from the assembly language) through its virtual machine, which processes the instructions and pulls the important pieces of information out of the packet and runs them through the comparisons and operations specified in the machine code. It is intended as a rapid signature response engine to supplement the String and State engines.
New functionality adds the Regex parameter to the Service Generic engine and enhanced instructions. The Service Generic engine can analyze traffic based on the mini-programs that are written to parse the packets. These mini-programs are composed of commands, which dissect the packet and look for certain conditions.
Note
You cannot use the Service Generic engine to create custom signatures.
Caution
Due to the proprietary nature of this complex language, we do not recommend that you edit the Service Generic engine signature parameters other than severity and event action.
Table B-21 lists the parameters specific to the Service Generic engine.
Table B-21 Service Generic Engine Parameters
|
|
|
Specify Dst Port |
(Optional) Enables the destination port: • Dst Port—Destination port of interest for this signature |
0 to 65535 |
Specify IP Protocol |
(Optional) Enables IP protocol: • IP Protocol—The IP protocol this inspector should examine |
0 to 255 |
Specify Payload Source |
(Optional) Enables payload source inspection: • Payload Source—Payload source inspection for the following types: – Inspects ICMP data – Inspects Layer 2 headers – Inspects Layer 3 headers – Inspects Layer 4 headers – Inspects TCP data – Inspects UDP data |
ICMP Data 12 Header 13 Header 14 Header TCP Data UDP Data |
Specify Src Port |
(Optional) Enables the source port: • Src Port—Source port of interest for this signature |
0 to 65535 |
Specify Regex String |
The regular expression to look for when the policy type is regex: • A regular expression to search for in a single TCP packet • (Optional) Enables min match length for use. The minimum length of the Regex match required to constitute a match. |
Regex String Specify Min Match Length |
Swap Attacker Victim |
Yes if attacker and victim addresses and ports (source and destination) are swapped in the alert message and actions. No for no swapping (default). |
Yes | No |
For More Information
For more information on the parameters common to all signature engines, see Master Engine.
Service H225 Engine
The Service H225 engine analyzes H225.0 protocol, which consists of many subprotocols and is part of the H.323 suite. H.323 is a collection of protocols and other standards that together enable conferencing over packet-based networks.
H.225.0 call signaling and status messages are part of the H.323 call setup. Various H.323 entities in a network, such as the gatekeeper and endpoint terminals, run implementations of the H.225.0 protocol stack. The Service H225 engine analyzes H225.0 protocol for attacks on multiple H.323 gatekeepers, VoIP gateways, and endpoint terminals. It provides deep packet inspection for call signaling messages that are exchanged over TCP PDUs. The Service H225 engine analyzes the H.225.0 protocol for invalid H.255.0 messages, and misuse and overflow attacks on various protocol fields in these messages.
H.225.0 call signaling messages are based on Q.931 protocol. The calling endpoint sends a Q.931 setup message to the endpoint that it wants to call, the address of which it procures from the admissions procedure or some lookup means. The called endpoint either accepts the connection by transmitting a Q.931 connect message or rejects the connection. When the H.225.0 connection is established, either the caller or the called endpoint provides an H.245 address, which is used to establish the control protocol (H.245) channel.
Especially important is the SETUP call signaling message because this is the first message exchanged between H.323 entities as part of the call setup. The SETUP message uses many of the commonly found fields in the call signaling messages, and implementations that are exposed to probable attacks will mostly also fail the security checks for the SETUP messages. Therefore, it is highly important to check the H.225.0 SETUP message for validity and enforce checks on the perimeter of the network.
The Service H225 engine has built-in signatures for TPKT validation, Q.931 protocol validation, and ASN.1PER validations for the H225 SETUP message. ASN.1 is a notation for describing data structures. PER uses a different style of encoding. It specializes the encoding based on the data type to generate much more compact representations.
You can tune the Q.931 and TPKT length signatures and you can add and apply granular signatures on specific H.225 protocol fields and apply multiple pattern search signatures of a single field in Q.931 or H.225 protocol.
The Service H225 engine supports the following features:
•
TPKT validation and length check
•
Q.931 information element validation
•
Regular expression signatures on text fields in Q.931 information elements
•
Length checking on Q.931 information elements
•
SETUP message validation
•
ASN.1 PER encode error checks
•
Configuration signatures for fields like ULR-ID, E-mail-ID, h323-id, and so forth for both regular expression and length.
There is a fixed number of TPKT and ASN.1 signatures. You cannot create custom signatures for these types. For TPKT signatures, you should only change the value-range for length signatures. You should not change any parameters for ASN.1. For Q.931 signatures, you can add new regular expression signatures for text fields. For SETUP signatures, you can add signatures for length and regular expression checks on various SETUP message fields.
Table B-22 lists parameters specific to the Service H225 engine.
Table B-22 Service H.225 Engine Parameters
|
|
|
Message Type |
Type of H225 message to which the signature applies: • SETUP • ASN.1-PER • Q.931 • TPKT |
asn.1-per q.931 setup tpkt |
Policy Type |
Type of H225 policy to which the signature applies: • Inspects field length. • Inspects presence. If certain fields are present in the message, an alert is sent. • Inspects regular expressions. • Inspects field validations. • Inspects values. Regex and presence are not valid for TPKT signatures. |
length presence regex validate value |
Specify Field Name |
(Optional) Enables field name for use. Only valid for SETUP and Q.931 message types. Gives a dotted representation of the field name that this signature applies to. • Field Name—Field name to inspect. |
1 to 512 |
Specify Invalid Packet Index |
(Optional) Enables invalid packet index for use for specific errors in ASN, TPKT, and other errors that have fixed mapping. • Invalid Packet Index—Inspection for invalid packet index. |
0 to 255 |
Value Range Regex String |
The regular expression to look for when the policy type is regex. This is never set for TPKT signatures: • A regular expression to search for in a single TCP packet • (Optional) Enables min match length for use. The minimum length of the Regex match required to constitute a match. This is never set for TPKT signatures. |
Regex String Specify Min Match Length |
Specify Value Range |
Valid for the length or value policy types (0x00 to 6535). Not valid for other policy types. • Value Range—Range of values. |
0 to 655351 a-b |
Swap Attacker Victim |
Yes if attacker and victim addresses and ports (source and destination) are swapped in the alert message and actions. No for no swapping (default). |
Yes | No |
For More Information
•
For more information on the parameters common to all signature engines, see Master Engine.
•
For a list of the signature regular expression syntax, see Regular Expression Syntax.
Service HTTP Engine
The Service HTTP engine is a service-specific string-based pattern-matching inspection engine. The HTTP protocol is one of the most commonly used in networks of today. In addition, it requires the most amount of preprocessing time and has the most number of signatures requiring inspection making it critical to the overall performance of the system.
The Service HTTP engine uses a Regex library that can combine multiple patterns into a single pattern-matching table allowing a single search through the data. This engine searches traffic directed to web services only to web services, or HTTP requests. You cannot inspect return traffic with this engine. You can specify separate web ports of interest in each signature in this engine.
HTTP deobfuscation is the process of decoding an HTTP message by normalizing encoded characters to ASCII equivalent characters. It is also known as ASCII normalization.
Before an HTTP packet can be inspected, the data must be deobfuscated or normalized to the same representation that the target system sees when it processes the data. It is ideal to have a customized decoding technique for each host target type, which involves knowing what operating system and web server version is running on the target. The Service HTTP engine has default deobfuscation behavior for the Microsoft IIS web server.
Table B-23 lists the parameters specific the Service HTTP engine.
Table B-23 Service HTTP Engine Parameters
|
|
|
De Obfuscate |
Applies anti-evasive deobfuscation before searching. |
Yes | No |
Max Field Sizes |
Maximum field sizes grouping. |
— |
Specify Max Arg Field Length |
(Optional) Enables maximum argument field length: • Max Arg Field Length—Maximum length of the arguments field. |
0 to 65535 |
Specify Max Header Field Length |
(Optional) Enables maximum header field length: • Max Header Field Length—Maximum length of the header field. |
0 to 65535 |
Specify Max Request Field Length |
(Optional) Enables maximum request field length: • Max Request Field Length—Maximum length of the request field. |
0 to 65535 |
Specify Max URI Field Length |
(Optional) Enables the maximum URI field length: • Max URI Field Length—Maximum length of the URI field. |
0 to 65535 |
Regex |
Regular expression grouping. |
— |
Specify Arg Name Regex |
(Optional) Enables searching the Arguments field for a specific regular expression: • Arg Name Regex—Regular expression to search for in the HTTP Arguments field (after the ? and in the Entity body as defined by Content-Length). |
— |
Specify Header Regex |
(Optional) Enables searching the Header field for a specific regular expression: • Header Regex—Regular Expression to search in the HTTP Header field. The Header is defined after the first CRLF and continues until CRLFCRLF. |
— |
Specify Request Regex |
(Optional) Enables searching the Request field for a specific regular expression: • Request Regex—Regular expression to search in both HTTP URI and HTTP Argument fields. • Specify Min Request Match Length—Enables setting a minimum request match length. |
0 to 65535 |
Specify URI Regex |
(Optional) Regular expression to search in HTTP URI field. The URI field is defined to be after the HTTP method (GET, for example) and before the first CRLF. The regular expression is protected, which means you cannot change the value. |
[/\\][a-zA-Z][a-zA-Z][a-zA-Z][a-zA-Z][a-zA-Z][a-zA-Z][a-zA-Z][.]jpeg |
Service Ports |
A comma-separated list of ports or port ranges where the target service resides. |
0 to 655351 a-b[,c-d] |
Swap Attacker Victim |
Yes if attacker and victim addresses and ports (source and destination) are swapped in the alert message and actions. No for no swapping (default). |
Yes | No |
For More Information
•
For an example Service HTTP custom signature, see Example Service HTTP Signature.
•
For more information on the parameters common to all signature engines, see Master Engine.
•
For a list of the signature regular expression syntax, see Regular Expression Syntax.
Service IDENT Engine
The Service IDENT engine inspects TCP port 113 traffic. It has basic decode and provides parameters to specify length overflows.
For example, when a user or program at computer A makes an ident request of computer B, it may only ask for the identity of users of connections between A and B. The ident server on B listens for connections on TCP port 113. The client at A establishes a connection, then specifies which connection it wants identification for by sending the numbers of the ports on A and B that the connection is using. The server at B determines what user is using that connection, and replies to A with a string that names that user. The Service IDENT engine inspects the TCP port 113 for ident abuse.
Table B-24 lists the parameters specific to the Service IDENT engine.
Table B-24 Service IDENT Engine Parameters
|
|
|
Inspection Type |
Type of inspection to perform: • Has Newline—Inspects payload for a nonterminating new line character. • Has Bad Port—Inspects payload for a bad port. • Payload Size—Inspects for payload length longer than this. |
— |
Service Ports |
A comma-separated list of ports or port ranges where the target service resides. |
0 to 655351 a-b[,c-d] |
Direction |
Direction of the traffic: • Traffic from service port destined to client port. • Traffic from client port destined to service port. |
From Service To Service |
For More Information
For more information on the parameters common to all signature engines, see Master Engine
Service MSRPC Engine
The Service MSRPC engine processes MSRPC packets. MSRPC allows for cooperative processing between multiple computers and their application software in a networked environment. It is a transaction-based protocol, implying that there is a sequence of communications that establish the channel and pass processing requests and replies.
MSRPC is an ISO Layer 5-6 protocol and is layered on top of other transport protocols such as UDP, TCP, and SMB. The MSRPC engine contains facilities to allow for fragmentation and reassembly of the MSRPC PDUs.
This communication channel is the source of recent Windows NT, Windows 2000, and Window XP security vulnerabilities. The Service MSRPC engine only decodes the DCE and RPC protocol for the most common transaction types.
Table B-25 lists the parameters specific to the Service MSRPC engine.
Table B-25 Service MSRPC Engine Parameters
|
|
|
Protocol |
Protocol of interest for this inspector: • Type—UDP or TCP |
TCP UDP |
Specify Flags |
Flags to set: • MSRPC TCP Flags • MSRPC TCP Flags Mask |
Concurrent Execution Did Not Execute First Fragment Last Fragment Maybe Semantics Object UUID Pending Cancel Reserved |
Specify Operation |
(Optional) Enables using MSRPC operation: • Operation—MSRPC operation requested. Required for SMB_COM_TRANSACTION commands. Exact match. |
0 to 65535 |
Swap Attacker Victim |
Yes if attacker and victim addresses and ports (source and destination) are swapped in the alert message and actions. No for no swapping (default). |
Yes | No |
Specify Regex String |
(Optional) Enables using a regular expression string: • Specify Exact Match Offset—Enables the exact match offset: – Exact Match Offset—The exact stream offset the regular expression string must report for a match to be valid. • Specify Min Match Length—Enables the minimum match length: – Min Match Length—Minimum number of bytes the regular expression string must match. |
0 to 65535 |
Specify UUID |
(Optional) Enables UUID: • UUID—MSRPC UUID field |
000001a000000000c000000000000046 |
For More Information
•
For more information on the parameters common to all signature engines, see Master Engine.
•
For a list of the signature regular expression syntax, see Regular Expression Syntax.
Service MSSQL Engine
The Service MSSQL engine inspects the protocol used by the Microsoft SQL server. There is one MSSQL signature. It fires an alert when it detects an attempt to log in to an MSSQL server with the default sa account.
You can add custom signatures based on MSSQL protocol values, such as login username and whether a password was used.
Table B-26 lists the parameters specific to the Service MSSQL engine.
Table B-26 Service MSSQL Engine Parameters
|
|
|
Password Present |
Whether or not a password was used in an MS SQL login. |
Yes | No |
Specify SQL Username |
(Optional) Enables using an SQL username: • SQL Username—Username (exact match) of user logging in to MS SQL service. |
sa |
For More Information
For more information on the parameters common to all signature engines, see Master Engine.
Service NTP Engine
The Service NTP engine inspects NTP protocol. There is one NTP signature, the NTP readvar overflow signature, which fires an alert if a readvar command is seen with NTP data that is too large for the NTP service to capture.
You can tune this signature and create custom signatures based on NTP protocol values, such as mode and size of control packets.
Table B-27 lists the parameters specific to the Service NTP engine.
Table B-27 Service NTP Engine Parameters
|
|
|
Inspection Type |
Type of inspection to perform. |
|
Inspect NTP Packets |
Inspects NTP packets: • Control Opcode—Opcode number of an NTP control packet according to RFC1305, Appendix B. • Max Control Data Size—Maximum allowed amount of data sent in a control packet. • Operation Mode—Mode of operation of the NTP packet per RFC 1305. |
0 to 65535 |
IS Invalid Data Packet |
Looks for invalid NTP data packets. Checks the structure of the NTP data packet to make sure it is the correct size. |
Yes | No |
Is Non NTP Traffic |
Checks for nonNTP packets on an NTP port. |
Yes | No |
For More Information
For more information on the parameters common to all signature engines, see Master Engine.
Service P2P
P2P networks use nodes that can simultaneously function as both client and server for the purpose of file sharing. P2P networks often contain copyrighted material and their use on a corporate network can violate company policy. The Service P2P engine monitors such networks and provides optimized TCP and UDP P2P protocol identification. The Service P2P engine has the following characteristics:
•
Listens on all TCP and UDP ports
•
Increased performance through the use of hard-coded signatures rather than regular expressions
•
Ignores traffic once P2P protocol is identified or after seeing 10 packets without a P2P protocol being identified
Because the P2P signatures are hard coded, the only parameters that you can edit are the Master engine parameters.
For More Information
For more information on the parameters common to all signature engines, see Master Engine.
Service RPC Engine
The Service RPC engine specializes in RPC protocol and has full decode as an anti-evasive strategy. It can handle fragmented messages (one message in several packets) and batch messages (several messages in a single packet).
The RPC portmapper operates on port 111. Regular RPC messages can be on any port greater than 550. RPC sweeps are like TCP port sweeps, except that they only count unique ports when a valid RPC message is sent. RPC also runs on UDP.
Table B-28 lists the parameters specific to the Service RPC engine.
Table B-28 Service RPC Engine Parameters
|
|
|
Direction |
Direction of traffic: • Traffic from service port destined to client port. • Traffic from client port destined to service port. |
From Service To Service |
Protocol |
Protocol of interest. |
TCP UDP |
Service Ports |
A comma-separated list of ports or port ranges where the target service resides. |
0 to 655351 a-b[,c-d] |
Specify Regex String |
(Optional) Enables using a regular expression string: • Specify Exact Match Offset—Enables the exact match offset: – Exact Match Offset—The exact stream offset the regular expression string must report for a match to be valid. • Specify Min Match Length—Enables the minimum match length: – Min Match Length—Minimum number of bytes the regular expression string must match. |
0 to 65535 |
Specify Spoof Src |
(Optional) Enables the spoof source address: • Is Spoof Src—Fires an alert when the source address is 127.0.0.1. |
Yes | No |
Specify Port Map Program |
(Optional) Enables the portmapper program: • Port Map Program—The program number sent to the portmapper for this signature. |
0 to 9999999999 |
Specify RPC Max Length |
(Optional) Enables RPC maximum length: • RPC Max Length—Maximum allowed length of the entire RPC message. Lengths longer than what you specify fire an alert. |
0 to 65535 |
Specify RPC Procedure |
(Optional) Enables RPC procedure: • RPC Procedure—RPC procedure number for this signature. |
0 to 1000000 |
Specify RPC Program |
(Optional) Enables RPC program: • RPC Program—RPC program number for this signature. |
0 to 1000000 |
Swap Attacker Victim |
Yes if attacker and victim addresses and ports (source and destination) are swapped in the alert message and actions. No for no swapping (default). |
Yes | No |
For More Information
•
For more information on the parameters common to all signature engines, see Master Engine.
•
For a list of the signature regular expression syntax, see Regular Expression Syntax.
Service SMB Advanced Engine
Caution
The SMB engine has been replaced by the SMB Advanced engine. Even though the SMB engine is still visible in the IDM, IME, and the CLI, its signatures have been obsoleted; that is, the new signatures have the obsoletes parameter set with the IDs of their corresponding old signatures. Use the new SMB Advanced engine to rewrite any custom signature that were in the SMB engine.
The Service SMB Advanced engine processes Microsoft SMB and Microsoft RPC over SMB packets. The Service SMB Advanced engine uses the same decoding method for connection-oriented MSRPC as the MSRPC engine with the requirement that the MSRPC packet must be over the SMB protocol. The Service SMB Advanced engine supports MSRPC over SMB on TCP ports 139 and 445. It uses a copy of the connection-oriented DCS/RPC code from the MSRPC engine.
Table B-29 lists the parameters specific to the Service SMB Advanced engine.
Table B-29 Service SMB Advanced Engine Parameters
|
|
|
Service Ports |
A comma-separated list of ports or port ranges where the target service resides. |
0 to 65535 a-b[,c-d] 1 |
Specify Command |
(Optional) Enables SMB commands: • Command—SMB command value; exact match required; defines the SMB packet type.2 |
0 to 255 |
Specify Direction |
(Optional) Enables traffic direction: • Direction—Lets you specify the direction of traffic: – from-service—Traffic from service port destined to client port. – to-service—Traffic from client port destined to service port. |
from service to service |
Specify Operation |
(Optional) Enables MSRPC over SMB: • MSRPC Over SMB Operation—Required for SMB_COM_TRANSACTION commands, exact match required. |
0 to 65535 |
Specify Regex String |
(Optional) Enables searching for regex strings: • Regex String—A regular expression to search for in a single TCP packet. |
|
Specify Exact Match Offset |
(Optional) Enables exact match offset: • Exact Match Offset—The exact stream offset the Regex string must report a match to be valid. |
|
Specify Min Match Length |
(Optional) Enables minimum match length: • Min Match Length—Minimum number of bytes the Regex string must match. |
|
Specify Payload Source |
(Optional) Enables payload source: • Payload Source—Payload source inspection.3 |
|
Specify Scan Interval |
(Optional) Enables scan interval: • Scan Interval—The interval in seconds used to calculate alert rates. |
1 to 131071 |
Specify TCP Flags |
(Optional) Enables TCP flags: • MSRPC TCP Flags • MSRPC TCP Flags Mask |
• concurrent execution • did not execute • first fragment • last fragment • maybe • object UUID • pending cancel • reserved |
Specify Type |
(Optional) Enables type of MSRPC over SMB packet: • Type—Type field of MSRPC over SMB packet |
• 0 = Request • 2 = Response • 11 = Bind • 12 = Bind Ack |
Specify UUID |
(Optional) Enables MSRPC over UUID: • UUID—MSRPC UUID field |
32-character string composed of hexadecimal characters 0-9, a-f, A-F. |
Specify Hit Count |
(Optional) Enables hit counting: • Hit Count—The threshold number of occurrences in scan-interval to fire alerts. |
1 to 65535 |
Swap Attacker Victim |
Yes if attacker and victim addresses and ports (source and destination) are swapped in the alert message and actions. No for no swapping (default). |
Yes | No |
For More Information
•
For more information on the parameters common to all signature engines, see Master Engine.
•
For a list of the signature regular expression syntax, see Regular Expression Syntax.
Service SNMP Engine
The Service SNMP engine inspects all SNMP packets destined for port 161. You can tune SNMP signatures and create custom SNMP signatures based on specific community names and object identifiers.
Instead of using string comparison or regular expression operations to match the community name and object identifier, all comparisons are made using the integers to speed up the protocol decode and reduce storage requirements.
Table B-30 lists the parameters specific to the Service SNMP engine.
Table B-30 Service SNMP Engine Parameters
|
|
|
Inspection Type |
Type of inspection to perform. |
— |
Brute Force Inspection |
Inspects for brute force attempts: • Bruce Force Count—The number of unique SNMP community names that constitute a brute force attempt. |
0 to 65535 |
Invalid Packet Inspection |
Inspects for SNMP protocol violations. |
— |
Non SNMP Traffic Inspection |
Inspects for non-SNMP traffic destined for UDP port 161. |
— |
SNMP Inspection |
Inspects SNMP traffic: • Specify Community Name [yes | no]: – Community Name—Searches for the SNMP community name, that is, the SNMP password. • Specify Object ID [yes | no]: – Object ID—Searches for the SNMP object identifier. |
community-name object-id |
For More Information
For more information on the parameters common to all signature engines, see Master Engine.
Service SSH Engine
The Service SSH engine specializes in port 22 SSH traffic. Because all but the setup of an SSH session is encrypted, the engine only looks at the fields in the setup. There are two default signatures for SSH. You can tune these signatures, but you cannot create custom signatures.
Table B-31 lists the parameters specific to the Service SSH engine.
Table B-31 Service SSH Engine Parameters
|
|
|
SSH Version |
|
|
Length Type |
Inspects for one of the following SSH length types: • Key Length—Length of the SSH key to inspect for: – Length—Keys larger than this fire the RSAREF overflow. • User Length—User length SSH inspection: – Length—Keys larger than this fire the RSAREF overflow. |
0 to 65535 |
Service Ports |
A comma-separated list of ports or port ranges where the target service resides. |
0 to 655351 a-b[,c-d] |
Specify Packet Depth |
(Optional) Enables packet depth: • Packet Depth—Number of packets to watch before determining the session key was missed. |
0 to 65535 |
For More Information
For more information on the parameters common to all signature engines, see Master Engine.
Service TNS Engine
The Service TNS engine inspects TNS protocol. TNS provides database applications with a single common interface to all industry-standard network protocols. With TNS, applications can connect to other database applications across networks with different protocols. The default TNS listener port is TCP 1521. TNS also supports REDIRECT frames that redirect the client to another host and/or another TCP port. To support REDIRECT packets, the TNS engine listens on all TCP ports and has a quick TNS frame header validation routine to ignore non-TNS streams.
Table B-32 lists the parameters specific to the Service TNS engine.
Table B-32 Service TNS Engine Parameters
|
|
|
Direction |
Direction of traffic: • Traffic from service port destined to client port • Traffic from client port destined to service port |
From Service To Service |
Type Frame Type |
Specifies the TNS frame value type: • 1—Connect • 2—Accept • 4—Refuse • 5—Redirect • 6—Data • 11—Resend • 12—Marker |
1 2 4 5 6 11 12 |
Specify Regex String |
(Optional) Enables using a regular expression string: • Specify Exact Match Offset—Enables the exact match offset: – Exact Match Offset—The exact stream offset the regular expression string must report for a match to be valid. • Specify Min Match Length—Enables the minimum match length: – Min Match Length—Minimum number of bytes the regular expression string must match. |
0 to 65535 |
Specify Regex Payload Source |
Specifies which protocol to inspect: Payload Source: • TCP Data—Performs Regex over the data portion of the TCP packet. • TNS Data—Performs Regex only over the TNS data (with all white space removed). |
TCP TNS |
For More Information
•
For more information on the parameters common to all signature engines, see Master Engine.
•
For a list of the signature regular expression syntax, see Regular Expression Syntax.
State Engine
The State engine provides state-based regular expression-based pattern inspection of TCP streams. A state engine is a device that stores the state of something and at a given time can operate on input to transition from one state to another and/or cause an action or output to take place. State machines are used to describe a specific event that causes an output or alert. There are three state machines in the State engine: SMTP, Cisco Login, and LPR Format String.
Table B-33 lists the parameters specific to the State engine.
Table B-33 State Engine Parameters
|
|
|
State Machine |
State machine grouping. |
• SMPT • LPR Format String • Cisco Login |
Cisco Login |
Specifies the state machine for Cisco login: • State Name—Name of the state required before the signature fires an alert: – Cisco device state – Control-C state – Password prompt state – Start state |
• Cisco Device • Control C • Pass Prompt • Start Cisco |
LPR Format String |
Specifies the state machine to inspect for the LPR format string vulnerability: • State Name—Name of the state required before the signature fires an alert: – Abort state to end LPR Format String inspection – Format character state – State state |
• Abort • Format Char • Start |
State Name |
Specifies the state machine for the SMTP protocol: • State Name—Name of the state required before the signature fires an alert: – Abort state to end LPR Format String inspection – Mail body state – Mail header state – SMTP commands state – Start state |
• Abort • Mail Body • Mail Header • SMPT Commands • Start Abort |
Direction |
Direction of the traffic: • Traffic from service port destined to client port. • Traffic from client port destined to service port. |
From Service To Service |
Service Ports |
A comma-separated list of ports or port ranges where the target service resides. |
0 to 655351 a-b[,c-d] |
Specify Exact Match Offset |
(Optional) Enables exact match offset: • Exact Match Offset—The exact stream offset the regular expression string must report for a match to be valid. |
0 to 65535 |
Specify Max Match Offset |
(Optional) Enables maximum match offset: • Max Match Offset—The maximum stream offset the regular expression string must report for a match to be valid. |
0 to 65535 |
Specify Min Match Offset |
(Optional) Enables minimum match offset: • Min Match Offset—The minimum stream offset the regular expression string must report for a match to be valid. |
0 to 65535 |
Specify Min Match Length |
(Optional) Enables minimum match length: • Min Match Length—Minimum number of bytes the regular expression string must match. |
0 to 65535 |
Swap Attacker Victim |
Yes if attacker and victim addresses and ports (source and destination) are swapped in the alert message and actions. No for no swapping (default). |
Yes | No |
For More Information
For more information on the parameters common to all signature engines, see Master Engine.
String Engines
This section describes the String engine, and contains the following topics:
•
Understanding String Engines
•
String ICMP Engine Parameters
•
String TCP Engine Parameters
•
String UDP Engine Parameters
Understanding String Engines
The String engine is a generic-based pattern-matching inspection engine for ICMP, TCP, and UDP protocols. The String engine uses a regular expression engine that can combine multiple patterns into a single pattern-matching table allowing for a single search through the data. There are three String engines: String ICMP, String TCP, and String UDP.
String ICMP Engine Parameters
Table B-34 lists the parameters specific to the String ICMP engine.
Table B-34 String ICMP Engine Parameters
|
|
|
Direction |
Direction of the traffic: • Traffic from service port destined to client port. • Traffic from client port destined to service port. |
From Service To Service |
ICMP Type |
ICMP header TYPE value. |
0 to 181 a-b[,c-d] |
Specify Exact Match Offset |
(Optional) Enables exact match offset: • Exact Match Offset—The exact stream offset the regular expression string must report for a match to be valid. |
0 to 65535 |
Specify Min Match Length |
(Optional) Enables minimum match length: • Min Match Length—Minimum number of bytes the regular expression string must match. |
0 to 65535 |
Swap Attacker Victim |
Yes if attacker and victim addresses and ports (source and destination) are swapped in the alert message and actions. No for no swapping (default). |
Yes | No |
For More Information
•
For an example custom String engine signature, see Example String TCP Signature.
•
For more information on the parameters common to all signature engines, see Master Engine.
String TCP Engine Parameters
Table B-35 lists the parameters specific to the String TCP engine.
Table B-35 String TCP Engine
|
|
|
Direction |
Direction of the traffic: • Traffic from service port destined to client port. • Traffic from client port destined to service port. |
From Service To Service |
Service Ports |
A comma-separated list of ports or port ranges where the target service resides. |
0 to 655351 a-b[,c-d] |
Specify Exact Match Offset |
(Optional) Enables exact match offset: • Exact Match Offset—The exact stream offset the regular expression string must report for a match to be valid. |
0 to 65535 |
Specify Min Match Length |
(Optional) Enables minimum match length: • Min Match Length—Minimum number of bytes the regular expression string must match. |
0 to 65535 |
Strip Telnet Options |
Strips the Telnet option characters from the data before the pattern is searched.2 |
Yes | No |
Swap Attacker Victim |
Yes if attacker and victim addresses and ports (source and destination) are swapped in the alert message and actions. No for no swapping (default). |
Yes | No |
For More Information
•
For an example custom String engine signature, see Example String TCP Signature.
•
For more information on the parameters common to all signature engines, see Master Engine.
String UDP Engine Parameters
Table B-36 lists the parameters specific to the String UDP engine.
Table B-36 String UDP Engine
|
|
|
Direction |
Direction of the traffic: • Traffic from service port destined to client port. • Traffic from client port destined to service port. |
From Service To Service |
Service Ports |
A comma-separated list of ports or port ranges where the target service resides. |
0 to 655351 a-b[,c-d] |
Specify Exact Match Offset |
(Optional) Enables exact match offset: • Exact Match Offset—The exact stream offset the regular expression string must report for a match to be valid. |
0 to 65535 |
Specify Min Match Length |
(Optional) Enables minimum match length: • Min Match Length—Minimum number of bytes the regular expression string must match. |
0 to 65535 |
Swap Attacker Victim |
Yes if attacker and victim addresses and ports (source and destination) are swapped in the alert message and actions. No for no swapping (default). |
Yes | No |
For More Information
•
For an example custom String engine signature, see Example String TCP Signature.
•
For more information on the parameters common to all signature engines, see Master Engine.
Sweep Engines
This section describes the Sweep engines, and contains the following topics:
•
Sweep Engine
•
Sweep Other TCP Engine
Sweep Engine
The Sweep engine analyzes traffic between two hosts or from one host to many hosts. You can tune the existing signatures or create custom signatures. The Sweep engine has protocol-specific parameters for ICMP, UDP, and TCP.
The alert conditions of the Sweep engine ultimately depend on the count of the unique parameter. The unique parameter is the threshold number of distinct hosts or ports depending on the type of sweep. The unique parameter triggers the alert when more than the unique number of ports or hosts is seen on the address set within the time period. The processing of unique port and host tracking is called counting.
Caution
Event action filters based on source and destination IP addresses do not function for the Sweep engine, because they do not filter as regular signatures. To filter source and destination IP addresses in sweep alerts, use the source and destination IP address filter parameters in the Sweep engine signatures.
A unique parameter must be specified for all signatures in the Sweep engine. A limit of 2 through 40 (inclusive) is enforced on the sweeps. 2 is the absolute minimum for a sweep, otherwise, it is not a sweep (of one host or port). 40 is a practical maximum that must be enforced so that the sweep does not consume excess memory. More realistic values for unique range between 5 and 15.
TCP sweeps must have a TCP flag and mask specified to determine which sweep inspector slot in which to count the distinct connections. The ICMP sweeps must have an ICMP type specified to discriminate among the various types of ICMP packets.
Data Node
When an activity related to Sweep engine signatures is seen, the IPS uses a data node to determine when it should stop monitoring for a particular host. The data node contains various persistent counters and variables needed for cross-packet reassembly of streams and for tracking the inspection state on a per-stream/per-source/per-destination basis The data node containing the sweep determines when the sweep should expire. The data node stops a sweep when the data node has not seen any traffic for x number of seconds (depending on the protocol).
There are several adaptive timeouts for the data nodes. The data node expires after 30 seconds of idle time on the address set after all of the contained objects have been removed. Each contained object has various timeouts, for example, TCP Stream has a one-hour timeout for established connections. Most other objects have a much shorter expiration time, such as 5 or 60 seconds.
Table B-37 lists the parameters specific to the Sweep engine.
Table B-37 Sweep Engine Parameters
|
|
|
Destination Address Filter |
Destination IP address to exclude from the sweep counting algorithm. |
<A.B.C.D>- <A.B.C.D> [,<A.B.C.D>- <A.B.C.D>] |
Source Address Filter |
Source IP address to exclude from the sweep counting algorithm. |
<A.B.C.D>- <A.B.C.D> [,<A.B.C.D>- <A.B.C.D>] |
Protocol |
Protocol of interest for this inspector. |
• ICMP • UDP • TCP |
Specify ICMP Type |
(Optional) Enables inspection of the ICMP header type: • ICMP Type—Specifies the ICMP header TYPE value. |
0 to 255 |
Specify Port Range |
(Optional) Enables using a port range for inspection: • Port Range—UDP port range used in inspection. |
0 to 65535 a-b[,c-d] |
Fragment Status |
Specifies whether fragments are wanted or not: • Any fragment status. • Do not inspect fragments. • Inspect fragments. |
• Any • No Fragment • Want Fragment |
Inverted Sweep |
Uses source port instead of destination port for unique counting. |
Yes | No |
Mask |
Mask used in TCP flags comparison: • URG bit • ACK bit • PSH bit • RST bit • SYN bit • FIN bit |
• URG • ACK • PSH • RST • SYN • FIN |
Storage Key |
Type of address key used to store persistent data: • Attacker address • Attacker and victim addresses • Attacker address and victim port |
Axxx AxBx Axxb |
Suppress Reverse |
Does not fire when a sweep has fired in the reverse direction on this address set. |
Yes | No |
Swap Attacker Victim |
Yes if attacker and victim addresses and ports (source and destination) are swapped in the alert message and actions. No for no swapping (default). |
Yes | No |
TCP Flags |
TCP flags to match when masked by mask: • URG bit • ACK bit • PSH bit • RST bit • SYN bit • FIN bit |
• URG • ACK • PSH • RST • SYN • FIN |
Unique |
Threshold number of unique port connections between the two hosts. |
0 to 65535 |
For More Information
For more information on the parameters common to all signature engines, see Master Engine.
Sweep Other TCP Engine
The Sweep Other TCP engine analyzes traffic between two hosts looking for abnormal packets typically used to fingerprint a victim. You can tune the existing signatures or create custom signatures.
TCP sweeps must have a TCP flag and mask specified. You can specify multiple entries in the set of TCP flags. And you can specify an optional port range to filter out certain packets.
Table B-38 lists the parameters specific to the Sweep Other TCP engine.
Table B-38 Sweep Other TCP Engine Parameters
|
|
|
Specify Port Range |
(Optional) Enables using a port range for inspection: • Port Range—UDP port range used in inspection. |
0 to 65535 a-b[,c-d] |
Set TCP Flags |
Lets you set TCP flags to match. • TCP Flags—TCP flags used in this inspection: – URG bit – ACK bit – PSH bit – RST bit – SYN bit – FIN bit |
• URG • ACK • PSH • RST • SYN • FIN |
For More Information
For more information on the parameters common to all signature engines, see Master Engine.
Traffic Anomaly Engine
The Traffic Anomaly engine contains nine anomaly detection signatures covering the three protocols (TCP, UDP, and other). Each signature has two subsignatures, one for the scanner and the other for the worm-infected host (or a scanner under worm attack). When anomaly detection discovers an anomaly, it triggers an alert for these signatures. All anomaly detection signatures are enabled by default and the alert severity for each one is set to high.
When a scanner is detected but no histogram anomaly occurred, the scanner signature fires for that attacker (scanner) IP address. If the histogram signature is triggered, the attacker addresses that are doing the scanning each trigger the worm signature (instead of the scanner signature). The alert details state which threshold is being used for the worm detection now that the histogram has been triggered.
From that point on, all scanners are detected as worm-infected hosts.
The following anomaly detection event actions are possible:
•
Produce alert—Writes the event to the Event Store.
•
Deny attacker inline—(Inline only) Does not transmit this packet and future packets originating from the attacker address for a specified period of time.
•
Log attacker pairs—Starts IP logging for packets that contain the attacker address.
•
Log pair packets—Starts IP logging for packets that contain the attacker and victim address pair.
•
Deny attacker service pair inline—Blocks the source IP address and the destination port.
•
Request SNMP trap—Sends a request to NotificationApp to perform SNMP notification.
•
Request block host—Sends a request to ARC to block this host (the attacker).
Note
You can edit or tune anomaly detection signatures but you cannot create custom anomaly detection signatures.
Table 39 lists the anomaly detection worm signatures.
Table 39 Anomaly Detection Worm Signatures
|
|
|
|
13000 |
0 |
Internal TCP Scanner |
Identified a single scanner over a TCP protocol in the internal zone. |
13000 |
1 |
Internal TCP Scanner |
Identified a worm attack over a TCP protocol in the internal zone; the TCP histogram threshold was crossed and a scanner over a TCP protocol was identified. |
13001 |
0 |
Internal UDP Scanner |
Identified a single scanner over a UDP protocol in the internal zone. |
13001 |
1 |
Internal UDP Scanner |
Identified a worm attack over a UDP protocol in the internal zone; the UDP histogram threshold was crossed and a scanner over a UDP protocol was identified. |
13002 |
0 |
Internal Other Scanner |
Identified a single scanner over an Other protocol in the internal zone. |
13002 |
1 |
Internal Other Scanner |
Identified a worm attack over an Other protocol in the internal zone; the Other histogram threshold was crossed and a scanner over an Other protocol was identified. |
13003 |
0 |
External TCP Scanner |
Identified a single scanner over a TCP protocol in the external zone. |
13003 |
1 |
External TCP Scanner |
Identified a worm attack over a TCP protocol in the external zone; the TCP histogram threshold was crossed and a scanner over a TCP protocol was identified. |
13004 |
0 |
External UDP Scanner |
Identified a single scanner over a UDP protocol in the external zone. |
13004 |
1 |
External UDP Scanner |
Identified a worm attack over a UDP protocol in the external zone; the UDP histogram threshold was crossed and a scanner over a UDP protocol was identified. |
13005 |
0 |
External Other Scanner |
Identified a single scanner over an Other protocol in the external zone. |
13005 |
1 |
External Other Scanner |
Identified a worm attack over an Other protocol in the external zone; the Other histogram threshold was crossed and a scanner over an Other protocol was identified. |
13006 |
0 |
Illegal TCP Scanner |
Identified a single scanner over a TCP protocol in the illegal zone. |
13006 |
1 |
Illegal TCP Scanner |
Identified a worm attack over a TCP protocol in the illegal zone; the TCP histogram threshold was crossed and a scanner over a TCP protocol was identified. |
13007 |
0 |
Illegal UDP Scanner |
Identified a single scanner over a UDP protocol in the illegal zone. |
13007 |
1 |
Illegal UDP Scanner |
Identified a worm attack over a UDP protocol in the illegal zone; the UDP histogram threshold was crossed and a scanner over a UDP protocol was identified. |
13008 |
0 |
Illegal Other Scanner |
Identified a single scanner over an Other protocol in the illegal zone. |
13008 |
1 |
Illegal Other Scanner |
Identified a worm attack over an Other protocol in the illegal zone; the Other histogram threshold was crossed and a scanner over an Other protocol was identified. |
For More Information
•
For more information on the parameters common to all signature engines, see Master Engine.
•
For more information on anomaly detection, see Chapter 10 "Configuring Anomaly Detections."
Traffic ICMP Engine
The Traffic ICMP engine analyzes nonstandard protocols, such as TFN2K, LOKI, and DDoS. There are only two signatures (based on the LOKI protocol) with user-configurable parameters.
TFN2K is the newer version of the TFN. It is a DDoS agent that is used to control coordinated attacks by infected computers (zombies) to target a single computer (or domain) with bogus traffic floods from hundreds or thousands of unknown attacking hosts. TFN2K sends randomized packet header information, but it has two discriminators that can be used to define signatures. One is whether the L3 checksum is incorrect and the other is whether the character 64 `A' is found at the end of the payload. TFN2K can run on any port and can communicate with ICMP, TCP, UDP, or a combination of these protocols.
LOKI is a type of back door Trojan. When the computer is infected, the malicious code creates an ICMP Tunnel that can be used to send small payload in ICMP replies (which may go straight through a firewall if it is not configured to block ICMP.) The LOKI signatures look for an imbalance of ICMP echo requests to replies and simple ICMP code and payload discriminators.
The DDoS category (excluding TFN2K) targets ICMP-based DDoS agents. The main tools used here are TFN and Stacheldraht. They are similar in operation to TFN2K, but rely on ICMP only and have fixed commands: integers and strings.
Table B-40 lists the parameters specific to the Traffic ICMP engine.
Table B-40 Traffic ICMP Engine Parameters
|
|
|
Parameter Tunable Sig |
Whether this signature has configurable parameters. |
Yes | No |
Inspection Type |
Type of inspection to perform: • Inspects for original LOKI traffic. • Inspects for modified LOKI traffic. |
Is Loki Is Mod Loki |
Reply Ratio |
Inbalance of replies to requests. The alert fires when there are this many more replies than requests. |
0 to 65535 |
Want Request |
Requires an ECHO REQUEST be seen before firing the alert. |
Yes | No |
For More Information
For more information on the parameters common to all signature engines, see Master Engine.
Trojan Engines
The Trojan engines analyze nonstandard protocols, such as BO2K and TFN2K. There are three Trojan engines: Trojan BO2K, TrojanTFN2K, and Trojan UDP.
BO was the original Windows back door Trojan that ran over UDP only. It was soon superseded by BO2K. BO2K supported UDP and TCP both with basic XOR encryption. They have plain BO headers that have certain cross-packet characteristics.
BO2K also has a stealthy TCP module that was designed to encrypt the BO header and make the cross-packet patterns nearly unrecognizable. The UDP modes of BO and BO2K are handled by the Trojan UDP engine. The TCP modes are handled by the Trojan BO2K engine.
Note
There are no specific parameters to the Trojan engines, except for Swap Attacker Victim in the Trojan UDP engine.
For More Information
For more information on the parameters common to all signature engines, see Master Engine.