Home > Articles > Cisco Certification > CCNP > CCNP Security IPS 642-627 Official Cert Guide: Network IPS Traffic Analysis Methods, Evasion Possibilities, and Anti-evasive Countermeasures

CCNP Security IPS 642-627 Official Cert Guide: Network IPS Traffic Analysis Methods, Evasion Possibilities, and Anti-evasive Countermeasures

  • Date: Jul 18, 2011.

Article Description

This chapter covers the various methods used for traffic analysis using a network IPS sensor, the various evasion techniques used by attackers to bypass detection & filtering while understanding the benefits and limitations of each method to assess the risk of evasion, and the various countermeasures, tools, and choosing the best approach based on the methods used by attackers.
Foundation Topics

Foundation Topics

Network IPS Traffic Analysis Methods

There are a number of different aspects a network IPS sensor analyzes network traffic. Some of the most common methods of network analysis are listed below:

  • Stateful Content Matching.
  • Protocol Decoding.
  • Traffic Correlation.
  • Rate Analysis
  • Packet Header Matching
  • Packet Content Matching
  • Statistical Modeling
  • Event Correlation

Stateful Content Matching

The Cisco IPS sensor will fully reassemble a transport-layer session between network endpoints to extract a stream of bytes exchanged through an application session. Using this stream of bytes, the sensor can perform more reliable matching when searching for payload data across the entire session, even if the content is split across many packets.

The sensor reassembles different pieces of data depending on the OSI Layer:

  • OSI Layer 3, the sensor reassembles the fragmented IP packets.
  • OSI Layer 4, the sensor reassembles the TCP session in the correct manner relying on sequence numbers to correctly sequence data; UDP session reassembly may relay on some application-layer UDP sequencing to extract the correct byte stream.

Stateful content matching improves quality of detection and doesn't allow attackers to easily evade the sensor using packet fragmentation and segmentation. This method is more demanding of the sensor, as the sensor must perform real-time in-memory buffering of application data. The sensor can be instructed to only look into one portion of the byte stream (for example, only the first 100 bytes) to increase performance. This can lead to false negatives if the attacker is able to send malicious data later in the session, outside the inspection window. The sensor still does not fully understand the application-layer protocol and content, thus administrators may see false positives as the content the sensor is looking for may appear in many different contexts in the application stream (for example, a user may be visiting a web page that contains certain malicious sequences inside a textual description, where they pose no harm), possibly causing the sensor to act on legitimate or non-harmful traffic.

Protocol Decoding

The most granular method of analysis is protocol decoding, where the sensor takes an extra step, and parses the application-layer protocol from a reassembled byte stream provided by the stateful transport-layer reassembly routines. The quality of detection is improved by this method in the following three ways:

  • It improves performance, as the sensor needs to examine less traffic after it has decoded it.
  • The sensor can perform protocol verification, and reject protocol messages that do not conform to the standard behavior of the protocol. The sensor can detect or prevent both known and yet-unknown attacks which violate protocol standards (for example, buffer overflows which send too much data to a host, violating maximum lengths set forth in protocol standards).
  • It lowers false positives by providing context in which the sensor needs to look for suspicious or malicious patterns. For example, instead of searching through the entire TCP session's byte stream the sensor can now search for malicious HTTP URLs exactly in the part of the HTTP request where the URL is located. This increases the accuracy of the sensor ensuring it won't make a wrong decision by finding offending content in the wrong context.

Traffic Correlation

A network IPS sensor sees a large amount of flows from different network endpoints, thus they have the advantage of being able to correlate packets of multiple network conversations. Suspicious or malicious activity can be identified via the network IPS sensors correlating different packets and determining their common properties.

IPS sensors use these real-time correlation abilities mainly to detect network reconnaissance attacks, where attackers send many packets to few or many other hosts in order to determine their reachability, the presence of specific applications, or to enumerate all exposed network services offered by an endpoint. Worms use similar scanning techniques to find other systems to spread to, and can be detected and stopped using the same correlation mechanisms on the network IPS sensors.

One fundamental limitation of packet correlation is that it takes a while before the sensor classifies and correlates packets to determine if these packets constitute an interesting event. Until this threshold is met, all previous packets will already be on the way to their destination, thus cannot be dropped or captured.

A good example of such correlation would be a network sensor detecting more than 10 different connection request packets from a single host, to multiple other hosts, on the same TCP destination ports, within 60 second. This may indicate that a host is performing a service scan of the network.

Rate Analysis

A network IPS has the ability to analyze network traffic to monitor the rate of packets of a particular protocol, the rate of packets between host pairs, the connection rates, or the rate of application-layer requests and messages. This capability is referred to as rate analysis. These rate monitors work using a set of thresholds that determine maximum expected for normal network operation. The thresholds can be set manually by the administrator, or pre-configured using the IPS vendor. Denial-of-service attacks often use flooding at various levels of the OSI model, thus they can be detected using these mechanisms.

An example of rate analysis is an IPS sensor configured to monitor UDP traffic rate between the attacker and the target host. The threshold for traffic rate is at 150 packets per second. Once this threshold is met or exceeded, the sensor will then alarm and act according (results may vary depending on what actions or alarming threshold are configured).

Packet Header Matching

The simplest method of traffic analysis of individual packets' headers to address suspicious or malicious activity can be determined by only analyzing a packet's header. For example, an anomalous combination of TCP flags in a TCP segment.

This method of analysis is used to:

  • Provide basic identification of network connections made by malware, or accepted by malware-infested PCs. A Trojan horse program that allows remote control of a system. The sensor can identify these connections based on the well-known transport-layer ports these malware applications use. Identification of this nature is prone to errors as there are some applications that may be legitimately using these ports.
  • Detect malformed packets of OSI Layers 2-4 by performing low-level protocol verification of these protocols. Attackers can and often do use these malformed packets to crash protected systems or network devices by exploiting bugs in their TCP-IP stacks or packet forwarding functions.

Packet Content Matching

Another method of analysis uses basic examination of packet payloads for each individual packet. The sensor uses this to:

  • Improve its identification of malware connections, if these connections use some well-known payload data patterns that can be identified in individual packets.
  • Detect unwanted applications in the network, such as messaging or gaming applications that use ports of standard applications.
  • Detect known application-layer attacks that are embedded in the packet payloads, by looking for a specific sequence of payload bytes.

Attackers often evade this method of analysis simply by spreading the characteristic or "signature" of suspicious or malicious traffic over two or more packets, thus bypassing this analysis since the sensor or examining each packet individually.

This method of analysis often causes false positives as legitimate traffic may contain the same traffic pattern, so given the sensor doesn't understand the context in which the payload will appear it will trigger an event or act in error.

Statistical Modeling

A network IPS sensor may be able to use an analysis technique and supervised learning to build a statistical model that describes certain traffic properties. Some examples may be traffic patterns, traffic rates, traffic composition, traffic intervals, etc. This method typically aligns to the anomaly-based approach, which allows the sensor to detect any known or yet-unknown attacks that violate the learned "normal" behavior. Denial-of-service and similar flooding-based attacks are often detected by sensors using this approach. This approach is prone to higher rates of false positives in networks that cannot be adequately described with a statistical model. If an administrator is trying to address specific issues similar to reconnaissance detection problems this method of analysis can work well with almost no false positives.

Typically management stations and tools scan the network legitimately opening up several sessions a minute to different hosts, but often work-infected servers or PCs try to open a much larger number of sessions. An IPS sensor would detect such anomalies and identify a worm attack.

Event Correlation

Finally, in addition to packet correlation the last method of analysis allows the sensor to provide event correlation where it correlates multiple detected events to present higher-level, consolidated information to the administrator, and possibly automatically act on such higher-level information using preventive actions.

Event correlation on the sensor is beneficial in detecting composite attacks more reliably. A composite attack usually consists of multiple individual events or attacks. The sensor is required to see multiple components of the attack in order to recognize it as an attack. This increases the reliability and confidence required to deploy preventive aggressive actions, and provides more information about the network activity to the administrator.

Unlike other methods, the limitation isn't with false reporting but performance degradation. The sensor isn't able to use very long time windows in which to correlate events, thus an attacker may be able to evade detection if the attacker performed an attack in a slow sequence, at the expense of attack efficiency. While this may be the case individual components of the attack are still likely to be detected or prevented.

3. Network IPS Evasion Techniques | 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