<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>Security Ripcord &#187; Logging</title>
	<atom:link href="http://www.cutawaysecurity.com/blog/archives/category/logging/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cutawaysecurity.com/blog</link>
	<description>Cutaway's Observations, Opinions, Rants, Raves, Tantrums, and Tirades</description>
	<lastBuildDate>Tue, 01 Jun 2010 15:17:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>		<item>
		<title>Scalp External XML Reporter (SEXR)</title>
		<link>http://www.cutawaysecurity.com/blog/archives/398</link>
		<comments>http://www.cutawaysecurity.com/blog/archives/398#comments</comments>
		<pubDate>Tue, 30 Dec 2008 06:56:52 +0000</pubDate>
		<dc:creator>cutaway</dc:creator>
				<category><![CDATA[IDS]]></category>
		<category><![CDATA[Logging]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[PHPIDS]]></category>
		<category><![CDATA[Romain Gaucher]]></category>
		<category><![CDATA[Scalp]]></category>
		<category><![CDATA[Security Ripcord]]></category>
		<category><![CDATA[SEXR]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.cutawaysecurity.com/blog/?p=398</guid>
		<description><![CDATA[While reviewing some Apache log files the other day I started to wonder if somebody had already come up with a way to detect common attack characteristics by the information they contain.  Although searching for entries containing &#8220;SELECT,&#8221; &#8220;xp_cmdshell,&#8221; and other attack terms can turn up useful information it is difficult to cover all of [...]]]></description>
			<content:encoded><![CDATA[<p>While reviewing some <a title="Apache HTTP Project" href="http://httpd.apache.org/" target="_blank">Apache</a> <a title="Apache HTTP Log Files" href="http://httpd.apache.org/docs/2.2/logs.html" target="_blank">log files</a> the other day I started to wonder if somebody had already come up with a way to detect common attack characteristics by the information they contain.  Although searching for entries containing &#8220;SELECT,&#8221; &#8220;xp_cmdshell,&#8221; and other attack terms can turn up useful information it is difficult to cover all of the attack types and the different ways they can be represented within the log entries.  Some Googling brought me to a project started by <a title="Romain Gaucher" href="http://code.google.com/u/romain.gaucher/" target="_blank">Romain Gaucher</a> called <a title="Scalp!" href="http://code.google.com/p/apache-scalp/" target="_blank">apache-scalp</a> which is hosted on <a title="Google Code" href="http://code.google.com/" target="_blank">Google Code</a>.</p>
<blockquote><p>Scalp! is a log analyzer for the Apache web server that aims to look for security problems. The main idea is to look through huge log files and extract the possible attacks that have been sent through HTTP/GET (By default, Apache does not log the HTTP/POST variable).</p></blockquote>
<p>This tool uses an event filter file created by and for the <a title="PHPIDS" href="http://phpids.org/" target="_blank">PHPIDS</a> project.  PHPIDS was created parse web traffic and alert on anomalous activity as it occurs instead of having to parse the log files.  To help in those instances that PHPIDS is not deployed, Scalp applies the same principle to the collected information.  Utilizing the PHPIDS signature file, <a title="default_filter.xml" href="https://svn.php-ids.org/svn/trunk/lib/IDS/default_filter.xml" target="_blank">default_filter.xml</a>, Scalp will generate an alert file in the user&#8217;s choice of text, HTML, and XML formats.  This output, however, is alert data only and can be very cumbersome to review.  When a lot of information is involved human review is not a very effective way to determine trends and other specifics about the data.</p>
<blockquote><p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;!&#8211;<br />
File created by Scalp! by Romain Gaucher &#8211; http://code.google.com/p/apache-scalp<br />
Apache log attack analysis tool based on PHP-IDS filters<br />
&#8211;&gt;<br />
&lt;scalp file=&#8221;apache_log&#8221; time=&#8221;Sat-27-Dec-2008&#8243;&gt;<br />
&lt;attack type=&#8221;xss&#8221; name=&#8221;Cross-Site Scripting&#8221;&gt;<br />
&lt;impact value=&#8221;5&#8243;&gt;<br />
&lt;item&gt;<br />
&lt;reason&gt;&lt;![CDATA[Detects JavaScript with(), ternary operators and XML predicate attacks]]&gt;&lt;/reason&gt;<br />
&lt;regexp&gt;&lt;![CDATA[(?:with\([^)]*\)\))|(?:\.\s*source\W)|(?:\?[^:]+:[^;]+;)]]&gt;&lt;/regexp&gt;<br />
&lt;line&gt;&lt;![CDATA[xxx.28.xxx.249 - - [26/Aug/2008:00:00:13 -0700] &#8220;GET /d.AuthenticateUser1?p_page=http://webx.companyX.com/publish/01/na/en.html&amp;p_HTTP_USER_AGENT=Microsoft%20Internet%20Explorer-4.0%20(compatible;%20MSIE%206.0;%20Windows%20NT%205.1;%20SV1;%20.NET%20CLR%201.1.4322) HTTP/1.0&#8243; 200 1547<br />
]]&gt;&lt;/line&gt;<br />
&lt;/item&gt;<br />
&lt;item&gt;<br />
&lt;reason&gt;&lt;![CDATA[Detects JavaScript with(), ternary operators and XML predicate attacks]]&gt;&lt;/reason&gt;<br />
&lt;regexp&gt;&lt;![CDATA[(?:with\([^)]*\)\))|(?:\.\s*source\W)|(?:\?[^:]+:[^;]+;)]]&gt;&lt;/regexp&gt;<br />
&lt;line&gt;&lt;![CDATA[xxx.16.xxx.158 - - [26/Aug/2008:00:00:19 -0700] &#8220;GET /d.AuthenticateUser1?p_page=http://webx.companyX.com/publish/01/na/en.html&amp;p_HTTP_USER_AGENT=Microsoft%20Internet%20Explorer-4.0%20(compatible;%20MSIE%206.0;%20Windows%20NT%205.1;%20SV1;%20.NET%20CLR%201.1.4322) HTTP/1.1&#8243; 200 1570<br />
]]&gt;&lt;/line&gt;<br />
&lt;/item&gt;<br />
&lt;item&gt;<br />
&lt;reason&gt;&lt;![CDATA[Detects JavaScript with(), ternary operators and XML predicate attacks]]&gt;&lt;/reason&gt;<br />
&lt;regexp&gt;&lt;![CDATA[(?:with\([^)]*\)\))|(?:\.\s*source\W)|(?:\?[^:]+:[^;]+;)]]&gt;&lt;/regexp&gt;<br />
&lt;line&gt;&lt;![CDATA[xxx.84.xxx.90 - - [26/Aug/2008:00:00:41 -0700] &#8220;GET /d.AuthenticateUser1?p_page=http://webx.companyX.com/publish/01/vie/en.html&amp;p_HTTP_USER_AGENT=Microsoft%20Internet%20Explorer-4.0%20(compatible;%20MSIE%206.0;%20Windows%20NT%205.1;%20SV1;%20.NET%20CLR%201.1.4322) HTTP/1.1&#8243; 200 1568<br />
]]&gt;&lt;/line&gt;<br />
&lt;/item&gt;<br />
&lt;item&gt;<br />
&lt;reason&gt;&lt;![CDATA[Detects JavaScript with(), ternary operators and XML predicate attacks]]&gt;&lt;/reason&gt;<br />
&lt;regexp&gt;&lt;![CDATA[(?:with\([^)]*\)\))|(?:\.\s*source\W)|(?:\?[^:]+:[^;]+;)]]&gt;&lt;/regexp&gt;<br />
&lt;line&gt;&lt;![CDATA[xxx.160.xxx.243 - - [26/Aug/2008:00:00:57 -0700] &#8220;GET /d.AuthenticateUser1?p_page=http://webx.companyX.com/publish/01/par/en.html&amp;p_HTTP_USER_AGENT=Microsoft%20Internet%20Explorer-4.0%20(compatible;%20MSIE%206.0;%20Windows%20NT%205.1;%20SV1;%20.NET%20CLR%201.1.4322) HTTP/1.1&#8243; 200 1573</p></blockquote>
<p>To help identify trends and other interesting information associated with alerts generated by Scalp I have put together a external parser to generate a readable report.  The <a title="SEXR" href="http://code.google.com/p/apache-scalp/source/browse/branches/sexr.py" target="_blank">Scalp External XML Reporter</a> (SEXR) takes the information within a Scalp XML file and produces several outputs to either standard out or a text file.</p>
<p>The first output is the full parse of the generated alerts.  Although this output can still contain a lot of information, it is much easier to read and understand than the original Scalp output.  (The following output, as well as the rest in this post, have been snipped for brevity and their format slightly altered getting the text into this post.)</p>
<blockquote><p>sexr.py: Conducting full scan of 1 files<br />
scalp: {&#8216;file&#8217;: &#8216;apache_log&#8217;, &#8216;time&#8217;: &#8216;Sat-27-Dec-2008&#8242;}<br />
attack: {&#8216;type&#8217;: &#8216;xss&#8217;, &#8216;name&#8217;: &#8216;Cross-Site Scripting&#8217;}<br />
impact: {&#8216;value&#8217;: &#8216;5&#8242;}<br />
item<br />
reason<br />
- Detects JavaScript with(), ternary operators and XML predicate attacks<br />
regexp<br />
- (?:with\([^)]*\)\))|(?:\.\s*source\W)|(?:\?[^:]+:[^;]+;)<br />
line<br />
- xxx.28.xxx.249 &#8211; - [26/Aug/2008:00:00:13 -0700] &#8220;GET /d.AuthenticateUser1?p_page=http://webx.companyX.com                    /publish/01/na/en.html&amp;p_HTTP_USER_AGENT=Microsoft%20Internet%20Explorer-                        4.0%20(compatible;%20MSIE%206.0;%20Windows%20NT%205.1;%20SV1;%20.NET%20CLR%201.1.4322) HTTP/1.0&#8243; 200 1547</p>
<p>item<br />
reason<br />
- Detects JavaScript with(), ternary operators and XML predicate attacks<br />
regexp<br />
- (?:with\([^)]*\)\))|(?:\.\s*source\W)|(?:\?[^:]+:[^;]+;)<br />
line<br />
- xxx.16.xxx.158 &#8211; - [26/Aug/2008:00:00:19 -0700] &#8220;GET /d.AuthenticateUser1?p_page=http://webx.companyX.com/publish/01/na/en.html&amp;p_HTTP_USER_AGENT=Microsoft%20Internet%20Explorer-4.0%20(compatible;%20MSIE%206.0;%20Windows%20NT%205.1;%20SV1;%20.NET%20CLR%201.1.4322) HTTP/1.1&#8243; 200 1570</p>
<p>item<br />
reason<br />
- Detects JavaScript with(), ternary operators and XML predicate attacks<br />
regexp<br />
- (?:with\([^)]*\)\))|(?:\.\s*source\W)|(?:\?[^:]+:[^;]+;)<br />
line<br />
- xxx.84.xxx.90 &#8211; - [26/Aug/2008:00:00:41 -0700] &#8220;GET /d.AuthenticateUser1?p_page=http://webx.companyX.com/publish/01/vie/en.html&amp;p_HTTP_USER_AGENT=Microsoft%20Internet%20Explorer-4.0%20(compatible;%20MSIE%206.0;%20Windows%20NT%205.1;%20SV1;%20.NET%20CLR%201.1.4322) HTTP/1.1&#8243; 200 1568</p></blockquote>
<p>Although helpful and informative it might be a little more helpful to know more specific information about the alerts.  SEXR&#8217;s count scan option is designed to remove some of the more extraneous information by providing the number of alerts detected and the names of the alerts with which they are associated.</p>
<blockquote><p>sexr.py: Conducting count scan of 1 files<br />
scalp: {&#8216;file&#8217;: &#8216;apache_log&#8217;, &#8216;time&#8217;: &#8216;Sat-27-Dec-2008&#8242;}<br />
attack: {&#8216;type&#8217;: &#8216;xss&#8217;, &#8216;name&#8217;: &#8216;Cross-Site Scripting&#8217;}<br />
Impact 5 Items: 299<br />
- &#8216;Detects JavaScript with(), ternary operators and XML predicate attacks&#8217;: 248<br />
- &#8216;Detects self-executing JavaScript functions&#8217;: 51<br />
Impact 4 Items: 655<br />
- &#8216;Detects common XSS concatenation patterns 1/2&#8242;: 655<br />
Impact 3 Items: 80<br />
- &#8216;Detects common comment types&#8217;: 80<br />
attack: {&#8216;type&#8217;: &#8216;lfi&#8217;, &#8216;name&#8217;: &#8216;Local File Inclusion&#8217;}<br />
Impact 5 Items: 199<br />
- &#8216;Detects specific directory and path traversal&#8217;: 199<br />
attack: {&#8216;type&#8217;: &#8216;rfe&#8217;, &#8216;name&#8217;: &#8216;Remote File Execution&#8217;}<br />
Impact 5 Items: 383<br />
-&#8217;Detects url injections and RFE attempts&#8217;: 383<br />
sexr.py: Done</p></blockquote>
<p>After determining the types of attacks that were detected from the Apache log files it might be interesting to know where these attacks originated.  SEXR&#8217;s source IP scan option provides the source IP address for all of the alerts detected and a count of how many times these source IP addresses were associated with the attack.</p>
<blockquote><p>sexr.py: Conducting IP scan of 1 files<br />
scalp: {&#8216;file&#8217;: &#8216;apache_log&#8217;, &#8216;time&#8217;: &#8216;Sat-27-Dec-2008&#8242;}<br />
attack: {&#8216;type&#8217;: &#8216;xss&#8217;, &#8216;name&#8217;: &#8216;Cross-Site Scripting&#8217;}<br />
Impact 5 Items: 299<br />
- Total Source IP Addresses: 209<br />
- xxx.176.xxx.42: 1<br />
- xxx.177.xxx.68: 1<br />
- xxx.129.xxx.3: 1<br />
- xxx.89.xxx.250: 1<br />
- xxx.179.xxx.235: 1<br />
- xxx.253.xxx.222: 3</p></blockquote>
<p>Although Scalp does all of the heavy lifting I believe that SEXR can play an important role in evaluating the results that Scalp produces.  I hope that SEXR will help make the information provided by Scalp more usable for system, network, application administrators and security professionals.  To this end Romain has allowed me to update a few portions of Scalp to make its XML output more informative while also adding SEXR and the <a title="Scalp XML DTD" href="http://code.google.com/p/apache-scalp/source/browse/branches/scalp_xmldtd.dtd" target="_blank">Scalp DTD</a> file to the source code available online with the Scalp project.</p>
<p>If you have any comments, recommendations, or updates for the code, please let me know.</p>
<p>Go forth and do good things,</p>
<p>Don C. Weber</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cutawaysecurity.com/blog/archives/398/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increase Your Logging</title>
		<link>http://www.cutawaysecurity.com/blog/archives/342</link>
		<comments>http://www.cutawaysecurity.com/blog/archives/342#comments</comments>
		<pubDate>Wed, 01 Oct 2008 05:11:20 +0000</pubDate>
		<dc:creator>cutaway</dc:creator>
				<category><![CDATA[Firewalls]]></category>
		<category><![CDATA[IDS]]></category>
		<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[Logging]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Security Ripcord]]></category>

		<guid isPermaLink="false">http://www.cutawaysecurity.com/blog/?p=342</guid>
		<description><![CDATA[Reviewing my daily blog hits I came across another interesting search that directed somebody here.  &#8220;what a firewall and ids can tell you about an incident&#8221; Although I sarcastically commented on my Interesting Search Keywords page &#8220;That you need to turn on more logging&#8221; I have to admit that I meant it.  Firewalls and Intrusion [...]]]></description>
			<content:encoded><![CDATA[<p>Reviewing my daily blog hits I came across another interesting search that directed somebody here.  &#8220;<em>what a firewall and ids can tell you about an incident&#8221; </em>Although I sarcastically commented on my <a title="Interesting Search Keywords" href="http://www.cutawaysecurity.com/blog/interesting-search-keywords" target="_blank">Interesting Search Keywords</a> page &#8220;<em>That you need to turn on more logging</em>&#8221; I have to admit that I meant it.  Firewalls and Intrusion Detection Systems will only provide the analyst (be it a professional incident responder or a system/network administrator) with a limited amount of information.  The real meat of an intrusion is going to come from the coalition of data from disparate logging resources.</p>
<ul>
<li>Firewall logs, depending on how logging is configured, is going to tell you about the connection attempts in and out of the network.  Most likely you are going to see the traffic that failed.  If the firewall has proxy capabilities you will be provided with specifics about the proxied traffic, also most likely the stuff that failed.  Depending on where the firewall is located within your infrastructure will determine how much noise will be present within the logs.  Internet facing firewalls will have a lot of noise and will therefore probably have failed logging toned down.  Internal firewalls, however, should not see much failed traffic.  So anything that shows up could protentially be interesting.  Comparing these logs could also be affective in determining the origin of specific attacks, were they intitiated internally or externally.</li>
<li>IDS logs could be helpful or noisy as well.  These really depend on how well the security or network administrator has maintained the IDS sensors and where they have been placed.  Having every signature and capability turned on will lead to quite a bit of false positives to sort through.  But too much tweaking could leave administrators oblivious to reconnaissance efforts.  IDSes are great for determining if attackers are using known attack vectors to gain a beachhead within an environment.  But, like anti-virus engines, they are only as good as their signatures no matter how well the community and commercial companies stay on top of it.  I&#8217;m willing to bet it is going to be a long time before we see signatures for <a title="(Cancelled) / Clickjacking - OWASP AppSec Talk" href="http://jeremiahgrossman.blogspot.com/2008/09/cancelled-clickjacking-owasp-appsec.html" target="_blank">Clickjacking</a> (BTW, Jeremiah Grossman recommends <a title="FAQ: Clickjacking -- should you be worried?" href="http://www.computerworld.com/action/article.do?command=viewArticleBasic&amp;articleId=9115818&amp;intsrc=hm_ts_head" target="_blank">this article</a>).</li>
<li>These points aside, having the logs from both of these devices provides you with the best information of all.  <strong>What is the normal operational state of communications within the environment?</strong> There are no if, ands, or buts about it.  If you do not know what can be considered normal there is no way to asertain what is abnormal.  Having good logs from these devices will enable you to pin-point a specific time period that reconnaissance or even an attack occurred.  This could help you narrow your window of other investigation items be it system logs, file assess or write times, or registry modifications.</li>
</ul>
<p><a title="Cutaway on Twitter" href="http://twitter.com/cutaway" target="_blank">I said it on Twitte</a>r the other day, &#8221; <em>Logs are interesting, logs are fun, logs should be done by EVERYONE&#8230;..get to logging!!!</em>&#8221; and I meant it.  It is very hard to investigate an intrusion or incident if there are no logs to review.  Bringing together the firewall logs, IDS logs, application logs, operating system logs, and anything else there is provides the foundation from which to build the response.  Without them you will just be staring at each other wondering what to do next.  And I&#8217;ll tell you what to do if you don&#8217;t have any logs.  Contain the incident, investigate as much as you can, return to a good operational state, disclose if you have to disclose, and <strong>TURN ON LOGGING</strong>.</p>
<p>Go forth and do good things,</p>
<p>Don C. Weber</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cutawaysecurity.com/blog/archives/342/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Michael Farnum &#8211; an Email Interview</title>
		<link>http://www.cutawaysecurity.com/blog/archives/193</link>
		<comments>http://www.cutawaysecurity.com/blog/archives/193#comments</comments>
		<pubDate>Wed, 26 Sep 2007 04:38:49 +0000</pubDate>
		<dc:creator>cutaway</dc:creator>
				<category><![CDATA[Interviews]]></category>
		<category><![CDATA[Logging]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.cutawaysecurity.com/blog/archives/193</guid>
		<description><![CDATA[I was going to post a comment to Michael&#8217;s Computer World post titled &#8220;OK CXO, does this incident convince you of the need for security???&#8221; when I decided not to do it.  Instead I realized that this is a prefect opportunity to do another Email Interview.  So I hammered out a few questions [...]]]></description>
			<content:encoded><![CDATA[<p>I was going to post a comment to Michael&#8217;s Computer World post titled &#8220;<a href="http://www.computerworld.com/blogs/node/6229">OK CXO, does this incident convince you of the need for security???</a>&#8221; when I decided not to do it.  Instead I realized that this is a prefect opportunity to do another Email Interview.  So I hammered out a few questions I figured would be easy to answer and then tossed them his way.  The following are his responses with the questions included in bold.</p>
<blockquote><p>
<strong>Who do you work for and what do you do?</strong></p>
<p>Accuvant.  Pre-sales Security Engineer.  Basically, I am in customer<br />
relations, with the occasional product evaluation installation thrown<br />
in.</p>
<p><strong><br />
Centralized logging is one of the keys to a good security posture.<br />
Percentage-wise, how many companies do you see doing this?</strong></p>
<p>Unfortunately, the customers I have been dealing with are very late<br />
coming to this game.  And I am not talking about SIEM either.  Just<br />
centralized logging.  Many of them have some kind of syslog server with<br />
a few logs getting thrown to it, but very few have any kind of real<br />
centralized logging solution where they can go do forensics and get a<br />
good idea of what was happening in their network as a whole at any given<br />
time.</p>
<p><strong>When they are designing the networks, do you find that the<br />
administrators are aware of the pitfalls and nuances of setting up a<br />
logging infrastructure?</strong></p>
<p>Generally they think it is just a matter of throwing some logs into a<br />
bucket o&#8217; hard drives and that is it.  Not many think about the logs<br />
being used for forensic purposes later in the case of an incident.  Many<br />
aren&#8217;t aware that normalizing logs pretty much makes it fodder for the<br />
defense attorney.  Administrators up until now have had to be concerned<br />
with keeping servers going, and they read the logs when there is a<br />
problem.  Most don&#8217;t think from a security mindset, so they don&#8217;t have a<br />
clue what to do to if those logs aren&#8217;t there (because they got deleted<br />
by Mr. Bad Guy).  There&#8217;s also the matter of retention and drive space,<br />
maintaining the logs in such a manner that they can&#8217;t be altered, etc.<br />
I mean, that is the central reason for logs: forensics.  And forensics<br />
does not necessarily mean criminal forensics.  It means that if there is<br />
any incident, malicious, accidental, mechanical, whatever.  And if the<br />
logs get corrupted, then you have problems.</p>
<p>Another problem that people don&#8217;t think about is application logs and<br />
&#8220;x&#8221;-flow data.  These are often very critical to determining what<br />
happened in incidents because they give you two ends of the spectrum<br />
that just server and device logs don&#8217;t give you.  Of course, that will<br />
greatly increase your storage needs, so be careful.</p>
<p><strong>Where are the common weaknesses and how can we educate our<br />
administrators better?  Certifications associated with log management<br />
and review?</strong></p>
<p>See above for common weaknesses.  As far as another specialized cert, I<br />
don&#8217;t think that is the way to go.  I know SANS is big on this, and I<br />
have nothing but respect for those guys, but I really think that<br />
security cannot be stovepiped anymore.  Security has to be a part of a<br />
sys admin&#8217;s job and training.  This is one facet of that training, and<br />
it realistically not all of security can be thrown into a couple of<br />
Windows courses.  But the mindset has to be taught more.  A single cert<br />
can&#8217;t do that.</p>
<p><strong>Is it common practice to have critical systems administered through a<br />
management network that does not touch the production network?<br />
Basically, a network that is separated from the intranet and Internet?</strong></p>
<p>Do you mean having something like separate NICs in critical servers<br />
plugged into a different VLAN for management, and plugging management<br />
NICS on devices into that same VLAN?  To my knowledge, that is not very<br />
common.  It makes sense, but I could see it being something of a<br />
headache to get setup.  As far a segmenting critical systems altogether,<br />
that is happening in a big way.  PCI is driving that everywhere.</p>
<p><strong>Can Small and Medium-Size Businesses really afford taking on a project<br />
like centralized log management?  What would be the first steps?</strong></p>
<p>Yes, SMB&#8217;s can do this.  I does not have to be expensive.  I did it when<br />
I was at an SMB.  I used the PRO version of KIWI syslog server<br />
(http://www.kiwisyslog.com/) and pointed all my devices and servers at<br />
it.  I used SNARE (http://www.intersectalliance.com/projects/Snare/) to<br />
push server logs to the KIWI syslog.  KIWI even has the ability to read<br />
application logs if they are put into a flat file.  It really is not<br />
hard to setup if you are willing to take the time to organize it.  But<br />
be sure to take note of the problems mentioned above.</p>
<p><strong>Do you have any recommendations for the Small/Home Office businesses<br />
when it comes to log management?</strong></p>
<p>See above.  Should also work for them.</p>
<p><strong>Companies are generally aware that they need to backup their common and<br />
critical data.  How much are they aware that they need to do the same<br />
with logs?  What is common practice in log retention?</strong></p>
<p>I think they are becoming MORE aware, but the awareness is not where it<br />
should be.  Again, this is a failing in training.  Security is not<br />
taught as a &#8220;baked-in&#8221; component of knowledge.</p>
<p>Common practice depends.  It seems like 7 years tends to be a good<br />
retention length of time, but that can change depending on compliance<br />
and other laws.  </p>
<p><strong>What types of sensitive information could be found in logs and what does<br />
this mean about the protections associated with collecting and retaining<br />
this information?  When do you think encryption would be necessary?</strong></p>
<p>It is feasible for access logs on servers containing data to hold<br />
sensitive information such as credit card numbers, SSN&#8217;s, etc.  It is<br />
also feasible for logs from network devices such as routers and<br />
firewalls to have sensitive data in them because the data passes through<br />
them.  That is why PCI specifically addresses this issue.</p>
<p>Encryption of sensitive fields in a database should always be in place.<br />
Encryption when transmitting data should be the norm.  And obfuscation<br />
of sensitive data (&#8220;x&#8221;ing out most of the SSN number or the CC number)<br />
should be done when records are viewed by parties that do not need the<br />
information to perform their duties.</p>
<p><strong>How does log management tie into forensic investigations?</strong></p>
<p>As I mentioned above, log management is crucial to forensic<br />
investigations.  Most log management systems normalize logs because they<br />
have to store the data in a manageable format.  However, there has to be<br />
some way to recover the raw log in order for the log to be used in<br />
investigations.  It is not as crucial if all you are trying to do is<br />
determine what happened in an event.  But if plans are to use the logs<br />
in prosecution of criminal activity, then you have to be able to prove<br />
that the logs are the raw, original logs that came from the servers and<br />
devices.  </p>
<p>If an investigation team walks in the crime scene and fouls evidence,<br />
the judge is very likely not to admit it.  Or if the cops don&#8217;t retain a<br />
good chain of custody of the evidence, then the defense lawyer can make<br />
the claim that there is no way to know that the police did not alter the<br />
evidence in some fashion. Logs are evidence, so the same rules apply.</p>
<p><strong>Do any of the forensic programs out there integrate with the logging<br />
solutions you are familiar with?</strong></p>
<p>Good question.  I don&#8217;t know of any that do off the top of my head.<br />
However, if standards are used to code each one, there is likely a way<br />
to integrate them and transfer logs between them.  But again, this can<br />
only be done successfully if the evidence is not altered in doing so.</p>
<p><strong>How can your company help with the issues related to this topic?</strong></p>
<p>Accuvant has four practice areas (Security Assessment, Compliance,<br />
Security Technologies, and Wireless).  Our compliance team would be<br />
specifically helpful with this kind of issue because they know the<br />
different compliance controls that would require a company to adhere to<br />
log management standards, and they could perform a gap analysis to let a<br />
company know where they are lacking.  They can also provide remediation<br />
assistance to fill the gaps.</p>
<p>The assessment team can perform policy review and architecture review to<br />
tell a company where they are lacking in this area and their security<br />
posture as a whole.  They can also perform penetration and vulnerability<br />
tests to see what is getting logged and at what level.  And they can<br />
perform application code review to determine if an app&#8217;s logging is<br />
sufficient.  They can also provide remediation assistance.</p>
<p>The security technologies team can help in recommending an appropriate<br />
log management solution, and they can provide professional services for<br />
installation, configuration, and management of the solution.</p>
<p>The wireless team does not seem to be specific to this issue, but<br />
wireless is actually an area that many administrators and managers tend<br />
to kind of forget is in their network.  Thus, logging rarely happens<br />
from these devices.  Our wireless team has expertise with many different<br />
manufacturers of wireless technology, and they would be able to provide<br />
best practices for gathering logs from these devices.</p>
<p><strong>You are a blogger and Internet author.  Tell us a bit about that.</strong></p>
<p>Internet author??  Really just a blogger since I have rarely written<br />
anything more than a page at one time.  But oh well.  It sounds good!</p>
<p>I started blogging a little over a year ago when I was in the trenches<br />
as an Information Security Manager at a small / medium-sized psychiatric<br />
clinic in Houston.  I really enjoyed being able to write about the<br />
things I ran into during the course of my job.  It gave me a chance to<br />
grow as a security professional, and it really helped me hone my writing<br />
style.</p>
<p>As I went forward with it, I realized that it was also a way to get my<br />
name known out in the world of security, which I think will help my<br />
career in the long run.  </p>
<p>I maintain two security-related blogs.  My personal blog is at<br />
<a href="http://infosecplace.com/blog">http://infosecplace.com/blog</a>.  That one is known as An Information<br />
Security Place.  I also blog about security at ComputerWorld at<br />
<a href="http://computerworld.com/blogs/farnum">http://computerworld.com/blogs/farnum</a>.</p>
<p>I also have a personal blog at <a href="http://infosecplace.com/tangential">http://infosecplace.com/tangential</a>.  I<br />
don&#8217;t update that on a lot.  It is mainly a place to keep anything<br />
personal I want to write about, and it helps me maintain a more pure<br />
security blog.
</p></blockquote>
<p>Nothing really ground breaking here.  Just a few questions that I thought might help others that are thinking about centralized logging.  Hopefully Michael&#8217;s answers will help you when you are considering initiating or increasing logging and log management within your environment.</p>
<p>I would like to thank Michael again for taking time out of his very busy schedule to answer these questions.  Check out his sites when you have a few extra minutes.  It is definitely worth bookmarking or placing into your feeds.</p>
<p>Go forth and do good things,<br />
Cutaway</p>
<span class="ttag"><img src="http://www.cutawaysecurity.com/blog/wp-content/plugins/technobubble.gif" alt="Technorati Tags" /> <a href="http://www.technorati.com/tag/logging" rel="tag">logging</a>, <a href="http://www.technorati.com/tag/Accuvant" rel="tag">Accuvant</a>, <a href="http://www.technorati.com/tag/An+Information+Security+Place" rel="tag">An Information Security Place</a>, <a href="http://www.technorati.com/tag/Computer+World" rel="tag">Computer World</a>, <a href="http://www.technorati.com/tag/Michael+Farnum" rel="tag">Michael Farnum</a>, <a href="http://www.technorati.com/tag/Security+Ripcord" rel="tag">Security Ripcord</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.cutawaysecurity.com/blog/archives/193/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Security Websites and Web Bugs</title>
		<link>http://www.cutawaysecurity.com/blog/archives/185</link>
		<comments>http://www.cutawaysecurity.com/blog/archives/185#comments</comments>
		<pubDate>Sat, 01 Sep 2007 00:53:13 +0000</pubDate>
		<dc:creator>cutaway</dc:creator>
				<category><![CDATA[Logging]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.cutawaysecurity.com/blog/archives/185</guid>
		<description><![CDATA[Okay, so the title is a little bit of a misnomer.&#160; I have not found any security websites using web bugs.&#160; Where this stems from is my own pondering.&#160; At my 8 to 5 organization I have been wondering how I should track the usage of the security based website I manage.&#160; This makes good [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, so the title is a little bit of a misnomer.&nbsp; I have not found any security websites using <a href="http://en.wikipedia.org/wiki/Web_bug">web bugs</a>.&nbsp; Where this stems from is my own pondering.&nbsp; At my 8 to 5 organization I have been wondering how I should track the usage of the security based website I manage.&nbsp; This makes good sense because I want to see if I am reaching my audience.&nbsp; </p>
<p>As I am not the administrator of the resource I do not have the proper privileges to view the logs associated with the web server.&nbsp; Actually, I do not want those privileges unless necessary for auditing or incident response purposes.&nbsp; I also do not want to burden the system administrator any more than necessary.&nbsp; So, rather than ask for the output of the log associated with my virtual host I have started thinking about methods that I can track hits using some type of PHP counter.</p>
<p>While I was investigating how to accomplish this I received a few emails so I took a look.&nbsp; I had received a couple mundane messages and an email from a vendor.&nbsp; Once I opened the vendor email I noticed the usual vendor email format which, unfortunately, is strewn with plaintext HTML links.&nbsp; The very first link was a web bug.&nbsp; It said so right on the image &#8220;title=&#8221;Web Bug&#8230;&#8221;.&nbsp; So, I started thinking to myself,&nbsp; &#8220;Hmmm, web bug.&#8221;&nbsp; Would that work?&nbsp; I could include it in every web page.&nbsp; I could include it in all of the documents and presentations I provide on the site.&nbsp; This will tell me how often stuff is getting viewed and whether they are coming from the intranet or the Internet.&nbsp; Exactly the information I could get from the web log.&nbsp; But for some reason the idea of including a web bug on the site and in the documents made my skin crawl.&nbsp; So I decided to do a little asking around in the <a href="http://community.securitycatalyst.com/forums">Security Catalyst Community</a>. &nbsp;I started a thread titled &#8220;<a href="http://community.securitycatalyst.com/forums/index.php/topic,586.0.html">Web Bugs on Internal Security Sites</a>&#8220;.</p>
<p>My call was answered by several people including <a href="http://www.privacyguidance.com/my_bio.html">Rebecca Herold</a>. &nbsp;She provided me with some good insight but even better documentation. &nbsp;First she pointed me to a paper by the National Advertising Initiative.</p>
<blockquote><p>Also, the The National Advertising Initiative (NAI) created a set of standards that cover the use of web bugs (also called web beacons, web gifs, and several more a.k.a.&#8217;s) on Internet sites.&nbsp; You may find their standards interesting and perhaps helpful to your consideration of using them within your network: <a href="http://www.networkadvertising.org/networks/Web_Beacons_rev_11-1-04.pdf" target="_blank">http://www.networkadvertising.org/networks/Web_Beacons_rev_11-1-04.pdf</a></p></blockquote>
<p>Next she posted a white paper that she wrote about web bugs back in April 2005 titled &#8220;Quit Buggin Me!&#8221; &nbsp;I have read it already and I highly recommend it if you are interested in web bugs. &nbsp;Although I usually link directly to a document I would rather force you to her site so you can be aware of her other papers and books. &nbsp;The paper can be found at her &#8220;<a href="http://www.privacyguidance.com/technology_articles.html">Articles Regarding Technology Aspects of Privacy</a>&#8221; page.</p>
<p>By this time I was completely squared away by Ms. Herold. &nbsp;Although not necessarily bad, web bugs are not necessarily good. &nbsp;In fact, they have to be used properly or you may face issues with your users, your organization, or even your government. &nbsp;In this case my government would be the State of Texas. &nbsp;So, to continue my research I did a little Googling. &nbsp;And, of course, I got a hit that directed me to the <a href="http://www.dir.state.tx.us">Texas Department of Information Resources</a>. &nbsp; It was very quickly apparent that the State of Texas has a <a href="http://www.dir.state.tx.us/standards/srrpub11-privacy-policy.htm">policy on how to use persistent cookies and Web Bugs</a>.&nbsp; In fact, the guidance set by the Texas Department of Information Resources states:</p>
<blockquote><p>In order for visitors to make informed decisions about the privacy practices of state agencies, the visitor should be able to access the home page and Privacy and Security Policy page without the site setting a cookie or using a web bug to track visitor [sic].</p></blockquote>
<p>Delving in a little deeper I noticed that there is specific guidance for Institutions of Higher Education. &nbsp;Particularly <a href="http://info.sos.state.tx.us/pls/pub/readtac$ext.TacPage?sl=R&amp;app=9&amp;p_dir=&amp;p_rloc=&amp;p_tloc=&amp;p_ploc=&amp;pg=1&amp;p_tac=&amp;ti=1&amp;pt=10&amp;ch=206&amp;rl=73">Texas Administrative Code Rule 206.73 Privacy and Security of State Web Sites</a>. &nbsp;</p>
<blockquote><p>(a) Each institution of higher education shall publish a privacy and security policy for its Web site, and post a link to the policy from its home page, or Site Policies page. The privacy and security policy shall address the following: <br />
&nbsp;&nbsp;(1) Notice: This section must disclose the institution of higher education&#8217;s information practices before the site collects personal information from the public, including the use of, cookies, and/or Web bugs as well as information collected by other technologies and processes, and information collected via e-mail and Web-based forms. <br />
&nbsp;&nbsp;(2) Choice: This section must disclose whether and how personal information collected from the public may be used for purposes beyond those for which the information was provided. <br />
&nbsp;&nbsp;(3) Access: This section must address the procedure under which an individual may obtain information about himself or herself from the institution of higher education and/or have the institution of higher education correct information about the individual. <br />
&nbsp;&nbsp;(4) Security: This section must describe the procedures that ensure that information collected from individuals is accurate and secure from unauthorized use.</p></blockquote>
<p>So, basically, after a little help from the Security Catalyst Community and a little research into the laws and regulations set forth by my government I have decided that it will be much better for me to glean the personal information of the visitors to my internal website from the web logs provided by the web server than to glean them from a web bug or some other type of overt tracking mechanism.</p>
<p>Go forth and do good things,<br />
Cutaway</p>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
<span class="ttag"><img src="http://www.cutawaysecurity.com/blog/wp-content/plugins/technobubble.gif" alt="Technorati Tags" /> <a href="http://www.technorati.com/tag/cookies" rel="tag">cookies</a>, <a href="http://www.technorati.com/tag/privacyguidance.com" rel="tag">privacyguidance.com</a>, <a href="http://www.technorati.com/tag/DIR" rel="tag">DIR</a>, <a href="http://www.technorati.com/tag/SCC" rel="tag">SCC</a>, <a href="http://www.technorati.com/tag/Texas" rel="tag">Texas</a>, <a href="http://www.technorati.com/tag/Security+Ripcord" rel="tag">Security Ripcord</a>, <a href="http://www.technorati.com/tag/Rebecca+Herold" rel="tag">Rebecca Herold</a>, <a href="http://www.technorati.com/tag/web+bug" rel="tag">web bug</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.cutawaysecurity.com/blog/archives/185/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
