Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Cloudflare Quick Tunnels(cloudflare.com ↗)
    179comments
  2. Saving another 100TB of RAM with math (and Rust)(cloudflare.com ↗)
    1comments
  3. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    25comments
  4. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    1comments
  5. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    50comments
  6. US Military had close call after using AI for hallucinated intelligence report(cnn.com ↗)
    129comments
  7. OpenJev(openjev.com ↗)
    228comments
  8. North Korean nuclear test sets off years of earthquakes(science.org ↗)
    113comments
  9. Cache-to-Cache: Direct Semantic Communication Between Large Language Models(arxiv.org ↗)
    discuss
  10. Systemd is a suite of basic building blocks(systemd.io ↗)
    33comments
  11. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    131comments
  12. Apple releases iPhone Duo simulator and Xcode 27.1 beta(developer.apple.com ↗)
    1comments
  13. The Implications of Linguistic Illegibility for LLM Security(arxiv.org ↗)
    3comments
  14. Show HN: Ax-check.com – Can agents use your product?(ax-check.com ↗)
    14comments
  15. I vibed a proof of Conway's conjecture(overreacted.io ↗)
    141comments
  16. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    189comments
  17. Our brain evolved from two primitive nervous systems that merged: Study(newscientist.com ↗)
    12comments
  18. Inside ZCode: Silently uploading your Git history to the cloud(ferstar.org ↗)
    84comments
  19. A search-and-inference database from scratch in pure Zig(antfly.io ↗)
    4comments
  20. Mathematicians Build Long-Awaited Graph Sandwich(quantamagazine.org ↗)
    11comments
  21. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  22. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    5comments
  23. Minimal Phone 2(minimalcompany.com ↗)
    72comments
  24. How SpaceX streamlined the Raptor engine(construction-physics.com ↗)
    3comments
  25. Warez: The Infrastructure and Aesthetics of Piracy (2021)(archive.org ↗)
    4comments
  26. How to Write with an LLM(sockpuppet.org ↗)
    205comments
  27. Border agents can search cellphones without a warrant or reasonable suspicion(lawandcrime.com ↗)
    28comments
  28. Show HN: Scry, programmable internet search w/ congestion pricing(scry.io ↗)
    11comments
  29. Jemalloc 5.4.0(github.com/jemalloc ↗)
    79comments
  30. I don't like passkeys(hawksley.dev ↗)
    633comments

Yubico with new 4096-bit keys and gpg-agent for ssh authentication

107 pointsby 10y agotrmm.net
48 comments
10y agoHN ↗

I'm surprised that more folks haven't just gone to 8,192-bit keys, out of an abundance of caution.

10y agoHN ↗

4,096 is already an abundance of caution. You might as well say people should go to 32,768 just to be sure. Then somebody else would come along and say, "why not 65,536?"

10y agoHN ↗

Indeed. Mostly, it's just a question of whether or not the software will support a key of such size. Typically, I would recommend that, unless you've a good reason to use a smaller key (like support concerns), one should use the biggest key one possibly can use at the time the key is generated. Though, if one is doing key rotation as one should be, one can always adjust up as needed as time goes on.

10y agoHN ↗

Not really, especially in the context of RSA keys, because:

1. RSA is a slow algorithm and gets slower as you increase the key size.

2. Increasing the key size gets diminishing returns on the security margin. Given the performance and compatibility issues, the relatively minor improvement in security once you go beyond a certain key size is not worth it (you should switch to a better algorithm instead).

3. Anything over 4096 (possibly anything over 3072) is overkill anyway - if you could break a 4096-bit RSA key, you've probably found a fundamental weakness in RSA that means you should move to a different algorithm entirely.

10y agoHN ↗

I think the general consensus was not extending RSA key size, but using elliptic curves instead? (But NIST and Brainpool curves aren't completely trustworthy and Curve25519 is not yet standardized for OpenPGP, so we're practically stuck with RSA at the moment)

10y agoHN ↗

According to Werner Koch: [0]

"8192 bit keys are horrible insane from all POVs: There is no extra security because the security is based on the weakest link and this is definitely not the length of the RSA modulus, they make encryption really slow and thereby reducing the likeliness of widespread encryption use, they only help spreading FUD about the security of the RSA or other algorithms."

[0]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=137824#10

10y agoHN ↗

Are the github keys they sold cheaply compatible with 4096 bit keys? I'm loathe to buy another, considering i've got 3 already...

10y agoHN ↗

As far as I'm aware, Yubikey 4 and Yubikey Nano 4 can do 4096; the older ones like the NEO can only do 2048.

Not that 2048 is flawed as such: it's still north of 100 bits workfactor at the moment, as far as I gather. 3072 would be equivalent to about 128 (similar to the EC algorithms secp256r1 or Curve25519), and 4096 is some extra insurance on top. (As a benchmark: Snowden used 4096-bit RSA keys for GnuPG.) Anything bigger than that could introduce OpenPGP compatibility troubles.

All of these are secure when correctly implemented. (Yubikey use NXP chips. I don't have much to say beyond that, I haven't audited them.) All of them will fall to Shor's algorithm on a quantum computer of sufficient size, but we're not likely to have one of those for a good few years, if they're possible.

10y agoHN ↗

No, because the github / U2F keys don’t have any writeable local storage.

10y agoHN ↗

I picked up two of the github keys. Never did get them working under OS X. Plug them in and nothing, not recognized by any of their tools, no new keyboard recognized prompt, nothing. Anyone else have trouble with them on OS X?

10y agoHN ↗

Does it light up when you try logging in or registering it with Github/Dropbox/Google in Chrome?

10y agoHN ↗

Is there any way to store an ssh server key in it, or an https server's key? Basically turning this into a mini-HSM ?

10y agoHN ↗

My mistake, it doesn't appear to support that functionality. I'll have to look into it further.

10y agoHN ↗

There is also the non-insignificant issue of the $500 price tag. Wouldn't bat an eyelid if this was for professional/corporate use, but $500 out of my own pocket for my personal home server is a bit steep.

10y agoHN ↗

As best I can tell, the YubiHSM is basically only useful with their Yubico Validation Server for their proprietary 2FA solution.

10y agoHN ↗

You might want to look at the Nitrokey HSM. I'm using one for a project and I was blown away by the feature set for the cost (as compared with the SafeNet devices I originally looked at). Its signing throughput is too slow to run a website with any significant new connection volume, but for personal applications it could be made to work. As just an HSM I think they're a phenomenal value.

10y agoHN ↗

Sure! There are a lot of ways you can do this. One is to use PIV mode, which exposes a PKCS#11 interface that can be used by OpenSSL. Yubico has some nice docs on using a Yubikey as an HSM to store CA keys: https://developers.yubico.com/yubico-piv-tool/Certificate_Au...

Note that (at least in the method described in that document), the Yubikey does not _generate_ the private key, it merely stores it securely. You need to generate it on a computer, which should preferably be a brand new laptop, airgapped, purchased from a physical store and not online (continue to layer defenses up to your desired level of paranoia).

10y agoHN ↗

Actually, in PIV mode it's my understanding that you can have the Yubikey generate the private key if you want it to.

Note that the key is intended to be difficult to extract from the device and there is not intended to be an interface for doing so.

If you are using it with RSA key, you need to decide if you trust that it is generating the key properly. Keep in mind Yubikeys are built on GlobalPlatform/JavaCard which is an extremely high value target. There would definitely be the economic incentive for a well-funded adversary to backdoor the RNG system.

If you are using a Yubikey with EC cryptography, the security analysis gets even more complicated. The curve used need to be a safe one.

And, if the RNG has been tampered with or incorrectly designed, EC signatures can actually leak the private key.

Which is to say that if there is a flaw in the Yubikey, JavaCard, GlobalPlatform, or the specific chips they are using, and you are either (A) having it generate the private RSA keys, or (B) using it with elliptic curves, then there is the potential that the device is not at all secure.

Note that backdooring crypto-specific chips is a thing. TPM and other special-purpose crypto chips have been discovered to have been both backdoored and vulnerable to implementation issues.

Which is completely unacceptable - "you had one job".

10y agoHN ↗

That looks very nice, but it's rather more expensive than the Yubikey. The latter has NFC+U2F in a stick costing $50, whereas the former costs $50 for a stick that has neither.

10y agoHN ↗

For usage with mobile applications, where NFC is typically available but USB Host is not, I would imagine.

10y agoHN ↗

On Android, you typically have USB host (at least on any phone that someone interested in this tech would buy). On iOS it's moot since NFC is gimped and can't be used by apps.

10y agoHN ↗

Most people don't carry the necessary cable around with them, though. NFC doesn't require any additional hardware.

I use it for generating 2FA codes, Yubico Authenticator works like Google Authenticator except that it requires touching the YubiKey to the phone before it shows the 2FA codes. The codes are computed on the YubiKey: https://github.com/Yubico/yubioath-android/blob/63387c02a39b...

10y agoHN ↗

This looks really neat. Anyone also use these? Thoughts? I might get myself one.

Edit: Also, does this have gpg-agent / ssh support?

10y agoHN ↗

I tried the pro model but went back to the FST-01 as it was too slow for RSA 4096 and doesn't support curve25519 for sign/auth.

But, yes, it does work with gpg-agent with ssh support.

10y agoHN ↗

Can confirm what bruo said. I use my Yubikey Neo with gpg-agent with "--enable-ssh-support" enabled for ssh agent support.

10y agoHN ↗

Looked at these last year but opted for smartcard and secure pinpad reader instead.

10y agoHN ↗

Can you provide links to what you chose instead?

10y agoHN ↗

Where did you get the PGP card? Did you donate to become a fellow?

I've been thinking about it, but it's a bit confusing figuring out what cards are compatible and donating to the foundation is nice but a bit expensive.

10y agoHN ↗

I got it from kernelconcepts as tokenizerrr said. They seem to have a newer version of the card now which does 4096, so I might have to buy another. Mine only does 2048

10y agoHN ↗

In the article it's written that the yubikey is tamper proof.

This is not the case. They report their product as tamper evident but not tamper proof.

10y agoHN ↗

Encrypting by default is a good idea.

I suspect the author intended to say Signing by default is a good idea.

10y agoHN ↗

I think it supports ECC keys in the PIV applet, but not in the OpenPGP applet.

10y agoHN ↗

Offtopic question:

Is there any FDE software that supports keeping decryption keys on a network server? You would still need to enter user authentication to obtain the decryption key of course.

Use case: We are a HIPAA environment, I want a hard drive to be useless if it is removed from the building.

10y agoHN ↗

We use Checkpoint where I work and I am almost certain it does key escrow.

10y agoHN ↗

Buy the one with smaller form factor. the device bends with very nominal pressure and if you are someone as me who works mostly on one device and need to move around a lot with it - unplugging and replugging the key is very cumbersome. You can leave the nano one in port and forget it until you need it in another device. My two cents from using a neo to store production ssh keys.

10y agoHN ↗

Just so it's clear, the previous Yubikey NEO also supports gpg-agent for SSH authentication, not just the new Yubikey 4. I've been using one for months. It presents a standard smarcard CCID interface and runs an OpenPGP applet.

The source to the actual Javacard applet that implements is available on Github: https://github.com/Yubico/ykneo-openpgp