Detecting Network Anomalies with NetFlow

IntroductionThe war in Iraq and the War onprobes, but lack of them can process big
Terror have changed the focus of all threetraffic volume (e.g. 10TB/hour). We decided to
levels of government. Federal, state and localuse netflow data export (NDE) that is
government - all three arewidely available on most high-end routers for
seeking better ways to protect themselves, theiruser tracking and real time data flow
equipment and data whileanalysis. Netflow brings transparent view what is
working amid pressure-filled and dangeroushappening in your network. There are
situations. Of course, securityseveral methods how to detect if "your"
has been the buzzword on Capitol Hill for somenetwork is under attack.
time, but generally speaking, physical security tookPacket size distribution. Many short packets
initial priority, followed by outer system protection(more than 60%) may signify suspicious traffic.
through intrusion detection and patchMany connections from single host to
management. Security at the application levelconsiderable destinations.
hasn't happened yet and is really the most critical.Using reserved or private IP address on the
Attacks are becoming more sophisticated thanInternet.
worms or even viruses, and can shut down entireExcessive number of ICMP messages.
systems.There are a lot of ways to monitor andIn the latest version of Caligare Flow Inspector
analyze your network traffic and protect itsoftware there is implemented packet
from Internet intrusions. Organizations commonlydistribution statistic. In our company we are using
use a firewall for network protection.small honey pot network (without any
Although firewall logs often provide a hugereal stations) for attack analyzing. You can use
information regarding intrusion attempts,the following steps to locate the source
sometimes might be of too much data to sortof the problem and some tips on how to filter
through when there is a problem yoususpicious traffic.Finding infected stations in your
cannot resolve it quickly. Some organizations alsonetwork
use intrusion detection systems (IDS)NetFlow Inspector software is the ideal tool for
on border routers to analyze incoming traffic fordetecting worm sources (infected stations)
patterns that indicate specificin your network. Trends menu may be used for
problems. But firewall or intrusion detectionthis type of analysis. The following example
system is used primarily on bordersgives you information on how to find infected
with the Internet, rather than on internalstations in your local network.Log into Caligare
networks. This is one of reason whyFlow Inspector and run the following steps:
Cisco's NetFlow came to the rescue.Netflow
OverviewSelect collector that stores netflow data exports
Netflow is a traffic monitoring and analyzing(in our case: router R01).
technology developed by Darren KerrIn the table selector choose current hourly table.
and Barry Bruins at Cisco Systems. NetflowSelect statistic: source host distributions.
describes the method for a routerSet source interface (Gigabit Ethernet 1/1).
and/or intelligent switch to export statistics aboutSet destination interface (not Gigabit Ethernet 1
the data flow, and this1).
built-in feature is found on most Cisco routers (Run search query.
as well asAfter displaying source host distributions you can
Juniper ( Extreme Networks (view top ten source IP addresses
Riverstone ( etc. NetFlow technologysorted by number of used unique destination IP
provides the data necessary to effectivelyaddresses. These source
analyze trend and baseline applicationIP addresses are candidates on the infected
data as it passes through the network. It canstations.Check result and select possible infected
then be exported to a reportingstations (infected station pool more than
package and can provide the information500 unique destinations in most cases). Ignore
necessary to manage critical businessyour servers that are normally heavy
applications.What is Netflow?used. Web or application servers normally
Netflow is defined as a unidirectional sequence ofgenerate many connections to many
packets between a given sourcedestinations.Write top 5 sources to notebook and
and destination which means there will be twothen continue to infected station confirmation
flows for each connection session,step.
one from the server to client, one from theFor each candidate IP address run the following
client to server. In order toquery:
distinguish flows from one another, the source
and destination addresses,Set statistic: destination ports by packet.
protocol and port numbers are used. The TypeSource IP address:
of Service and source inputRun search query.
interface index are also used to uniquely identifyCheck destination ports that are in use by
the flow to which a packetpotentially infected station. In most case
belongs. A flow is determined to have ended(when station is infected) you will see some of
when it has been idle for a specifiedfollowing ports: netbios (137, 138, 139),
length of time, when it has become older than amicrosoft-ds (445), ms-sql-s (1433), www (80,
specified age (30 minutes by3128) etc (see picture 4).Now, is a good time to
default) or when the flow is a TCP connection aconsider if your candidate is infected or not.
FIN or RST has been sent. TheDecision is
router may expire flows more aggressively if ityours, because only you know "your" network
is running out of cache space.A number of routerand servers. If a station opens more
vendors have implemented their version ofthan 500 unique destination connections to port
netflow, but version1433, this seems like very
5 is now the most common. For a NDE versionsuspicious activity.How to find out who attacked
5, every single UDP packet containsmy network?
one flow header and thirty flow records atThe infected station tries to open a
maximum. Every flow record is made upconnection to all the servers in your network.
of several base fields and the rest which include:You can simply locate this attack
next hop address, outputby finding the source host that is trying to open
interface number, number of packets in the flow,a connection to various
total bytes in the flow, sourcedestinations in your local network.Check caption
and destination AS number, source and"Finding worm sources in your network" and how
destination network length and TCP flagsto find these source
(cumulative OR of TCP flags).What is Caligarehosts. Sophisticated worm sources do NOT pool
Flow Inspector?your whole network, but instead
Caligare Flow Inspector (randomly or pseudo-randomly try to open from
is a unique network software solution fortime to time a single host connection.
companies,Locating these attackers is difficult but NOT
who need to plan, build, maintain and manageimpossible! You can use TCP flags and
their network and at the same timeICMP tracking. When the attacker tries to open
keep their network more secure and efficient.the TCP connection to an unused
Caligare Flow Inspector is adestination IP address the TCP SYN flag is set. If
web-based bandwidth monitoring tool that usesthe connection is successful
NetFlow data export to provideyou will see cumulative TCP flags SYN and ACK,
detailed traffic statistics that help answer who,if the connection is unsuccessful
what, when, where of bandwidthyou will see only flows with SYN flag. You can
usage.CFI software was engineered to create acount the unsuccessful connections
secure network-monitoring platformfor every source IP address outside your
based on industry standards that will fit yournetwork and source, the one with the most
existing security policies.of connections found is your attacker candidate.
The results are the ability to monitor in real time,If attacker is using UDP protocol
significantly reducingand pools your whole network, an excessive
the time it takes to identify problem andnumber of ICMP messages will then be
troubleshoot. CFI keeps track ofgenerated.How to find out who attacked me?
what is happening in your corporate network,If you suspect (or know) that your station is
detecting attacks, and warningvictim to an attack, then you probably
you of problematic network users. All informationwant to know who is the attacker. Locating the
about network activitiesattacker is simple if source IP address
are archived in a central database.Baselineis NOT spoofed. Select "Trends" menu and use
Analysis"Source host by packet" statistic. Type in
A baseline analysis is a model describing whatyour IP address (victim) into destination host field
"normal" network activity isand run search query. Result is a
according to some historical traffic pattern; anylist of source hosts who communicated with you
other traffic that fallssorted by number of packets. Often the
outside the scope of this traffic pattern will befirst host located is the attacker. In case source
flagged as malicious.IP address is spoofed (often used
A trend analysis reportsreserved or private IP address) you can only
is the most common and basic method of doinglocate source interface through that
flow-basedmalicious traffic going into your station. You can
analysis. In netflow analysis is main focus onnot filter this attacker if he uses
records that have some "specialrandom source IP address, you can only contact
high traffic volume" attribute, especially the valueprovider or your ISP peer operator.Protection and
of those flow fields thatPrevention
deviate significantly from an established historicalYou can use many protection mechanisms, these
baseline. Normally thereare widely available through access
are two ways to make use of baseline analysislists on Cisco routers.
methods: top sessions and top data.Top sessions
A top sessions means a single host tries to openCreate new access list: ip access-list extended
an abnormally high volume ofAdd block rule: deny ip any
connections to a single node or block of nodes.Repeat step 2 for each attacker
The most reasons for thesePermit any other traffic
activities are worms, denial of service attacksCheck access list rules: show ip access-list
and network scans.Common clients connecting toApply access list on source interface: ip
the Internet should keep a relatively normalaccess-group in
connectionExample:
frequency. But if a host is infected with a worm,configure terminal
it will absolutely act different.ip access-list extended block_attackerdeny ip
It will mostly open a huge number of connections10.0.0.0 0.255.255.255 anydeny ip 192.168.0.0
to the destination for its attemptsto infect the0.0.255.255 anydeny ip 80.95.102.33 0.0.0.0
next batch of victims.anypermit ip any anypermit pim any anypermit
For the same reason, when a lesser-skilled "scriptigmp any anyexit
kiddies" is scanning a large blockinterface GigabitEthernet 1/1ip access-group
of addresses for certain vulnerable services, weblock_attacker inexit
will see especially high volumeBe very careful before updating access list! On
sessions sent out by that single IP address.Wemany routers the default rule is drop
can also use top sessions method to detectany traffic if access list exists. We recommend
many kinds of network abuses, such asremoving access list from interface then
checking the flow records for port 25 connectioncreating a new access list and reassign it to
requests sent out by every singleinterface. On picture 3 is the result of
host in real time. In a given duration, for anyapplying access list on our router R01 that was
host, if the statistics of port 25applied at 10:03.Summary
requests are above a 'normal' value, it could beThis attack detection manual has discussed the
considered to be a spammer or someoneflow-based analysis of malicious traffic
infected with some kinds of email worm. It wouldand abnormal activities. With top sessions and top
be better for the Internet as a wholedata methods, network administrators
if service providers started using this technologycan simply detect network anomalies in real time
and shut down the spammers uponmore effectively. There is no universal
detection.Top data streamsprocess on how to find source of attack, but
A second method of using baseline analysis is topwith Caligare Flow Inspector software we may
data. This can be defined as a largemake your corporate network run better.Full
amount of network data transferred in a certainstory with images and examples is on the:
period of time from a single host to adelivers the most intelligent and secure networking
single destination or block of destinations.The Topsolutions in the industry,
hosts that transfer traffic data to or from theand we back the program with our commitment
outside in an enterprise shouldto making our partners successful. We measure
be ranked into relatively fixed groups. If thissuccess in terms of customer satisfaction, as
pattern changes, and a new host suddenlywell as partner profitability. Caligare is
appears in the Top hosts matrix, an alert shouldproviding the Linux based software, to provide a
be triggered.How to find out if I am beingsolution that dramatically reduces the
attacked?cost of providing security, for the midsize and
Traffic inspection and analysis is a very complexlarge businesses or agencies. Our goal
problem. On the market there are manyis to help our customers get an efficient
tools as IDS, network traffic dump or networksoftware tool at a reasonable price.