Topics


Blogs


Forums


Samples


Media


Labs


Resources

 




DevCentral > Weblogs > Lori MacVittie - Two Different Socks
 Which security strategy takes more time: configuration or coding?
posted on Monday, September 29, 2008 4:38 AM

One of the arguments against the deployment of web application firewalls (WAF) is that it takes time to configure these devices to fit each individual environment. This is allegedly one of the reasons that secure coding is preferred over security devices. But it takes time to code solutions and deploy them, too.

failed-security In fact, depending on the lifecycle management at any given organization, it can take more time to code a solution and get it moved through a phased environment into production. One of the benefits of an application delivery platform and web application security deployed at the perimeter of the network is that solutions are often deployed in days rather than weeks. Consider the case of BusinessWeek's infected site; a week after discovering the infection and vulnerability, the site was still not protected. Perhaps because the solution was still being put together and coded. A WAF could have protected that site within hours - if not sooner - of the vulnerability being discovered.

In some cases that time isn't all that important - perhaps the vulnerability being addressed is obscure, or highly peculiar to a custom application - and is highly unlikely to be exploited between the time it's discovered and the time a fix is put into production. But with language and platform specific vulnerabilities, the likelihood of that hole being discovered and exploited is much higher simply because attacks bots are often automated and sent to sniff out such holes like bloodhounds on an English fox hunt.

The configuration of an intelligent WAF in these situations is relatively quick compared to a code-based solution, and rarely must that configuration go through the same process, which results in reducing the likelihood your application will fall victim to the latest exploit.

But what about the normal configuration process, you say. That's where the time investment really adds up.

True. You can't simply deploy a WAF and click a button and say "start protecting my apps". Just as it takes time to code a solution so, too, it takes time to configure a web application firewall to secure your environment and applications, because they're all different. But it doesn't take nearly as much time as identifying where in the code to put a solution and what that solution should be, let alone doing the research to find the multitude of attacks you'll need to prevent.

The configuration of a WAF is partially automated; it can learn the hierarchy and architecture of your application and then begin applying security policies for them. The configuration really comes in with handling exceptions, and clicking some check-box options to determine how much security you want to apply. Yes, it takes some time, but not nearly as much time as asking developers to (1) learn every attack against which they'll have to code a solution, (2) code the solutions, (3) test the solution, and (4) deploy the solution.

A good WAF solution will also provide basic defenses against layer 2-7 attacks that are nearly impossible for a developer to code into their solution. An application does not generally keep tabs on each of the processes spawned to deal with a connection. A layer 7 DoS (Denial of Service) attack, for example, is unlikely to ever be recognized by an application because it requires a view of all requests across all connections, something an application is never coded to examine. Many of these protections require little to no specific configuration other than a check-box in a GUI.

There may be valid arguments out there against deploying a WAF, but the time it takes to configure them is not one of them.

Follow me on Twitter View Lori's profile on SlideShare AddThis Feed Button Bookmark and Share



 
      

Feedback


9/29/2008 6:32 AM
Gravatar To answer your headline, configuration since no one writes secure code. LOL

From my view of the world, the argument that WAF take time to configure crops up in response to marketing. Imperva is proabably the most notable example I can come up with, but they went to market with a zero configuration WAF message. Drop it in-line, flip the swtich, and yer done.

Other WAF vendors had similar messaging. Of course, we know WAF aren't that easy. Perhaps some well know HTTP based and even web application attacks can be stopped in a default config, but there are simply too many variables to have a drop in appliance "just work."
mike fratto

9/29/2008 7:17 AM
Gravatar Heh, good one Mike.

Well, there are some aspects of a WAF, really any security device, that really are zero configuration. Layer 4 & 7 DoS attacks, SYN floods, etc...are generally zero config.

But for the really cool stuff, the WAF has to learn or be told what URLs to protect, and then you either want to loosen or tighten up the restrictions on parameters depending on the app - all of which requires some configuration.

Hey, I think we actually agree on this one. I better check outside and see how cold it is... ;-)

Lori


Lori MacVittie

9/29/2008 1:30 PM
Gravatar My first thought on reading the title of this post was, it depends :)

I agree that WAFs, ACLs, black holing traffic, etc. are all good and effective methods of mitigating risk and protecting against known threats and in some case unknown threats. However, we often forget to go back and make sure that the original problem is taken care of. Much like when we put a quick prototype together and say we are just going to try it out and lo and behold, 3 years later, it is still being used and has become part of the critical path.

I guess I am just stating the obvious that we can use these types of devices and technologies, but we need to make sure we have effective policies and procedures in place to ensure that we are addressing things in a more permanent manner where possible so we don't get to that day when someone says, "Oh, we don't need that anymore." and unplugs our carefully tuned WAF that has been protecting an app that we never quite got around to fixing.

Just my 2 pennies worth.

Kevin
Kevin Riggins

12/8/2008 3:52 AM
Gravatar Security is not a luxury item
Lori MacVittie
 Leave Feedback
Title  
Name  
Email
Url
Comments   
Please add 8 and 5 and type the answer here: