December 19, 2007, Author: Conor, 8 Comments

Do not mess with my encryption

Categories: musings
Tags:: , , ,

I should probably start tagging a lot of my posts “boy-i-wish-were-a-lawyer.” I haven’t introduced that one yet, but I just might sometime soon.

Just last week, a U.S. federal judge ruled that the court could not demand that a man accused of transporting child pornography across state lines divulge the passphrase for his encrypted hard drive.

Especially if this ruling is appealed, U.S. v. Boucher could become a landmark case. The question of whether a criminal defendant can be legally compelled to cough up his encryption passphrase remains an unsettled one, with law review articles for the last decade arguing the merits of either approach. (A U.S. Justice Department attorney wrote an article in 1996, for instance, titled “Compelled Production of Plaintext and Keys.”)

This debate has been one of analogy and metaphor. Prosecutors tend to view PGP passphrases as akin to someone possessing a key to a safe filled with incriminating documents. That person can, in general, be legally compelled to hand over the key. Other examples include the U.S. Supreme Court saying that defendants can be forced to provide fingerprints, blood samples, or voice recordings.

This is a fascinating legal issue to me, and is a crucial watershed at a time when privacy is being ripped limb from limb in America. If this case stands on appeal, it will be a phenomenal step forward for encryption in the public sphere. I like to think that the ruling being upheld on appeal would generate a lot of press coverage, which might lead to increased public interest in personal encryption schemes, whether for hard drives or internet communication.

In discussing this miraculous (though not yet definite) precedent with some friends here, one girl I spoke with acted very confused, and said, “But what if he was doing something bad? Then the police couldn’t read his files and send him to jail.” She was American.

In ernst, there will be a lot of people using this technology to hide their involvement in illegal activities. But there will also be people using encryption to hide their innocent yet sensitive data from theft and exploitation. If the encryption is sophisticated enough, it should stand up to datamining attempts at Langley. It should mask the content of communication well enough to foster what is typically considered unsavory political discussions.

It’s difficult for me to explain how very, very important I find it that communication remain discrete and private while the profusion of nodes of communication multiplies. Technologically it’s quite feasible, but unfortunately the cultural ingredients are not yet present in much of the world, most likely because most people simply don’t understand the systems they interact with every day.

But there are parties hard at work to prevent the widespread adoption of content-masking encryption schemes. Who they are isn’t immediately obvious, but it’s not hard to infer if you pay attention to major players in the tech industry. For instance, Wired recently covered a very compelling oddity in the new Dual_EC_DRBG encryption standard, which was published by the National Institute of Standards and Technology (130-page PDF here).

In an informal presentation at the CRYPTO 2007 conference in August, Dan Shumow and Niels Ferguson showed that the algorithm contains a weakness that can only be described a backdoor.

This is how it works: There are a bunch of constants — fixed numbers — in the standard used to define the algorithm’s elliptic curve. These constants are listed in Appendix A of the NIST publication, but nowhere is it explained where they came from.

What Shumow and Ferguson showed is that these numbers have a relationship with a second, secret set of numbers that can act as a kind of skeleton key. If you know the secret numbers, you can predict the output of the random-number generator after collecting just 32 bytes of its output. To put that in real terms, you only need to monitor one TLS internet encryption connection in order to crack the security of that protocol. If you know the secret numbers, you can completely break any instantiation of Dual_EC_DRBG.

Not to be pedantic, but this should scare you. The U.S. government is very probably engineering and propagating faulty encryption standards. One might say that this in itself isn’t particularly heinous, given that the flaw has been exposed, and should therefore never enjoy substantial implementation. Cue the toolbags over at Microsoft, who list among the security updates for Vista Service Pack 1 the same nasty Dual EC standard.

Strengthens the cryptography platform with a redesigned random number generator, which leverages the Trusted Platform Module (TPM), when present, for entropy and complies with the latest standards. The redesigned RNG uses the AES-based pseudo-random number generator (PRNG) from NIST Special Publication 800-90 by default. The Dual Elliptical Curve (Dual EC) PRNG from SP 800-90 is also available for customers who prefer to use it.

Oh dear. This news comes a year and a half after a Microsoft cryptographer swore no such move would ever be made.

“The suggestion is that we are working with governments to create a back door so that they can always access BitLocker-encrypted data,” Niels Ferguson, a developer and cryptographer at Microsoft, wrote Thursday on a corporate blog. “Over my dead body,” he wrote in his post titled “Back-door nonsense.”

Notice anything funny? That March 2006 quote is by Niels Ferguson, the same cryptographer who presented on the flaws of Dual_EC_DRBG at the CRYPTO 2007 conference. And yet Microsoft is still going ahead with the implementation of this broken algorithm, despite the objections of cryptographers around the world and its own employees.

When I noticed Ferguson cropping up on both sides of the playing field, I tried to do a little more research on him. For some reason his homepage is redirecting to a spam pharmaceuticals page. Searching on the Microsoft Developer Network blog doesn’t seem to yield any posts by Ferguson more recent than September 2006, but the search functionality is horrendous and frustrating, so I may have missed something.

I don’t know what to make of this yet, but I’m interesting in learning more about Ferguson. I know he’s collaborated heavily with eminent cryptographer Bruce Schneier, so I’ll have to look up some of their papers together. In the meantime, I’m incredibly suspicious, and I’m going to start locking up my data with more trusted, peer-reviewed encryption techniques. I highly recommend you do the same.

8 Responses to Do not mess with my encryption

  1. cihan says:

    Dude u wrote “in ernst” ;) LOL

  2. Conor says:

    I hate this country and this stupid language. And I’m leaving it there because I can’t figure out a better way to say it in English. “Earnestly” just sounds stupid.

    In ernst.

    Shit. (Ah-ha! I said “shit” this time!)

  3. Anne says:

    I don’t believe this is exclusive to the U.S. I’d bet every other government either already has or is doing this same thing.

    If the German police can randomly for no reason shake you down when you’re minding your own business sitting on a park bench, I doubt they have qualms about reading your computer.

  4. Conor says:

    Which is precisely why I find it so freaking important that there’s now a (tentative) precedent in the U.S. declaring that the state cannot force an individual to divulge an encryption key. This is awesome. Without that key, the data absolutely cannot be read. It is fundamentally impossible, and trying to break through the encryption would take literally years.

    With cryptographic advances in the coming years, breaking through encryption schemes will take longer than a lifetime, even given mainframe processing power. From a pertinent section of the article:

    Secret Service Agent Matthew Fasvlo, who has experience and training in computer forensics, testified that it is nearly impossible to access these encrypted files without knowing the password. There are no “back doors” or secret entrances to access the files. The only way to get access without the password is to use an automated system which repeatedly guesses passwords. According to the government, the process to unlock drive Z could take years, based on efforts to unlock similarly encrypted files in another case. Despite its best efforts, to date the government has been unable to learn the password to access drive Z.

    That’s the magic and wonder of good encryption.

  5. Will says:

    I think IANALBIWIW would be a better tag.

  6. Conor says:

    Updated. You rock. I’ll go back in the archives and tag more posts with that, too. =)

  7. Will says:

    Idwic dude.

  8. Jordan says:

    Badass precedent.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="">