<?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: Web application security incident handling</title>
	<atom:link href="http://www.tssci-security.com/archives/2009/02/23/web-application-security-incident-handling/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tssci-security.com/archives/2009/02/23/web-application-security-incident-handling/</link>
	<description>top secret/secure computing information</description>
	<lastBuildDate>Thu, 01 Apr 2010 15:34:41 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dre</title>
		<link>http://www.tssci-security.com/archives/2009/02/23/web-application-security-incident-handling/comment-page-1/#comment-21968</link>
		<dc:creator>dre</dc:creator>
		<pubDate>Wed, 25 Feb 2009 01:39:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.tssci-security.com/archives/2009/02/23/web-application-security-incident-handling/#comment-21968</guid>
		<description>There is an interesting article from the Google Webmaster Central blog on &lt;a href=&quot;http://googlewebmastercentral.blogspot.com/2009/02/best-practices-against-hacking.html&quot;&gt;Best Practices Against Hacking&lt;/a&gt;.  In the post, there are some rough guidelines for application developers, but what I found interesting were the sections on &lt;b&gt;Some ways to identify the hacking of your site&lt;/b&gt; and &lt;b&gt;Hacked behavior removed, now what?&lt;/b&gt;.

Google suggests setting up Google Alerts like a clipping service to detect malware or blog spam on your own web site or blog.  They also show how malware can be found using the &lt;a href=&quot;https://www.google.com/webmasters/tools/&quot;&gt;Google Webmaster Tools&lt;/a&gt;, as well as how to reconcile your Google malware status if your site has been used for spam or other nefarious purposes.

Also of interest are a few other books.  &lt;a href=&quot;http://isbn.nu/9780596527990&quot;&gt;&lt;i&gt;SQL Hacks&lt;/i&gt;&lt;/a&gt; has a hack on &lt;i&gt;Processing Web Server Logs&lt;/i&gt; that discusses some interesting ways of querying SQL databases that have imported web server (Apache, IIS) logs.  &lt;a href=&quot;http://isbn.nu/0596002270&quot;&gt;&lt;i&gt;Practical mod_perl&lt;/i&gt;&lt;/a&gt; speaks to &lt;i&gt;Server Maintenance Chores&lt;/i&gt;, which discusses the many performance and other maintenance issues regarding web server log files, including some hints to deal with DDoS and spam targeted at the HTTP layer.  &lt;a href=&quot;http://isbn.nu/9780596102357&quot;&gt;&lt;i&gt;Building Scalable Web Sites&lt;/i&gt;&lt;/a&gt; has a section on &lt;i&gt;Statistics, Monitoring, and Alerting&lt;/i&gt; that goes into detail about customization of environmental variables using mod_rewrite into the Apache log format interface.  &lt;a href=&quot;http://isbn.nu/9780672323553&quot;&gt;&lt;i&gt;Sams Teach Yourself Apache 2 in 24 Hours&lt;/i&gt;&lt;/a&gt; has an hour dedicated to &lt;i&gt;Logging and Monitoring&lt;/i&gt; with one of the best examples of Apache&#039;s log format directives and information on the Common Log Format (CLF).  My favorite documentation on Apache&#039;s log format directives is from Ivan Ristic&#039;s &lt;a href=&quot;http://isbn.nu/9780596007249&quot;&gt;&lt;i&gt;Apache Security&lt;/i&gt;&lt;/a&gt; book, which is mandatory reading for anyone implementing Apache httpd -- the entire chapter on &lt;i&gt;Logging and Monitoring&lt;/i&gt; goes way more in-depth than any other title on the subject matter I&#039;ve seen yet.  For IIS, you&#039;ll want to check out the two Syngress press titles: &lt;a href=&quot;http://isbn.nu/9781932266528&quot;&gt;&lt;i&gt;Microsoft Log Parser Toolkit&lt;/i&gt;&lt;/a&gt; and &lt;a href=&quot;http://isbn.nu/1597490423&quot;&gt;&lt;i&gt;Security Log Management&lt;/i&gt;&lt;/a&gt;, which cover the &lt;i&gt;IISW3C Input Format&lt;/i&gt; in great detail and &lt;i&gt;Log File Conversion&lt;/i&gt; topics, respectively.  Another book for IIS administrators is the &lt;a href=&quot;http://isbn.nu/0672326094&quot;&gt;&lt;i&gt;Microsoft Windows Server 2003 Insider Solutions: Shortcuts and Best Practices&lt;/i&gt;&lt;/a&gt;, which covers &lt;i&gt;Monitoring IIS Access Through Auditing and Logging&lt;/i&gt;, although the Microsoft Press titles on your specific version of IIS will certainly be worthwhile reads, as well.

My favorite overall read by far has been the most recent &lt;a href=&quot;http://isbn.nu/9780321544360&quot;&gt;&lt;i&gt;SQL Server Forensic Analysis&lt;/i&gt;&lt;/a&gt; by Kevvie Fowler!  Kevvie also spoke about SQL Server Forensics at the most recent BlackHat US with his presentation on &lt;a href=&quot;https://www.blackhat.com/presentations/bh-usa-07/Fowler/Presentation/bh-usa-07-fowler.pdf&quot;&gt;[PDF] SQL Server Database Forensics&lt;/a&gt; and the co-existing whitepaper on &lt;a href=&quot;https://www.blackhat.com/presentations/bh-usa-07/Fowler/Whitepaper/bh-usa-07-fowler-WP.pdf&quot;&gt;[PDF] A Real World Scenario of a SQL Server 2005 Database Forensics&lt;/a&gt;.  These blew my mind away.  In the book, Kevvie Fowler shows how to trace back SQL injection from IIS logs into the &quot;plan cache&quot; of a SQL Server 2005 instance.  Using this information, an incident handler can easily figure out not only that data &lt;b&gt;has been&lt;/b&gt; or &lt;b&gt;could have been&lt;/b&gt; breached, but &lt;b&gt;which specific data&lt;/b&gt; and in what way.  The book is highly technical, so I might suggest that people just introducing themselves with Windows Forensics start with &lt;a href=&quot;http://isbn.nu/9780470097625&quot;&gt;&lt;i&gt;Mastering: Windows Network Forensics and Investigation&lt;/i&gt;&lt;/a&gt;, another good book that covers IIS logs, Microsoft Log Parser, the Event Viewer, and audit events.

Considering the amount of recent breachery via SQL injection in high profile websites, I think that the web application tier is going to need some major improvements to incident handling approaches.  &lt;a href=&quot;http://sla.ckers.org/forum/read.php?13,26514,26608&quot;&gt;It&#039;s&lt;/a&gt; &lt;a href=&quot;http://www.h-online.com/security/Kaspersky-web-site-reportedly-leaky--/news/112592&quot;&gt;not&lt;/a&gt; &lt;a href=&quot;http://www.h-online.com/security/BitDefender-website-also-leaking-Update--/news/112603&quot;&gt;like&lt;/a&gt; &lt;a href=&quot;http://www.h-online.com/security/Kaspersky-hack-Kaspersky-respond-Update--/news/112601&quot;&gt;SQL&lt;/a&gt; &lt;a href=&quot;http://searchsecurity.techtarget.com/news/article/0,289142,sid14_gci1347886,00.html&quot;&gt;injection&lt;/a&gt; &lt;a href=&quot;http://research.zscaler.com/2009/02/rough-week-for-security-companies.html&quot;&gt;has&lt;/a&gt; &lt;a href=&quot;http://www.darknet.org.uk/2009/02/kaspersky-lab-alleged-customer-database-hack-from-sql-injection-flaw/&quot;&gt;been&lt;/a&gt; &lt;a href=&quot;http://www.crn.com/security/213401972&quot;&gt;making&lt;/a&gt; &lt;a href=&quot;http://searchsecurity.techtarget.com/news/article/0,289142,sid14_gci1347341,00.html&quot;&gt;news&lt;/a&gt; &lt;a href=&quot;http://blogs.securiteam.com/index.php/archives/1247&quot;&gt;much&lt;/a&gt; &lt;a href=&quot;http://www.sensepost.com/blog/2986.html&quot;&gt;lately&lt;/a&gt;. &lt;a href=&quot;http://www.cgisecurity.com/2009/02/security-vendor-kasperky-hacked-via-sql-injection.html&quot;&gt;I&lt;/a&gt; &lt;a href=&quot;http://www.h-online.com/security/SQL-injector-strikes-again--/news/112646&quot;&gt;can&#039;t&lt;/a&gt; &lt;a href=&quot;http://www.cgisecurity.com/2009/02/fsecure-hacked-via-xss-sql-injection.html&quot;&gt;seem&lt;/a&gt; &lt;a href=&quot;http://www.f-secure.com/weblog/archives/00001605.html&quot;&gt;to&lt;/a&gt; &lt;a href=&quot;http://www.darkreading.com/security/attacks/showArticle.jhtml?articleID=213401799&quot;&gt;find&lt;/a&gt; &lt;a href=&quot;http://blogs.the451group.com/security/2009/02/09/kasperskys-hack-highlights-reputation-risk/&quot;&gt;any&lt;/a&gt; &lt;a href=&quot;http://news.softpedia.com/news/Symantec-Denies-SQL-Injection-Hacker-Disagrees-105032.shtml&quot;&gt;examples&lt;/a&gt; &lt;a href=&quot;http://www.computerworld.com/action/article.do?command=viewArticleBasic&amp;articleId=9128267&quot;&gt;of&lt;/a&gt; &lt;a href=&quot;http://www.eweek.com/c/a/Security/Kaspersky-Lab-Pours-Cold-Water-on-Claims-of-Data-Breach-By-Hacker/&quot;&gt;SQL&lt;/a&gt; &lt;a href=&quot;http://www.hackersblog.org/2009/02/09/hackedbitdefender-portugal-exposes-sensitive-customer-data/&quot;&gt;injection&lt;/a&gt; &lt;a href=&quot;http://news.softpedia.com/news/Symantec-Website-Hacked-104898.shtml&quot;&gt;in&lt;/a&gt; &lt;a href=&quot;http://www.theregister.co.uk/2009/02/16/bitdefender_website_breach/&quot;&gt;the&lt;/a&gt; &lt;a href=&quot;http://www.theregister.co.uk/2009/02/13/f_secure_hack_attack/&quot;&gt;news&lt;/a&gt;, &lt;a href=&quot;http://www.theregister.co.uk/2009/02/08/kaspersky_compromise_report/&quot;&gt;right&lt;/a&gt;?</description>
		<content:encoded><![CDATA[<p>There is an interesting article from the Google Webmaster Central blog on <a href="http://googlewebmastercentral.blogspot.com/2009/02/best-practices-against-hacking.html">Best Practices Against Hacking</a>.  In the post, there are some rough guidelines for application developers, but what I found interesting were the sections on <b>Some ways to identify the hacking of your site</b> and <b>Hacked behavior removed, now what?</b>.</p>
<p>Google suggests setting up Google Alerts like a clipping service to detect malware or blog spam on your own web site or blog.  They also show how malware can be found using the <a href="https://www.google.com/webmasters/tools/">Google Webmaster Tools</a>, as well as how to reconcile your Google malware status if your site has been used for spam or other nefarious purposes.</p>
<p>Also of interest are a few other books.  <a href="http://isbn.nu/9780596527990"><i>SQL Hacks</i></a> has a hack on <i>Processing Web Server Logs</i> that discusses some interesting ways of querying SQL databases that have imported web server (Apache, IIS) logs.  <a href="http://isbn.nu/0596002270"><i>Practical mod_perl</i></a> speaks to <i>Server Maintenance Chores</i>, which discusses the many performance and other maintenance issues regarding web server log files, including some hints to deal with DDoS and spam targeted at the HTTP layer.  <a href="http://isbn.nu/9780596102357"><i>Building Scalable Web Sites</i></a> has a section on <i>Statistics, Monitoring, and Alerting</i> that goes into detail about customization of environmental variables using mod_rewrite into the Apache log format interface.  <a href="http://isbn.nu/9780672323553"><i>Sams Teach Yourself Apache 2 in 24 Hours</i></a> has an hour dedicated to <i>Logging and Monitoring</i> with one of the best examples of Apache&#8217;s log format directives and information on the Common Log Format (CLF).  My favorite documentation on Apache&#8217;s log format directives is from Ivan Ristic&#8217;s <a href="http://isbn.nu/9780596007249"><i>Apache Security</i></a> book, which is mandatory reading for anyone implementing Apache httpd &#8212; the entire chapter on <i>Logging and Monitoring</i> goes way more in-depth than any other title on the subject matter I&#8217;ve seen yet.  For IIS, you&#8217;ll want to check out the two Syngress press titles: <a href="http://isbn.nu/9781932266528"><i>Microsoft Log Parser Toolkit</i></a> and <a href="http://isbn.nu/1597490423"><i>Security Log Management</i></a>, which cover the <i>IISW3C Input Format</i> in great detail and <i>Log File Conversion</i> topics, respectively.  Another book for IIS administrators is the <a href="http://isbn.nu/0672326094"><i>Microsoft Windows Server 2003 Insider Solutions: Shortcuts and Best Practices</i></a>, which covers <i>Monitoring IIS Access Through Auditing and Logging</i>, although the Microsoft Press titles on your specific version of IIS will certainly be worthwhile reads, as well.</p>
<p>My favorite overall read by far has been the most recent <a href="http://isbn.nu/9780321544360"><i>SQL Server Forensic Analysis</i></a> by Kevvie Fowler!  Kevvie also spoke about SQL Server Forensics at the most recent BlackHat US with his presentation on <a href="https://www.blackhat.com/presentations/bh-usa-07/Fowler/Presentation/bh-usa-07-fowler.pdf">[PDF] SQL Server Database Forensics</a> and the co-existing whitepaper on <a href="https://www.blackhat.com/presentations/bh-usa-07/Fowler/Whitepaper/bh-usa-07-fowler-WP.pdf">[PDF] A Real World Scenario of a SQL Server 2005 Database Forensics</a>.  These blew my mind away.  In the book, Kevvie Fowler shows how to trace back SQL injection from IIS logs into the &#8220;plan cache&#8221; of a SQL Server 2005 instance.  Using this information, an incident handler can easily figure out not only that data <b>has been</b> or <b>could have been</b> breached, but <b>which specific data</b> and in what way.  The book is highly technical, so I might suggest that people just introducing themselves with Windows Forensics start with <a href="http://isbn.nu/9780470097625"><i>Mastering: Windows Network Forensics and Investigation</i></a>, another good book that covers IIS logs, Microsoft Log Parser, the Event Viewer, and audit events.</p>
<p>Considering the amount of recent breachery via SQL injection in high profile websites, I think that the web application tier is going to need some major improvements to incident handling approaches.  <a href="http://sla.ckers.org/forum/read.php?13,26514,26608">It&#8217;s</a> <a href="http://www.h-online.com/security/Kaspersky-web-site-reportedly-leaky--/news/112592">not</a> <a href="http://www.h-online.com/security/BitDefender-website-also-leaking-Update--/news/112603">like</a> <a href="http://www.h-online.com/security/Kaspersky-hack-Kaspersky-respond-Update--/news/112601">SQL</a> <a href="http://searchsecurity.techtarget.com/news/article/0,289142,sid14_gci1347886,00.html">injection</a> <a href="http://research.zscaler.com/2009/02/rough-week-for-security-companies.html">has</a> <a href="http://www.darknet.org.uk/2009/02/kaspersky-lab-alleged-customer-database-hack-from-sql-injection-flaw/">been</a> <a href="http://www.crn.com/security/213401972">making</a> <a href="http://searchsecurity.techtarget.com/news/article/0,289142,sid14_gci1347341,00.html">news</a> <a href="http://blogs.securiteam.com/index.php/archives/1247">much</a> <a href="http://www.sensepost.com/blog/2986.html">lately</a>. <a href="http://www.cgisecurity.com/2009/02/security-vendor-kasperky-hacked-via-sql-injection.html">I</a> <a href="http://www.h-online.com/security/SQL-injector-strikes-again--/news/112646">can&#8217;t</a> <a href="http://www.cgisecurity.com/2009/02/fsecure-hacked-via-xss-sql-injection.html">seem</a> <a href="http://www.f-secure.com/weblog/archives/00001605.html">to</a> <a href="http://www.darkreading.com/security/attacks/showArticle.jhtml?articleID=213401799">find</a> <a href="http://blogs.the451group.com/security/2009/02/09/kasperskys-hack-highlights-reputation-risk/">any</a> <a href="http://news.softpedia.com/news/Symantec-Denies-SQL-Injection-Hacker-Disagrees-105032.shtml">examples</a> <a href="http://www.computerworld.com/action/article.do?command=viewArticleBasic&amp;articleId=9128267">of</a> <a href="http://www.eweek.com/c/a/Security/Kaspersky-Lab-Pours-Cold-Water-on-Claims-of-Data-Breach-By-Hacker/">SQL</a> <a href="http://www.hackersblog.org/2009/02/09/hackedbitdefender-portugal-exposes-sensitive-customer-data/">injection</a> <a href="http://news.softpedia.com/news/Symantec-Website-Hacked-104898.shtml">in</a> <a href="http://www.theregister.co.uk/2009/02/16/bitdefender_website_breach/">the</a> <a href="http://www.theregister.co.uk/2009/02/13/f_secure_hack_attack/">news</a>, <a href="http://www.theregister.co.uk/2009/02/08/kaspersky_compromise_report/">right</a>?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
