<?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>Ruiz-Ade.com &#187; Security</title>
	<atom:link href="http://ruiz-ade.com/category/tech/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://ruiz-ade.com</link>
	<description>Living life so you don't have to.</description>
	<lastBuildDate>Wed, 19 Oct 2011 20:08:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Balance (Security vs. Usability)</title>
		<link>http://ruiz-ade.com/2011/10/19/balance-security-usability/</link>
		<comments>http://ruiz-ade.com/2011/10/19/balance-security-usability/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 19:59:07 +0000</pubDate>
		<dc:creator>Gregory Ruiz-Ade</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Link-bait]]></category>
		<category><![CDATA[Siri]]></category>

		<guid isPermaLink="false">http://ruiz-ade.com/?p=261</guid>
		<description><![CDATA[I suppose this should be filed under &#8220;Get More Pageviews&#8221;, but nonetheless, I took the click-bait to Sophos&#8217; calling Apple out on making the iPhone 4S safer to use while driving easy to access by bypassing your passcode. My main issue is that they take what is a legitimate concern regarding the tradeoffs between security [...]]]></description>
			<content:encoded><![CDATA[<p>I suppose this should be filed under &#8220;Get More Pageviews&#8221;, but nonetheless, I took the click-bait to Sophos&#8217; calling Apple out on making the iPhone 4S <del>safer to use while driving</del> <a href="http://nakedsecurity.sophos.com/2011/10/19/siri-iphone-4s-unlocked">easy to access by bypassing your passcode.</a> My main issue is that they take what is a legitimate concern regarding the tradeoffs between security and ease of use (and even safety of use while driving) and instead paint it as a deliberately cavalier attitude towards data security.</p>
<blockquote><p>What&#8217;s disappointing to me though is that Apple had a clear choice here.<br/><br />
They could have chosen to implement Siri securely, but instead they decided to default to a mode which is more about impressing your buddies than securing your calendar and email system. <a href="http://nakedsecurity.sophos.com/2011/10/19/siri-iphone-4s-unlocked">→</a></p></blockquote>
<p>You see what he did there?</p>
<p>Ever notice how an expert in a certain field will only ever see choices from the perspective of that field? Interesting how there is the assumption that the <strong>only</strong> options were secure and insecure. It&#8217;s like he just assumes that nobody will ever try to use a phone while driving, something that seems like it would gain a huge safety improvement by reducing phone interaction.</p>
<p>On my lowly iPhone 4, if I want to call my wife while I&#8217;m on the freeway to see if I need to stop at the store, I&#8217;d have to:</p>
<ul>
<li>Pick up the phone</li>
<li>Press the home button or the power button</li>
<li>Swipe across the bottom of the screen</li>
<li>Tap in my passcode, or, as suggested in the Sophos article, my complex alphanumeric-with-symbols password</li>
<li>Tap the Phone icon</li>
<li>Tap the Favorites button if it&#8217;s not already on the Favorites page</li>
<li>Tap my wife&#8217;s entry</li>
</ul>
<p>With an iPhone 4S and Siri, I&#8217;d presumably need only to:</p>
<ul>
<li>Pick up the phone</li>
<li>Tap the button that activates Siri</li>
<li>Speak: &#8220;Siri, call my wife.&#8221;</li>
<li>Acknowledge Siri&#8217;s confirmation of my request by saying, &#8220;Yes.&#8221;</li>
</ul>
<p>I wouldn&#8217;t ever have to look at the phone. The only touch target I&#8217;d need is a physical button on the phone, which is easy to locate without looking. It&#8217;s only marginally more complicated than asking a real person sitting in the car with you to dial the phone for you, because you have to push a button two times. I&#8217;m reasonably certain it&#8217;s <strong>this</strong> use case which Apple designers and engineers had in mind when setting the default options on the iPhone 4S, with the assumption that the security-conscious people could find and disable the &#8220;enable Siri while iPhone is locked&#8221; option themselves.</p>
<p>After all, while the iPhone is a popular device for businesses, it&#8217;s not the only market Apple sells to. Apple is going to make the choice, every time, to make it&#8217;s products easy and delightful to use for its primary customer base.</p>
<p>You know, ordinary people.</p>
]]></content:encoded>
			<wfw:commentRss>http://ruiz-ade.com/2011/10/19/balance-security-usability/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Did you leave the parking brake on?</title>
		<link>http://ruiz-ade.com/2011/07/26/did-you-leave-the-parking-brake-on/</link>
		<comments>http://ruiz-ade.com/2011/07/26/did-you-leave-the-parking-brake-on/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 02:19:06 +0000</pubDate>
		<dc:creator>Gregory Ruiz-Ade</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSSH]]></category>

		<guid isPermaLink="false">http://ruiz-ade.com/?p=259</guid>
		<description><![CDATA[Just a reminder, when you&#8217;re migrating a lot of data and configuration information to a new machine, remember to make sure you pull all the relevant information. I just spent the better part of my afternoon/evening chasing down a problem where a user could not log on via SSH. He had the right key. He [...]]]></description>
			<content:encoded><![CDATA[<p>Just a reminder, when you&#8217;re migrating a lot of data and configuration information to a new machine, remember to make sure you pull <strong><em>all</em></strong> the relevant information.</p>
<p>I just spent the better part of my afternoon/evening chasing down a problem where a user could not log on via SSH. He had the right key. He were using the right passphrase. His account existed in <code>/etc/passwd</code>, and he was listed in the right groups in <code>/etc/group</code>. We did all sorts of debugging on his client, and then a clue popped out when we ran the server in debug mode:</p>
<div class="code">
<p><code>Access denied for user dude man by PAM account configuration</code></p>
</div>
<p>Well, I thought it was a clue. Turns out there was nothing overtly obvious about what was going on. Nothing, that is, until I finally decided to check the contents of <code>/etc/shadow</code>, only to discover that the user in question had no entry there.</p>
<p>Remember to check the simple things first. For a Unix/Linux account to be happy these days, it needs an entry in <strong><em>both</em></strong> <code>/etc/passwd</code> and <code>/etc/shadow</code>! It&#8217;s a step that is only really missed when you&#8217;re copying the contents of these files from another machine, instead of using built-in utilities (<code>useradd</code>, <code>groupadd</code>) to create user accounts.</p>
]]></content:encoded>
			<wfw:commentRss>http://ruiz-ade.com/2011/07/26/did-you-leave-the-parking-brake-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LDAP, SSH and Access Control on Linux</title>
		<link>http://ruiz-ade.com/2011/02/20/ldap-ssh-and-access-control/</link>
		<comments>http://ruiz-ade.com/2011/02/20/ldap-ssh-and-access-control/#comments</comments>
		<pubDate>Sun, 20 Feb 2011 19:02:49 +0000</pubDate>
		<dc:creator>Gregory Ruiz-Ade</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[OpenSSH]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://ruiz-ade.com/?p=231</guid>
		<description><![CDATA[I was recently asked for my opinion on options for adding access control, or, more specifically, host-level authorization for users connecting to Linux systems. All the systems in question are a variety of CentOS, and all of them are configured to use LDAP for authentication and authorization via the pam_ldap and nss_ldap modules. The Problem [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently asked for my opinion on options for adding access control, or, more specifically, host-level authorization for users connecting to Linux systems. All the systems in question are a variety of CentOS, and all of them are configured to use LDAP for authentication and authorization via the <code>pam_ldap</code> and <code>nss_ldap</code> modules.</p>
<h1>The Problem</h1>
<p>In a default configuration, <code>pam_ldap</code> and <code>nss_ldap</code> will make user and group accounts in LDAP act just like user and group accounts in <code>/etc/passwd</code>, <code>/etc/shadow</code> and <code>/etc/group</code>. If it is present, it&#8217;s a valid account for the system. In the general case, this is a good thing, and simplifies the configuration of your systems. Things get complicated, however, when you only want a subset of users to be allowed to log in to specific machines. Traditionally, the method for doing this has been to force <code>pam_ldap</code> to examine the LDAP entry for the user trying to authenticate, and only allow the authentication to succeed if some attribute of the user&#8217;s object matches a configured value. The <code>host</code> attribute of the <code>account</code> objectclass is a great one to use, but if your user objects are based on <code>person</code> or <code>inetOrgPerson</code>, and you&#8217;re doing the right thing and have strict schema checking, you can&#8217;t use it. You&#8217;d either have to violate your schema and disable checking, or violate your schema and add the <code>extensibleObject</code> objectclass, which is basically a schema-valid end-around to schema checking.</p>
<p>There are similar tradeoffs for other object attributes you might choose for utilizing for access control, especially considering that you can only use attributes that exist in your users&#8217; LDAP objects, and not outside them. While it certainly can be done, and I have done it in LDAP implementations before, there&#8217;s never a truly clean way to implement the policy, and changes to the policy induces the risk of breaking the host&#8217;s LDAP configuration entirely.</p>
<h1>A Good Solution</h1>
<p>In the case I was most recently asked about, the only way to gain access to the system is via SSH. The application stack which the hosts run either doesn&#8217;t do any user authentication, or handles it itself. Taking a step back from LDAP, then, there is an easier way to do access restrictions: the OpenSSH daemon&#8217;s <code>AllowUsers</code> and <code>AllowGroups</code> configuration directives.</p>
<p>Utilizing the capabilities of OpenSSH takes one piece of complexity out of the already complex LDAP client configuration, and moves it into a service that is a lot easier to repair should something go wrong. This is especially true if you are utilizing a configuration management (CM) system like CFEngine, Puppet or Chef, where the ability of the CM to do anything might completely hinge upon the system user and group databases being intact. A configuration error that causes people to not be able to log in via SSH is less serious than all of your systems user and group records disappearing, which can completely unhinge your system.</p>
<p>Finally, utilizing OpenSSH&#8217;s <code>AllowUsers</code> and <code>AllowGroups</code> let&#8217;s you manage access to hosts simply by modifying group memberships of users, which can be easily done in LDAP with tools such as my personal favorite, the <a href="http://www.ldap-account-manager.org/">LDAP Account Manager</a>. This nicely avoids the possibility of having to write your own management tool for access control to add/delete/modify attributes that aren&#8217;t easily handled by existing tools, or may not even be visible to those tools. Saving time and effort is key to sanity as a systems administrator, and this will save you a lot.</p>
<p>The best part, though, is that this method works regardless of whether you use LDAP, NIS/NIS+, rdist <code>/etc/passwd</code> and friends from a master copy, or any other method of pushing user and group account data out to your hosts. On top of that, there&#8217;s nothing saying you can&#8217;t layer this on top of LDAP ACLs, too, for that extra bit of paranoia.</p>
<h1>Loose Ends</h1>
<p>There are, however, some downsides to doing access control via OpenSSH. The first is that it only applies to OpenSSH. This may seem like a statement of the obvious, but it&#8217;s important to point out. Other services you may be running, which also rely on LDAP for authentication and authorization, will not be beholden do your policies configured for OpenSSH. Again, it may seem like I&#8217;m simply re-stating the obvious, but consider:</p>
<ul>
<li>Do you run an FTP server with user accounts?</li>
<li>Do you run an IMAP or POP service?,</li>
<li>Do you run SMTP AUTH?</li>
</ul>
<p>Those are just three examples, but any service you provide that performs user auth and does so via PAM, SASL (backed by PAM) or directly with LDAP would need to have it&#8217;s own ACLs in place if you don&#8217;t want all your LDAP users to have access.</p>
<p>With that in mind, however, if your needs are simple, use a simple tool, and get the job done with less stress.</p>
<p>Happy hacking!</p>
]]></content:encoded>
			<wfw:commentRss>http://ruiz-ade.com/2011/02/20/ldap-ssh-and-access-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blogs are not for busy people</title>
		<link>http://ruiz-ade.com/2009/09/06/blogs-are-not-for-busy-people/</link>
		<comments>http://ruiz-ade.com/2009/09/06/blogs-are-not-for-busy-people/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 16:41:54 +0000</pubDate>
		<dc:creator>Gregory Ruiz-Ade</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://ruiz-ade.com/?p=110</guid>
		<description><![CDATA[Apparently weblogs are not for busy people, who don&#8217;t have time to write for them more than once a quarter. It would also help if I perhaps didn&#8217;t use a weblog engine that required upgrading every month because of new security holes. Bleh.]]></description>
			<content:encoded><![CDATA[<p>Apparently weblogs are not for busy people, who don&#8217;t have time to write for them more than once a quarter.  It would also help if I perhaps didn&#8217;t use a weblog engine that required upgrading every month because of new security holes.</p>
<p>Bleh.</p>
]]></content:encoded>
			<wfw:commentRss>http://ruiz-ade.com/2009/09/06/blogs-are-not-for-busy-people/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spotlight &#8220;All Images&#8221; search leaves no stone unturned</title>
		<link>http://ruiz-ade.com/2007/11/09/spotlight-all-images-search-leaves-no-stone-unturned/</link>
		<comments>http://ruiz-ade.com/2007/11/09/spotlight-all-images-search-leaves-no-stone-unturned/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 08:28:31 +0000</pubDate>
		<dc:creator>Gregory Ruiz-Ade</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://ruiz-ade.com/?p=7</guid>
		<description><![CDATA[It may not be a good thing, depending on what you try to hide on your computer. After seeing it reported elsewhere that Spotlight&#8217;s &#8220;All Images&#8221; search on Leopard really does serve up every image on the system, I decided to give it a try myself and see what turned up. Sure enough, every single [...]]]></description>
			<content:encoded><![CDATA[<p>It may not be a good thing, depending on what you try to hide on your computer. <img src='http://ruiz-ade.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://gallery.unnerving.org/d/1700-1/ggspotlight_all_images.png"><img align="right" alt="Spotlight search in CoverFlow mode" src="http://gallery.unnerving.org/d/1701-2/ggspotlight_all_images.png" /></a></p>
<p>After seeing it reported elsewhere that Spotlight&#8217;s &#8220;All Images&#8221; search on Leopard really does serve up every image on the system, I decided to give it a try myself and see what turned up.  Sure enough, every single piece of spam I&#8217;ve received in the last week that included an in-line image (as a MIME attachment) ended up contributing to the show.</p>
<p>In this screenshot, you can clearly see all the images from the spam messages.  The on of the woman in the hammock is actually from a spam message, if you can believe that.  No idea who she is, but whatever email message that image was sent in got filed as spam.</p>
]]></content:encoded>
			<wfw:commentRss>http://ruiz-ade.com/2007/11/09/spotlight-all-images-search-leaves-no-stone-unturned/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

