<?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; Ethics</title>
	<atom:link href="http://www.immutablesecurity.com/index.php/category/ethics/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>I Support George Hotz</title>
		<link>http://www.immutablesecurity.com/index.php/2011/02/21/i-support-george-hotz/</link>
		<comments>http://www.immutablesecurity.com/index.php/2011/02/21/i-support-george-hotz/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 01:01:01 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Dialogue]]></category>
		<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Ethics]]></category>
		<category><![CDATA[Personal Liberty]]></category>
		<category><![CDATA[Secure Design]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=787</guid>
		<description><![CDATA[For the past couple of weeks, I have been reading with great interest the coverage of Sony deciding to bring suit against George Hotz. George, or GeoHot, as he is known, and others like him, hacked the PS3 after Sony removed the &#8220;Other OS&#8221; feature. It was this &#8220;Other OS&#8221; feature that appealed to people [...]]]></description>
			<content:encoded><![CDATA[<p>For the past couple of weeks, I have been reading with great interest the <a href="http://www.google.com/search?aq=f&amp;sourceid=chrome&amp;ie=UTF-8&amp;q=george+hotz#hl=en&amp;tbs=nws:1&amp;sa=X&amp;ei=LgdjTeGNNMfUgQevtu37AQ&amp;sqi=2&amp;ved=0CCEQBSgA&amp;q=sony+suit+against+george+hotz&amp;spell=1&amp;bav=on.1,or.&amp;fp=ce9771071050593" target="_blank">coverage of Sony deciding to bring suit against George Hotz</a>. George, or GeoHot, as he is known, and others like him, hacked the PS3 after Sony removed the &#8220;Other OS&#8221; feature. It was this &#8220;Other OS&#8221; feature that appealed to people like George in the first place, since it allowed the more technical among us to use the PS3 in interesting ways&#8211;such as to run a custom version of Linux.</p>
<p>There are many elements to this story: Is What GeoHot did illegal, as Sony claims? Will it lead to more piracy? If it did lead to more piracy, would it even matter? Was what Sony did by removing a feature of the device illegal or unethical? But I think the two main questions above all are: Who owns the device, and How far does free speech go?</p>
<p>We live in an era where corporations are asserting more and more control over the devices we purchase. Unlike a physical book or a lamp, the technology of today allows for interactivity between the manufacturer of the product and the product, itself. Companies like Apple and Sony have attempted to use this to their economic advantage by restricting what valid purchasers of the product can do with their own device. They restrict what apps you run, if you can resell it, and can even <a href="http://www.immutablesecurity.com/index.php/2009/08/27/amazon-kindle-giveth-and-taketh-away/" target="_blank">take the product back</a> on a whim. Make no mistake: the rights we have enjoyed over our own property are under full frontal assault. Companies like Sony would like nothing better than to convince you that you don&#8217;t actually own the product you purchased&#8211;that it is really just a long-term rental&#8211;that they get to decide the rules.</p>
<p>The other main question besides device ownership is: How far does free speech go? We already know that free speech is not unlimited. You can&#8217;t yell &#8220;fire&#8221; in a move theater and not expect consequences. But at the same time, we are actually very tolerant of free speech. The fourth ammendment guarantees the rights of white supremacists just as it does those whose speech we find copasetic.</p>
<p>&#8220;But, wait!&#8221; observant readers will say. Sony is not the government and this is a civil issue. If Sony thinks it has been harmed by the free speech that is the <a href="http://www.google.com/search?aq=f&amp;sourceid=chrome&amp;ie=UTF-8&amp;q=george+hotz#sclient=psy&amp;hl=en&amp;q=sony+ps3+key&amp;aq=f&amp;aqi=g5&amp;aql=&amp;oq=&amp;pbx=1&amp;bav=on.1,or.&amp;fp=681127d0c6f645aa" target="_blank">release of the private key</a>, they have a right to address that in the courts. Surely, if the secret formula to Coca-cola were to be released, you would expect an army of lawyers to descend on that person.</p>
<p>While it is true that speech can harm a company, a large corporation like Sony can&#8217;t necessarily be expected to win a case just because it doesn&#8217;t like someone&#8217;s speech. They actually have to prove harm in some way, be it libel, slander, trademark infringement or what-have-you. If that weren&#8217;t true, and if the law didn&#8217;t provide some protection even in cases where the government wasn&#8217;t involved, companies like Sony would successfully sue every security researcher every time a new flaw is found.</p>
<p>This case is not about piracy. If George is to be believed, he has never used the Sony online service, never assented to the EULA and never pirated a game. This is about Sony attempting to send a message: The PS3 is ours, not yours. Play by our rules or we will ruin you financially. To anyone else: freely discuss the hack, or, for that matter, look at it, and <a href="http://www.theregister.co.uk/2011/02/08/sony_playstation_legal_offensive/" target="_blank">we will come after you, too</a>.</p>
<p>I have considered everything from staying completely silent on this issue&#8211;certainly the safe choice career-wise&#8211;to getting a tattoo of the leaked key. But I can stay silent no more. Sometimes you have to speak up for what you believe is fair and right. And I believe it was fair and right for George Hotz to use <em>his</em> device <em>in any way</em> he chose to. I believe it was wrong for Sony to remove a feature that people paid for and had a reasonable expectation to be able to use. And I believe it is right for everyone to freely and openly discuss the hack, including the key, so that they may use their own device in any way that does not involve piracy, and to further the discussion about what device security means.</p>
<p>If the facts are truly what they appear to be, then I support George Hotz and I wish him well in his case.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2011/02/21/i-support-george-hotz/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Where do You Draw the Line?</title>
		<link>http://www.immutablesecurity.com/index.php/2010/12/27/where-do-you-draw-the-line/</link>
		<comments>http://www.immutablesecurity.com/index.php/2010/12/27/where-do-you-draw-the-line/#comments</comments>
		<pubDate>Mon, 27 Dec 2010 18:30:25 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Dialogue]]></category>
		<category><![CDATA[Ethics]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=766</guid>
		<description><![CDATA[As a young infosec practitioner, I quickly learned that morals and ethics had to be intertwined with everything I did. Someone with the knowledge of how to defend systems usually has a pretty good grasp on how to attack them. Had I not considered morals and ethics as a foundation to all I did professionally, [...]]]></description>
			<content:encoded><![CDATA[<p>As a young infosec practitioner, I quickly learned that morals and ethics had to be intertwined with everything I did. Someone with the knowledge of how to defend systems usually has a pretty good grasp on how to attack them. Had I not considered morals and ethics as a foundation to all I did professionally, I faced a limited career and even the possibility of jail time.</p>
<p>Throughout the years, I have learned that this perspective is somewhat unique. Infosec practitioners are usually not the owners of the data; rather, we provide guidance and feedback on how to keep data safe and secure. It is up to the data owners to either take our advice or not, and when it comes to the ethical and moral considerations within security, we often don&#8217;t see eye-to-eye.</p>
<p>From my perspective, a data breach is more than just a technical or process failure. When it involves custodianship of other people&#8217;s information, it is a breach of trust&#8211;a broken promise to those who entrusted their information to you. With that broken promise comes a moral imperative: an honest effort to apologize and make things whole again. From the perspective of those not within the security field, a breach ranges from something that simply needs to be fixed, to something that no one can ever know about, even at the expense of laws.</p>
<p>During my career, I have been asked to do things by data owners that seem to be on-the-edge, ethically speaking. In some cases, I have politely declined&#8211;such as when someone asked me to change a ticket type so an auditor for an upcoming audit would not discover the problem. In other cases, the situation hasn&#8217;t been so black-and-white&#8211;such as when I was recently asked to recommend an alternative antivirus for Windows NT. I could have simply recommend an antivirus solution as asked, with the caveat that I know it would not adequately protect something as insecure as Windows NT. Instead, I gave choices in order of the preferred solutions: move off the platform, invest in an IPS, or accept AV knowing that it will not protect the system. Still, I wonder if I should have even presented AV as an option.</p>
<p>We have an implicit moral imperative to act responsibly. Just as a responsible electrician would not shove frayed wires back into a wall cavity, so do we have a responsibility to promote only the highest standards and, in some cases, actually refuse to act in a way that a data owner may ask us to.</p>
<p>There will never be completely clear answers on how we should act in the face of situations that are somewhat muddy, but it is clear that a line has to be drawn somewhere. Where that line exists depends on the individual, and on their own set of unique circumstances. If the infosec industry is to be considered trusted and professional, each person has to have a line that they will not cross, and there should be a line that we as a group will not cross.</p>
<p>Where is your line?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2010/12/27/where-do-you-draw-the-line/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How Free Do You Want to Be?</title>
		<link>http://www.immutablesecurity.com/index.php/2010/12/21/how-free-do-you-want-to-be/</link>
		<comments>http://www.immutablesecurity.com/index.php/2010/12/21/how-free-do-you-want-to-be/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 16:24:40 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Ethics]]></category>
		<category><![CDATA[Personal Liberty]]></category>
		<category><![CDATA[Apple]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=758</guid>
		<description><![CDATA[When I bought a laptop about three years ago, I booted it up, read the Windows Vista EULA and decided it wasn&#8217;t for me. A quick reboot and install of Ubuntu took care of my concerns and has served me well since then. So when that laptop bit the dust, I already knew that Windows [...]]]></description>
			<content:encoded><![CDATA[<p>When I bought a laptop about three years ago, I booted it up, read the Windows Vista EULA and decided it wasn&#8217;t for me. A quick reboot and install of <a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a> took care of my concerns and has served me well since then. So when that laptop bit the dust, I already knew that Windows wouldn&#8217;t be on the laptop long enough to boot to the EULA.</p>
<p>Even though I am using predominantly <a href="http://www.gnu.org/philosophy/free-sw.html" target="_blank">free software</a>, there are trade-offs and decisions to be made. Do I want to use the free ATI driver at the expense of 3D acceleration and performance or the more fully-featured non-free version? Do I want to use the Adobe Flash player (from a company who had <a href="http://en.wikipedia.org/wiki/Dmitry_Sklyarov" target="_blank">Dimitry Sklyarov</a> arrested for legal activities in his own country) or the free-but-somewhat-buggy <a href="http://www.gnu.org/software/gnash/" target="_blank">Gnash</a> player? Would I be willing to give up contributing to <a href="http://www.ossec.net/main/downloads/" target="_blank">OSSEC Windows Agent</a> development, even though the agent, itself, is free?</p>
<p>Perspectives on software freedom range from purists such as <a href="http://en.wikipedia.org/wiki/Richard_Stallman" target="_blank">Richard Stallman</a>, who believe all software should be free, to people like my wife, who really don&#8217;t care and would rather just have it work. For myself, I am most interested in maintaining a healthy marketplace where free and non-free software can offer users viable alternatives&#8211;a marketplace that ensures information can be exchanged freely and easily. Using and maintaining proficiency in free software allows me to easily make that choice if the developer of a non-free software application presents unacceptable terms.</p>
<p>We&#8217;re entering a new era of computing. It&#8217;s an era where phones and tablets are finally making their mark, while desktop computing takes a back seat. It&#8217;s also an era where user choice is being <a href="http://arstechnica.com/apple/news/2010/04/pot-meet-kettle-a-response-to-steve-jobs-letter-on-flash.ars" target="_blank">annihilated by companies like Apple</a>, who make it abundantly clear that they consider the device they sold to the consumer to still be theirs, and who act as the gatekeeper deciding exactly how you can use <em>your </em>device. It&#8217;s an era where the bundling of the browser to the OS is the least of our worries; now the companies control the entire platform.</p>
<p>Freedom is all about choice. It&#8217;s also about evaluating the trade-offs. When there is a clear free and non-free solution to my problem, I try to default to the free option. By doing so, I help to keep the ecosystem alive and thriving, which, in some small way, ensures the free flow of our information now and in the future.</p>
<p><strong>Update: </strong>A perfect example of Apple trying to control the free flow of information can be found in <a href="http://www.thinq.co.uk/2010/12/21/wikileaks-app-removed-apple-store/" target="_blank">this article</a>, in which Apple is described as removing the Wikileaks app. It is not for Apple to decide whether or not its customers should be the consumer of such information on devices <em>they </em>own. Enough said.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2010/12/21/how-free-do-you-want-to-be/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Beware of Payscale.com</title>
		<link>http://www.immutablesecurity.com/index.php/2010/12/10/beware-of-payscale-com/</link>
		<comments>http://www.immutablesecurity.com/index.php/2010/12/10/beware-of-payscale-com/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 23:45:20 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Computer Crime]]></category>
		<category><![CDATA[Ethics]]></category>
		<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[Breaches]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=752</guid>
		<description><![CDATA[Awhile back, I blogged about how not to handle notification of a possible breach. In that case, I began to receive spam to a very unique address only used at one place. When I attempted to report the potential breach, I was at first stonewalled, and then &#8220;cautioned&#8221; against publicly discussing the issue. Unfortunately, the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.immutablesecurity.com/index.php/2010/02/19/how-not-to-handle-notification-of-a-potential-security-problem/" target="_blank">Awhile back</a>, I blogged about how not to handle notification of a possible breach. In that case, I began to receive spam to a very unique address only used at one place. When I attempted to report the potential breach, I was at first stonewalled, and then &#8220;cautioned&#8221; against publicly discussing the issue.</p>
<p>Unfortunately, the stakes have risen from spam to outright malicious e-mails and this time the suspected company is Payscale.com. When I received a malicious PDF to a very unique address only used for that site, I wanted to let them know about a possible breach. So I sent an e-mail to every one of the contacts I could find on their web site. I wanted to make sure someone knew about this.</p>
<p>After over a week with no response from anyone, I received another e-mail, this time a malicious link posing as an Adobe Flash Player update. Still no response.</p>
<p>I think the <a href="http://www.immutablesecurity.com/index.php/2010/12/08/the-ethics-of-publicly-disclosing-breaches/" target="_blank">right thing to do</a> is to publicly discuss the issue. I think that when a company doesn&#8217;t respond to concerns such as this, and the public entrusts their data to them, it is ethical and right to publicly discuss the issue so people can make an informed choice about doing business with that company.</p>
<p>I can&#8217;t say that Payscale.com has been breached because <em>I don&#8217;t know. </em>What I can say is that the source of these malicious e-mails seems to have a strong connection to this company, and that they did not respond to a possible breach notification. Consumer beware.</p>
<p><strong>Update: </strong>I am happy to report that, as a result of this post, I was contacted by someone at Payscale.com. My contact does seem genuinely concerned with looking into the issue. Again, this may or may not be anything, but the point of the post seems to have succeeded&#8211;getting someone to acknowledge that a security issue <em>may </em>exist.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2010/12/10/beware-of-payscale-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Ethics of Publicly Disclosing Breaches</title>
		<link>http://www.immutablesecurity.com/index.php/2010/12/08/the-ethics-of-publicly-disclosing-breaches/</link>
		<comments>http://www.immutablesecurity.com/index.php/2010/12/08/the-ethics-of-publicly-disclosing-breaches/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 15:38:21 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Dialogue]]></category>
		<category><![CDATA[Ethics]]></category>
		<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[Breaches]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=748</guid>
		<description><![CDATA[In the security research community, it is commonly held that the ethical thing to do when discovering a vulnerability is to contact the software developer. Only after a lack of response, after the vulnerability has been fixed, or after the vulnerability has not been fixed within a reasonable time, should the information be disclosed. But [...]]]></description>
			<content:encoded><![CDATA[<p>In the security research community, it is commonly held that the ethical thing to do when discovering a vulnerability is to contact the software developer. Only after a lack of response, after the vulnerability has been fixed, or after the vulnerability has not been fixed within a reasonable time, should the information be disclosed.</p>
<p>But what is the right thing to do when there is an indication that a company may have been compromised? Is it ethical to disclose at all? Is it ethical to <em>not </em>disclose, since others would presumably entrust their data to the company without having this important piece of information? This is the question I have been pondering for some time.</p>
<p>While I think there is still room for healthy debate, I have come to the tentative conclusion that the company should be notified first and given an opportunity to respond, and <em>only if they either do not respond or respond in such a way as to indicate that they are not going to consider the issue, </em>should your concerns be disclosed publicly. I think that companies who may have had a breach have the right to deal with it internally. However, if it affects others and the company does not give an indication that they have looked into the issue, the right thing to do is to publicly discuss the issue so as to warn others about the potential consequences of entrusting their data with that company.</p>
<p>Publicly discussing a potential breach could be just the catalyst a company needs to begin an investigation that helps them to limit their losses. And while this shouldn&#8217;t be necessary, the reality of the world we live in is that information protection is rarely practiced well, let alone incident response.</p>
<p>On the other hand, this may only work well (or not) in the consumer area. If there is anything that the Wikileaks debate has taught us, it is that&#8211;regardless of whether you think the release of this kind of information is a good thing&#8211;there are consequences. One has to carefully consider the potential ethical and legal consequences when choosing to make a public disclosure. What if it initially looked like a breach, but was simply a misunderstanding? What if your words lean towards libel and not opinion? What if disclosing the potential breach results in people losing their jobs?</p>
<p>While there are no right or wrong answers, it is an area that deserves attention and discussion in the security community. As protectors of information, we need to be diligent about the way we handle it, and that involves careful reflection about the ethics and consequences of our actions.</p>
<p>What do you think?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2010/12/08/the-ethics-of-publicly-disclosing-breaches/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>2WoO Day 3: Abusing OSSEC&#8211;the Countermeasures</title>
		<link>http://www.immutablesecurity.com/index.php/2010/10/19/2woo-day-3-abusing-ossec-the-countermeasures/</link>
		<comments>http://www.immutablesecurity.com/index.php/2010/10/19/2woo-day-3-abusing-ossec-the-countermeasures/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 11:00:26 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Computer Crime]]></category>
		<category><![CDATA[Ethics]]></category>
		<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[Log Management]]></category>
		<category><![CDATA[Risk Management]]></category>
		<category><![CDATA[OSSEC]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=619</guid>
		<description><![CDATA[Yesterday, I blogged about how we could beat OSSEC up, or, to put it more accurately, the people and protocols behind it. Today, we&#8217;re going to discuss how we can fight back against the bullies. For this post to make sense, you&#8217;ll need to read the first one. Go ahead, I&#8217;ll wait&#8230; Ok. Put your [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday, <a href="http://www.immutablesecurity.com/index.php/2010/10/18/2woo-day-2-abusing-ossec/" target="_blank">I blogged about how we could beat OSSEC up</a>, or, to put it more accurately, the people and protocols behind it. Today, we&#8217;re going to discuss how we can fight back against the bullies. For this post to make sense, you&#8217;ll need to read the first one. Go ahead, I&#8217;ll wait&#8230;</p>
<p>Ok. Put your gloves on. Here are some countermeasures and considerations for all of the risks we discussed previously.</p>
<ol>
<li><strong>Alert manipulation.</strong> Recall that alert manipulation is the process by which alerts are used against us.
<ol>
<li><strong>Alert tickling.</strong> The idea with alert tickling is to send just enough normal-looking alerts to create a window for the attacker to go undetected. There are a couple of ways to defend against this. One is active response. By default, anything that is level 6 or higher can trigger an active response such as blocking the IP for 15 minutes. The cool thing about active response is that it will continue to work even if your alerts are delayed until the next hour. This means the attacker might still be blocked regardless of when you get the e-mail. Another countermeasure is to increase the default number of alerts per hour to something like 9999. Of course, this opens you up to the next risk of alert flooding. Perhaps the best countermeasure is to configure the do_not_delay option in ossec.conf. Adding something like this would save all e-mails over 12 until the next hour, except for those that appear to be an attack:</li>
<p style="padding-left: 30px;">&lt;email_alerts&gt;<br />
&lt;email_to&gt;secanalyst@example.com&lt;/email_to&gt;<br />
&lt;group&gt;attacks&lt;/group&gt;<br />
&lt;do_not_delay /&gt;<br />
&lt;/email_alerts&gt;</p>
<li><strong>Alert flooding. </strong>With alert flooding, the attacker would like to swamp you with so many alerts that you just can&#8217;t bear to read them all. Besides tuning, the best option to protect against alert flooding is to keep the email_maxperhour setting at a reasonable level. If you choose to go that route, be sure to note the risks that can introduce and plan accordingly.</li>
</ol>
</li>
<li><strong>Killing the OSSEC processes.</strong> I am a firm believer in the mantra that if someone has administrative access to your system, they can do whatever they want. Ultimately, there is nothing you can do to completely protect against this risk. On the other hand, not all administrative users are savvy enough to be able to subvert the ossec processes. A well-written SeLinux policy just might be enough to hold them back. Also, recall that I talked about the non-malicious attacker. Non-technical safeguards such as background checks, job rotation and common workstation areas might be enough of a deterrent for those situations.</li>
<li><strong>Log injection.</strong> With log injection, the attacker wants to control the log output. There are two main types of log injection: remote and unauthenticated. They can also be combined for greater efficiency.
<ol>
<li><strong>Remote log injection.</strong> The basic defense against remote log injection is to first assume that all input is malicious. Nothing from the user can be trusted, even if your OSSEC installation is on a private network. The second line of defense is to write your OSSEC decoders in such a way as to restrict where in the message input can be coming from. Referring again to Daniel&#8217;s paper, <a href="http://www.ossec.net/main/attacking-log-analysis-tools" target="_blank">Attacking Log Analysis Tools</a>, we can see that adding a ^ (to denote the beginning of the line) or a $ (to denote the end of a line) is often enough.</li>
<li><strong>Unauthenticated log sources.</strong> The obvious countermeasure to unauthenticated log sources is to not use them. However, while that is the best defense, it is rarely practical in a modern network. Sometimes you are simply faced with the choice of getting logs through syslog, or not at all. Given the choice, I would choose to get the logs. One approach is to design an out-of-band network where your unauthenticated network devices can send their logs. That approach is rather expensive and not very pragmatic for most people. The more practical approach is to enable IP spoofing protection on your network devices, such as in <a href="http://ezinearticles.com/?IP-Spoofing-and-IPS-Protection-With-a-Cisco-ASA-5500-Firewall&amp;id=1710511" target="_self">this example</a>. Be aware, though, that it may not protect against attacks within the same broadcast domain.</li>
</ol>
</li>
<li><strong>Traffic manipulation.</strong> This attack can be difficult to prevent. Not only does it involve the direct manipulation of traffic, as is the case with something like ARP poisoning, but also intentional or unintentional flooding. Common countermeasures include NAC protection, blocking DoS attacks upstream and not using unauthenticated log sources.</li>
<li><strong>Active response manipulation.</strong> Active response can prevent an attack from becoming a breach. It can also enable an attacker to block legitimate traffic. OSSEC accounts for this by giving you the white_list option for use in ossec.conf. Any IP or range added to this option won&#8217;t be blocked by active response. Keep in mind that a trusted host may be compromised first, with the attacker looking to elevate the access. The safest option is to not whitelist anything. OSSEC also includes a timeout for responses, so if you are accidentally blocked, you can try again in about 15 minutes.</li>
</ol>
<p>By now you may be starting to realize that the default configuration of OSSEC is very sane and has taken most of these risks into account. At the same time, it gives you enough flexibility to meet your needs and to make your own risk decision. The important thing is to consider the possible consequences of changing a default setting and be comfortable with the additional risks it may present.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2010/10/19/2woo-day-3-abusing-ossec-the-countermeasures/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>2WoO Day 2: Abusing OSSEC</title>
		<link>http://www.immutablesecurity.com/index.php/2010/10/18/2woo-day-2-abusing-ossec/</link>
		<comments>http://www.immutablesecurity.com/index.php/2010/10/18/2woo-day-2-abusing-ossec/#comments</comments>
		<pubDate>Mon, 18 Oct 2010 11:00:19 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Computer Crime]]></category>
		<category><![CDATA[Ethics]]></category>
		<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[Log Management]]></category>
		<category><![CDATA[Risk Management]]></category>
		<category><![CDATA[OSSEC]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=577</guid>
		<description><![CDATA[No discussion about the effectiveness of a security monitoring tool would be complete without exploring ways to defeat that tool. While this may seem self-defeating, it is my belief that an honest perspective about strengths and weaknesses of the tools we use leads to better risk decisions and ultimately, better tools. OSSEC can be abused [...]]]></description>
			<content:encoded><![CDATA[<p>No discussion about the effectiveness of a security monitoring tool would be complete without exploring ways to defeat that tool. While this may seem self-defeating, it is my belief that an honest perspective about strengths and weaknesses of the tools we use leads to better risk decisions and ultimately, better tools.</p>
<p>OSSEC can be abused in a number of ways. Many of those are not the fault of OSSEC, but rather they speak to weaknesses in basic protocols or the analyst using the tool. Here are some of the ways an attacker may try to abuse OSSEC:</p>
<ol>
<li><strong>Alert manipulation</strong>. Alerts can be manipulated in a few different ways. The basic idea is to attack the alerting mechanism in such a way as to throw the defender off the trail. Here are a few of those ways:
<ol>
<li><strong>Alert tickling. </strong>By default, OSSEC will send no more than 12 alerts per hour. This is to prevent an attacker from flooding you with a sea of alerts. This leaves the potential for the bad guy to intentionally engage in something, maybe from a different IP, that looks like noise. You&#8217;ll chalk it up as nothing to worry about and the attacker will have a window to proceed while being undetected.</li>
<li><strong>Alert flooding</strong>. In this attack, the point is to flood you with as many alerts as possible. The attacker may know that you have raised the default number of alerts per hour, and will count on you not reading them all. A savvy attacker will begin the attack with simple stuff that looks like noise, hoping you will read the first few alerts and delete the remaining 1,000.</li>
</ol>
</li>
<li><strong>Killing the OSSEC processes. </strong>If your attacker is an administrator, then it is easy to simply kill the processes. Anything logged while the OSSEC processes aren&#8217;t running will not be sent once OSSEC is restarted. It is valid to say that if one has administrative access, then all bets are off. Understand, however, that not all attackers are outright malicious or untrusted. Your attacker could simply be an administrator who doesn&#8217;t want to follow the change control process, and stops OSSEC before making the unauthorized change.</li>
<li><strong>Log injection. </strong>When the attacker can manipulate the log file to their liking, we call it log injection.
<ol>
<li><strong>Remote log injection. </strong>While SQL injection is well-understood, it&#8217;s log-based sister, remote log injection, is not widely discussed. The basic premise is the same. Anything coming from a user should not be trusted, as it could be malicious. As Daniel demonstrates in his paper, <a href="http://www.ossec.net/main/attacking-log-analysis-tools" target="_blank">Attacking Log Analysis Tools</a>, when the regexes responsible for parsing the message are not well-written, it gives the attacker the possibility to manipulate the log monitoring program in his favor.</li>
<li><strong>Unauthenticated log sources. </strong>By default, OSSEC sends all logs encrypted with blowfish. In addition, a counter is added to each log to prevent log replaying (an attack in itself). However, OSSEC also supports syslog, because, well, let&#8217;s face it, that&#8217;s sometimes the only option. As you may know, syslog messages can be spoofed. Since the protocol is UDP, the attacker does not have to worry about completing the connection. So, if an attacker can spoof the source IP, he can cause you all sorts of grief. For a great example of how to spoof syslog, check out the paper, <a href="http://www.sans.org/reading_room/whitepapers/logging/ins-outs-system-logging-syslog_1168" target="_self">The Ins and Outs of System Logging Using Syslog</a>.</li>
</ol>
</li>
<li><strong>Traffic manipulation. </strong>At attacker who can interfere with the traffic between the OSSEC agent and the manager might be able to keep the message from being received. If the message isn&#8217;t received, the manager can&#8217;t correlate and alert on the log.</li>
<li><strong>Active response manipulation. </strong>Active response can be a double-edged sword. On one hand, it can prevent an attack from becoming a breach. On the other hand, when combined with unauthenticated log sources, the attacker might be able to spoof traffic and block legitimate hosts from accessing your host.</li>
</ol>
<p>Understanding the risks leads to the inevitable question, &#8220;how do I protect myself?&#8221; In part II, we&#8217;ll discuss some countermeasures for these attacks, as well as the trade-offs for these countermeasures.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2010/10/18/2woo-day-2-abusing-ossec/feed/</wfw:commentRss>
		<slash:comments>3</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>The OSSEC Effect</title>
		<link>http://www.immutablesecurity.com/index.php/2010/04/09/the-ossec-effect/</link>
		<comments>http://www.immutablesecurity.com/index.php/2010/04/09/the-ossec-effect/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 21:48:42 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Dialogue]]></category>
		<category><![CDATA[Ethics]]></category>
		<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[OSSEC]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=476</guid>
		<description><![CDATA[Many years ago, after I had been using OSSEC in an enterprise setting for a few months, I noticed an interesting phenomenon. Administrators, many of whom I had forwarded &#8220;was this you?&#8221; alerts to, were now coming to me to rat on themselves. I would be working away in my cubicle when someone would come [...]]]></description>
			<content:encoded><![CDATA[<p>Many years ago, after I had been using <a href="http://www.ossec.net" target="_self">OSSEC</a> in an enterprise setting for a few months, I noticed an interesting phenomenon. Administrators, many of whom I had forwarded &#8220;was this you?&#8221; alerts to, were now coming to me to rat on themselves.</p>
<p>I would be working away in my cubicle when someone would come up behind me. It went something like this:</p>
<blockquote><p>&#8220;Hey, Mike. Just wanted to let you know what you&#8217;ll be seeing me &lt;insert action here&gt; in the logs. No cause for concern.&#8221;</p>
<p>&#8220;Thanks for the heads up,&#8221; I would reply.</p></blockquote>
<p>The administrators knew they were being monitored, but didn&#8217;t exactly know the full details of the monitoring. They naturally assumed I would see what they were up to. In many cases I wouldn&#8217;t have known.</p>
<p>The vast majority of these folks were honest to begin with, but I can&#8217;t help think it assisted them in following process and being just a bit more transparent with what they were doing. Maybe it even dissuaded someone who was on the fence from doing something vindictive.</p>
<p>After seeing this in other environments, I think it deserves a term. At the risk of coining a term for something that has already been identified, I hereby declare this the &#8220;OSSEC Effect.&#8221; The definition (which could use some refinement) is as follows:</p>
<p><strong>OSSEC Effect: </strong>The alteration of a computer user&#8217;s behavior when they know their actions are being monitored, but do not realize or understand the extent of the monitoring. Users will, without provocation, volunteer information they believe could be seen as questionable, whether the monitoring system would have known about it or not.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2010/04/09/the-ossec-effect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Public Lesson on How to Handle a Breach</title>
		<link>http://www.immutablesecurity.com/index.php/2010/03/15/a-public-lesson-on-how-to-handle-a-breach/</link>
		<comments>http://www.immutablesecurity.com/index.php/2010/03/15/a-public-lesson-on-how-to-handle-a-breach/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 18:58:47 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Computer Crime]]></category>
		<category><![CDATA[Ethics]]></category>
		<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[Breaches]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=458</guid>
		<description><![CDATA[When I first heard about this, I thought to myself, &#8220;Say it isn&#8217;t so. Tell me this is just a big misunderstanding. Tell me that my favorite place to buy cables at great prices wasn&#8217;t breached.&#8221; Alas, it seems to be true. Monoprice.com had a breach. I wasn&#8217;t too concerned since all of my credit [...]]]></description>
			<content:encoded><![CDATA[<p>When I first heard about <a href="http://www.google.com/search?rlz=1C1GGLS_en-USUS291US329&amp;sourceid=chrome&amp;ie=UTF-8&amp;q=monoprice+breach" target="_blank">this</a>, I thought to myself, &#8220;Say it isn&#8217;t so. Tell me this is just a big misunderstanding. Tell me that my favorite place to buy cables at great prices wasn&#8217;t breached.&#8221; Alas, it seems to be true. <a href="http://www.monoprice.com/" target="_blank">Monoprice.com</a> had a breach.</p>
<p>I wasn&#8217;t too concerned since all of my credit card numbers are unique and<a href="https://www.citibank.com/us/cards/vanpromo/cmc_pop/index2.htm" target="_blank"> automatically generated</a>, and all of the e-mail addresses I use for businesses are also unique, but just the same, I checked my statement. So far, all is well.</p>
<p>As a security guy, I suppose I should forever relegate monoprice.com to the vendor blacklist. After all, they must have been doing something wrong to allow the bad guys to get in, right? That may indeed be the case. They may have had security so bad you could drive a truck though it. Then again, maybe it was very good.</p>
<p>Breaches happen. It&#8217;s very, very hard to cover every known threat, let alone the unknown. Security professionals have to anticipate and protect against <em>all </em>threats, while the criminal only has to find one vulnerability. Most of the time it&#8217;s not even under our direct control. We are charged with the responsibility of security and get the blame when a breach happens, but encounter fierce resistance when we tell management what really needs to be done to properly secure a site.</p>
<p><a href="http://www.securitycatalyst.com/when-a-breach-hits-home/" target="_blank">Unlike Gexa Energy</a>, who took almost a year to notify affected customer of a breach, monoprice.com took the bold move of prominently and publicly placing a warning on the front page of their web site.  They further went on to <em>stop accepting orders</em> while the breach investigation was continuing. Right now they&#8217;re trying to get back on their feet.</p>
<p>Preventing a breach is difficult enough, but the truer measure of an effective security program is how you respond to a breach. Do you issue carefully-crafted letters from the PR department or do you level with your customers? Do you attempt to shun responsibility or do you recognize your mistakes and learn from them?</p>
<p>It seems that monoprice.com recognizes its responsibility to its customers and is doing the right thing. That, combined with my personal risk-mitigation strategies, probably means I will do business with them again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2010/03/15/a-public-lesson-on-how-to-handle-a-breach/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

