<?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: Is a GPG pass-phrase Useful?</title>
	<atom:link href="http://etbe.coker.com.au/2008/07/09/gpg-pass-phrase-useful/feed/" rel="self" type="application/rss+xml" />
	<link>http://etbe.coker.com.au/2008/07/09/gpg-pass-phrase-useful/</link>
	<description>Linux, politics, and other interesting things</description>
	<lastBuildDate>Thu, 09 Feb 2012 01:09:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: etbe</title>
		<link>http://etbe.coker.com.au/2008/07/09/gpg-pass-phrase-useful/comment-page-1/#comment-14842</link>
		<dc:creator>etbe</dc:creator>
		<pubDate>Sat, 12 Jul 2008 14:30:22 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=629#comment-14842</guid>
		<description>Russ and Thomas: gpg-agent seems convenient, but given that ptrace is permitted on it there doesn&#039;t seem to be any security benefit to using it.  In fact instead of having to use ptrace on multiple applications that might prompt for a pass-phrase, it is only necessary to ptrace gpg-agent.

Of course I can write SE Linux policy to protect gpg-agent but that takes me back to the &quot;same benefits can and should be made available to people who don’t use SE Linux&quot; point.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=490545

I&#039;ve filed a bug report at the above URL.</description>
		<content:encoded><![CDATA[<p>Russ and Thomas: gpg-agent seems convenient, but given that ptrace is permitted on it there doesn&#8217;t seem to be any security benefit to using it.  In fact instead of having to use ptrace on multiple applications that might prompt for a pass-phrase, it is only necessary to ptrace gpg-agent.</p>
<p>Of course I can write SE Linux policy to protect gpg-agent but that takes me back to the &#8220;same benefits can and should be made available to people who don’t use SE Linux&#8221; point.</p>
<p><a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=490545" rel="nofollow">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=490545</a></p>
<p>I&#8217;ve filed a bug report at the above URL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://etbe.coker.com.au/2008/07/09/gpg-pass-phrase-useful/comment-page-1/#comment-14809</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Thu, 10 Jul 2008 20:55:41 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=629#comment-14809</guid>
		<description>I&#039;ve experience (5) but not (1)-(4) (at least not on systems with my GPG secret key on - I&#039;ve seen a few compromised GNU/Linux servers).

That&#039;ll teach me to refuse to encrypt back-ups (because I want the maximum chance of recovering them later - lots later), and then carrying them around away from the computer that was backed-up.

So yes, the pass phrase was useful for me - although the key still got revoked.

It also raises the barrier in 1 and 2 and 4. Not only do you have to compromise the system, you then have to capture the pass phrase. Easy perhaps, but not if the owner notices something is up before re-entering their pass phrase.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve experience (5) but not (1)-(4) (at least not on systems with my GPG secret key on &#8211; I&#8217;ve seen a few compromised GNU/Linux servers).</p>
<p>That&#8217;ll teach me to refuse to encrypt back-ups (because I want the maximum chance of recovering them later &#8211; lots later), and then carrying them around away from the computer that was backed-up.</p>
<p>So yes, the pass phrase was useful for me &#8211; although the key still got revoked.</p>
<p>It also raises the barrier in 1 and 2 and 4. Not only do you have to compromise the system, you then have to capture the pass phrase. Easy perhaps, but not if the owner notices something is up before re-entering their pass phrase.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://etbe.coker.com.au/2008/07/09/gpg-pass-phrase-useful/comment-page-1/#comment-14799</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Thu, 10 Jul 2008 00:59:14 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=629#comment-14799</guid>
		<description>@Russ
Thanks very much for pointing out that gnupg-agent works fine with Enigmail. I set that up using Debian gnupg-agent instructions (http://www.debian-administration.org/articles/452) and it works fine. I think that taking key responsibility from Thunderbird and giving it to pinentry-qt is an improvement.

@etbe
Yes I didn&#039;t spell it out very clearly; I did mean a system which does not run X for reading email.

The main advantage of gnupg-agent as pointed out by Russ if of course that it&#039;s completely application-agnostic (if you&#039;ll let me throw that term in there). Now for me it doesn&#039;t matter whether I&#039;m using GNOME or KDE, or Thunderbird or something else; I still use the same mechanism for entering my pass-phrase. That&#039;s a win, and I think it&#039;s the best that you can hope for in a graphical environment.</description>
		<content:encoded><![CDATA[<p>@Russ<br />
Thanks very much for pointing out that gnupg-agent works fine with Enigmail. I set that up using Debian gnupg-agent instructions (<a href="http://www.debian-administration.org/articles/452" rel="nofollow">http://www.debian-administration.org/articles/452</a>) and it works fine. I think that taking key responsibility from Thunderbird and giving it to pinentry-qt is an improvement.</p>
<p>@etbe<br />
Yes I didn&#8217;t spell it out very clearly; I did mean a system which does not run X for reading email.</p>
<p>The main advantage of gnupg-agent as pointed out by Russ if of course that it&#8217;s completely application-agnostic (if you&#8217;ll let me throw that term in there). Now for me it doesn&#8217;t matter whether I&#8217;m using GNOME or KDE, or Thunderbird or something else; I still use the same mechanism for entering my pass-phrase. That&#8217;s a win, and I think it&#8217;s the best that you can hope for in a graphical environment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Russ Allbery</title>
		<link>http://etbe.coker.com.au/2008/07/09/gpg-pass-phrase-useful/comment-page-1/#comment-14791</link>
		<dc:creator>Russ Allbery</dc:creator>
		<pubDate>Wed, 09 Jul 2008 18:05:21 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=629#comment-14791</guid>
		<description>One of us is confused about how gnupg-agent works.  I&#039;m not sure if it&#039;s you or me.

In my experience, applications don&#039;t have to use it or even be aware of its existence at all.  If GnuPG is configured to use the agent, invocations of GnuPG spawn gnupg-pinentry without ever telling the calling application that a password is needed.  Once you configure GnuPG to always use the agent, applications are no longer aware that you even have passphrases.

A quick Google search apparently reveals (I don&#039;t use it myself) that Enigmail does indeed work with gnupg-agent and doesn&#039;t appear to do anything strange that breaks it.  (Unless you&#039;re on Windows, where in general getting the agent working is harder.)</description>
		<content:encoded><![CDATA[<p>One of us is confused about how gnupg-agent works.  I&#8217;m not sure if it&#8217;s you or me.</p>
<p>In my experience, applications don&#8217;t have to use it or even be aware of its existence at all.  If GnuPG is configured to use the agent, invocations of GnuPG spawn gnupg-pinentry without ever telling the calling application that a password is needed.  Once you configure GnuPG to always use the agent, applications are no longer aware that you even have passphrases.</p>
<p>A quick Google search apparently reveals (I don&#8217;t use it myself) that Enigmail does indeed work with gnupg-agent and doesn&#8217;t appear to do anything strange that breaks it.  (Unless you&#8217;re on Windows, where in general getting the agent working is harder.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: etbe</title>
		<link>http://etbe.coker.com.au/2008/07/09/gpg-pass-phrase-useful/comment-page-1/#comment-14786</link>
		<dc:creator>etbe</dc:creator>
		<pubDate>Wed, 09 Jul 2008 13:43:20 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=629#comment-14786</guid>
		<description>Thomas: Thanks for the example of a big application that uses a GPG key.  It&#039;s one example of many which breaks the suggestions to use gpg-agent etc that other people are saying (NB they wrote their posts before I approved yours).

I don&#039;t believe that MUTT is necessarily more secure merely for not using X.  If you ran MUTT on a system which did not use X then you would get a significant security benefit (EG run Lynx and Mutt in different virtual consoles and with different UIDs).  When we get the X access controls for SE Linux in production there will be some significant benefits there too.

http://np237.livejournal.com/18721.html

At the above URL Josselin Mouette comments on this and suggests that once a PAM bug is resolved it will be possible to use the GNOME GPG agent.  In addition to the issue that not all applications will use the GNOME GPG agent (although I guess you could just avoid potentially insecure applications).


Finally we have to keep in mind the fact that the most pessimal possibilities need to be considered when discussing security.  So if a machine is stolen it might be most likely that no pass-phrases were in RAM and there was no unencrypted data on disk which allows recovery and the encryption was all of adequate strength.  But you still need to consider the less likely possibility that the attacker got lucky.

Also in regard to compromise of applications and systems, you can never really be sure that your system has not been cracked.</description>
		<content:encoded><![CDATA[<p>Thomas: Thanks for the example of a big application that uses a GPG key.  It&#8217;s one example of many which breaks the suggestions to use gpg-agent etc that other people are saying (NB they wrote their posts before I approved yours).</p>
<p>I don&#8217;t believe that MUTT is necessarily more secure merely for not using X.  If you ran MUTT on a system which did not use X then you would get a significant security benefit (EG run Lynx and Mutt in different virtual consoles and with different UIDs).  When we get the X access controls for SE Linux in production there will be some significant benefits there too.</p>
<p><a href="http://np237.livejournal.com/18721.html" rel="nofollow">http://np237.livejournal.com/18721.html</a></p>
<p>At the above URL Josselin Mouette comments on this and suggests that once a PAM bug is resolved it will be possible to use the GNOME GPG agent.  In addition to the issue that not all applications will use the GNOME GPG agent (although I guess you could just avoid potentially insecure applications).</p>
<p>Finally we have to keep in mind the fact that the most pessimal possibilities need to be considered when discussing security.  So if a machine is stolen it might be most likely that no pass-phrases were in RAM and there was no unencrypted data on disk which allows recovery and the encryption was all of adequate strength.  But you still need to consider the less likely possibility that the attacker got lucky.</p>
<p>Also in regard to compromise of applications and systems, you can never really be sure that your system has not been cracked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thijs Kinkhorst</title>
		<link>http://etbe.coker.com.au/2008/07/09/gpg-pass-phrase-useful/comment-page-1/#comment-14778</link>
		<dc:creator>Thijs Kinkhorst</dc:creator>
		<pubDate>Wed, 09 Jul 2008 10:24:16 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=629#comment-14778</guid>
		<description>For each of the cases you mention, a passphrase at the very least reduces the window of opportunity. If I don&#039;t use my key at the moment an attacker gains control, it remains protected. If someone steals my machine the passphrase /may/ be in swap from some application, but it also may have already been overwritten many times before that. Perhaps an attacker can only fetch files from my account but doesn&#039;t control memory.

A passphrase doesn&#039;t bring you many hard guarantees but it vastly reduces the chances of an attack being actually successful.</description>
		<content:encoded><![CDATA[<p>For each of the cases you mention, a passphrase at the very least reduces the window of opportunity. If I don&#8217;t use my key at the moment an attacker gains control, it remains protected. If someone steals my machine the passphrase /may/ be in swap from some application, but it also may have already been overwritten many times before that. Perhaps an attacker can only fetch files from my account but doesn&#8217;t control memory.</p>
<p>A passphrase doesn&#8217;t bring you many hard guarantees but it vastly reduces the chances of an attack being actually successful.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

