Opinion: Why Application-Layer Defenses Belong in the Applications

Intrusion-detection tools might seem up to the job of stopping SQL injection attacks, but they aren't.

By Kenneth van Wyk

Mon, October 12, 2009Computerworld I know that chances are no one rushed to remove all SQL injection vulnerabilities from their Web applications after I warned in my column last month how serious they can be . I know that most people, even if they recognized the importance of the vulnerability, would consider how much work was involved and conclude that there must be an easier way. Perhaps they'd think that their network intrusion-detection system (NIDS) could handle the job.

Well, I'm back this month to puncture that balloon.

NIDSs are largely ineffective against a determined attacker using techniques like SQL injection attacks.

As I said last month, attackers love targeting SQL services because that's where some of the most interesting stuff resides in many applications. Now imagine a high-value target coupled with security tools that largely fail to detect attacks. How is this possible? Think back to my description of the dreaded "or 1=1" attack.

It's trivially easy to tell our NIDSs to look out for the "or 1=1" string. But don't be fooled, since "2=2" and "3=3" work equally well. For that matter, so do "foo=foo" and "xyzzy=xyzzy." See where this is going?

That's right, using static signature definitions -- like the ones used by many popular NIDS products today -- will fail every time, since you'd need to write an infinite number of signature strings to recognize every attack. And those "n=n" attacks are the most trivial of SQL injection attacks at that.

The core of the problem is that all network-based intrusion-detection tools lack the context to be able to effectively determine whether or not an HTTP request contains malicious inputs.

And let's not stop there -- there's another dark truth of the IDS world lurking about. You know how we security folks have been telling the software folks to use SSL encryption to secure sensitive data as it traverses the network? Well, encrypting the network traffic -- which is a good practice -- effectively puts a lens cap on our surveillance cameras. NIDS products cannot see inside an SSL-encrypted packet any more than our adversaries can.

By SSL-encrypting our sensitive data, we're robbing our NIDS sensors of the ability to look into the data for signs of malicious payloads. Even if they were capable of detecting SQL injection (and other attacks) all the time, SSL would prevent that from working.

So does that mean we should toss in the towel and stop using NIDS and SSL? Of course not. It does mean, though, that we need to be keenly aware of the strengths and the limitations of the technologies we're using.

Security

Loading...
 
SPONSORED LINKS
 

Making Consumer Two-Factor Authentication Simple and Cost-Effective

Mining the Cloud to Ease the Enterprise Compliance Burden

Solve Five Key IT Security Challenges with Cloud-Based Authentication

White Paper: Managed Security for a Not-So-Secure World

Secure Email and Web-Based Communication from Evolving Attacks

WagerWorks Takes Fraudsters Out of the Game using iovation

White Paper: A Security Blueprint Delivered From within the Network

Return on Information: Google Enterprise Search pays you back

ROI of Application Delivery Controllers

Webcast: Unleashing the Power of Customer Data

Disciplined Autonomy: Resolving the Tension Between Flexibility and Control

Enterprise Capture: Your Onramp to Business Process Automation

Cloud Computing--What is its Potential Value for Your Company?

Seven Design Requirements for Web 2.0 Threat Protection

Adobe® LiveCycle® solutions for business process automation

10 Ways Excel Drives More Value from Your SAP Investment

The Key to Proving and Improving the Value of IT to the Company

Unleash the Power of Java with Oracle JRockit Real Time

Taking the Service Desk to the Next Level

Return on Information: Google Enterprise Search pays you back. Get the facts.

VMware. The source for Business Infrastructure Virtualization.

ShoreTel tells businesses to untangle from competitors' complexity and turn to its brilliantly simple UC solution

See how AT&T can help protect your network.

Streamline IT Costs. Boost Performance with WAN Optimization.

Build your 1st app FREE with Force.com

Authentication as a Service by Forrester Research

Cloud-Based Authentication for Next-Generation Extranets

Mobile Security: The Essential Ingredient for Today's Enterprise

IDC White Paper: CCM for IT Compliance and Risk Management

Keeping Your Members Safe from Online Scams and Predators

Learn about the growing threat of insider data theft.

Upgrading to VMware vSphere with vWire

Maximizing website Return on Information with high-quality search

Gartner Magic Quadrant, Application Delivery Controllers 2009

Learn How Web Site Performance Impacts Shopper Behavior

Build a Foundation for Unified Communications

Removing the Barriers to IT Governance: How On-Demand Software Changes the Game

Should Your Email Live In The Cloud? A Comparative Cost Analysis

How Consumerization of IT Will Make Your Business More Productive

How does a software company save big with Green IT?

Translate business strategy into IT strategy and obtain maximum benefits.

eBook: How Can You Make Your People Productive Anywhere?

Mind the Talent Gap: Global Survey on IT and HR trends and challenges

"Enterprise-Proven" is the Prerequisite for Enterprise SaaS Portal Solutions

AT&T Synaptic Storage as a Service. Expand on demand

Trend Micro ranked #1 against real-world malware. Read more.

Webinar: Jump-start your in-house e-discovery with Ringtail QuickCull from FTI Technology

Top Five CIO Challenges

Read the RSA report: Security for Business Innovation

64-page prescriptive guide to security, compliance, and IT operations.

 
 
RESOURCE CENTER