<?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>Beyond Abstraction &#187; Security</title>
	<atom:link href="http://beyondabstraction.net/category/computers/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://beyondabstraction.net</link>
	<description>Meanderings and Such...</description>
	<lastBuildDate>Thu, 22 Dec 2011 14:29:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Server Migration</title>
		<link>http://beyondabstraction.net/2008/03/08/server-migration/</link>
		<comments>http://beyondabstraction.net/2008/03/08/server-migration/#comments</comments>
		<pubDate>Sat, 08 Mar 2008 19:16:33 +0000</pubDate>
		<dc:creator>spencer</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SELinux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[brickwall]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[rhel]]></category>

		<guid isPermaLink="false">http://beyondabstraction.net/2008/03/08/server-migration/</guid>
		<description><![CDATA[It&#8217;s been three years since we upgraded the hardware that hosts our various sites. I contacted my provider (Crucial Paradigm) and got some competitive offers. Stefan, my friend in Berlin that I split the server with, and I agreed on the following specs: Athlon 64 x2 4000 (2 cores @ 2.1GHz, 512K L2 each) 4GB &#8230; </p><p><a class="more-link block-button" href="http://beyondabstraction.net/2008/03/08/server-migration/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been <a href="http://beyondabstraction.net/2005/03/03/new-server-and-the-seframework/" title="Old, New Hardware">three years since we upgraded the hardware</a> that hosts our various sites.  I contacted my provider (Crucial Paradigm) and got some competitive offers. Stefan, my friend in Berlin that I split the server with, and I agreed on the following specs:</p>
<ul>
<li>Athlon 64 x2 4000 (2 cores @ 2.1GHz, 512K L2 each)</li>
<li>4GB RAM, 160GB SATA, 100Mbps</li>
<li><a href="http://www.centos.org">CentOS 5</a></li>
<li>Apache, BIND, MySQL, Postifx, Spam Assassin, ClamAV, Cyrus IMAP</li>
<li>SELinux enforcing</li>
</ul>
<p>Once again this is going to be a dedicated, remote, hosted server.  A few days later and they contacted me with the login information.  I&#8217;m going to describe the move from a high-level.  I&#8217;m not going to go through the individual config file modifications or how to dump a Cyrus database.</p>
<p><span id="more-113"></span></p>
<p>It only took me about a day to prep the new system for the move.  Stefan was gone for a week so I could move pretty much all of my stuff but I would wait until he got back to move the shared mail services.  It is rather difficult to incrementally move users from one system to another using Cyrus so I just did a test migration of the IMAP spools and databases but waited on actually updating the DNS MX records.  </p>
<p>First I updated the glue records and name servers at my registrar.  I made the new system master and the old system I just modified to run as a slave.  I also had Josh fix his config since he is my DNS buddy (I highly recommend using the DNS buddy system).  With DNS up and running I added entries for the new server.</p>
<p>Then I moved my website.  I just dumped my databases and pulled them into the new system.  A few Apache tweaks and everything was good to go.  I was pulling my hair out at one point trying to figure out why the CentOS default page was appearing but I finally tracked it down to a welcome.conf configuration file.  I removed that and found I could debug Apache config problems more easily.</p>
<p>I decided to tackle all of the SSL stuff at once.  I setup Apache, Cyrus, and Postfix w/ certs and CAs.  I tested each service to ensure I had the directory permissions correct and had the authentication mechanisms properly configured.  It is at this point that I tested a Cyrus migration knowing that I would be repeating the process again later.  </p>
<p>Then I moved on to configuring the rest of the Postfix chain using Amavis, Spam Assassin, and ClamAV.  There was plenty of documentation on this process available online.  Note that ClamAV (and maybe a few of the others) are only available in the rpmforge yum repos.  These programs aren&#8217;t officially part of the CentOS/RHEL distributions but are commonly used by the user communities.  As a result their configuration files don&#8217;t mesh precisely with the rest of the services, for example storing the virus database in /var/clamav by default instead of /var/lib/clamav.  I fixed these discrepancies and would recommend you do the same.  It did take me a while to track all of these down.  freshclam (the ClamAV updater) was running from a Cron job.  It was trying to write to &#8220;/var/clamav&#8221; which didn&#8217;t exist.  As a result the virus signatures weren&#8217;t updating.  I discovered this only through reviewing the logs.</p>
<p>As soon as Stefan got back he moved all of his services and data.  Finally we cut the mail over to the new system by fixing the MX records and using the Postfix transport map feature on the old system to force it to relay to the new server.  That completed the migration.</p>
<p><strong>SELinux</strong><br />
Upon login I discovered SELinux was disabled despite my specific request that it be enabled.  I decided to fix it by hand instead of letting Brickwall fix it automatically to show that going from disabled to permissive to enforcing isn&#8217;t bad and shouldn&#8217;t be scary.  It should be done regardless of the presence of a management tool like Brickwall.  I changed the flag in <code>/etc/selinux/config</code> to enforcing and ran <code># touch /.autorelabel</code>.  </p>
<p>I also added <code>enforcing=0</code> to the ends of the kernel command lines in <code>/boot/grub/menu.lst</code>.  </p>
<blockquote><p>Tangent &#8211; I chose this route, modifying the grub file, for going into permissive mode during configuration and testing instead of setting the flag in <code>/etc/selinux/config</code> to permissive.  Applications, such as those built into Red Hat and CentOS as well as third party applications like Brickwall, modify the settings in <code>/etc/selinux/config</code>.  It is possible for me to inadvertently set the system to boot into enforcing before I am ready using these applications.  Since this is a remote server and the configuration is in flux I want to make sure a quick remote reboot request gets me back in to my system.  It is the exact same as using iptables remotely; you don&#8217;t load the firewall rules automatically on boot until you&#8217;re sure you can get back in through SSH.  As soon as I&#8217;m confident that I typed in the SSH network settings properly the system boots into enforcing mode.</p></blockquote>
<p>After setup is complete remember to remove the kernel command line flag &#8211; always going into permissive mode on reboot, much like not auto-loading firewall rules, is a patentable bad idea on a production system.</p>
<p>I disabled all unnecessary services (everything except SSH at this point) and rebooted.  The system relabeled and came up in permissive mode.   Everything was working fine and running in the proper SELinux domains according to <code># ps axZ</code>.  I ran <code># setenforce 1</code> to go into enforcing mode for the first time.  </p>
<p>Nothing bad happened.  The world didn&#8217;t end.  The system didn&#8217;t stop responding.  I&#8217;m also assuming the rampant rumor that <a href="http://twitter.com/UnquietMind/statuses/723260632" title="SELinux Kills">SELinux kills Giraffes in enforcing mode</a> is false because I watched the news and saw nothing Giraffe related.  This SELinux stuff really isn&#8217;t as hard, or as mean as people make it sound.  BTW Brickwall would have taken care of all of this editing of SELinux config files and relabeling stuff for me if I wasn&#8217;t such a control freak.</p>
<p>Well turning it on is one thing.  Really using it is a whole &#8216;nother thing right?  That is where Brickwall comes into play (disclaimer [1]).  I mentioned it before but think &#8220;SELinux Management&#8221; and there are free versions for Fedora and demos for RHEL and CentOS.  Because I&#8217;m cool I get to use the Enterprise Edition.  Mere mortals may have to run Professional or Standard via &#8220;ssh -X&#8221;.  There is no difference in configurability.  Both use the same configuration GUI.  The only policy difference is the policy for the remote daemon &#8211; not really needed if the remote enterprise management daemon isn&#8217;t installed.  One has centralized/remote management, the other does not. </p>
<p>Brickwall Enterprise Edition has two components, the centralized manager application with configuration editor and the remote daemon.  The centralized management application takes different plug-ins &#8211; I&#8217;m only going to be using Brickwall plug-in that supports general SELinux configuration.  I installed the Enterprise Manager with the Brickwall Enterprise component on my desktop RHEL 5 system.  This installation process generated the remote daemon RPMs for me.  These packages include SSL keys tying the remote daemon to this specific Enterprise Manager install.  The SSL keys are used to encrypt the network traffic between the manager and the client daemons.</p>
<p>I installed the remote daemon on the new system.  It is just a little daemon that facilitates remote management of SELinux policy.  I added one of the IPs of this system to a group in my Enterprise Manager.  The system had to be &#8220;activated&#8221; which means Brickwall had to switch from the standard targeted policy to a Brickwall policy.  There aren&#8217;t really any functional differences between the two policies &#8211; a default Brickwall policy is semantically equivalent to a targeted policy as shipped by Red Hat/CentOS.  But the Brickwall policy contains the structure we need in-place to customize the policy later.</p>
<p>Continuing w/ Brickwall I started restricting network settings for the services I would be running (listed above).  I restricted things like the spam, virus, mysql, and other mail filtering services to local host only.  I restricted service ports to meet my requirements.  I applied the configuration changes and rebooted and went into enforcing to verify services came up in the proper domain after a reboot.</p>
<p>All of the SELinux domain names show exactly what processes they target so run`ps axZ`.  All of you key services should be running as &#8220;*:*:servicename_t&#8221;, such as &#8220;mysqld_t&#8221; or &#8220;httpd_t&#8221; or &#8220;postfix_smtp_t&#8221;.  </p>
<p>The only thing that should be &#8220;unconfined_t&#8221; is user processes or custom services that aren&#8217;t targeted by SELinux.  Note that there are some 200 odd applications or services covered by SELinux so there is a good chance your &#8220;custom service&#8221; is covered.</p>
<p>[1] Disclaimer: I work for the company that makes Brickwall.  Since I&#8217;m only an amateur blogger (not commerically endorsed, still eligible for the Bloglympics) and since this doesn&#8217;t appear on tresys.com I&#8217;m not going to be writing a review or praise the software, I&#8217;m just going to run through using it to batten down the hatches on my system.</p>
]]></content:encoded>
			<wfw:commentRss>http://beyondabstraction.net/2008/03/08/server-migration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SELinux Slogans</title>
		<link>http://beyondabstraction.net/2008/01/10/selinux-slogans/</link>
		<comments>http://beyondabstraction.net/2008/01/10/selinux-slogans/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 20:33:14 +0000</pubDate>
		<dc:creator>spencer</dc:creator>
				<category><![CDATA[SELinux]]></category>

		<guid isPermaLink="false">http://beyondabstraction.net/2008/01/10/selinux-slogans/</guid>
		<description><![CDATA[Lately conversations keep turning up new slogans for SELinux. I figure this is as good a place as any to keep a running list so here we go: SELinux &#8211; Because users do weird shit. SELinux &#8211; Fuck root. SELinux &#8211; Hampering administrators since before it was cool. SELinux &#8211; Take revenge against the BOFH &#8230; </p><p><a class="more-link block-button" href="http://beyondabstraction.net/2008/01/10/selinux-slogans/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Lately conversations keep turning up new slogans for SELinux.  I figure this is as good a place as any to keep a running list so here we go:</p>
<blockquote>
<ul>
<li>SELinux &#8211; Because users do weird shit.</li>
<li>SELinux &#8211; Fuck root.</li>
<li>SELinux &#8211; Hampering administrators since before it was cool.</li>
<li>SELinux &#8211; Take revenge against the BOFH</li>
<li>SELinux &#8211; High-security gone haywire.</li>
<li>SELinux &#8211; Turning it off is like removing the batteries from a smoke detector.  Sure it sounds better but you might get burned.</li>
<li>SELinux &#8211; Because life is too simple.</li>
<li>SELinux &#8211; AppArmor sucks.</li>
<li>SELinux &#8211; It&#8217;s too early in the morning to be cleaning up after 11-year old kiddies.</li>
<li>SELinux &#8211; Too powerful for our own good.</li>
<li>SELinux &#8211; Here&#8217;s our root password, what&#8217;s yours?</li>
<li>SELinux &#8211; Didn&#8217;t they teach you about using protection in high-school?</li>
<li>SELinux &#8211; Blind faith not required</li>
</ul>
</blockquote>
<p>Thinking about slogans actually got me thinking about &#8220;short reasons to use SELinux&#8221;.</p>
<blockquote>
<ul>
<li><a href="http://www.tresys.com/files/docs/SELinux-TCO-White-Paper.pdf" title="The Financial Benefits of Mandatory Access Control Security">SELinux will save you tons of money, your TCO will go down and your ROI will go up.</a> </li>
<li>SELinux supports 3-letter acronyms out of the box, no complex policy changes required.</li>
<li>Zero day vulnerabilities are a fact.  Do something about it.</li>
<li>Trusted Solaris has been end-of-lifed and you&#8217;re not in the government space to begin with.</li>
<li>Path-named based access control is weak.</li>
<li>Implicitly trusting admins doesn&#8217;t have to be SOP.</li>
<li>You&#8217;re not a security expert, let us do the hard work.</li>
<li>The US military (and others) trust SELinux with their information, shouldn&#8217;t you? [1]</li>
</ul>
</blockquote>
<p>These are just a few.  </p>
<p>[1] The answer to this question might actually be a resounding &#8220;no!&#8221; Don&#8217;t worry, I&#8217;m not offended.</p>
]]></content:encoded>
			<wfw:commentRss>http://beyondabstraction.net/2008/01/10/selinux-slogans/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Did you hacked iPhone users learn your lesson?</title>
		<link>http://beyondabstraction.net/2008/01/09/did-you-hacked-iphone-users-learn-your-lesson/</link>
		<comments>http://beyondabstraction.net/2008/01/09/did-you-hacked-iphone-users-learn-your-lesson/#comments</comments>
		<pubDate>Wed, 09 Jan 2008 18:17:08 +0000</pubDate>
		<dc:creator>spencer</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://beyondabstraction.net/2008/01/09/did-you-hacked-iphone-users-learn-your-lesson/</guid>
		<description><![CDATA[Jarno over at F-Secure commented on the recent &#8220;trojan&#8221; for the iPhone : Hopefully this serves as a warning for those who have opened their iPhones using a security hole in the system and then installing unverified software without a second thought to what they are doing. Warning noted. The lesson here is not that &#8230; </p><p><a class="more-link block-button" href="http://beyondabstraction.net/2008/01/09/did-you-hacked-iphone-users-learn-your-lesson/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.f-secure.com/weblog/archives/00001355.html" title="Trojan Software for iPhone">Jarno over at F-Secure commented on the recent &#8220;trojan&#8221; for the iPhone</a> :</p>
<blockquote><p>
Hopefully this serves as a warning for those who have opened their iPhones using a security hole in the system and then installing unverified software without a second thought to what they are doing.
</p></blockquote>
<p>Warning noted.  The lesson here is not that we, the hacked iPhone community, should not take advantage of the holes; the lesson is use some common fucking sense.  Especially if you&#8217;re using a hacked phone with wireless stuff coming out of the wazoo.  </p>
<p>Those of you reading this via RSS can fuck off&#8230; just about&#8230; now.</p>
<p><span id="more-102"></span><br />
&lt;!&#8211;more&#8211;&gt;</p>
<p>Sorry, I&#8217;ve been meaning to do that for awhile.</p>
<p>Take note of <del datetime="2008-01-08T23:57:35+00:00">three</del> four things [1]:</p>
<ul>
<li>1. It is portable</li>
<li>B. It is highly networked</li>
<li>3. You can install all sorts of things at the touch of a finger</li>
<li>4. It might run some derivation of the almighty Unix, we&#8217;re not really sure.  And the terminal emulation app is no help.</li>
</ul>
<p>When you combine these things plus a pinch or two of stupidity and you have yourself the makings of a good time.  iPhone users and smartphone users in general need to understand the power of the devices in their pockets.  </p>
<p>The more power a system has  the more likely someone is going to hack it.  CPU cycles, bandwidth, data, and prestige are fragments of this power.  A random server in China ready to be rootkit&#8217;d to serve copyrighted material on IRC, the credit card companies database server, and the really popular and trendy pocket-sized computer &#8211; they all have this aura, this power.   An 11 y/o [q] is drawn to this power like a moth to light.  You can&#8217;t really stop the kid, just like you can&#8217;t stop the moth.  But you can turn off the light.</p>
<p>But think about power in relation to other devices.  A bluetooth headset: portable, networked, but you can&#8217;t really do a whole lot with one.  If you find a flaw in my Jawbone&#8217;s Bluetooth implementation and manage to exploit the flaw BFD.  I don&#8217;t care if you can hack my headset.  No power here.  But the iPhone, I do care if you hack my iPhone.  It plays a big role in communication.  </p>
<p>When it comes down to it the iPhone is really just a server from your operations center shrunk down a bit.  You&#8217;re walking around with a full BSD variant here, be aware of that fact.  You wouldn&#8217;t install random, untrusted applications on your server in the op center, don&#8217;t do it on the server in your pocket without carefully exploring the source (code or person).  Common sense.  Plain and simple.  </p>
<p>Verifying the source is only one way to protect yourself.  You might still get hacked but at least you didn&#8217;t do the dirty work for the kiddie. </p>
<p>Now back to Jarno.  Personally I would rather mod my iPhone rather than leave it stock.  <a href="http://beyondabstraction.net/2007/10/30/iphone-tiff-exploit-jailbreak/" title="iPhone TIFF exploit">One of the open doors used by the mod community was a TIFF exploit.</a>  A TIFF exploit that allowed any arbitrary website to execute arbitrary code on my phone.  The mod used the exploit to gain entry to the system and then closed the door behind itself.  Had I not used the trusted exploit to mod my iPhone some random guy in Russia could be using it to server porn.  <em>All without me installing some random kids malicious package</em>.  Just to be clear: I&#8217;m pretty sure my iPhone is &#8220;more secure&#8221; now than it was when I started.  Perhaps that warning is mis-placed.  If you aren&#8217;t a retard your iPhone <del datetime="2008-01-09T17:41:17+00:00">will be</del> may be more secure after you have hacked it using the existing mods.</p>
<p>Yes I have to be careful.  Yes others should be careful.  Understand that someone will be attempting to hack the device in your pocket as long as that aura of power exists.  Read reviews of the application, explore the source code, verify the source (website/person).  Change the password when you install SSH.  Turn off unused services like AFSd and SSH.  You know, just look up any UNIX best security practices guide and read through it, most of it will apply here.  Then pick up any book about embedded security, all of that will apply.  Now go back to the library and pickup a book on wireless security.  Or instead of reading, which I hate, you could just stop being a dumbass.</p>
<p>I couldn&#8217;t find a reasonable place to drop this one so here: &#8220;is that an iPhone in your pocket or did I just Trojan your Troy?&#8221; [2]  </p>
<p>[1] The iPhone is actually all-knowing as well but I didn&#8217;t want to debate the omnipotence of the device.  Debating over its powers only serves to anger the iPhone.</p>
<p>[2] This is not funny. </p>
<p>[q] I&#8217;m not trying to pick on eleven year-olds here.  Twelve y/o works just as well.  Eleven just seems like a good age for people to get interested in computer security and they also seem to discover capitalization and leet speak.</p>
]]></content:encoded>
			<wfw:commentRss>http://beyondabstraction.net/2008/01/09/did-you-hacked-iphone-users-learn-your-lesson/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Security pwnz j00!</title>
		<link>http://beyondabstraction.net/2007/11/19/security-pwnz-j00/</link>
		<comments>http://beyondabstraction.net/2007/11/19/security-pwnz-j00/#comments</comments>
		<pubDate>Tue, 20 Nov 2007 01:11:43 +0000</pubDate>
		<dc:creator>spencer</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://beyondabstraction.net/2007/11/19/security-pwnz-j00/</guid>
		<description><![CDATA[Scott Adams created two strips that are so on point I just can&#8217;t help myself&#8230; This should be required reading for security experts and &#8220;normies&#8221; alike&#8230;]]></description>
			<content:encoded><![CDATA[<p>Scott Adams created two strips that are so on point I just can&#8217;t help  myself&#8230;</p>
<p><a href='http://beyondabstraction.net/wp-content/uploads.hidden/2007/11/dilbert2007113333116.gif' title='Dillbert Security1' rel="lightbox"><img src='http://beyondabstraction.net/wp-content/uploads.hidden/2007/11/dilbert2007113333116.gif' alt='Dillbert Security1' /></a></p>
<p><a href='http://beyondabstraction.net/wp-content/uploads.hidden/2007/11/dilbert2007111111117.gif' title='Dilbert on Security' rel="lightbox"><img src='http://beyondabstraction.net/wp-content/uploads.hidden/2007/11/dilbert2007111111117.gif' alt='Dilbert on Security' /></a></p>
<p>This should be required reading for security experts and &#8220;normies&#8221; alike&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://beyondabstraction.net/2007/11/19/security-pwnz-j00/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Leopard OS 10.5 Windows shares not showing up in Finder</title>
		<link>http://beyondabstraction.net/2007/10/30/leopard-os-105-windows-shares-not-showing-up-in-finder/</link>
		<comments>http://beyondabstraction.net/2007/10/30/leopard-os-105-windows-shares-not-showing-up-in-finder/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 16:27:15 +0000</pubDate>
		<dc:creator>spencer</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[osx leopard computers]]></category>

		<guid isPermaLink="false">http://beyondabstraction.net/2007/10/30/leopard-os-105-windows-shares-not-showing-up-in-finder/</guid>
		<description><![CDATA[Well like any good end-user I immediately installed the latest version of OS X without looking for problems others were having. Well my friend at work, Chris Ashworth, pointed out that my install didn&#8217;t list Windows shares in the Finder window under &#8220;Shares&#8221;. I was only seeing Bonjour systems and didn&#8217;t have the &#8220;All&#8230;&#8221; item &#8230; </p><p><a class="more-link block-button" href="http://beyondabstraction.net/2007/10/30/leopard-os-105-windows-shares-not-showing-up-in-finder/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Well like any good end-user I immediately installed the latest version of OS X without looking for problems others were having.  Well my friend at work, <a href="http://chrisashworth.org/blog/">Chris Ashworth</a>, pointed out that my install didn&#8217;t list Windows shares in the Finder window under &#8220;Shares&#8221;.  I was only seeing Bonjour systems and didn&#8217;t have the &#8220;All&#8230;&#8221; item like he had.  Being a computer guy I was obligated to waste entirely to much time figuring out such a small problem.  I tried all sorts of things like enabling file sharing (which should have zero impact), entering the SMB system through finder using command+k, and staring at the wall for 45 minutes. None of this helped.</p>
<p>Finally today I re-visited my firewall settings in the security preference pane.  I, once again like any good user, had immediately turned on the second option blocking all ports except SSH which I had enabled in the sharing preference pane.  I tried the first option, allow all traffic, and low and behold a few seconds later the &#8220;All&#8230;&#8221; item had appeared in Finder and clicking it revealed numerous Windows shares.  File selection windows also provided access to the Windows shares.  Strange right?</p>
<p>Now I&#8217;m no security expert, but having to turn off the firewall to browse for Windows shares seems sub-optimal.  Of course given the tiff exploit I just posted about <a href="http://beyondabstraction.net/2007/10/30/iphone-tiff-exploit-jailbreak/">here</a>, I&#8217;m beginning to wonder if Apple needs to shift their focus back to security a bit.  I&#8217;m sure <em>someone</em> at Apple knows something about security and testing.  Or did Apple spend the security budget on the <a href="http://www.techdirt.com/articles/20070111/005550.shtml">200+ patents in the iPhone</a>? </p>
<p>On a side note, I have forgotten how much fun troll baiting (no jokes &#8211; too easy) actually is.</p>
<p>Update: <a href="http://seclists.org/bugtraq/2007/Oct/0419.html">Sometimes</a> being sooooo right <a href="http://www.heise-security.co.uk/articles/98120">is a bad thing</a></p>
]]></content:encoded>
			<wfw:commentRss>http://beyondabstraction.net/2007/10/30/leopard-os-105-windows-shares-not-showing-up-in-finder/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iPhone tiff exploit + jailbreak</title>
		<link>http://beyondabstraction.net/2007/10/30/iphone-tiff-exploit-jailbreak/</link>
		<comments>http://beyondabstraction.net/2007/10/30/iphone-tiff-exploit-jailbreak/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 14:01:58 +0000</pubDate>
		<dc:creator>spencer</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SELinux]]></category>

		<guid isPermaLink="false">http://beyondabstraction.net/2007/10/30/iphone-tiff-exploit-jailbreak/</guid>
		<description><![CDATA[We in the security community have been trying to explain the benefit of MAC to developers in the embedded device arena for awhile now. Maybe if people keep threatening devices with radio chips and tons of proprietary crap the embedded developers will jump onboard. Motorola has been using SELinux/SEBSD on the A1200 and other devices &#8230; </p><p><a class="more-link block-button" href="http://beyondabstraction.net/2007/10/30/iphone-tiff-exploit-jailbreak/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>We in the security community have been trying to explain the benefit of MAC to developers in the embedded device arena for awhile now.  Maybe if people keep threatening devices with radio chips and tons of proprietary crap the embedded developers will jump onboard.  Motorola has been using SELinux/SEBSD on the A1200 and other devices for <a href="http://wiki.openezx.org/Rokr_E2#Motorola_SElinux_Policy">awhile now</a>.  Given the high-level view of the policy and lack of knowledge about the proprietary software and architecture driving the device I can&#8217;t really jump to any conclusions about the completeness of their policy but they are at least trying.<br />
<span id="more-63"></span></p>
<p>The reason I&#8217;m mentioning this is the most recent tiff exploit in the iPhone.  Some hackers (the good kind) got ahold of it and used it to slip Installer.app on the iPhone.  They were even kind enough to close the door they come in through; the exploit patches the vulnerability after it has installed Install.app.  </p>
<p>I know this is SELinux and not SEBSD, although these permissions are in both IIRC, but lets try to count the permissions SELinux would have at its disposal to stop such an &#8220;attack&#8221;:</p>
<ul>
<li>memory protection</li>
<li>file write protection (although <a href="http://feeds.tuaw.com/~r/weblogsinc/tuaw/~3/176703304/">Erica Sadun says</a> this is done by &#8220;reassigning the root of the file tree&#8221;, whatever the hell that means&#8230; chroots?  bind mounts?  namespaces?)</li>
<li>execute</li>
<li>execute_no_trans</li>
</ul>
<p>Listing these permissions is great, but what if Apple had needed Safari to download and install updates?  Perhaps they could use a small app trusted to verify that Apple had signed the apps.  Protect this app and it&#8217;s resources via SELinux and you&#8217;re golden.  </p>
<p>I believe that DRM and security are hard to enforce when the keys are in the hands of the users.  Someone will likely figure out how to view the filesystem or at least how to access it by sniffing USB traffic or looking at the hardware being used (in the case of DVD players etc).  In this case, if you created a kernel that refused to boot in permissive mode would that be sufficient?  Perhaps not, they could feasibly load their own kernel but that would be much more difficult given a properly architected MAC policy protecting the kernel itself.  </p>
]]></content:encoded>
			<wfw:commentRss>http://beyondabstraction.net/2007/10/30/iphone-tiff-exploit-jailbreak/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SELinux FAQ #1</title>
		<link>http://beyondabstraction.net/2007/06/06/selinux-faq-1/</link>
		<comments>http://beyondabstraction.net/2007/06/06/selinux-faq-1/#comments</comments>
		<pubDate>Wed, 06 Jun 2007 06:22:39 +0000</pubDate>
		<dc:creator>spencer</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SELinux]]></category>
		<category><![CDATA[SELinux FAQ]]></category>

		<guid isPermaLink="false">http://beyondabstraction.net/2007/06/06/selinux-faq-1/</guid>
		<description><![CDATA[I reckon about three people a day enter the #selinux channel on freenode, ask a question, and than leave a few minutes later without giving anyone a chance to respond. Since no question askers read the topics or have the time to idle I figured I&#8217;d start posting their questions here. There is a good &#8230; </p><p><a class="more-link block-button" href="http://beyondabstraction.net/2007/06/06/selinux-faq-1/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>I reckon about three people a day enter the #selinux channel on freenode, ask a question, and than leave a few minutes later without giving anyone a chance to respond.  Since no question askers read the topics or have the time to idle I figured I&#8217;d start posting their questions here.  There is a good chance I won&#8217;t be able to answer them without more detail, but hell, its gotta be better than nothing (maybe).  This quote is from the IRC channel so forgive the formatting.</p>
<blockquote><p><code>how can i give a user read access to the /etc/mail (etc_mail_t) sendmail.cf?<br />
                         when i try to connect to sendmail: NOQUEUE: SYSERR(rattler):<br />
                         /etc/mail/sendmail.cf: line 0: cannot open: Permission denied<br />
</code></p></blockquote>
<p>On a targeted system a &#8220;user&#8221;, as in the traditional Unix sense, is not confined in any manner.  On a default FC6 install I can read /etc/mail/sendmail.cf with no denials in enforcing mode with any user logged in at the local console or via SSH.</p>
<p>So given the fact that any user can read the file I can only assume you mean the daemon itself.  Well, once again on a default system, the sendmail daemon can read the file you specified.  On my system the file has the type:<br />
<code><br />
[spencer@sshimko-fc6 ~]$ ls -Z /etc/mail/sendmail.cf<br />
-rw-r--r--  root root system_u:object_r:etc_mail_t:s0  /etc/mail/sendmail.cf<br />
</code></p>
<p>Make sure your file is labeled similarly.  If not, run &#8220;restorecon /etc/mail/sendmail.cf&#8221; and restart the mail service.  If this still doesn&#8217;t work could you please give more details?</p>
]]></content:encoded>
			<wfw:commentRss>http://beyondabstraction.net/2007/06/06/selinux-faq-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Environment, Environmental Contamination, and SELinux (part 3)</title>
		<link>http://beyondabstraction.net/2007/06/01/the-environment-environmental-contamination-and-selinux-part-3/</link>
		<comments>http://beyondabstraction.net/2007/06/01/the-environment-environmental-contamination-and-selinux-part-3/#comments</comments>
		<pubDate>Fri, 01 Jun 2007 09:26:56 +0000</pubDate>
		<dc:creator>spencer</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SELinux]]></category>

		<guid isPermaLink="false">http://beyondabstraction.net/2007/06/01/the-environment-environmental-contamination-and-selinux-part-3/</guid>
		<description><![CDATA[OK I&#8217;m going to go ahead and post this in the hopes it forces me to finish the series. Check back for updates. Not going to be this weekend, but by next weekend I promise. I&#8217;ve had the thoughts saved since I started part 1, but things kinda went awry (marriage, and then things just &#8230; </p><p><a class="more-link block-button" href="http://beyondabstraction.net/2007/06/01/the-environment-environmental-contamination-and-selinux-part-3/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>OK I&#8217;m going to go ahead and post this in the hopes it forces me to finish the <a href="http://beyondabstraction.net/2006/05/05/the-environment-environmental-contamination-and-selinux-part-2/">series</a>.  Check back for updates.  Not going to be this weekend, but by next weekend I promise.  I&#8217;ve had the thoughts saved since I started part 1, but things kinda went awry (marriage, and then things just went downhill from there  <img src='http://beyondabstraction.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ).  Regardless here is a teaser of the final segment of the series.  BTW, if you guys actually cared you woulda hounded me to finish.  Still, I promise I&#8217;ll finish up this segment this week.</p>
<p>Now back into the role of glibc.  The role of glibc was defined well before mature mandatory access controls like SELinux came into the Linux picture.  It was defined in a general fashion that allowed it to be extended by a few userland modifications and of course the kernel support discussed in the last article.</p>
<p>__libc_enable_secure in rtld.c (responsible for most of the runtime linking environment cleansing)</p>
<p>-How does SELinux solve this problem?<br />
	-I will delve into the details&#8230; security_bprm_secureexec in binfmt_elf.c<br />
	-AT_SECURE actually enforced by glibc elf/dl-support.c and elf/dl-sysdep.c<br />
	-Static apps have no problems (aside from the usual problems)<br />
	-The linker is the only _real_ threat for dynamically linked apps.<br />
-OK so the people that implemented SELinux were smart so we&#8217;re safe right?<br />
	-Delve into problems with shell scripts, interpreted code, etc</p>
]]></content:encoded>
			<wfw:commentRss>http://beyondabstraction.net/2007/06/01/the-environment-environmental-contamination-and-selinux-part-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora Core 8</title>
		<link>http://beyondabstraction.net/2007/06/01/fedora-core-7/</link>
		<comments>http://beyondabstraction.net/2007/06/01/fedora-core-7/#comments</comments>
		<pubDate>Fri, 01 Jun 2007 08:57:05 +0000</pubDate>
		<dc:creator>spencer</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SELinux]]></category>

		<guid isPermaLink="false">http://beyondabstraction.net/2007/06/01/fedora-core-7/</guid>
		<description><![CDATA[Fedora 7 has been officially released. Hurry and get yours while they last. I expect Brickwall support (read -> free SELinux tools) to be out momentarily. Hmm&#8230;. I&#8217;ll go ahead and change this to FC 8 just to keep ahead of the trend Anyways the Fedora Core 7 (FC7) release of Brickwall can be found &#8230; </p><p><a class="more-link block-button" href="http://beyondabstraction.net/2007/06/01/fedora-core-7/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://fedoraproject.org/">Fedora 7</a> has been officially released.  Hurry and get yours while they last.  I expect Brickwall support (read -> free SELinux tools) to be out momentarily.  Hmm&#8230;. I&#8217;ll go ahead and change this to FC 8 just to keep ahead of the trend <img src='http://beyondabstraction.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Anyways the Fedora Core 7 (FC7) release of <a href="http://tresys.com/products/brickwall.html">Brickwall</a> can be found <a href="http://tresys.com/products/brickwall.html">here</a> when available.</p>
]]></content:encoded>
			<wfw:commentRss>http://beyondabstraction.net/2007/06/01/fedora-core-7/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tresys Brickwall Professional for Fedora Core 6 is available for FREE!!!</title>
		<link>http://beyondabstraction.net/2007/04/12/tresys-brickwall-professional-for-fedora-core-6-is-available-for-free/</link>
		<comments>http://beyondabstraction.net/2007/04/12/tresys-brickwall-professional-for-fedora-core-6-is-available-for-free/#comments</comments>
		<pubDate>Fri, 13 Apr 2007 00:05:27 +0000</pubDate>
		<dc:creator>spencer</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SELinux]]></category>

		<guid isPermaLink="false">http://beyondabstraction.net/2007/04/12/tresys-brickwall-professional-for-fedora-core-6-is-available-for-free/</guid>
		<description><![CDATA[Two blogs ago I felt the urge to promote something my team was working on at Tresys that was only available for Red Hat Enterprise Linux 4. Well I&#8217;m pleased to announce Tresys has released a new version of our Brickwall Security Suite for Fedora Core 6. Not only our standard version, but our professional &#8230; </p><p><a class="more-link block-button" href="http://beyondabstraction.net/2007/04/12/tresys-brickwall-professional-for-fedora-core-6-is-available-for-free/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Two blogs ago I felt the urge to promote something my team was working on at Tresys that was only available for Red Hat Enterprise Linux 4.  Well I&#8217;m pleased to announce Tresys has released a new version of our Brickwall Security Suite for Fedora Core 6.  Not only our standard version, but our professional version as well!  </p>
<p>The professional version adds additional SELinux targets, aka protects additional services and daemons, and adds the ability to create a custom policy with little to no knowledge of SELinux.  </p>
<p>I highly suggest Fedora users start checking out Brickwall as opposed to listening to most bloggers that tell you to just &#8220;disable SELinux by setting the Grub command line to selinux=0&#8243;.  This is a far superior solution since you have all the security benefits of SELinux with an amazing amount of configurability and ease-of-use.</p>
<p><a href="http://www.tresys.com/products/brickwall-getitnow.html">Check it out.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://beyondabstraction.net/2007/04/12/tresys-brickwall-professional-for-fedora-core-6-is-available-for-free/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

