Article View: alt.privacy.anon-server
Article #272824Re: [RFCs] Forward Security Questions for anon experts
From: Peter Fairbrother
Date: Fri, 20 Mar 2015 12:30
Date: Fri, 20 Mar 2015 12:30
172 lines
7971 bytes
7971 bytes
On 20/03/15 07:33, Hoping to Help Mike wrote: > In mid <1cbb8a2a429c01c2413ffb1dec92a719@anemone.mooo.com> > Someone mentioned Confidant Mail [www.confidantmail.org]. > I agree with the OP, it does look interesting. > > But looking around the site a March 2nd post by the forum > admin "Mike" -who I assume is the Confidant Mail dev Mike Ingle- > got my attention. > > Outstanding problem discussion: forward security > http://www.confidantmail.org/forums/index.php?topic=26.0 > > "One unsolved problem is forward security: if your private key > is compromised, that should not give up everything you have ever > received with that key. > > In order to prevent that, the content must be encrypted with > your long-term secret (private key) and with one or more short- > term secrets. It is a good idea to have a signature-only key and a separate persistent encryption key. This can be done at almost zero cost. Why? In the UK they have a law whereby Plod can demand encryption keys, but not keys which are used for signatures only. If you have a dual-use key then they can spoof the FS keypart (which will be signed and only valid for a short period) after they get the dual use key. The FS keypart can be public, an ECDH keypart is possibly the best choice, see later. > These short-term secrets can be DH pairs or RSA > keys. One approach I am considering is to have each user publish > a series of short-term pairs with defined expiration dates. > Another is for a sender to provide the recipient with a series > of one-time reply tickets. Both, preferably. > The client would superencrypt the first 256K or so of the > message with an AES key derived from that short term secret. > Without knowing that first 256K (likely overkill), which > contains all the public key blocks, there is no way to decrypt > the rest of the message. I have this part spec'd out. hmmm.... perhaps not optimum. Contact me offlist if interested. > The problem I am running into is with multiple clients. I > recently added the ability to have the same key on two or more > machines, and replicate folders automatically.This is done by > emailing a change log to oneself, using the normal GPG > encryption to protect it. > > If short-term secrets exist, they must (a) be replicated from > client to client or (b) be unique to each client, and the sender > must encrypt with one short-term key per recipient client. > > If I take the replication option (a), some type of secure client > to client connection is required. That means both clients must > be online at the same time with a direct IP path between them, > and a shared secret to authenticate each other with. > > If I take the multiple secrets option (b) then each client > publishes a set of short-term keys. The sender must encrypt with > one secret per recipient's client. That exposes how many clients > the recipient has, at the least. It also rules out the one time > reply ticket approach: if sender A client 1 sends to recipient B, > and recipient B replies using a one time ticket from A1, then > client A2 (also owned by A) cannot read that message. > > Any opinions on what is the right approach to this problem?" Simple. Don't allow multiple clients. Multiple clients are a seriously bad idea. For a start, two clients are two places for an enemy to find plaintext. Three or more clients .. all your base are belong to us. Second, it gives the user a choice - and users are simply not capable of making choices with security implications. That's your job. Is it secure for them to have two clients? You expect the average user to know that? Third, if option a), you can't securely *delete* the FS secrets, they will also be on the other client, which the user's girlfriend borrowed then left in a cafe in Budapest. If option b), well you have listed some of the disadvantages already. [there is a crypto solution (actually several) to the option b) "encrypt with one secret per recipient's client exposing how many clients the recipient has" problem; but I'm not going to tell you what it is, that would only encourage you into bad practice] [master-slave clients are also possible, where the master holds ( and more importantly, deletes) the FS secrets and dishes out (semi-) secrets to the slave client as needed. OK if the master is permanently online, but not for the desktop/mobile configuration I think you are aiming at] [there is also the webmail approach - webserver gets mail, client decrypts then stores decrypted mail on web server, re-encrypted under a key shared between clients. Or variants with individual message keys .. I don't think this is what you want though] [then there is then the question of whether you should store used messages at all. If you can/do, is there any full forward secrecy FFS at all?] Anywhoo, as to anonymity (as opposed to only FS) - getting those FS keyparts anonymously can be a pain. However, if you use something like a 256-bit ECDH keypart with maybe 32 bits for validity period and a 256-bit signature, then it may be short enough to put on a single-database computationally secure PIR system (which I just happen to have been working on for some time now...). That would mean that for anyone collecting a keypart, which keypart they were collecting couldn't be identified, and the server wouldn't even have to be trusted, though the validity periods would be public (so one-shot reply keyparts would be useful as well, if you are a known correspondent). A single distributed [offlist] PIR database would be good here; and the server might also do some sort of untrusted but reputational [offlist] PKI - and if you can do that, and if pki, fs and encryption is transparent to the user, and multiple clients means " works with Thunderbird, Mail, OE, etc" ... ... then near-universal (semi-)anonymous end-to-end encrypted email becomes possible. Anonymity? Begin with STARTTLS providing fs between client and sending or receiving servers, then go to sending servers don't send unnecessary "from" fields - then receiving servers do onioning, so sending servers don't ever see the "to" field, then a full onoin through the server wot does the fs and PKI ( and maybe gets paid for it) ... -- Peter Fairbrother Today I saw a solar eclipse!! AND: Spring is sprung The grass is riz I wonder where The birdies is? "The bird is on the wing", I heard - but That's absurd The wing is on the bird.
Technical Details
Message-ID:
<meh3ri$fnt$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.20150321.mbox.gz!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.glorb.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mailReferences:
<20150320073409.EF827EABD2@snorky.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <meh3ri$fnt$1@dont-email.me> Subject: Re: [RFCs] Forward Security Questions for anon experts Date: Fri, 20 Mar 2015 12:30:27 +0000 From: Peter Fairbrother <peter@tsto.co.uk> References: <20150320073409.EF827EABD2@snorky.mixmin.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.20150321.mbox.gz!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.glorb.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail Newsgroups: alt.privacy,alt.privacy.anon-server Organization: A noiseless patient Spider Lines: 172 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 20 Mar 2015 12:29:38 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="a265fd23f1329ba61c083ac5bb43c8e0"; logging-data="16125"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18zyHOhhj8aMBP+7kvESleMAzcVSV72gnE=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; In-Reply-To: <20150320073409.EF827EABD2@snorky.mixmin.net> Cancel-Lock: sha1:7aMrD453376hx//1A6xeft0490I=