Skip Links

Network World

Brad Reese

Network behavior analysis and DoS attacks

By Brad Reese on Thu, 09/11/08 - 9:45pm.

Welcome to the final blog in a three-part series on network behavior analysis through the eyes of Plixer International.

You may also wish to review the first installment:

Intrusion detection systems vs. network behavior analysis: Which do you need?

As well as the second installment:

NetFlow analytics vs. network behavior analysis

Michael PattersonFor this third and final blog, Plixer CEO Michael Patterson answers nine questions regarding attack strategies that crackers are using to harm networks and whether network behavior analysis can be useful in combating these attacks.

1. What exactly is a DoS Attack?

A denial-of-service attack (DoS attack) is an attempt to make a computer resource unavailable to its intended users.

Although the means to, motives for and targets of a DoS attack may vary, it generally comprises the concerted, malevolent efforts of a person or persons to prevent an Internet site or service from functioning efficiently or at all, temporarily or indefinitely. Collections of compromised systems used in some types of DDoS attacks are known as botnets.

Stachledraht DDos Attack

----------------------------------------

2. How would you describe a Botnet?

A Botnet is a collection of software robots, or bots, which run autonomously and automatically. They run on groups of "zombie" computers controlled remotely by crackers. This can also refer to the network of computers using distributed computing software.

----------------------------------------

3. Can you explain a Peer-to-peer DDoS?

Yes, attackers have found a way to exploit a number of bugs in peer-to-peer servers to initiate DDoS attacks. The most aggressive of these peer-to-peer-DDoS attacks exploits DC++. Peer-to-peer attacks are different from regular botnet-based attacks. With peer-to-peer there is no botnet and the attacker doesn't have to communicate with the clients it subverts. Instead, the attacker acts as a 'puppet master,' instructing clients of large peer-to-peer file sharing hubs to disconnect from their peer-to-peer network and to connect to the victim’s website instead. As a result, several thousand computers may aggressively try to connect to a target website. While a typical web server can handle a few hundred connections/sec before performance begins to degrade, most web servers fail almost instantly under five or six thousand connections/sec.

----------------------------------------

4. Can NetFlow be used to identify worm propagations?

Well, not usually. Traditional DDoS worm propagations can easily be identified using signatures. Using these, an application compares bits to the data field of each packet. In most NetFlow collection environments today, the data field is not available.

Cisco IOS NetFlow Infrastructure

Cisco IOS NetFlow Infrastructure

Flexible NetFlow isn’t widely available, but it does allow a trigger to initiate an immediate cache which will actually capture the first several hundred bytes of each packet. The capture could then be fed to a packet analyzer or Intrusion Detection System (IDS). However, there is a problem with this immediate cache idea: there often isn’t enough information available in NetFlow v5 or v9 to detect many worm propagations, so vendors will have to be creative on how and when to trigger an immediate cache with Flexible NetFlow. This is still up in the air.

Cisco IOS Flexible NetFlow Flow Monitors and Collection of the Export Data

Cisco IOS Flexible NetFlow Flow Monitors and Collection of the Export Data

----------------------------------------

5. What about sFlow?

This sampling technology is usually setup to capture 1 in every 100 or 1000 packets per interface of a switch. Finer samples can be configured (e.g. every other packet with Foundry), however, the packet volume created can quickly overwhelm most collectors. Due to its sampling nature, some feel that sFlow is inherently not as useful as NetFlow for many IP based Network Behavior Analysis algorithms. One might suggest connecting sFlow switches to a NetFlow probe to extend the investment.

----------------------------------------

6. What can be done with today’s NetFlow technology to find out which end systems are slowly spreading the infection?

In short, Version 5, the most popular version of NetFlow provides TCP flags which are useful to identify a DDoS attack once it is underway but, catching the actual propagation of the bot can be very difficult with NetFlow without some type of Flow Analytics.

----------------------------------------

7. What are TCP Flags?

This is kind of a big question and I suggest that you read Yiming Gong’s article.

To summarize, a three-way handshake that starts a normal TCP connection involves:

First a client will send a SYN packet to the destination host
Then destination host sends back a SYN/ACK packet
The client acknowledges the destination host's acknowledgment
A connection is established

The figure below illustrates this handshake:

Illustrates This Handshake

For example, let's say a SYN packet arrives at the destination port of a host. If the port is open, the SYN request sent from the worm will be responded to. This is regardless of whether or not the service running on that port is vulnerable. Then the standard TCP three-way handshake will be completed and subsequent packets carrying other TCP flags such as PUSH and ACK will be followed.

One way a DDoS attack is identified using NetFlow v5 is by:

Searching through the collected flow records and filtering out all flow records that have only the SYN bit set
Extracting the source IP addresses of every flow record
Counting the occurrence of every unique IP
Then sorting the records by the number of counts for each one

Following the above process, a suitable list of potentials is generated. A threshold can be set depending on the network size and traffic volume. Hosts whose counters are above the threshold can be considered potentially malicious. Again, this is not the only way to identify a DDoS attack.

----------------------------------------

8. What is Plixer doing to help companies recognize bad behaviors?

We released a Flow Analytics tool which watches flow patterns. Patterns are accumulated and anomalies trigger an indicator called the Concern Index (CI). As more algorithms trigger on the same host, the Concern Index value increases.

Flow Analytics Screenshot

Flow Analytics Screenshot

Hosts with a higher concern index or count can trigger alarms and ultimately require attention from the network administrator.

----------------------------------------

9. Is it true that nothing can stop the Storm Worm?

From what I have read, nothing today can detect the proliferation of the Storm Worm. Storm's delivery mechanism changes regularly. It started out as PDF spam, then its programmers started using e-cards and YouTube invites -- anything to entice users to click on a phony link. Storm also started posting blog-comment spam, again trying to trick viewers into clicking infected links. While these sorts of things are pretty standard worm tactics, it does highlight how Storm is constantly shifting at all levels.

Storm maintains two types of infected hosts "command and control" and "workers". They all communicate using a P2P (Peer to Peer) network like BitTorrent increasing the difficulty to track and shut down. The C2 (command and control) hosts just sit and wait and they keep track of 20-30 worker hosts each. These infected hosts generate almost no traffic and use a "fast-flux" DNS system to keep security people guessing. Storm also rewrites itself to keep Antivirus software from identifying it. Nobody has figured out how to consistently identify this virus. Storm runs as a root kit on your host so you can’t easily see it and uses almost no CPU or memory. Scary!

What’s worse, if you sense something is wrong and perform a security scan on a suspect host, it could notify the botnet and DDOS your network! There are potentially 20 million hosts infected, waiting for instructions to attack and nobody knows how to stop it. The only way to vaguely identify the traffic is to look deep inside the P2P packet. If that is encrypted, suspicions rise.


How do you believe network behavior analysis can be used more effectively in combating network attacks?

Contact Brad Reese
http://www.BradReese.Com

Search 31,427 Cisco Job Openings

Post Cisco Network Engineer Jobs

View 1,595 items of Refurbished Cisco

Examine CCIE Resumes

Consider 697 Cisco Certified
Network Engineer Resumes

  
Brad's Favorite Top 5 Picks
# 1. Cisco Tools
# 2. Cisco vs. Competitor Lab Tests
# 3. Cisco Engineering Support Directory
# 4. Cisco Repair and Hardware Troubleshooting
# 5. Cisco Product Quick Reference Guides, CPQRGs
Brad Reese on Cisco Story Archives Brad Reese on Cisco Story Archives

Cisco Jobs

Cisco Resumes

2008 Cisco Salary Rates

Nine Year Worldwide CCIE Count

  

more info

0

Hi Michael,

Where can I learn more about this stuff beyond wikipedia? Can you recommend a book?

Thanks

Good stuff - a few comments.

0

It's actually possible to infer a great deal of behavior from the layer-4 NetFlow telemetry, including network worm propagation, and even things like email-borne virus/malware propagation, in many cases (network-based worms are generally passe, these days, as layer-7 mechanisms have become the propagation vector of choice).

In terms of identifying botted hosts, NetFlow analysis can in many cases be used to do this via looking at abnormal behavior, and even spotting C&C traffic.

I've a presentation on network telmetry, including NetFlow-based anomaly-detection, available here:

http://homepage.mac.com/roland.dobbins/FileSharing5.html

There's a pretty good treatment in this Cisco Press book, as well (available in hardcopy, Amazon Kindle, and Adobe Reader formats):

http://www.ciscopress.com/bookstore/product.asp?isbn=1587053365

more information

0

Hello,

A good book on NBA might be out there but, I'm not aware of it. Most of my education has come from dozens of great articles on the internet and of course wikipedia. Some of my replies were taken in part from articles like these:

http://securityreason.com/about_securityalert/
http://www.port80software.com/products/serverdefender/iiswebapplicationsfirewalls
http://www.wired.com/politics/security/commentary/securitymatters/2007/10/securitymatters_1004
http://www.guardian.co.uk/business/2007/oct/21/1

If you want a demonstration of how our software can detect or even stop some of these threats, contact us at:
http://www.plixer.com/support/eval_support_request.php

Thank You,

Mike at plixer.com

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Welcome, visitor. Register Log in
About Brad Reese on Cisco

Brad Reese cofounded BradReese.Com Cisco Refurbished, which enables affordable Cisco networks globally by assuring customer satisfaction with guaranteed one year warranties on both Cisco Repair as well as Refurbished Cisco.

Don't be shy, contact Brad Reese online or call him Toll Free:

866-864-0506

International callers may wish to call Brad by dialing:

850-364-4115

Archives
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
Categories
Allan Sulkin - founder and president of enterprise communications systems and applications consultancy - TEQConsult Group
Careers
Chambers and his Board of Dirctors urged Cisco shareholders to vote NO
China networking marketplace
Christian Brothers Investment Services notice
Cisco
Cisco TelePresence
Cisco TelePresence revenue
Cisco Unified Communications Support for Microsoft Windows 7
Cisco engineer - Kevin Murphy
Cisco has now become the target of unflattering employee reviews
Cisco is warning Unified Communications customers about NOT successfully offering support for Microsoft Windows 7
Cisco is well known as being one of the best companies to work for
Cisco stock chart for the last 10 years
Cisco will have no liability for any delay in delivery
Cisco's 1st Quarter Other Product Revenue By Fiscal Year
Cisco's F1Q10 earnings call
Cisco's Form 10-Q
Cisco's new Stock Incentive Plan as amended and restated
Cisco's upcoming annual stockholder's meeting
Daniel Berg - Skype's CTO
Data Center
Dave Donatelli - HP executive vice president and general manager of enterprise servers and networking
FNF
Father of SIP - Jonathan Rosenberg
Financial windfall for Cisco shareholders
Flexible NetFlow
Flip video camcorder
Flip video camcorder revenue
Gilbert Public School's $3.5 million network upgrade to HP
Gilbert Public Schools Board President - Thad Stump
Gilbert Public Schools assistant superintendent - Barb VeNard
Glassdoor.com is financially backed by 2 of the leading Silicon Valley venture capital firms - Benchmark Capital and Sutter Hill Ventures
HP also bid on the project
HP purchasing 3Com
HP's Converged Infrastructure strategy
HP's acquisition of 3Com
John Chambers has had some good paydays as the CEO of Cisco
LANs / WANs
Microsoft
NBAD
NetFlow
NetFlow add-ons
Network Behavior Anomaly Detection
Network Management
Popular online career and workplace community - Glassdoor.com
ProCurve ONE alliance
Proposal submitted by Christian Brothers Investment Services
Proxy resolution during Cisco's annual meeting
Rosenberg is now Skype's Chief Technology Strategist
SMB
Say on executive pay
Security
Skills and abilities of Skype CTO Daniel Berg
Skype announced Roseberg jumped ship from Cisco
Skype's Chief Technology Strategist - responsible for Skype's overall architecture and technology strategy
So how does one verify that Glassdoor's information is really from Cisco employees?
Software
Superintendent Dave Allison
TelePresence revenue
VoIP / Convergence
When Cisco used its common stock to buy Linksys and Pure Digital
Who's right about Cisco's work environment - Fortune or Glassdoor?
Windows 7
Windows 7 just not worth an all-out urgent effort by Cisco to support
Wireless / Mobile
On The Web
Twitter