Home > Articles > Cisco Network Technology > General Networking > Building Cisco IDS 3.0(3) Custom Signatures

Building Cisco IDS 3.0(3) Custom Signatures

  • Article is provided courtesy of Cisco Press.
  • Date: Feb 15, 2002.

Article Description

When using a signature-based Intrusion Detection System (IDS), keeping signature definitions up to date is crucial to maintaining optimum protection of your network resources. Earl Carter discusses building Cisco IDS 3.0(3) custom signatures in this timely article.

Like this article? We recommend

Cisco Secure Intrusion Detection System

Cisco Secure Intrusion Detection System

$50.00

Engine Parameters

All of the Cisco IDS signatures are specified in textual form in two different configuration files. One configuration file contains the definition for all the system-defined signatures. This configuration file is shipped with Cisco IDS. There is also another user configuration file. This file contains the definitions for all the custom user-defined signatures, as well as any tuning changes that you have applied to the system signatures.

The valid parameters for a signature are divided into parameters that are valid for all signatures (known as Master Parameters) and other parameters that are valid only for specific signature engines (known as Engine Specific Parameters). Several engine-specific parameters have been covered in the descriptions for the different types of signature engines (for a complete listing of the engine specific parameters refer to "Cisco Intrusion Detection System Signature Engines Version 3.0"). The Master Parameters will be covered in the following section.

Master Parameters

Each signature for every signature engine shares the following master parameters:

  • AlarmThrottle
  • ChokeThreshold
  • LimitSummary
  • AlarmInterval
  • FlipAddr
  • MinHits
  • SigComment
  • SIGID and SubSig
  • SigStringInfo
  • ThrottleInterval
  • WantFrag

When creating any custom signatures, you need to know how to configure these parameters so that your signatures will operate correctly and reduce their overall impact on the operation of your Cisco IDS.

AlarmThrottle

The AlarmThrottle is actually composed of four different values that affect that number of alarms generated by a specific signature. By correctly configuring this parameter, you can reduce the ability of an attacker to consume the resources of your IDS by flooding it with attacks. The values that you can specify for the AlarmThrottle parameter are as follows:

  • FireOnce
  • FireAll
  • Summarize
  • GlobalSummarize

AlarmThrottle FireOnce enables you to create signatures that will only trigger one time for a specific set of addresses. After firing once, the signature will not fire on that same set of addresses until a preset period of time has expired.

Configuring a signature with the AlarmThrottle FireAll causes the Cisco IDS to trigger an alarm for all activity that matches the signature's characteristics. This is effectively the opposite of configuring a signature to fire only once using the AlarmThrottle FireOnce parameter.

You also have two summarization options. Whenever you specify a summarization option, you will receive one normal alarm at the beginning of the summarization period and one SUMMARY alarm per ThrottleInterval for as long as the summarization remains valid. The summarization remains valid until a defined quiescent period has elapsed. Furthermore, the purpose of summarization options is to reduce the processing impact on the IDS by reducing the number of alarms that it needs to manage, thereby making it more difficult for an attacker to perform a DoS attack with multiple alarms.

When using alarm summarization, the first instance of the intrusive activity triggers a normal alarm. Then, other instances of the same alarm (between the same address combination) are counted up until the end of the signature's ThrottleInterval. At the end of the signature's ThrottleInterval a SUMMARY alarm is sent, indicating the count of alarms that occurred during the ThrottleInterval. The difference between the two different summarization modes is that AlarmThrottle GlobalSummarize consolidates all address combinations instead of consolidating only a single address pair. As long as the summary mode remains active, Cisco IDS generates only one SUMMARY alarm per ThrottleInterval for the specific signature.

In conjunction with the basic alarm processing modes, you can also specify signatures to operate in one of the following three modes of operation:

  • Variable summary mode
  • Limited summary mode
  • Sliding window interval mode

ChokeThreshold

The variable summary modes are controlled by the ChokeThreshold parameter. This parameter enables you to configure a signature to automatically switch between AlarmThrottle modes, based on the number of alarms detected per throttle interval for a specific signature.

To use the ChokeThreshold, you start by configuring a value for the ChokeThreshold (a value of ANY disables variable summary mode). Then you assign to the signature one of the AlarmThrottle modes (FireAll, Summarize, or GlobalSummarize). When the rate of alarms generated exceeds the ChokeThreshold rate, the signature automatically switches to the next higher summarization mode. If you start with AlarmThrottle FireAll, then after ChokeThreshold alarms are detected in one throttle interval, the mode switches to AlarmThrottle Summarize. If the number of alarms detected exceeds twice the ChokeThreshold rate, the mode switches to AlarmThrottle GlobalSummarize. Summarization remains in effect until the end of the throttle interval, at which time the signature reverts back to its original summarization technique (normally FireAll).

LimitSummary

Limited summary mode is controlled by the LimitSummary parameter. To enable this parameter, you specify a value of TRUE. Basically, this parameter disables the FireOnce and Summarize AlarmThottle modes, which forces the signature to use either FireAll or GlobalSummarize. You normally configure the LimitSummary option on signatures that do not store state information, such as Atomic signatures. You can still use the variable summary with these alarms, but they will only cycle between FireAll and GlobalSummarize.

AlarmInterval

The final signature mode that you can utilize uses a Sliding Window Mode. All the other modes are based on a fixed window (ThrottleInterval) for determining alarm counts. This window counts only the alarms detected in each throttle interval time slot, and each new interval starts at the end of the previous interval (there is no overlap). For some signatures, you may want a higher degree of fidelity. You may want to know if a certain number of alarms occur within a defined window, regardless of where the window starts in the alarm stream. To determine this information, the window for counting alarms needs to move or slide as time progresses.

To define an alarm to use a sliding window interval, you need to use the AlarmInterval parameter to define your window size and the MinHits parameter to set the minimum number of alarms that must occur within the window to trigger the alarm. When using the Sliding Window Mode, Cisco IDS essentially creates another new window each time it sees an alarm. If any of these windows exceeds the MinHits value before its AlarmInterval has expired, then an alarm is triggered. Additionally, to use the AlarmInterval parameter, your signature definition is constrained by the following requirements:

  • You must specify a MinHits value greater than or equal to 2.
  • You must set your ChokeThreshold to ANY.
  • Your AlarmThrottle must be set to FireAll.

FlipAddr

When an alarm is fired, the destination address is usually the victim, and the source address is usually the attacker. This information is stored into an alarm record. The source address of the alarm record is treated as the attacker. In some instances, however, the situation is actually reversed, and the destination of the packet is actually the attacker. This occurs when the Cisco IDS is triggering on return traffic from the host being attacked. In these cases, you can use the FlipAddr parameter to reverse the addresses so that the source address of the alarm becomes the actual attacker, instead of the host being attacked.

MinHits

Sometimes, you do not want a specific signature to generate an alarm unless the signature fires multiple times. You can use the MinHits parameter to define the minimum number of occurrences of a signature that must be detected before an alarm is generated. This can be especially useful when you are looking for specific string signatures, such as Login incorrect. By placing a minimum threshold, you can reduce your number of false positives significantly.

SigComment

The SigComment parameter simply enables you to supply descriptive information about the signature. The information, however, is not included in the actual alarm message, but it can be used to document the signatures in the user configuration file.

SIGID and SubSig

For each signature, the combination of the SignatureID and the SubSignatureID must be unique. You use the SIGID and SubSig parameters to identify your custom signatures (system signatures are also identified with these parameters). SIGID parameters in the range of 20,000—50,000 are reserved for your custom alarm signatures. It is recommended, however, that you do not use the SubSig parameter in your custom signatures.

SigStringInfo

The SigStringInfo parameter enables you define textual information that appears in the actual alarm message. Using this field, you can provide some descriptive information to the alarms generated. This descriptive information is easier to understand than remembering what SIGID XXXX means.

ThrottleInterval

The ThrottleInterval parameter is used in conjunction with the AlarmThrottle parameters. It defines the length of time, in seconds, over which certain events must occur.

WantFrag

You use the WantFrag parameter to specify whether a signature examines fragmented packets when checking for traffic that matches the signature's characteristics. You control how a signature treats fragmented packets via three different keywords: TRUE, FALSE, and ANY. TRUE is used to inspect only fragmented IP packets or packets that were reassembled when determining whether a specific signature needs to fire. The FALSE option causes the signature to only inspect packets that are not fragmented when determining whether the signature should fire. Finally, the ANY option informs the signature engine to examine all packets for the given signature when determining whether it should fire.

Sample Signatures

Understanding how to create custom signatures is probably best covered through some actual examples. Once you create a couple of your own signatures, adding other custom signatures becomes easier and easier.

The first sample signature that we will examine is based on the ATOMIC.ICMP signature engine:

Engine ATOMIC.ICMP 30000 IcmpType 0 IcmpSeq 11 AlarmThrottle 
_____GlobalSummarize ThrottleInterval 5

This signature generates a regular alarm when an ICMP packet with an ICMP header sequence value of 11 is detected on the network. Then, at the end of the ThrottleInterval (five seconds for this example), a SUMMARY alarm is generated, indicating the total number of times that the signature fired during this interval period. Summary alarms continue to be generated (one every five seconds) as long as summarization is active. Summarization remains active until no traffic matching this signature is seen for five seconds (the length of the ThrottleInterval).

Our next example is a slightly more complicated example based on the ATOMIC.L3.IP signature engine:

Engine ATOMIC.L3.IP SIGID 40000 IpProto 6
_____RecordOfInternalAddress 192.70.81.0 255.255.255.0
_____RecordOfExcludedPattern 40000 * * *
_____RecordOfIncludedPattern 40000 * 10.2.1/24 IN

This example demonstrates a signature that triggers when a TCP packet (IP Protocol 6) is sent from the 10.2.1.0 network to your protected network (192.70.81.0). This signature uses the RecordOfExcludedPattern, the RecordOfIncludedPattern, and the RecordOfInternalAddress parameters to define the appropriate addresses that this signature should apply to. The RecordOfInternalAddress parameter defines your internal network address space. The RecordOfExcludedPattern and RecordOfIncludedPattern parameters both accept four fields: SIGID, SubsigID, Source Address, and Destination Address. The RecordOfExcludedPattern line excludes all address combinations from firing on SIGID 40000 (with any SubsigID). Then, the RecordOfIncludedPattern includes the following address combinations for SIGID 40000 (with any SubsigID):

  • Source Address—Any address on class C network 10.2.1.0.
  • Destination Address—The IN keyword specifies any internal address.

Our last sample signature demonstrates how you can configure a custom signature to watch for a flood of specific packets on your network. To create a signature to detect a flood of traffic on your network first requires you to determine the amount of traffic that occurs during routine network operations. Normally, it is difficult to obtain this information because it varies from network to network. Therefore, you can run a FLOOD signature in diagnostic mode to actually monitor the amount of traffic on your network, and report this information in alarm messages.

Suppose you want to determine the normal amount of ICMP traffic on your network. You could use the following custom signature:

Engine FLOOD.NET SIGID 35000 IcmpType 0 Rate 0 Peaks 5 Gap 5

Using a rate of 0 places the signature in diagnostic mode. It monitors the network, and provides you with one alarm per ThrottleInterval, indicating the maximum packets-per-second during that interval. This information is presented in the alarm's details string.

After examining the alarms over a period of time, you can determine what the normal level of traffic is on your network. Then you can change the signature into an actual working signature by specifying a rate that indicates abnormal activity. Suppose your analysis indicates that your network normally has 10 ICMP packets/second. You can then create the following signature:

Engine FLOOD.NET SIGID 35000 IcmpType 0 Rate 50 Peaks 2 Gap 5

This signature fires if the number of ICMP packets on your network exceeds 50 ICMP packets/second for more than two seconds (the Peaks parameter) without a gap of five seconds (the Gap parameter).

3. Creating Custom Signatures | Next Section Previous Section

Cisco Press Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Cisco Press and its family of brands. I can unsubscribe at any time.

Overview

Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Cisco Press products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information

To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@ciscopress.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information

Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security

Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children

This site is not directed to children under the age of 13.

Marketing

Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information

If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out

Users can always make an informed choice as to whether they should proceed with certain services offered by Cisco Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.ciscopress.com/u.aspx.

Sale of Personal Information

Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents

California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure

Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links

This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact

Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice

We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020