<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Virtual patching with mod security</title>
	<atom:link href="http://www.securityninja.co.uk/data-loss/virtual-patching-with-mod-security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.securityninja.co.uk/data-loss/virtual-patching-with-mod-security/</link>
	<description>Security research, news and guidance</description>
	<lastBuildDate>Thu, 09 May 2013 14:59:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Realex_Angel</title>
		<link>http://www.securityninja.co.uk/data-loss/virtual-patching-with-mod-security/comment-page-1/#comment-7247</link>
		<dc:creator>Realex_Angel</dc:creator>
		<pubDate>Mon, 06 Dec 2010 14:59:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.securityninja.co.uk/?p=1732#comment-7247</guid>
		<description>Hi Abraham,

Thanks for your comment.

The idea of the post was to use a simple example to make it easier to follow. In this case, the default rules from mod_security had signatures to stop the generic XSS used in the example and it was not necessary to create a custom signature. However with this kind of technology, like with an IPS, you always should try to customise the rules for your application.

Regarding the concept of virtual patching, my interpretation of virtual patching is to apply a temporary fix to a vulnerability when there is no official patch available or it is not possible to apply it quickly.  For example a signature in an IPS or in a WAF that blocks the attack that can exploit the vulnerability. Of course, if you are able to and have the time to create more accurate signatures to block everything that is not in a white list, it&#039;s going to be more secure and reliable.

Angel</description>
		<content:encoded><![CDATA[<p>Hi Abraham,</p>
<p>Thanks for your comment.</p>
<p>The idea of the post was to use a simple example to make it easier to follow. In this case, the default rules from mod_security had signatures to stop the generic XSS used in the example and it was not necessary to create a custom signature. However with this kind of technology, like with an IPS, you always should try to customise the rules for your application.</p>
<p>Regarding the concept of virtual patching, my interpretation of virtual patching is to apply a temporary fix to a vulnerability when there is no official patch available or it is not possible to apply it quickly.  For example a signature in an IPS or in a WAF that blocks the attack that can exploit the vulnerability. Of course, if you are able to and have the time to create more accurate signatures to block everything that is not in a white list, it&#8217;s going to be more secure and reliable.</p>
<p>Angel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abraham Aranguren</title>
		<link>http://www.securityninja.co.uk/data-loss/virtual-patching-with-mod-security/comment-page-1/#comment-7185</link>
		<dc:creator>Abraham Aranguren</dc:creator>
		<pubDate>Sun, 05 Dec 2010 06:08:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.securityninja.co.uk/?p=1732#comment-7185</guid>
		<description>I agree that having mod_security enabled with the default rules is a good idea because it helps to block many attacks that might have leaked through security testing and QA.

That being said, I would like to point out that one thing is adding additional layers of security, like a web application firewall using the default rules. This makes the life of the attacker more difficult because they have to spend time to bypass the firewall before they even know there is a vulnerability behind. But it must be noted this method is blacklist based: mod_security is trying to identify potential attacks to block them. There are obfuscation techniques that could potentially bypass this (although the effort is much greater).

My understanding of the concept &quot;virtual patching&quot;, at least performed correctly, would be a custom mod_security white list rule that would only allow the data expected by the vulnerable parameter. For example, if you have a field that is supposed to take a number you could create a rule that blocks everything that is not a number. This approach is much better than just using the mod_security core rules without customisation because a bypass is significantly harder and most likely impossible to bypass. I saw no custom rule in the video, it looked like you just enabled the core rules.

So, the distinction I would like to make is that what you show in the video is an additional layer of security which follows the principle of &quot;defence in depth&quot;, making a potential attacker waste time in the web application firewall and hopefully discourage them from attacking your site but it is definitely not a virtual patch for a known vulnerability. You can borrow some time with the default rules but a virtual patch (i.e. white list web application firewall rule) is a more robust approach for this.

I believe you knew all this but it is important to clarify this distinction.

Other than that nice post, keep them coming!</description>
		<content:encoded><![CDATA[<p>I agree that having mod_security enabled with the default rules is a good idea because it helps to block many attacks that might have leaked through security testing and QA.</p>
<p>That being said, I would like to point out that one thing is adding additional layers of security, like a web application firewall using the default rules. This makes the life of the attacker more difficult because they have to spend time to bypass the firewall before they even know there is a vulnerability behind. But it must be noted this method is blacklist based: mod_security is trying to identify potential attacks to block them. There are obfuscation techniques that could potentially bypass this (although the effort is much greater).</p>
<p>My understanding of the concept &#8220;virtual patching&#8221;, at least performed correctly, would be a custom mod_security white list rule that would only allow the data expected by the vulnerable parameter. For example, if you have a field that is supposed to take a number you could create a rule that blocks everything that is not a number. This approach is much better than just using the mod_security core rules without customisation because a bypass is significantly harder and most likely impossible to bypass. I saw no custom rule in the video, it looked like you just enabled the core rules.</p>
<p>So, the distinction I would like to make is that what you show in the video is an additional layer of security which follows the principle of &#8220;defence in depth&#8221;, making a potential attacker waste time in the web application firewall and hopefully discourage them from attacking your site but it is definitely not a virtual patch for a known vulnerability. You can borrow some time with the default rules but a virtual patch (i.e. white list web application firewall rule) is a more robust approach for this.</p>
<p>I believe you knew all this but it is important to clarify this distinction.</p>
<p>Other than that nice post, keep them coming!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: netalien</title>
		<link>http://www.securityninja.co.uk/data-loss/virtual-patching-with-mod-security/comment-page-1/#comment-7112</link>
		<dc:creator>netalien</dc:creator>
		<pubDate>Fri, 03 Dec 2010 20:45:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.securityninja.co.uk/?p=1732#comment-7112</guid>
		<description>Cool!, just wanted to know if I misunderstood what you meant ;)</description>
		<content:encoded><![CDATA[<p>Cool!, just wanted to know if I misunderstood what you meant <img src='http://www.securityninja.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Security Ninja</title>
		<link>http://www.securityninja.co.uk/data-loss/virtual-patching-with-mod-security/comment-page-1/#comment-7104</link>
		<dc:creator>Security Ninja</dc:creator>
		<pubDate>Fri, 03 Dec 2010 16:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.securityninja.co.uk/?p=1732#comment-7104</guid>
		<description>Hi,

Thanks for the comment!

I should have been clearer in the blog but I meant that utilising something like mod security &quot;all the time&quot; in your infrastructure can help prevent common vulnerabilities being exploited. This blog was just a quick post to show how using something like mod security can also allow you to implement virtual patches as well as providing on going protection.

I completely agree with what you said, adding either the patch or mod security as a solution would require a large amount of testing.

Thanks,

Angel</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for the comment!</p>
<p>I should have been clearer in the blog but I meant that utilising something like mod security &#8220;all the time&#8221; in your infrastructure can help prevent common vulnerabilities being exploited. This blog was just a quick post to show how using something like mod security can also allow you to implement virtual patches as well as providing on going protection.</p>
<p>I completely agree with what you said, adding either the patch or mod security as a solution would require a large amount of testing.</p>
<p>Thanks,</p>
<p>Angel</p>
]]></content:encoded>
	</item>
</channel>
</rss>
