<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: Usable Keychain Scripting</title>
	<atom:link href="http://www.red-sweater.com/blog/170/usable-keychain-scripting/feed" rel="self" type="application/rss+xml" />
	<link>http://www.red-sweater.com/blog/170/usable-keychain-scripting</link>
	<description>Mac &#38; Technology Writings by Daniel Jalkut</description>
	<pubDate>Wed,  7 Jan 2009 11:10:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Keychain scripting letting the Twitters down &#171; A Dog&#8217;s Breakfast, part II</title>
		<link>http://www.red-sweater.com/blog/170/usable-keychain-scripting/comment-page-1#comment-72403</link>
		<dc:creator>Keychain scripting letting the Twitters down &#171; A Dog&#8217;s Breakfast, part II</dc:creator>
		<pubDate>Fri, 23 Mar 2007 10:19:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/170/usable-keychain-scripting#comment-72403</guid>
		<description>[...] Red Sweater Blog says : [...]</description>
		<content:encoded><![CDATA[<p>[...] Red Sweater Blog says : [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Jalkut</title>
		<link>http://www.red-sweater.com/blog/170/usable-keychain-scripting/comment-page-1#comment-12107</link>
		<dc:creator>Daniel Jalkut</dc:creator>
		<pubDate>Thu, 17 Aug 2006 13:53:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/170/usable-keychain-scripting#comment-12107</guid>
		<description>ssp: I see what you mean now.  And yes, it's a problem. It's similar to the problem with command-line tools and network access. For instance, once you use "telnet" or "ssh" or "curl" to connect to a particular site and grant network permissions via Little Snitch or whatever, the tool is suddenly blessed for whoever might call it.</description>
		<content:encoded><![CDATA[<p>ssp: I see what you mean now.  And yes, it&#8217;s a problem. It&#8217;s similar to the problem with command-line tools and network access. For instance, once you use &#8220;telnet&#8221; or &#8220;ssh&#8221; or &#8220;curl&#8221; to connect to a particular site and grant network permissions via Little Snitch or whatever, the tool is suddenly blessed for whoever might call it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ssp</title>
		<link>http://www.red-sweater.com/blog/170/usable-keychain-scripting/comment-page-1#comment-12099</link>
		<dc:creator>ssp</dc:creator>
		<pubDate>Thu, 17 Aug 2006 11:37:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/170/usable-keychain-scripting#comment-12099</guid>
		<description>I'm not sure this was clear in my previous comment, but the main problem I am seeing is the concept of a proxy application for accessing the keychain. Usually the keychain will ask you about an application wanting to access your passwords. And even if you go for the 'allow permanently' option you will have to confirm access to those keys again after upgrading the application in question for example. 

Once you have a proxy application in between, though, this whole security feature stops to work. Not only will you not be notified that the application getting the password in the end has changed, there could even be a completely different application asking for your passwords without you having a chance to notice that.

I am not saying that this is a practical problem today - most certainly it isn't. But it's mainly "security by obscurity" you are getting there. As useful as such a tool for accessing the keychain can be for private use, as dangerous it could be once it sees usage in public. I guess it all boils down to the question whether you are prepared to grant access to your passwords to an application which will just pass them on to anyone who bothers to ask. 

It could be interesting to discuss what Apple could do to improve their keychain API in that respect. While I think the traditional 'ask for each application' approach is a good balance of security and not annoying the user too much, the very fact that OS X is a Unixy system that lets you tie applications together through little helper applications and scripting languages makes this approach a bit weak in some cases.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure this was clear in my previous comment, but the main problem I am seeing is the concept of a proxy application for accessing the keychain. Usually the keychain will ask you about an application wanting to access your passwords. And even if you go for the &#8216;allow permanently&#8217; option you will have to confirm access to those keys again after upgrading the application in question for example. </p>
<p>Once you have a proxy application in between, though, this whole security feature stops to work. Not only will you not be notified that the application getting the password in the end has changed, there could even be a completely different application asking for your passwords without you having a chance to notice that.</p>
<p>I am not saying that this is a practical problem today - most certainly it isn&#8217;t. But it&#8217;s mainly &#8220;security by obscurity&#8221; you are getting there. As useful as such a tool for accessing the keychain can be for private use, as dangerous it could be once it sees usage in public. I guess it all boils down to the question whether you are prepared to grant access to your passwords to an application which will just pass them on to anyone who bothers to ask. </p>
<p>It could be interesting to discuss what Apple could do to improve their keychain API in that respect. While I think the traditional &#8216;ask for each application&#8217; approach is a good balance of security and not annoying the user too much, the very fact that OS X is a Unixy system that lets you tie applications together through little helper applications and scripting languages makes this approach a bit weak in some cases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Henley</title>
		<link>http://www.red-sweater.com/blog/170/usable-keychain-scripting/comment-page-1#comment-12008</link>
		<dc:creator>Mike Henley</dc:creator>
		<pubDate>Wed, 16 Aug 2006 13:30:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/170/usable-keychain-scripting#comment-12008</guid>
		<description>I got a slight improvement in speed by using the style of the last example with the built-in keychain access. If you know that something is a generic key, you can ask for "the first generic key where..."</description>
		<content:encoded><![CDATA[<p>I got a slight improvement in speed by using the style of the last example with the built-in keychain access. If you know that something is a generic key, you can ask for &#8220;the first generic key where&#8230;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.red-sweater.com/blog/170/usable-keychain-scripting/comment-page-1#comment-11878</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 15 Aug 2006 04:57:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/170/usable-keychain-scripting#comment-11878</guid>
		<description>I don't know if this may be of use to anyone else, but an alternative to slow keychain scripting is doing it via the shell. Allan Odgaard wrote up a nice post about it a while back: http://macromates.com/blog/archives/2006/04/17/keychain-access-from-shell/</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know if this may be of use to anyone else, but an alternative to slow keychain scripting is doing it via the shell. Allan Odgaard wrote up a nice post about it a while back: <a href="http://macromates.com/blog/archives/2006/04/17/keychain-access-from-shell/" rel="nofollow">http://macromates.com/blog/archives/2006/04/17/keychain-access-from-shell/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kunal</title>
		<link>http://www.red-sweater.com/blog/170/usable-keychain-scripting/comment-page-1#comment-11712</link>
		<dc:creator>Kunal</dc:creator>
		<pubDate>Sun, 13 Aug 2006 06:36:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/170/usable-keychain-scripting#comment-11712</guid>
		<description>Talking about keychain security I was wondering, could you &lt;a href="http://www.kunaldua.com/blog/?p=100" rel="nofollow"&gt;gain access to anyone's keychain contents&lt;/a&gt; if you could just lay your hands on the file?</description>
		<content:encoded><![CDATA[<p>Talking about keychain security I was wondering, could you <a href="http://www.kunaldua.com/blog/?p=100" rel="nofollow">gain access to anyone&#8217;s keychain contents</a> if you could just lay your hands on the file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: From Concentrate Software</title>
		<link>http://www.red-sweater.com/blog/170/usable-keychain-scripting/comment-page-1#comment-11703</link>
		<dc:creator>From Concentrate Software</dc:creator>
		<pubDate>Sun, 13 Aug 2006 03:11:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/170/usable-keychain-scripting#comment-11703</guid>
		<description>[...] So when developers go out of their way to get around Applescript, well, it&#8217;s just a bit embarrassing. I noticed today that Daniel Jalkut has written a minor application to get around keychain scripting. It reminded my of an application that I put together recently. [...]</description>
		<content:encoded><![CDATA[<p>[...] So when developers go out of their way to get around Applescript, well, it&#8217;s just a bit embarrassing. I noticed today that Daniel Jalkut has written a minor application to get around keychain scripting. It reminded my of an application that I put together recently. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Belll</title>
		<link>http://www.red-sweater.com/blog/170/usable-keychain-scripting/comment-page-1#comment-11628</link>
		<dc:creator>Adam Belll</dc:creator>
		<pubDate>Fri, 11 Aug 2006 22:43:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/170/usable-keychain-scripting#comment-11628</guid>
		<description>Works a treat, Daniel. Thanks for it.</description>
		<content:encoded><![CDATA[<p>Works a treat, Daniel. Thanks for it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Jalkut</title>
		<link>http://www.red-sweater.com/blog/170/usable-keychain-scripting/comment-page-1#comment-11627</link>
		<dc:creator>Daniel Jalkut</dc:creator>
		<pubDate>Fri, 11 Aug 2006 22:14:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/170/usable-keychain-scripting#comment-11627</guid>
		<description>Oh yeah, I meant to add - most of the attributes of keys are accessible without authentication, even if the keychain is "locked."  So it's not until you ask for a password of an item that the authentication becomes an issue.</description>
		<content:encoded><![CDATA[<p>Oh yeah, I meant to add - most of the attributes of keys are accessible without authentication, even if the keychain is &#8220;locked.&#8221;  So it&#8217;s not until you ask for a password of an item that the authentication becomes an issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Jalkut</title>
		<link>http://www.red-sweater.com/blog/170/usable-keychain-scripting/comment-page-1#comment-11626</link>
		<dc:creator>Daniel Jalkut</dc:creator>
		<pubDate>Fri, 11 Aug 2006 22:11:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/170/usable-keychain-scripting#comment-11626</guid>
		<description>I was, and remain, a little uncertain about how to handle the security thing - but the default behavior seems "about right."

You'll notice that even when you ask for the password in Keychain Access, it makes you authenticate if you've never done it before. You can then choose to make it a permanent allowance if you see fit. 

This seems to work out pretty well because it gives the user total knowledge of what is being accessed when, and assures them that I'm not managing to sneak any data out on the side (well, I suppose I could be for the ones the user permits, but I promise I'm not!).

Basically Usable Keychain Access is just like any of your other apps. You choose how much to let it into the trust circle, and you can choose on a per-key basis.</description>
		<content:encoded><![CDATA[<p>I was, and remain, a little uncertain about how to handle the security thing - but the default behavior seems &#8220;about right.&#8221;</p>
<p>You&#8217;ll notice that even when you ask for the password in Keychain Access, it makes you authenticate if you&#8217;ve never done it before. You can then choose to make it a permanent allowance if you see fit. </p>
<p>This seems to work out pretty well because it gives the user total knowledge of what is being accessed when, and assures them that I&#8217;m not managing to sneak any data out on the side (well, I suppose I could be for the ones the user permits, but I promise I&#8217;m not!).</p>
<p>Basically Usable Keychain Access is just like any of your other apps. You choose how much to let it into the trust circle, and you can choose on a per-key basis.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.327 seconds -->
