Cryptographic Nonsenseware

A new malware variant by the name Gpcode.ak has been raising eyebrows in the security community. Upon infecting a computer, the trojan will encrypt the user’s documents, leaving a text file which demands money in exchange for a decryption key.

There are no new ideas here: encryption malware has been around for the better part of a decade, Adam Young and Moti Yung wrote a book about cryptovirology in 2004, and even Gpcode itself has been around since 2005, albeit with a far more primitive approach to encryption that the current incarnation.

The latest instance gets the crypto mostly right: it creates a unique 128-bit RC4 (Arcfour) key on each machine and uses a random initialization vector for each file it targets. The IV is written to the beginning of the file, encrypted by the per-machine key, run through MD5, and the output constitutes the per-file key, used to encrypt each file with RC4. At the end, the main per-machine RC4 key is encrypted with a 1024-bit RSA public key which the malware carries within its payload. The malware author can then send a tailored, per-machine decryptor to folks who pay up.

If you keep backups, you can obviously treat this attack as a simple data loss scenario. And if you don’t have backups and badly need the files back, you have no option but to pay: when used correctly, cryptography works. In their encrypted form and without the RSA private key, the files are as good as garbage. Anti-virus companies have no technological defense against this, can’t make any, and are being appropriately forthcoming:

A security company on Friday asked for help cracking an encryption key central to an extortion scheme that demands money from users whose PCs have been infected by malware. … “Along with antivirus companies around the world, we’re faced with the task of cracking the RSA 1024-bit key,” said Aleks Gostev, a senior virus analyst [at Kaspersky Lab].

See? Completely reasonab… wait, what? Factor the key? Seriously?

Arjen Lenstra and Eric Verheul estimate that, in 2009, a machine that can factor a RSA-1024 key in a day would cost $250 million. With a massive cluster of regular computers, such a computation would take years. And it gets better: 2048-bit RSA keys are considered impractical to factor before the year 2030, while 3072-bit keys are likely to provide protection beyond then. Do you see where this is going?

Even if the present key is factored, it’ll take the malware author mere minutes to generate a stronger one, insert it into the malware payload, and send it on its merry way. And we won’t be able to factor that one.

In fact, focusing on the cryptography in the malware misses the point entirely. What the malware is exposing is the far simpler fact that our desktop security systems are fundamentally broken, as there is no reason that a piece of malware executing silently in the background should have access to a user’s files without interaction or approval. If file access was securely brokered, we wouldn’t have to care about the crypto.

We know how to build desktop systems that are both drastically more secure and more usable than the ones in use today. Prototypes like CapDesk and Polaris demonstrate this on mainstream systems, while my own Bitfrost does so on the OLPC laptops. You won’t see ransomware on the XO-1.

When it comes to Gpcode, factoring the RSA key is the dumbest possible course of action. I know it, the security community knows it, and Kaspersky Lab knows it. It’s a press gambit, and one that I found distasteful at first. But I’ve come around: it grabs headlines, and maybe a proliferation of headline-grabbing, panic-sowing, fear-inducing threats like cryptoviral ransomware is exactly what’s needed to overcome inertia from operating system vendors and finally move us towards a more secure desktop.

Much love, Kaspersky Lab. Let’s go factor some keys.

Particularly Perplexing Pronunciations

The four consecutive consonants in my last name, Krstić, make it well nigh unpronounceable to the delicate American tongue, and lead to much hilarity every time someone tries to introduce me at a conference.

Now Ubuntu’s Kevin Cole points out a news item on the upcoming flick Get Smart:

[Steve] Carell plays Maxwell Smart, a newly assigned field agent for the super-secret agency CONTROL. He stars opposite Anne Hathaway as Agent 99 and Alan Arkin as the Chief in the reboot of the classic 1960s spy-spoof TV series.

“I try specifically not to laugh when someone else is doing their thing, because if you laugh and ruin someone else’s take, if someone’s doing something inspired or incredibly funny, it’s a gift, and to take that away by laughing and ruining it, that’s a cardinal sin in my mind,” Carell said. “But there are some times you just can’t help yourself. The scene in the movie, when Alan is trying to pronounce a name [in] the Cone of Silence sequence, … the scene probably took five times longer than it should have because … I couldn’t control myself. And so I took that gift from Alan Arkin.”

Arkin improvised some of the scene, in which he struggles to pronounce the name of an enemy agent, Krstić.

“That just killed me,” Carell said.

Look, it’s okay to use my name, but Hollywood and I have a deal: no biopics. My life as a super-secret enemy agent is off limits. Evidently director Peter Segal didn’t get the memo.

The henchmen have been dispatched.

3G jackassery

Ralph de la Vega, CEO of AT&T Mobility, in an interview about the iPhone 3G:

I think people have tried to build a $100 laptop, and here is a $200 phone that can do all that over 3G.

Uh-huh.

It’s just like the “$100 laptop”! Except not rugged, with a tiny screen sans dedicated reading mode, without a reasonable prolonged-use input device, with a $100 fee for a software development certificate, without USB ports or a video camera, with a prohibition on interpreted software and a by-design inability to share software due to DRM, and requiring wi-fi access points or expensive 3G GSM infrastructure to communicate.

And, um, with a $200 retail price after massive subsidy by AT&T which attaches it to a mandatory two thousand dollar contract.

Good call, Ralph.


« See older postsSee newer posts »