Security 101 Big Ip Asm and Ips Differences Defined
Security 101 Big Ip Asm and Ips Differences Defined
White Paper
by Peter Silva
WHITE PAPER
®
Introduction
As they endeavor to secure their systems from malicious intrusion attempts, many
companies face the same decision: whether to use a web application firewall (WAF)
or an intrusion detection or prevention system (IDS/IPS). But this notion that only
one or the other is the solution is faulty. Attacks occur at different layers of the OSI
model and they often penetrate multiple layers of either the stack or the actual
system infrastructure. Attacks are also evolving—what once was only a network
layer attack has shifted into a multi-layer network and application attack. For
example, malicious intruders may start with a network-based attack, like denial of
service (DoS), and once that takes hold, quickly launch another wave of attacks
targeted at layer 7 (the application).
Ultimately, this should not be an either/or discussion. Sound security means not
only providing the best security at one layer, but at all layers. Otherwise
organizations have a closed gate with no fence around it.
Soon, rather than analyzing audit/system logs, Network System Monitor devices
started to analyze network traffic to look for deviations in the baseline patterns.
These improvements then lead to the first commercially available IDS. Throughout
the 1990s, IDSs quickly improved and matured. The Automated Security Incident
Measurement IDS, developed by the U.S. Air Force, incorporated both software-and
hardware-based solutions. Toward the end of the 90s, host-based solutions and
network routers with built-in detection capabilities had emerged.
The late 90s also saw the development of intrusion prevention systems. Initially,
detecting anomalies was a huge task but as the technology matured, it became
possible to not only detect, but prevent intrusions in real time. This is the entire
concept behind intrusion detection—finding and stopping attacks in real time.
Some products could stop or “kill” traffic based on specific patterns and in 1998,
Snort, an open source packet sniffer and logger, became available. This enabled IT 1
administrators to test and begin to understand the concept of intrusion detection.
Soon, rather than analyzing audit/system logs, Network System Monitor devices
started to analyze network traffic to look for deviations in the baseline patterns.
These improvements then lead to the first commercially available IDS. Throughout
the 1990s,
WHITE IDSs quickly improved and matured. The Automated Security Incident
PAPER
®
Measurement IDS, developed
Security 101: BIG-IP ASM andbyIPS
theDifferences
U.S. Air Force, incorporated both software-and
Defined
hardware-based solutions. Toward the end of the 90s, host-based solutions and
network routers with built-in detection capabilities had emerged.
The late 90s also saw the development of intrusion prevention systems. Initially,
detecting anomalies was a huge task but as the technology matured, it became
possible to not only detect, but prevent intrusions in real time. This is the entire
concept behind intrusion detection—finding and stopping attacks in real time.
Some products could stop or “kill” traffic based on specific patterns and in 1998,
Snort, an open source packet sniffer and logger, became available. This enabled IT
administrators to test and begin to understand the concept of intrusion detection.
The next generation of IPSs could intercept files and network activity, then make
associations with application state and policy rules to make real-time policy
decisions based on that activity. IDSs detect and control malicious network traffic
akin to packet sniffers; IPSs add to that the ability to prevent malicious attacks like
worms, viruses, and Trojans. Most IDSs and IPSs rely on a signature database of
known attacks or vulnerabilities, along with malicious “fingerprints” or abnormal
packet activity that may signify malicious activity. IDSs and IPSs also monitor
protocol deviations in some cases.
IDS/IPS Deployments
Often, IDS and IPS devices are deployed as perimeter defense mechanisms, with an
IPS placed in line to monitor network traffic as packets pass through. The IPS tries
to match data in the packets to data in a signature database, and it may look for
anomalies in the traffic. IPSs can also take action based on what it has detected, for
instance by blocking or stopping the traffic. IPSs are designed to block the types of
traffic that they identify as threatening, but they do not understand web application
protocol logic and cannot decipher if a web application request is normal or
malicious. So if the IPS does not have a signature for a new attack type, it could let
that attack through without detection or prevention.
In the late 1990s, as more web and even business applications made their way to
the Internet, WAFs were playing an increasing role in enterprises' success. In the
rush to "webify," organizations side-stepped many security considerations,
exposing applications to myriad vulnerabilities. Since fixing the code was too costly
and time-consuming, they turned to WAFs for protection. These early WAFs
functioned as HTTP filters that sat in front of the web application, protecting it by
refusing to process any artificial character inputs that could seize control of the
server. By the late 1990s, the idea to use an application-level security policy, and to
enforce every incoming request based on that policy, was introduced. The goal was
to secure e-business applications immediately and on the fly since security was not
taken into account in the design or implementation of the various applications at the
time.
WAF Deployments
WAFs have greatly matured since those early days. They can now create a highly
customized security policy for a specific web application. WAFs can not only
reference signature databases, but use rules that describe what good traffic should
look like with generic attack signatures to give web application firewalls the
strongest mitigation possible. WAFs are designed to protect web applications and
block the majority of the most common and dangerous web application attacks.
They are deployed inline as a proxy, bridge, or a mirror port out of band and can
even be deployed on the web server itself, where they can audit traffic to and from
the web servers and applications, and analyze web application logic.
They can also manipulate responses and requests and hide the TCP stack of the
web server. Instead of matching traffic against a signature or anomaly file, they
watch the behavior of the web requests and responses. IPSs and WAFs are similar
in that they analyze traffic; but WAFs can protect against web-based threats like
SQL injections, session hijacking, XSS, parameter tampering, and other threats
identified in the OWASP Top 10. Some WAFs may contain signatures to block well-
known attacks, but they also understand the web application logic.
In addition to protecting the web application from known attacks, WAFs can also
3
detect and potentially prevent unknown attacks. For instance, a WAF may observe
the web servers and applications, and analyze web application logic.
They can also manipulate responses and requests and hide the TCP stack of the
web server. Instead of matching traffic against a signature or anomaly file, they
watch the behavior of the web requests and responses. IPSs and WAFs are similar
in that they
WHITE analyze traffic; but WAFs can protect against web-based threats like
PAPER
®
SQL injections,
Security session
101: BIG-IP hijacking,
ASM and IPSXSS, parameter
Differences tampering, and other threats
Defined
identified in the OWASP Top 10. Some WAFs may contain signatures to block well-
known attacks, but they also understand the web application logic.
In addition to protecting the web application from known attacks, WAFs can also
detect and potentially prevent unknown attacks. For instance, a WAF may observe
an unusually large amount of traffic coming from the web application. The WAF can
flag it as unusual or unexpected traffic, and can block that data.
Many web applications are still developed with speed, but not security in mind.
While the need for secure code has gained the attention of developers, there are still
millions of websites corrupt with bugs and vulnerabilities. It is impossible to go back
and fix all that code, and traditional network firewalls don't understand application
logic. But by deploying a WAF, organizations mitigate the risk of a potentially
vulnerable web application, just as they would deploy network firewalls to mitigate
network threats.
There are a few additional differences between a WAF like BIG-IP ASM and a
traditional IDS or IPS:
• The generic detection capabilities of IPS are falling short in the world of web
applications because many of the attacks look like valid HTTP requests. Take
for example a recent financial institution incident, where a simple manipulation
of a parameter value within the URL allowed an attacker to see account
details. The requests looked valid and execution was allowed.Another
example is cookie manipulation. Some applications require that cookies not be
changed on the client side. IPSs cannot sign cookies against manipulation.
• Signatures are often simply not enough for a sound security policy—
organizations need a positive security model. For example if a given parameter
value can only be 12 characters long, it is virtually impossible for a hacker to
mount an XSS attack. Simply being able to enforce a different character set
per parameter is also important. For example, an administrator might allow the
‘ character on the username field (so Mr. O’Neil can log in) but then deny it on
other parameters. This limits attackers' ability to use those other parameters
as a vehicle for SQL injection attacks.
Vulnerability Prevalence (chance a given website has BIG IP ASM protection IPS
this vulnerability) protection
Mitigating
WHITE PAPERthe OWASP Top 10: BIG-IP ASM Versus IPSs
®
Security
According101: BIG-IP ASM
to WhiteHat and IPS
Security's Differences
winter Defined
2011 report, the top ten website
vulnerability classes of 2010 were:
Vulnerability Prevalence (chance a given website has BIG IP ASM protection IPS
this vulnerability) protection
These are just a few of the many attacks BIG-IP ASM protects against at layer 7. An
IDS or IPS has only one solution to those problems: signatures. Signatures alone
can't protect against zero-day attacks for example; proactive URLs, parameters,
allowed methods, and deep application knowledge are essential to this task. And if a
zero-day attack does occur, an IPS’s signatures can't offer any protection. However
if a zero-day attack occurs that BIG-IP ASM doesn't detect, it can still be virtually
patched using F5's iRules until a there's a permanent fix.
A security conversation should be about how to provide the best layered defense.
BIG-IP ASM protects traffic at multiple levels, using several techniques and
mechanisms. IPS just reads the stream of data, hoping that traffic matches its one
technique: signatures.
Some problems simply cannot be fixed with secure coding; for example, sometimes
the vulnerably exists in the underlying platform, like the web server, or the OS.
Sometimes it's within a third-party library in use within the application, or else the
application was developed by a third party. It could be a legacy application for which
no one even knows the code.
Once a vulnerability is discovered, fixing it can take a lot of time and effort. This
requires development team cooperation, which can be hard to come by if they are
working on an upcoming release, and it requires test team cooperation to make
sure the fix doesn't break any functionality. Overall, this approach is time-consuming
and can be very expensive.
Security officers often find themselves responsible for website security, but without
any ability to control that security. They know where the vulnerabilities are, but they
do not control the development team that would be able fix the issues.
A WAF can help both development and IT by giving the development team time to
fix the code, and giving web application access control back to the IT/security
group.
Conclusion
Web application firewalls like BIG-IP ASM are unique in that they can detect and
prevent attacks against a web application. They provide an in-depth inspection of
web traffic and can protect against many of the same vulnerabilities that IPSs look
for. They are not designed, however, to purely inspect network traffic like an IPS.
If an organization already has an IPS as part of the infrastructure, the ideal secure
infrastructure would include a WAF to enhance the capabilities offered with an IPS.
This is a best practice of layered defenses. The WAF provides yet another layer of
protection within an organization’s infrastructure and can protect against many
attacks that would sail through an IPS. If an organization has neither, the WAF
would provide the best application protection overall.
BIG-IP ASM gives organizations the fastest, most comprehensive, and scalable web
application firewall and protects companies from the most serious security threats
7
that cyber attacks pose. It can help organizations quickly pass a security audit
for. They are not designed, however, to purely inspect network traffic like an IPS.
If an organization already has an IPS as part of the infrastructure, the ideal secure
infrastructure would include a WAF to enhance the capabilities offered with an IPS.
This
WHITEis a PAPER
best practice of layered defenses. The WAF provides yet another layer of
®
protection within
Security 101: an organization’s
BIG-IP ASM and IPSinfrastructure and can protect against many
Differences Defined
attacks that would sail through an IPS. If an organization has neither, the WAF
would provide the best application protection overall.
BIG-IP ASM gives organizations the fastest, most comprehensive, and scalable web
application firewall and protects companies from the most serious security threats
that cyber attacks pose. It can help organizations quickly pass a security audit
without requiring changes to the application code, and it ensures application
availability by delivering comprehensive, flexible protection for web applications.
F5 Networks, Inc.
401 Elliott Avenue West, Seattle, WA 98119 Americas Asia-Pacific Europe/Middle-East/Africa Japan
888-882-4447 www.f5.com [email protected] [email protected] [email protected] [email protected]
©2015 F5 Networks, Inc. All rights reserved. F5, F5 Networks, and the F5 logo are trademarks of F5 Networks, Inc. in the U.S. and in certain other countries. Other F5
trademarks are identified at f5.com. Any other products, services, or company names referenced herein may be trademarks of their respective owners with no endorsement or
affiliation, express or implied, claimed by F5. CS01-00064 0113