<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title><![CDATA[[SecurityRatty] tag: solaris]]></title>
    <link>http://securityratty.com/tag/solaris</link>
    <description></description>
    <pubDate>Fri, 09 Nov 2007 07:00:00 +0000</pubDate>
    <generator>iRatty Engine</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <item>
      <title><![CDATA[Dumb Luck IS a Strategy!]]></title>
      <link>http://securityratty.com/article/16ab612b9342a48155481fcdd1dcf4fd</link>
      <guid>http://securityratty.com/article/16ab612b9342a48155481fcdd1dcf4fd</guid>
      <description><![CDATA[While still at GOVCERT.NL , I've attended a fun little presentation, describing a penetration test (I cannot provide any more details as it was a &quot;No Press&quot; presentation - this post is not about it,...]]></description>
      <content:encoded><![CDATA[<p>While still at <a href="http://www.govcert.nl/symposium/index.html">GOVCERT.NL</a>, I've attended a fun little presentation, describing a penetration test (I cannot provide any more details as it was a &quot;No Press&quot; presentation - this post is not about it, but rather was inspired by it!)</p>  <p>In any case, if you do pentests, think about all the RECENT cases where you break in to a major corporation through:</p>  <ul>   <li>a Solaris system with Internet-exposed telnet with a guessable password OR a telnet vulnerability (circa 1994!) </li>    <li>an exposed VPN appliance with a manufacturer's administrator password </li>    <li>a router with default &quot;enable&quot; password </li>    <li>or, something else entirely - but something that rivals the above example in its <strong>unparalleled, unbelievable, abysmal, deep idiocy.</strong> </li> </ul>  <p>Indeed, many of my pentesting friends still report plenty of such cases (one was also featured in the presentation mentioned above). Whenever I hear about it from a pentester, I always ask:</p>  <p><strong><font size="4">Do you think &quot;somebody bad&quot; had already passed through the hole you just discovered?</font></strong></p>  <p>Maybe an hour ago, a day ago - or a year ago?!</p>  <p><strong>I cannot see how the answer can be &quot;no.&quot; </strong></p>  <p>Even though pentesters usually don't focus on forensics (no time for this), it is not uncommon to notice &quot;your predecessor's&quot; intrusion traces while you break through systems, &quot;plant flags&quot;, change screen backgrounds [for the admins to notice that you've been there...], etc. </p>  <p>Let's think what this situation really means? Here are the choices I see:</p>  <ol>   <li><strong>Nobody discovered the hole</strong> - a law of large&#160; numbers (aka &quot;dumb luck&quot;) have &quot;shielded&quot; the company from an incident. Yes, Virginia, dumb luck IS a security strategy for some companies... AND it works for them. </li>    <li><strong>It was discovered, but not used/abused by the attacker</strong> - maybe he was busy hacking other systems, or saved this for later and never came back due to his ADD. Congratulation, you win! The immense power of dumb luck wrapped you in a protective &quot;security&quot; blanket ... again :-) </li>    <li><strong>It was discovered; the attacker went in, looked around and compromised a few others systems</strong>, but found nothing of interest (no low hanging fruits)&#160; - and he was not a bot herder. Again, you win. Next time you are in Vegas, bet on &quot;00.&quot; </li>    <li><strong>It was discovered; the attacker went in and deployed a bot on &quot;your&quot; system </strong>- given how many botnets are there, this situation is clearly <em>acceptable</em> to many organizations. In this case, dumb luck strategy, apparently, still work: so they use your box to spam and phish somebody else ... big deal!</li>    <li><strong>It was discovered; the attacker went in and stole all your credit card information (it is now for sale) </strong>- even in this case, the user of &quot;the dumb luck strategy&quot; still &quot;wins&quot; (in some perverse sense)! Unless and until the stolen information IS tracked back to you OR a friendly neighborhood PCI auditor come and jams a broomstick up your ..., you can still continue to be stupid at your leisure and ignore basic security practices. </li>    <li><strong>It was discovered; the attacker went in and stole your CEO's Inbox, including the email related to his affair (it is now on CNN) - </strong>now, in this case, you lose AND it is time to stop being stupid! Welcome to the &quot;0wned world.&quot; Time to launch (relaunch?) your security program and get serious. </li> </ol>  <p>What does this teach us about RISK? The lesson here is important:</p>  <ul>   <li>For a security professional, an Internet-exposed system with &quot;root/root&quot; is an obvious <strong>HUGE</strong> risk! </li>    <li>For your boss's boss's boss, it is <strong>NOT</strong>! </li> </ul>  <p>This is exactly why I think that <strong>the most critical problem in security today is METRICS</strong>. Metrics that <strong>a) work AND mean something to decision makers</strong> and <strong>b) can be clearly communicated to said decision makers [</strong>BTW, a) and b) are two separate problems.] Metrics that cover not only threats and vulnerabilities we face, but also the effectiveness of security countermeasures we deploy. Metrics you can act on - and ones your boss (and his boss) will act on. Metrics that lead to correct decisions about which risks to accept, which to&#160; mitigate (all while knowing with what efficiency such mitigation occurs) and which to transfer.</p>  <p>Until that time, the dreaded &quot;C-word&quot; (<strong>c</strong>ompliance) will trump &quot;the other C-word&quot; (<strong>c</strong>ommon sense) as a driver for security ... and we will continue to live in the &quot;0wned world.&quot;</p>  <p><strong>Possibly related posts:</strong></p>  <ul>   <li><u><a href="http://chuvakin.blogspot.com/2007/11/risk-vs-risk.htmll">Risk vs Risk</a></u>&#160;</li> </ul>  <div class="blogger-post-footer">About me: http://www.chuvakin.org</div><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/AntonChuvakinPersonalBlog?a=AdXkL"><img src="http://feeds.feedburner.com/~f/AntonChuvakinPersonalBlog?i=AdXkL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/AntonChuvakinPersonalBlog?a=SqYRL"><img src="http://feeds.feedburner.com/~f/AntonChuvakinPersonalBlog?i=SqYRL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/AntonChuvakinPersonalBlog?a=UGPML"><img src="http://feeds.feedburner.com/~f/AntonChuvakinPersonalBlog?i=UGPML" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AntonChuvakinPersonalBlog/~4/396385129" height="1" width="1"/>]]></content:encoded>
      <pubDate>Thu, 18 Sep 2008 05:38:00 +0000</pubDate>
      <category domain="http://securityratty.com/tag/dumb luck">dumb luck</category>
      <category domain="http://securityratty.com/tag/dumb luck strategy">dumb luck strategy</category>
      <category domain="http://securityratty.com/tag/security">security</category>
      <category domain="http://securityratty.com/tag/security countermeasures">security countermeasures</category>
      <category domain="http://securityratty.com/tag/security professional">security professional</category>
      <category domain="http://securityratty.com/tag/security program">security program</category>
      <category domain="http://securityratty.com/tag/risk">risk</category>
      <category domain="http://securityratty.com/tag/obvious huge risk">obvious huge risk</category>
      <category domain="http://securityratty.com/tag/password">password</category>
      <source url="http://feeds.feedburner.com/~r/AntonChuvakinPersonalBlog/~3/396385129/dumb-luck-is-strategy.html">Dumb Luck IS a Strategy!</source>
    </item>
    <item>
      <title><![CDATA[Adapting to Shelf Life]]></title>
      <link>http://securityratty.com/article/ea6547aa3e5e239ba69d1907590564e9</link>
      <guid>http://securityratty.com/article/ea6547aa3e5e239ba69d1907590564e9</guid>
      <description><![CDATA[Dan Pritchett blogged about Architectural Shelf Life - &quot;The duration that a collection of patterns and technology are applicable when starting a new system design.&quot; He argues that this changes about...]]></description>
      <content:encoded><![CDATA[<p>Dan Pritchett blogged about <a href="http://www.addsimplicity.com/adding_simplicity_an_engi/2008/08/architectural-s.html">Architectural Shelf Life</a> - &quot;The duration that a collection of patterns and technology are applicable when starting a new system design.&quot; He argues that this changes about every 5 years which is pretty fast when you think about it. Our story on the security is measured in decades not years. Kerberos, certificates, RSA, and other workhorse technologies are relatively unchanged since the 70s and 80s. So we security folk are multiple iterations behind developers.</p><div><br />

<a href="http://1raindrop.typepad.com/photos/uncategorized/2008/05/19/innovatecompare_2.png"><img alt="Innovatecompare_2" border="0" height="167" src="http://1raindrop.typepad.com/1_raindrop/images/2008/05/19/innovatecompare_2.png" title="Innovatecompare_2" width="300" /></a><p></p>
</div><div>Out of this comes the need for two things - one we need to innovate at a much higher rate, but equally important, we need better deployment models. The primitives we have that actually work need to be engineered better to form fit to the rapidly changing software side. Its not good enough to say &quot;<a href="http://1raindrop.typepad.com/1_raindrop/2007/10/sacred-cow-gore.html">we have it all figured out</a>&quot;, we have to apply the stuff that works to real software architectures. Why is the a dab of firewalls and SSL still our answer after all these years?</div><br /><div>Two case studies of where security technologies were adapted to technical realities to provide effective security mechanisms in the real world are SAML, which learned a lot from Kerberos and then applied it to the Web and XML; WS-Trust/STS, which owes a lot to SDSI/SPKI and applied it to Web services/XML plumbing.</div><br /><div>Software security is starting to grow as an industry. But a lot of the answers I hear and see in the field are predicated on &quot;we want to reengineer the entire SDLC&quot;, etc. sometimes what is really needed is evolution not revolution, and an easy to use adapter that ships in a few weeks...I remember <a href="http://1raindrop.typepad.com/1_raindrop/2005/12/the_road_to_ass.html">Brian Snow&#39;s</a> talk at black hat several years ago when he talked about how the NSA putting certificate checks in all calls to the Solaris kernel. Its not all about new primitives, its also about finding the art of the possible of what we can do with what we already have. Chief among these is adapting to technical realities.</div>]]></content:encoded>
      <pubDate>Thu, 04 Sep 2008 06:22:34 +0000</pubDate>
      <category domain="http://securityratty.com/tag/security">security</category>
      <category domain="http://securityratty.com/tag/security technologies">security technologies</category>
      <category domain="http://securityratty.com/tag/real software architectures">real software architectures</category>
      <category domain="http://securityratty.com/tag/software">software</category>
      <category domain="http://securityratty.com/tag/security folk">security folk</category>
      <category domain="http://securityratty.com/tag/technical realities">technical realities</category>
      <category domain="http://securityratty.com/tag/software security">software security</category>
      <category domain="http://securityratty.com/tag/web">web</category>
      <category domain="http://securityratty.com/tag/web servicesxml">web servicesxml</category>
      <source url="http://1raindrop.typepad.com/1_raindrop/2008/09/adapting-to-shelf-life.html">Adapting to Shelf Life</source>
    </item>
    <item>
      <title><![CDATA[More Log Management Questions - Answered!]]></title>
      <link>http://securityratty.com/article/ecfe354f02abfe2889064a56828eecd7</link>
      <guid>http://securityratty.com/article/ecfe354f02abfe2889064a56828eecd7</guid>
      <description><![CDATA[I did this VERY fun webcast with WhiteHatWorld this week and a lot of good questions about log management came up. I am answering them here for my readers. BTW, LogLogic product-specific questions can...]]></description>
      <content:encoded><![CDATA[<p>I did <a href="http://whitehatworld.com/may22.html">this VERY fun webcast</a> with WhiteHatWorld this week and a lot of good questions about <a href="http://www.loglogic.com">log management</a> came up. I am answering them here for my readers. BTW, <a href="http://www.loglogic.com">LogLogic</a> product-specific questions can be found on <a href="http://www.loglogic.com">LogLogic website</a>; I am not answering them here. <p>&nbsp; <p>Q1: Is a preferred log management program to consolidate the log data and then allow us to review them? <p>A1: The answer is "Yes!" for a vast majority of use cases consolidating logs work better than the silo'ed approach. Also, this will be answered in&nbsp; longer dedicated post within a few days (link TBA). <p>&nbsp; <p>Q2: Is it feasible to use a log management tool to try to determine whether application events / failures are being caused by infrastructure issues? <p>A2:Wow, fantastic! The answer&nbsp; to this is "Yes, if you have the right logs collected." In most cases,&nbsp; to get to the bottom of such issues requires having BOTH application (e.g. PeopleSoft or Oracle) and infrastructure logs (e.g. Windows or Solaris). <p>&nbsp; <p>Q3: What the typical retention schedule for logs which might be required logs for compliance issues? <p>A3: I wish I can give a simple answer for this, but there is none. Well, PCI DSS makes it simple: 1 year for logs from in-scope systems. Other regulations are not as clear and the numbers, or - more often! - guesses at such number range from 90 days to 7 years and more.&nbsp; 90 days to 1 year is a common retention policy for security (on the longer side of this range) and operationally (on the shorted side of this time range) useful logs. <a href="chuvakin.blogspot.com/2007/04/top-11-reasons-to-collect-and-preserve.html">Check this out</a> for a few ideas for long long you might need the logs. <p>&nbsp; <p>Q4: Once you have logged the events, what do you do with them?  <p>A4: Well, I was about to laugh it off since it truly opens up a Universe of questions, issues, challenges, etc. But here is my attempt at a short answer (like, less than a book :-)): a) you collect the logs and now you can search thru them in case you need to b) you summarize them and notice the trends - overall know what is going in your environment c) you analyze them in real time to trigger alerts on "critical" log messages - failures, attacks, etc.&nbsp; See <a href="http://www.slideshare.net/anton_chuvakin/what-every-organization-should-log-and-monitor">this slide deck</a> for some useful pointers. <p>&nbsp; <p>Q5: Why do I create a log policy?&nbsp; <p>A5: Log policy is a clear and simple document that show what you log on each system (and why): it helps you to configure logging across all the systems as well as helps to know what information you have in your environment (should an auditor ask, for example). A log policy also defines log retention, log review practices, etc. <a href="http://csrc.nist.gov/publications/nistpubs/800-92/SP800-92.pdf">NIST 800-92 Guide to Security Log Management&nbsp; [PDF]</a> is a good source of info on this subject. <p>Enjoy!</p> <div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:ed33db44-121b-4f31-bd38-5b010c412d10" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati tags: <a href="http://technorati.com/tags/log%20management" rel="tag">log management</a>, <a href="http://technorati.com/tags/logging" rel="tag">logging</a></div>  <div class="blogger-post-footer">About me: http://www.chuvakin.org</div><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/AntonChuvakinPersonalBlog?a=p2MSNH"><img src="http://feeds.feedburner.com/~f/AntonChuvakinPersonalBlog?i=p2MSNH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/AntonChuvakinPersonalBlog?a=zSlvyH"><img src="http://feeds.feedburner.com/~f/AntonChuvakinPersonalBlog?i=zSlvyH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/AntonChuvakinPersonalBlog?a=OK4Y0H"><img src="http://feeds.feedburner.com/~f/AntonChuvakinPersonalBlog?i=OK4Y0H" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AntonChuvakinPersonalBlog/~4/296896421" height="1" width="1"/>]]></content:encoded>
      <pubDate>Fri, 23 May 2008 12:04:00 +0000</pubDate>
      <category domain="http://securityratty.com/tag/log management">log management</category>
      <category domain="http://securityratty.com/tag/log">log</category>
      <category domain="http://securityratty.com/tag/defines log retention">defines log retention</category>
      <category domain="http://securityratty.com/tag/log policy">log policy</category>
      <category domain="http://securityratty.com/tag/log management tool">log management tool</category>
      <category domain="http://securityratty.com/tag/log management program">log management program</category>
      <category domain="http://securityratty.com/tag/infrastructure logs">infrastructure logs</category>
      <category domain="http://securityratty.com/tag/logs">logs</category>
      <category domain="http://securityratty.com/tag/log messages">log messages</category>
      <source url="http://feeds.feedburner.com/~r/AntonChuvakinPersonalBlog/~3/296896421/more-log-management-questions-answered.html">More Log Management Questions - Answered!</source>
    </item>
    <item>
      <title><![CDATA[Quest homes in on Unix password management ]]></title>
      <link>http://securityratty.com/article/29b397438f45447c7a4c44a7e53e59c2</link>
      <guid>http://securityratty.com/article/29b397438f45447c7a4c44a7e53e59c2</guid>
      <description><![CDATA[Overall, QPM requires moderate Unix administrative skills to both install and use. It doesn't, of course, cover Windows, but does cover Solaris and HP-UX (not tested). It's very highly configurable,...]]></description>
      <content:encoded><![CDATA[Overall, QPM requires moderate Unix administrative skills to both install and use. It doesn't, of course, cover Windows, but does cover Solaris and HP-UX (not tested). It's very highly configurable, and puts reasonably strong barriers in place to prevent undesired privileged access.<p><NOLAYER>
<IFRAME id="rss" src="http://ad.doubleclick.net/adi/idg.us.nwf.rss/security;sz=468x60;ord=59788?" width="468" height="60" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no">
<A href="http://ad.doubleclick.net/jump/idg.us.nwf.rss/security;sz=468x60;ord=59788?">
<IMG src="http://ad.doubleclick.net/ad/idg.us.nwf.rss/security;sz=468x60;ord=59788?" border="0" width="468" height="60"></A>
</IFRAME>
</NOLAYER></p>]]></content:encoded>
      <pubDate>Sun, 27 Apr 2008 20:00:00 +0000</pubDate>
      <category domain="http://securityratty.com/tag/unix administrative skills">unix administrative skills</category>
      <category domain="http://securityratty.com/tag/cover solaris">cover solaris</category>
      <category domain="http://securityratty.com/tag/cover windows">cover windows</category>
      <category domain="http://securityratty.com/tag/strong barriers">strong barriers</category>
      <category domain="http://securityratty.com/tag/highly configurable">highly configurable</category>
      <category domain="http://securityratty.com/tag/qpm requires">qpm requires</category>
      <category domain="http://securityratty.com/tag/prevent">prevent</category>
      <category domain="http://securityratty.com/tag/access">access</category>
      <category domain="http://securityratty.com/tag/install">install</category>
      <source url="http://www.networkworld.com/reviews/2008/042808-access-control-test-quest.html?fsrc=rss-security">Quest homes in on Unix password management </source>
    </item>
    <item>
      <title><![CDATA[Fun Log-reading]]></title>
      <link>http://securityratty.com/article/2632eb24d20a1cf6d80771a455186ea9</link>
      <guid>http://securityratty.com/article/2632eb24d20a1cf6d80771a455186ea9</guid>
      <description><![CDATA[Now, some of you are on the verge of saying &quot;Anton! Stop reading (and posting links ) - start writing already

I will, I will

But for now, here is some fun log-related stuff, in one enjoyable pile
...]]></description>
      <content:encoded><![CDATA[Now, some of you are on the verge of saying "Anton! Stop reading (and <a href="http://del.icio.us/anton18">posting links</a>) - start writing already..."<br /><br />I will, I will :-)<br /><br />But for now, here is some fun log-related stuff, in one enjoyable pile:<br /><ul><li><a href="http://beastorbuddha.com/2008/04/17/clouding-log-analysis-anything-new-worth-a-look/">Logs and security (clouded) by BeastOrBudda</a>. Good content on tracking activities thru various logs and <span style="font-weight: bold;">HOT </span>video link (<a href="http://www.youtube.com/watch?v=dPHtKarae2Q">here</a>)</li><li><a href="http://eddblogonline.blogspot.com/2008/04/is-it-better-to-leave-some-logs-behind.html">Is It Better To Leave Some Logs Behind?</a> (<a href="http://www.wwpi.com/index.php?option=com_content&amp;task=view&amp;id=3970&amp;Itemid=44">full text</a>) Good discussion on whether "collect everything" (every log) is the right strategy in all cases. Sadly, but yes, some logs are so poorly done  (<a style="font-style: italic;" href="http://chuvakin.blogspot.com/2007/11/anton-security-tip-of-day-13-into.html">Solaris BSM anyone? :-)</a><span style="font-style: italic;"> [some of the logs there are worth dumping...]</span>) that they are truly useless for most conceivable purposes and can be thrown away with no loss of useful information whatsoever.</li><li>"<a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;947226">Description of security events in Windows Vista and in Windows Server 2008</a>" - read it if you are into sort of thing :-)</li></ul>Enjoy!<div class="blogger-post-footer">About me: http://www.chuvakin.org</div><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/AntonChuvakinPersonalBlog?a=tksRWyG"><img src="http://feeds.feedburner.com/~f/AntonChuvakinPersonalBlog?i=tksRWyG" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/AntonChuvakinPersonalBlog?a=yn4gNxG"><img src="http://feeds.feedburner.com/~f/AntonChuvakinPersonalBlog?i=yn4gNxG" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AntonChuvakinPersonalBlog/~4/275162169" height="1" width="1"/>]]></content:encoded>
      <pubDate>Mon, 21 Apr 2008 17:24:00 +0000</pubDate>
      <category domain="http://securityratty.com/tag/logs">logs</category>
      <category domain="http://securityratty.com/tag/hot video link">hot video link</category>
      <category domain="http://securityratty.com/tag/security">security</category>
      <category domain="http://securityratty.com/tag/security events">security events</category>
      <category domain="http://securityratty.com/tag/information whatsoever">information whatsoever</category>
      <category domain="http://securityratty.com/tag/fun">fun</category>
      <category domain="http://securityratty.com/tag/enjoyable pile">enjoyable pile</category>
      <category domain="http://securityratty.com/tag/windows server">windows server</category>
      <category domain="http://securityratty.com/tag/conceivable purposes">conceivable purposes</category>
      <source url="http://feeds.feedburner.com/~r/AntonChuvakinPersonalBlog/~3/275162169/fun-log-reading.html">Fun Log-reading</source>
    </item>
    <item>
      <title><![CDATA[Failure to patch flaw exposes data on 60,000 at Antioch]]></title>
      <link>http://securityratty.com/article/b14c6563e67696819d7ae2c7a9ab9f5a</link>
      <guid>http://securityratty.com/article/b14c6563e67696819d7ae2c7a9ab9f5a</guid>
      <description><![CDATA[Antioch University's failure to patch a Solaris flaw exposed data on more than 60,000...]]></description>
      <content:encoded><![CDATA[Antioch University's failure to patch a Solaris flaw exposed data on more than 60,000 individuals.
<p><a href="http://feeds.computerworld.com/~a/Computerworld/Security/News?a=XEWgwd"><img src="http://feeds.computerworld.com/~a/Computerworld/Security/News?i=XEWgwd" border="0"></img></a></p><img src="http://feeds.computerworld.com/~r/Computerworld/Security/News/~4/264214461" height="1" width="1"/>]]></content:encoded>
      <pubDate>Fri, 04 Apr 2008 09:00:00 +0000</pubDate>
      <category domain="http://securityratty.com/tag/failure">failure</category>
      <category domain="http://securityratty.com/tag/solaris flaw">solaris flaw</category>
      <category domain="http://securityratty.com/tag/data">data</category>
      <category domain="http://securityratty.com/tag/patch">patch</category>
      <category domain="http://securityratty.com/tag/antioch university">antioch university</category>
      <category domain="http://securityratty.com/tag/individuals">individuals</category>
      <source url="http://feeds.computerworld.com/~r/Computerworld/Security/News/~3/264214461/article.do">Failure to patch flaw exposes data on 60,000 at Antioch</source>
    </item>
    <item>
      <title><![CDATA[Limiting Process Privileges Should Be Easier]]></title>
      <link>http://securityratty.com/article/407e398245208b5da8b40077dc0ce480</link>
      <guid>http://securityratty.com/article/407e398245208b5da8b40077dc0ce480</guid>
      <description><![CDATA[I was reading DJB's retrospective on 10 years of qmail security and while I'll comment on a few of his thoughts in a separate post, one thing that struck me was his discussion of how to create a...]]></description>
      <content:encoded><![CDATA[I was reading DJB's <a href="http://cr.yp.to/qmail/qmailsec-20071101.pdf">retrospective </a>on 10 years of qmail security and while I'll comment on a few of his thoughts in a separate post, one thing that struck me was his discussion of how to create a relatively effective process sandbox for a process:<br /><blockquote><br /><ul><li>Prohibit new files, new sockets, etc., by setting the current and maximum RLIMIT_NOFILE limits to 0.</li><li>Prohibit filesystem access: chdir and chroot to an empty directory.</li><li>Choose a uid dedicated to this process ID. This can be as simple as adding the process ID to a base uid, as long as other system-administration tools stay away from the same uid range.</li><li>Ensure that nothing is running under the uid: fork a child to run setuid(targetuid), kill(-1,SIGKILL), and _exit(0), and then check that the child exited normally.</li><li>Prohibit kill(), ptrace(), etc., by setting gid and uid to the target uid.</li><li>Prohibit fork(), by setting the current and maximum RLIMIT_NPROC limits to 0.</li><li>Set the desired limits on memory allocation and other resource allocation.</li><li>Run the rest of the program.</li></ul><br /></blockquote>If doing all of the above steps seems like a bit much, then perhaps what you're sensing is that the architectural model that makes it hard for a process to drop privs, restrict what it can do, etc. is simply wrong in most operating systems.<br /><br />What strikes me about the above example is that it ought to be a lot easier for a developer/administrator to define the policy for a given process and its run environment, without having to know this much arcana about exactly how to do it.<br /><br />Luckily, there are a few OS-supplied solutions to the problem that while not perfect and still tricky to implement, are at least a step in the right direction.<br /><br /><span style="font-weight: bold;">Solaris</span><br /><ul><li>Sun has a couple of nice blueprints on how to limit the privileges for a process/service.  I think it still isn't quite to the default-deny and allow only what you want stage, but interesting nonetheless.</li><ul><li><a style="" href="http://www.sun.com/blueprints/0505/819-2680.pdf"> <b>Limiting Service Privileges in the Solaris 10 Operating System</b></a> </li><li><a style="outline-color: invert; outline-style: dotted; outline-width: 1px; outline-offset: 0pt;" href="http://www.sun.com/blueprints/0206/819-5507.pdf"> <b>Privilege Debugging in the Solaris 10 Operating System</b></a> </li></ul></ul><span style="font-weight: bold;">Windows Server 2008</span><br /><ul><li>Microsoft has introduced service hardening and reduced privileges in Server-2008.<br /></li><ul><li><a href="http://technet2.microsoft.com/windowsserver2008/en/library/e7e522ac-b32f-42e1-b914-53ccc78d18161033.mspx?mfr=true">Security Configuration Wizard</a><br /></li></ul><li>Based on what I can tell their new wizard and SCM in general are structured more around least privilege than some of the other operating systems. At least from an ease-of-use standpoint.<br /></li></ul><span style="font-weight: bold;">Linux</span><br /><ul><li>On Linux we have several options.<br /></li><ul><li>SELinux</li><li>AppArmor</li></ul><li>I haven't looked extensively at either of them yet but I'll try to look into whether their policy model is better/worse than the options above.</li></ul><span style="font-weight: bold;">MacOS</span><br /><ul><li>Leopard introduces a new process sandboxing mechanism.  Unfortunately the details are a bit sketchy.  The Matasano guys have a <a href="http://www.matasano.com/log/981/a-roundup-of-leopard-security-features/">writeup </a>of it, but I haven't seen any details on the exact mechanisms and/or configuration.<br /></li></ul><img src="http://feeds.feedburner.com/~r/SecurityRetentive/~4/182320370" height="1" width="1"/>]]></content:encoded>
      <pubDate>Fri, 09 Nov 2007 07:00:00 +0000</pubDate>
      <category domain="http://securityratty.com/tag/process">process</category>
      <category domain="http://securityratty.com/tag/uid">uid</category>
      <category domain="http://securityratty.com/tag/effective process sandbox">effective process sandbox</category>
      <category domain="http://securityratty.com/tag/kill">kill</category>
      <category domain="http://securityratty.com/tag/prohibit kill">prohibit kill</category>
      <category domain="http://securityratty.com/tag/uid range">uid range</category>
      <category domain="http://securityratty.com/tag/prohibit">prohibit</category>
      <category domain="http://securityratty.com/tag/privileges">privileges</category>
      <category domain="http://securityratty.com/tag/target uid">target uid</category>
      <source url="http://feeds.feedburner.com/~r/SecurityRetentive/~3/182320370/limiting-process-privileges-should-be.html">Limiting Process Privileges Should Be Easier</source>
    </item>
  </channel>
</rss>
