<?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/"
	>

<channel>
	<title>Immutable Security &#187; Systems Hardening</title>
	<atom:link href="http://www.immutablesecurity.com/index.php/category/systems-hardening/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.immutablesecurity.com</link>
	<description>Information Security, Privacy and Personal Liberty</description>
	<lastBuildDate>Sun, 04 Dec 2011 00:03:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>The Immutable Friday Fav Five for September 9, 2011</title>
		<link>http://www.immutablesecurity.com/index.php/2011/09/09/the-immutable-friday-fav-five-for-september-9-2011/</link>
		<comments>http://www.immutablesecurity.com/index.php/2011/09/09/the-immutable-friday-fav-five-for-september-9-2011/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 11:00:50 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Computer Crime]]></category>
		<category><![CDATA[Dialogue]]></category>
		<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[Research]]></category>
		<category><![CDATA[Secure Administration]]></category>
		<category><![CDATA[Secure Design]]></category>
		<category><![CDATA[Standards]]></category>
		<category><![CDATA[Systems Hardening]]></category>
		<category><![CDATA[OSSEC]]></category>
		<category><![CDATA[PCI]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=904</guid>
		<description><![CDATA[Here are the five links that I found interesting for this week: The Shadowserver foundation is comprised of a group of volunteer security professionals who gather information about Internet-based crime. One of the more interesting projects is a compilation of how various antivirus vendors fare against 0-day threats. How does your vendor hold up? Logs [...]]]></description>
			<content:encoded><![CDATA[<p>Here are the five links that I found interesting for this week:</p>
<ul>
<li>The <a href="http://www.shadowserver.org/wiki/pmwiki.php" target="_blank">Shadowserver foundation</a> is comprised of a group of volunteer security professionals who gather information about Internet-based crime. One of the more interesting projects is a compilation of <a href="http://www.shadowserver.org/wiki/pmwiki.php/Stats/VirusYearlyStats" target="_blank">how various antivirus vendors fare against 0-day threats</a>. How does your vendor hold up?</li>
<li>Logs are not much good if you can&#8217;t trust them. Maintaining log integrity is vital to a robust incident response process. <a href="http://answers.oreilly.com/topic/424-how-to-protect-your-logs-from-tampering/" target="_blank">Here is a great article</a> on how to protect your logs from tampering. It&#8217;s not fool-proof, but it can go a long way.</li>
<li>Information security is a profession that necessitates a solid ethical foundation. Security professionals are often trusted with the most sensitive of data. <a href="http://www.honeynet.org/SecurityWorkshops/2011_Paris/Session4_2-Ethics" target="_blank">This presentation</a>, from the Honeynet Project, tackles some of the more thorny situations about performing ethical research.</li>
<li>Looking for a really awesome way to store and compare your Cisco configs? <a href="http://www.shrubbery.net/rancid/" target="_blank">Rancid</a>, or the Really Awesome New Cisco confIg Differ, may be just the tool for you. It stores Cisco configs in CVS and can let you know something changed. By the way, OSSEC is <a href="http://www.ossec.net/doc/manual/agent/agentless-monitoring.html" target="_blank">also capable</a> of something very similar.</li>
<li>Are you looking to use virtualization in your PCI program? It can be done, but like most technologies, has to be approached carefully. <a href="https://www.pcisecuritystandards.org/documents/Rth87Wp/Virtualization_InfoSupp_v2.pdf" target="_blank">This guide</a> will show you some of the things that need to be considered.</li>
</ul>
<p>That’s it for today. Have a great weekend!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2011/09/09/the-immutable-friday-fav-five-for-september-9-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t Swallow the Blue Pill Just Yet</title>
		<link>http://www.immutablesecurity.com/index.php/2011/08/31/dont-swallow-the-blue-pill-just-yet/</link>
		<comments>http://www.immutablesecurity.com/index.php/2011/08/31/dont-swallow-the-blue-pill-just-yet/#comments</comments>
		<pubDate>Wed, 31 Aug 2011 11:00:57 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Computer Crime]]></category>
		<category><![CDATA[Risk Management]]></category>
		<category><![CDATA[Secure Administration]]></category>
		<category><![CDATA[Systems Hardening]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=882</guid>
		<description><![CDATA[Virtualization is a quickly growing area in IT right now. The prospect of running dozens of virtual servers on one physical server is most appealing. As long as licensing costs don&#8217;t eat up too many of the savings, it really does have the potential to transform an infrastructure into something much more efficient. Of course, [...]]]></description>
			<content:encoded><![CDATA[<p>Virtualization is a quickly growing area in IT right now. The prospect of running dozens of virtual servers on one physical server is most appealing. As long as licensing costs don&#8217;t eat up too many of the savings, it really does have the potential to transform an infrastructure into something much more efficient.</p>
<p>Of course, with any new technologies there are risks. Sometimes the risks are completely new and sometimes they are the same risks we have been dealing with for years &#8212; just repackaged in a slightly different way.</p>
<p>When most people think of virtualization security, they think of things like breaking out of the guest machine onto the host. This would be a very serious attack if successful because it has the potential to leverage one attack into something that can compromise several hosts. Even malware is getting into the business. The <a href="http://en.wikipedia.org/wiki/Blue_Pill_(malware)" target="_blank">Blue Pill</a> proof-of-concept used a small hypervisor to intercept calls to and from the guest, thereby controlling it according to desires of the attacker.</p>
<p>These are real threats, but for most organizations they do not represent the most serious threats to virtualized hosts. I was reminded of this last week when I read about Jason Cornish, a former IT employee of drug maker Shionogi. Jason had a beef with his former employer and he took it out by logging in and deleting 88 virtualized hosts. That&#8217;s the functional equivalent of a tornado taking out a small data center. He was able to do this simply because of a password which was not changed upon his termination, thereby allowing him remote access.</p>
<p>What&#8217;s the lesson here? The point is that we cannot forget the fundamentals of information security when implementing new technologies. That means doing the non-sexy stuff like changing default passwords, revoking access immediately for terminated employees and sending logs to a centralized log server. In the virtual world, we might review the access levels of the virtual administrators to make sure they are appropriate, separate hosts of different sensitivities onto different hypervisors and get alerted when a virtual machine is added, deleted or moved.</p>
<p>We do need to keep an eye on evolving virtual security threats, but we also have to keep the other eye on the fundamentals. We need both.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2011/08/31/dont-swallow-the-blue-pill-just-yet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why Your Windows Log Size Settings May Be Too Big</title>
		<link>http://www.immutablesecurity.com/index.php/2010/04/27/why-your-windows-log-size-settings-may-be-too-big/</link>
		<comments>http://www.immutablesecurity.com/index.php/2010/04/27/why-your-windows-log-size-settings-may-be-too-big/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 17:42:04 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Dialogue]]></category>
		<category><![CDATA[Log Management]]></category>
		<category><![CDATA[Research]]></category>
		<category><![CDATA[Secure Design]]></category>
		<category><![CDATA[Systems Hardening]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=487</guid>
		<description><![CDATA[Awhile back, I posted about how certain versions of Windows always have the capability to lose logs. I encourage you to read the full post to understand the issues involved, then come back here and continue reading. The basic problem is that Windows loads the full log into a shared memory space, and if it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Awhile back, I <a href="http://www.immutablesecurity.com/index.php/2009/12/18/why-windows-can-always-lose-logs/" target="_blank">posted about</a> how certain versions of Windows always have the capability to lose logs. I encourage you to read the full post to understand the issues involved, then come back here and continue reading.</p>
<p>The basic problem is that Windows loads the full log into a shared memory space, and if it&#8217;s too big, then logs will be silently dropped. That&#8217;s why it is very important to have a centralized logging solution with logs sent in real-time or pretty close to it.</p>
<p>So how does centralized logging affect the local retention settings? To know that, you have to make certain assumptions about log size, average number of events generated per day, and so-on. Let&#8217;s start with this quote from Microsoft&#8217;s <a href="http://www.microsoft.com/downloads/details.aspx?familyid=1B6ACF93-147A-4481-9346-F93A4081EEA8&amp;displaylang=en" target="_blank">Threats and Countermeasures Guide</a>:</p>
<blockquote><p>Although there is no simple equation to determine the best log size for a particular server, you can calculate a reasonable size. The average event takes up about 500 bytes within each log, and the log file sizes must be a multiple of 64 KB. If you can estimate the average number of events that are generated each day for each type of log in your organization, you can determine a good size for each type of log file.</p>
<p>For example, if your file server generates 5,000 events per day in its Security log and you want to ensure that you have at least 4 weeks of data available at all times, then you would want to configure the size of that log to about 70 MB. (500 bytes * 5000 events/day * 28 days = 70,000,000 bytes.)</p></blockquote>
<p>70MB doesn&#8217;t sound so bad. It&#8217;s probably well within the architectural limits of this memory-mapped I/O thing, but even that may be too big.</p>
<p>A better way of calculating what the local log size should be is to consider the <em><a href="http://en.wikipedia.org/wiki/Recovery_time_objective" target="_blank">recovery time objective</a></em> and <em><a href="http://en.wikipedia.org/wiki/Recovery_point_objective" target="_blank">recovery point objective</a> </em>of the centralized log server. That is, consider how long it might take you to get your log server back online in the event of a disaster, then base your <em>local </em>Windows logging settings on that.</p>
<p>For example, if your <em>recovery point objective </em>is three days, you want to make sure that the local Windows logs will collect for <em>at least </em>three days, but not much more than that. Ideally, you also want to make sure that the solution you&#8217;re using can forward the logs collected during the downtime, or have a high-availability solution as part of the plan.</p>
<p>Remember, the goal is to get the local log sizes <em>as small as possible</em>, not as large as possible. You want to make sure you&#8217;re not losing any logs, and the two best ways to achieve that are to use centralized logging and try to avoid maxing out the services.exe process. This is counter-intuitive, but when you think it through, you&#8217;ll realize that it makes sense.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2010/04/27/why-your-windows-log-size-settings-may-be-too-big/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An Analysis of the Analysis of the Apache.org Attack</title>
		<link>http://www.immutablesecurity.com/index.php/2010/04/18/an-analysis-of-the-analysis-of-the-apache-org-attack/</link>
		<comments>http://www.immutablesecurity.com/index.php/2010/04/18/an-analysis-of-the-analysis-of-the-apache-org-attack/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 00:43:15 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Computer Crime]]></category>
		<category><![CDATA[Ethics]]></category>
		<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[Secure Administration]]></category>
		<category><![CDATA[Secure Design]]></category>
		<category><![CDATA[Systems Hardening]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Breaches]]></category>
		<category><![CDATA[Social Engineering]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=484</guid>
		<description><![CDATA[Over at the Apache blog, you&#8217;ll find a nice and detailed incident report on the recent, successful attack on Apache.org. I thought it might be worth a few minutes to share my thoughts on their write-up. First, I would like to say that the level of transparency in this response is truly commendable. Rather than [...]]]></description>
			<content:encoded><![CDATA[<p>Over at the Apache blog, you&#8217;ll find a <a href="https://blogs.apache.org/infra/entry/apache_org_04_09_2010" target="_blank">nice and detailed incident report</a> on the recent, successful attack on Apache.org. I thought it might be worth a few minutes to share my thoughts on their write-up.</p>
<p>First, I would like to say that the level of transparency in this response is truly commendable. Rather than sweep this under the rug, they have chosen to share the details of what happened, why it happened (more on that in a moment) and what their plans are to, hopefully, prevent future breaches.</p>
<p>I encourage you to read the entire post, because it is a good account of how actual, real-world attacks happen. Targeted attacks take advantage of trust (both in people and machines), shared and weak passwords, too much privilege and an assortment of other security 101 vulnerabilities.</p>
<p>The attacks consisted of a XSS vulnerability, brute-force logins, a shortened URL, password sniffing, password re-use and social engineering. Pretty typical stuff, really.</p>
<p>What I find most interesting about this report is the emphasis on technical countermeasures in the <span style="text-decoration: underline;">What are we Changing?</span> section, when the attack succeeded primarily due to vulnerabilities in human beings.</p>
<ul>
<li>The Infrastructure Team members clicked on a cloaked and untrusted link, which launched a XSS attack.</li>
<li>A brute force login succeeded against a poorly chosen password. But prior to it being successful, no one seemed to be getting alerts on so many failed login attempts.</li>
<li>They once again exploited the Infrastructure Team by getting them to log in with a password that the team members, themselves, did not choose.</li>
<li>They took advantage of cached passwords on the server.</li>
<li>Slicehost didn&#8217;t respond to the attack when notified, which enabled one host to continue its attack against someone else.</li>
</ul>
<p>These are all people issues. It&#8217;s the same stuff that we security types have been trying to hammer into the brains of people for years now. There are certainly technical countermeasures which could have helped, but this was an attack on people.</p>
<p>It&#8217;s easy for us to play armchair quarterback and be critical of the response, however that is not my intention, Rather, it is my intent to simply cast another light on the response so we can all learn and secure our assets more effectively.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2010/04/18/an-analysis-of-the-analysis-of-the-apache-org-attack/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Three Things to Remember When Configuring Logging</title>
		<link>http://www.immutablesecurity.com/index.php/2010/04/02/three-things-to-remember-when-configuring-logging/</link>
		<comments>http://www.immutablesecurity.com/index.php/2010/04/02/three-things-to-remember-when-configuring-logging/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 18:48:14 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[Secure Administration]]></category>
		<category><![CDATA[Systems Hardening]]></category>
		<category><![CDATA[OSSEC]]></category>
		<category><![CDATA[Syslog]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=466</guid>
		<description><![CDATA[You set up a centralized logging server. Check. You installed the OSSEC manager to analyze your logs in real-time. Check. You even managed to implement high availability. Good going! Now your ready to start configuring clients. It should be as simple as installing an agent and pointing it to the log server, right? Maybe so, [...]]]></description>
			<content:encoded><![CDATA[<p>You set up a centralized logging server. Check. You installed the <a href="http://www.ossec.net" target="_blank">OSSEC</a> manager to analyze your logs in real-time. Check. You even managed to implement high availability. Good going! Now your ready to start configuring clients. It should be as simple as installing an agent and pointing it to the log server, right? Maybe so, but don&#8217;t forget these other important steps to make the most of your logs.</p>
<ol>
<li><strong>Set the time to sync with at least one time source. </strong><a href="http://doc.ntp.org/3-5.93e/notes.html" target="_blank">Three is even better</a>. If you don&#8217;t ensure the client has synchronized time, putting an event timeline together after a compromise is going to be that much more difficult. With properly synchronized time, patterns emerge that you might otherwise miss.</li>
<li><strong>Set the auditing policy. </strong>Unless you tell your system what to audit, there may never be any logs to send to the log server. For a Windows domain, a well configured group policy can ensure consistency across the enterprise. For stand-alone Windows systems, a security template can serve the same purpose. For &#8216;nix systems, pay special attention to the facility and priorities in syslog.conf</li>
<li><strong>Review services which listen on the network. </strong>Did someone install WinSSHd on the Windows server you configured for logging? If you only look at the usual three Windows logs, you could be missing important information about potential attacks. Make sure to review the output of &#8220;netstat -an&#8221; for clues as to what may be offering services on the host. Once identified, configure them for logging.</li>
</ol>
<p>Finally, it pays to take a few moments to make sure logging is working as intended. Countless administrators and log analysts have been bitten by situations where they try to refer to logs after a breach, only to find they&#8217;re not there.</p>
<p>Oh, and about that whole ballet thing from yesterday, well, I have decided that pink is not my color after all. Now that April Fool&#8217;s day is over, let&#8217;s get back to business. :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2010/04/02/three-things-to-remember-when-configuring-logging/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Why Windows Can Always Lose Logs</title>
		<link>http://www.immutablesecurity.com/index.php/2009/12/18/why-windows-can-always-lose-logs/</link>
		<comments>http://www.immutablesecurity.com/index.php/2009/12/18/why-windows-can-always-lose-logs/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 16:51:51 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[Secure Administration]]></category>
		<category><![CDATA[Systems Hardening]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=385</guid>
		<description><![CDATA[Note: The following post applies to Windows versions prior to Vista. I have not researched how logging has changed in versions greater than Vista. I can only assume and hope that is has changed for the better in new versions. I&#8217;m going to let you in on something that not many people realize. There&#8217;s nothing [...]]]></description>
			<content:encoded><![CDATA[<p><em>Note: The following post applies to Windows versions prior to Vista. I have not researched how logging has changed in versions greater than Vista. I can only assume and hope that is has changed for the better in new versions.</em></p>
<p>I&#8217;m going to let you in on something that not many people realize. There&#8217;s nothing you can do, no setting you can configure and no possible way <em>not</em> to lose logs in Windows. Due to the way Windows is designed, there&#8217;s always a chance of missing logs on an otherwise running and functional system.  Let&#8217;s explore why this is. Hang on to your hat, we&#8217;re going  into the weeds.</p>
<p>The Windows Eventlog service uses memory-mapped i/o and each active log is fully opened in memory. The eventlog service resides within the services.exe process, which, due to architectural limitations, only allocates 2GB to the process on a 32-bit system.</p>
<p>Within this 2GB, logs are allocated in 64k chunks. New logs take a 64k chunk of memory and take further chunks as needed, ultimately loading the entire log into memory.</p>
<p>So far this isn&#8217;t too earth shattering. Smart people know that although you can configure each log to grow to 4GB individually in Event Viewer (see <a href="http://support.microsoft.com/kb/183097" target="_blank">KB 183097</a>), because of this memory-mapped i/0 thing, limited memory is available. So, as the KB article suggests, they configure the log size to 300MB and &#8220;Overwrite as needed.&#8221; Depending on how busy the host is this could mean a retention of one day or one year.</p>
<p>Here&#8217;s where things get funky. Recall that the services.exe process has limited memory available to it (normally 2GB). You have taken that into account by configuring a smaller log size than what Windows says you can configure. You have &#8220;Overwrite events as needed&#8221; configured to ensure that you&#8217;re under this limit. But did you know that this process isn&#8217;t just used for Windows logging? The services.exe process also plays host to other services, each of which may use memory for data, dlls and so-on. All of those have to be taken into account when configuring the log size. If you don&#8217;t, you&#8217;ll hit that 2GB wall a lot sooner than you expect.</p>
<p>The question is: how do you know how much memory to plan for? How do you know what data other applications may load? How can you properly scope the memory needed for logging, other applications, their data and dlls? The short answer is, practically speaking, you can&#8217;t. There are just too many variables out of your control.</p>
<p>So what actually happens when Windows can&#8217;t allocate enough memory for logging via the services.exe process? Recall that logs are allocated in 64k chunks. Each allocation must be contiguous; if there is not a contiguous chunk of memory available, even if there is sufficient memory available, <em>logging will fail</em>. If allocation fails, it is a <em>silent error</em>. A log that is below its configured size, but which is not given another chunk of contiguous memory to work with (even if non-contiguous memory is available), will simply fail to log anything until another contiguous chunk is available. Logs will be missing and you will be none the wiser. A log that is already at its size limit will, indeed, &#8220;overwrite as needed,&#8221; and as long as those chunks of memory are available, logs won&#8217;t be missing.</p>
<p>Unless perhaps you have &#8220;Retain x days&#8221; configured.</p>
<p>&#8220;Retain x days&#8221; sounds like a pretty good idea, right? Your security policy states that you need to have 30 days of logging available online, so you configure Windows to retain 30 days of logs. Simple enough. The problem is that new events in a full log will overwrite events older than x days, but if there are no events older than x days, <em>new events</em> will be discarded. There will likely be unexplainable gaps in your logs.</p>
<p>Taking the above into consideration, what can you do to better your odds of not losing logs? Here are my recommendations:</p>
<ol>
<li> <strong>Don&#8217;t use the &#8220;Retain x days&#8221; setting.</strong> Simply abandon it. It&#8217;s not worth the hassle and confusion. You&#8217;re better off not using it at all.</li>
<li><strong>Use &#8220;Overwrite as needed.&#8221;</strong> Although this won&#8217;t keep you from losing logs, it&#8217;s the best of what is available.</li>
<li><strong>Increase your RAM to more than 4GB.</strong> This will lesson the odds of you running out of memory before that 2GB limit is reached.</li>
<li><strong>Use the x64 architecture.</strong> 64-bit systems offer a higher memory limit per process than 32-bit. This gives you more potential allocated memory per-process to work with (not to be confused with total system memory.)</li>
<li><strong>Use the /3GB switch.</strong> Windows has an option which allows for applications on a 32-bit system to have an extra GB allocated to them, at the expense of one less GB for the operating system (4GB being the total available for 32-bit to work with). Instructions on how to do this can be found <a href="http://technet.microsoft.com/en-us/library/bb124810%28EXCHG.65%29.aspx" target="_blank">here</a>.</li>
<li><strong>Use a central logging server.</strong> This is perhaps the best countermeasure against losing logs. If logs are sent to a central server in real-time, a relatively low log size can be configured in the Event Viewer. This also lowers the chance of running into a memory limitation.</li>
</ol>
<p>None of these suggestions can fix the underlying problem. The problem is rooted deep within the design of Windows and, to the best of my knowledge (please let me know if I am incorrect), there is nothing that can be done to absolutely ensure that logs won&#8217;t be lost on an otherwise healthy system. I imagine this has been corrected on Windows versions Vista and above. At least, I hope it has. For now, may you enjoy the Holiday season and may you have enough memory for proper logging!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2009/12/18/why-windows-can-always-lose-logs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OSSEC 2.3 Released</title>
		<link>http://www.immutablesecurity.com/index.php/2009/12/09/ossec-2-3-released/</link>
		<comments>http://www.immutablesecurity.com/index.php/2009/12/09/ossec-2-3-released/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 14:23:36 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[Secure Administration]]></category>
		<category><![CDATA[Systems Hardening]]></category>
		<category><![CDATA[OSSEC]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=383</guid>
		<description><![CDATA[OSSEC 2.3 is out. It has some interesting new features such as the ability to run a command and capture the output like a log. This really opens up possibilities. I&#8217;d also like to get some time to explore how this can possibly be abused. We&#8217;ll see. The Dovecot support I added awhile back is [...]]]></description>
			<content:encoded><![CDATA[<p>OSSEC 2.3 is out. It has some interesting new features such as the ability to run a command and capture the output like a log. This really opens up possibilities. I&#8217;d also like to get some time to explore how this can possibly be abused. We&#8217;ll see.</p>
<p>The Dovecot support I added awhile back is in this release, as well as a few miscellaneous rules and bug reports. All in all, things seems to be pretty stable. <a href="http://www.ossec.net/main/ossec-v23-released" target="_blank">Get it here.</a> and don&#8217;t forget to thank Daniel for all the hard work!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2009/12/09/ossec-2-3-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When Best Practice Really Isn&#8217;t: No AV on Mail Servers</title>
		<link>http://www.immutablesecurity.com/index.php/2009/11/23/when-best-practice-really-isnt-no-av-on-mail-servers/</link>
		<comments>http://www.immutablesecurity.com/index.php/2009/11/23/when-best-practice-really-isnt-no-av-on-mail-servers/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 22:56:54 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Secure Administration]]></category>
		<category><![CDATA[Secure Design]]></category>
		<category><![CDATA[Systems Hardening]]></category>
		<category><![CDATA[Antivirus]]></category>
		<category><![CDATA[Security Myths]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=370</guid>
		<description><![CDATA[A conversation with a McAfee engineer last week reminded me of something I have occasionally encountered over the years: Windows mail server admins who insist that file system AV isn&#8217;t necessary on their server. The logic for this has always escaped me and no mail server admin I have discussed this with can provide me [...]]]></description>
			<content:encoded><![CDATA[<p>A conversation with a McAfee engineer last week reminded me of something I have occasionally encountered over the years: Windows mail server admins who insist that file system AV isn&#8217;t necessary on their server. The logic for this has always escaped me and no mail server admin I have discussed this with can provide me with a reasonably sound argument of why AV shouldn&#8217;t be installed.</p>
<p>The arguments usually are something along the lines of &#8220;performance,&#8221; &#8220;it conflicts with x MTA&#8221; or &#8220;the vendor won&#8217;t support it.&#8221; Let&#8217;s look at each of these:</p>
<ol>
<li><strong>Performance: </strong>There&#8217;s no question that having AV running on your system can affect performance. It can affect performance on any system if the proper exclusions aren&#8217;t made. To use the argument that it shouldn&#8217;t be installed at all because of performance reasons is to argue that it shouldn&#8221;t be installed on <em>any</em> system. After all, everybody is concerned about performance.</li>
<li><strong>It conflicts with my MTA: </strong>That&#8217;s what vendor-recommended exclusions are for. Of course, you don&#8217;t want your AV scanning your 500GB mail data file. Exclude it. But don&#8217;t go crazy and exclude entire partitions. Have justifications for your exclusions and use a scalpel, not a sledgehammer.</li>
<li><strong>The vendor won&#8217;t support it: </strong>If the MTA vendor says that file system AV cannot be installed, find a different vendor. Seriously. They are taking the easy way out and putting your users at risk. Kick them to the curb and let them know why. Bad security choices by vendors need to have consequences for them to realize that they need to do better.</li>
</ol>
<p>A worm spreading through administrative shares will be just as happy to devour your mail server as it will any other vulnerable Windows system. Mail servers generally need both file system and MTA-level AV for full protection. Anything less on a Windows system is risky behavior and may lead to very unhappy users.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2009/11/23/when-best-practice-really-isnt-no-av-on-mail-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Value of File Integrity Alerts</title>
		<link>http://www.immutablesecurity.com/index.php/2009/11/18/the-value-of-file-integrity/</link>
		<comments>http://www.immutablesecurity.com/index.php/2009/11/18/the-value-of-file-integrity/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 23:54:39 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Systems Hardening]]></category>
		<category><![CDATA[AIDE]]></category>
		<category><![CDATA[File Integrity]]></category>
		<category><![CDATA[Tripwire]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=364</guid>
		<description><![CDATA[Tools like AIDE and the original Tripwire have long been used in the Unix world for so-called intrusion detection. They let you know when a file has changed by presenting you with an old and new checksum, but usually don&#8217;t provide much more info than that. While knowing that a file changed is useful, how [...]]]></description>
			<content:encoded><![CDATA[<p>Tools like AIDE and the original Tripwire have long been used in the Unix world for so-called intrusion detection. They let you know when a file has changed by presenting you with an old and new checksum, but usually don&#8217;t provide much more info than that.</p>
<p>While knowing that a file changed is useful, how much inherent value is there in simple file hash reports and alerts? In my opinion, very little.</p>
<p>These old tools don&#8217;t provide any context about the change. They don&#8217;t tell you who changed it, what happened just before and after the change, and what in the file actually changed. At best, you&#8217;re left with a bewildered goose-chase trying to figure out what happened.</p>
<p>To make matters worse, a well administered systems is <em>supposed to </em>change. If critical system files aren&#8217;t changing, you&#8217;re probably not patching. And if you are patching, you&#8217;re getting these alerts all the time and will eventually ignore them. The more systems you have, the worse the problem is.</p>
<p>Does that mean there is no value at all in integrity checks? Of course not. The value lies in two things:</p>
<ol>
<li>Getting alerts for rare but important events. Knowing about a file added to the init.d directory or the Windows run key in the registry might be valuable.</li>
<li>Having the checksums available on a secured system for forensics.</li>
</ol>
<p>Security is always a balancing act. Getting flooded with information about low value events is just as bad, if not worse, than not getting any alerts. Alerts should be meaningful and should, at the very least, cause you to stand up and take notice of something that isn&#8217;t normal.</p>
<p><em>Addendum: Complete IDS systems are also sometimes lacking in context. It probably took three or four tries just to post this due to content in the post that the IDS thought was a web attack. :)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2009/11/18/the-value-of-file-integrity/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Low and Slow SSH Brute Force Attacks</title>
		<link>http://www.immutablesecurity.com/index.php/2009/10/06/low-and-slow-ssh-brute-force-attacks/</link>
		<comments>http://www.immutablesecurity.com/index.php/2009/10/06/low-and-slow-ssh-brute-force-attacks/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 18:45:10 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Computer Crime]]></category>
		<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[Secure Administration]]></category>
		<category><![CDATA[Systems Hardening]]></category>
		<category><![CDATA[OSSEC]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=217</guid>
		<description><![CDATA[Peter Handsteen, a.k.a &#8220;That Grumpy BSD Guy&#8221; recently observed a round of low and slow SSH password guessing attacks against his server. For those not familiar with the term &#8220;low and slow&#8221; this is an attack meant to be slow enough that IDS systems aren&#8217;t tripped but fast enough where the attacker has a decent [...]]]></description>
			<content:encoded><![CDATA[<p>Peter Handsteen, a.k.a &#8220;That Grumpy BSD Guy&#8221; <a href="http://bsdly.blogspot.com/2009/10/third-time-uncharmed.html" target="_blank">recently observed a round of low and slow SSH password guessing attacks</a> against his server. For those not familiar with the term &#8220;low and slow&#8221; this is an attack meant to be slow enough that IDS systems aren&#8217;t tripped but fast enough where the attacker has a decent chance of getting access. The interesting thing about this attack is that it is coming from several different sources and is likely a botnet design just for this purpose. There is about one attempt per minute against the root account. While this doesn&#8217;t sound like much, it&#8217;s enough for an attacker to cycle through 1440 common passwords in a single day. And since each few attempts come from a different source, it would be difficult to block at the network level. Admins who use passwords like root, test, admin and password are likely to fall victim.</p>
<p><a href="http://www.ossec.net" target="_blank">OSSEC</a> detects the invalid logins, but a <a href="http://www.bsdly.net/~peter/sept30-brutes-raw.txt" target="_blank">cursory look at the length of time between each failed attempt</a> reveals that it is not likely to trip the &#8220;SSHD brute force&#8221; rule (ID 5712). This means that while OSSEC will detect this, the threshold is low enough where you may not get an e-mail alert. This makes sense, since most people would not want an alert for just a couple of failed logins every minute or two.</p>
<p>So what can we do to defend against these types of attacks?</p>
<ul>
<li>Well, for starters, the basics of choosing good passwords apply. There is no vulnerability being exploited here other than poor password practices. This is in effect a people problem. Choose stong passwords and audit them regularly.</li>
<li>It&#8217;s also a poor practice to login as root directly, especially thorugh SSH. Adding &#8216;PermitRootLogin no&#8217; to sshd_config will prevent exploitation through SSH even with a poorly chosen password.</li>
<li>Invalidate the password for root by locking the account, or just placing something like &#8216;*&#8217; in the password field of the shadow file. Then give your non-privileged account access through sudoers. To attain root, simply type &#8216;sudo su -&#8217; and the password of your non-privileged account.</li>
<li>&#8220;Tune down,&#8221; then &#8220;tune up.&#8221; Tune your IDS to the point at which the alerts you&#8217;re getting are meaningful and need to be seen in near real-time. After you have done that (which could take several months in a large environment), use the GUI interface of the tool to see what it thinks isn&#8217;t important enough to alert you on. The tool&#8217;s idea of importance may be different than your own.</li>
</ul>
<p>Exploitation from attacks like this are entirely preventable. Using layers of security mean that even if one defense fails, another steps in to hopefully take its place. The key is to implement the layers before the system is placed into production, then manage it well throughout its life.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2009/10/06/low-and-slow-ssh-brute-force-attacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

