Unofficial Hacker News companion — get notified on comment replies, and more.

NSA advises immediate transition to post-quantum cryptography (opens external site)

2703 points by intunderflow 1 day ago www.nsa.gov 1277 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (50)

  1. Most of the actual content is talking about hardware, firmware, devices, equipment, etc.

    I don't think they are coordinating disclosure of a particular break, so much as signalling to businesses and other institutions that some infrastructure can't be quickly upgraded the way other software can, and trying to prevent a logistical/operational shitshow when everybody's old router or industrial control does actually get pwned.

    There are systems still using known-insecure TLS 1.2 ciphers (finite field diffie hellman, CBC-mode). These are probably the most likely systems to get "broken" (abused at scale) because they are literally already broken.

    There are a lot of systems still running on these. See how recent these are eg https://supabase.com/changelog/cbc-tls-ciphers-deprecated, https://clerk.com/glossary/cipher-suite. They're supposed to be the savvy ones lol (relatively speaking, they actually are)

    Replies (7)
    1. But it says "Frontier SI companies have engaged with the U.S. government to responsibly disclose recent discoveries that impact the security of some cryptographic systems currently in use."

      What are we supposed to read into this that they've discovered?

      Replies (8)
      1. That they don’t undertake what was discovered?
      2. The read (IMO) is that the companies are still trying to build the wall around their markets. The NSA, like most of the US government, is playing along.

        In this case though, it probably wouldn't be terrible for people/organizations to step up their security. Only because there's lots of terrible and/or broken implementations out their, not because somebody has figured out how to efficiently determine prime factors.

        Replies (1)
        1. I think the point about the NSA playing along with companies is pretty legit, and probably understates this situation.

          It's actually a very, very good thing that this NSA announcement uses the term "SI" rather than "AI," because it's a reminder who ultimately calls the shots over there.

          Think about how much money you could make on Kalshi by betting they make this announcement on any specific, particular day.

      3. We're not supposed to be able to read anything into it - otherwise it would be a disclosure, and "the bad guys" would start looking for ways to attack the new target
      4. Finding a path and walking it are two different things, and all they’ve admitted to is maybe knowing a path exists. These statements are like, professionally unreadable beyond the most basic info possible.
      5. There were discussions about very narrow and specific areas of cryptography that LLMs have found loopholes in earlier this week. The mere fact that this was discovered by LLMs is enough to spook the NSA.

        The NSA does not need a proof of every crypto ever devised is unlocked by labs to recommend what they recommend. A credible pathway towards decryption is enough.

        Replies (1)
        1. Especially since moving to new crypto is gonna take foreeeeeever.
      6. > What are we supposed to read into this that they've discovered?

        Nothing. Someone discovered something but it's a nothing-burger for all practical purposes. If there was something real, they'd name the particular algorithm being broken without disclosing how to break it. Or, at the very, very least, they'd say "Some algorithms can now be broken" without further information.

        Conclusion: nothing real was broken, move along.

        Replies (1)
        1. I mean, an advance that made quantum computing practical would not need any specifics beyond advice to move to PQC.
      7. One proof of a possibility that I posted about recently is how it might be possible to use a quantum computer to blink someone’s eyes from a distance (and one way to prevent it from happening): https://mkolodny.substack.com/p/a-moratorium-on-quantum-comp...
        Replies (1)
        1. Is this satire?
          Replies (1)
          1. Some people are just stupid. He doesn't understand what "proof" means, and strings together disconnected facts to reach an absurdity.
            Replies (1)
            1. Are there any parts of the proof that you think are missing?

              Continue this thread (1 replies) →

      8. Complete guess on my part but I'd probably guess factoring in p. If that is reliably solved, RSA is pretty much a goner. Given how much new math Anthropic has solved, it's not impossible that they either expect a discovery or might have already made one.
    2. I would concur with this comment. What the NSA doesn't like is that hardware with "baked in" secrets that would take "100 years" to break are looking more like 20 years to break. So like 100 year floods that now come two or three times per decade, the NSA wants to avoid some flag day where suddenly some foundational chunk of their much vaunted (and expensive!) zero trust program they have been pushing into the government and government contractors, is suddenly a much weaker link than it was when they did the system assessment. As an example, the transition of the government from Enigma like ciphers to DES type ciphers took nearly 15 years. A lot of gear and systems had to change. Same with DES => AES. So if you know change takes anywhere from 10 to 20 years, and your 'it's been broken' horizon starts getting close to being 20 years away, you need to start moving now.
      Replies (1)
      1. While that might be true, I think we also have to consider the possibility that the agency tasked with cryptographic security of our country are telling us to update our hardware because it might be pwned soon.

        Which is true, good advice. And very suspiciously close to what they're supposed to do to help the public.

        You have to remember they're putting this out there so the guy that does IT procurement at a water treatment plant can show this to his boss and get him to replace their ancient Windows Server that hasn't been turned off in 20 years. Not to run a psyop against hacker news commenters

        Replies (4)
        1. If you want to put on a tinfoil hat for a moment, those agencies may have a different motivation. They may have compromised hardware now installed in the supply chain, with back doors they control, and they are anxious for everyone to upgrade to this new hardware.

          Probably this is just a silly thought... but considering the exploding-beepers supply chain example, it's not impossible.

          Replies (5)
          1. Long before the beepers fiasco we had

            Huawei accused by the USA of compromising telecommunications hardware for the Chinese security services

            A certain Mr Edward Snowden, a contractor for the NSA, dumped a pile of stuff that showed the USA/NSA were also engaging in such behaviour

            It's not tin foil hat territory to think that some/all hardware is compromised in some way, shape, or form, but, there's also not a lot that you can do about it

          2. Of course, this might be exactly what they want you to believe. That's why my tinfoil hat has a tiny tinfoil hat, and so on. It's tinfoil hats all the way up.
            Replies (1)
            1. Damn, big tinfoil got them. A moment for dxdm, they had so much left to broadcast from their tracking implant. Now, they are but noise.

              Continue this thread (1 replies) →

          3. Well, first of all some lizard has successfully hacked my brain. For some very odd reason, the NSAs and NISTs of this world are the only government departments I seem to trust.

            $500 bill by the office of the Assistant Undersecretary for Interstate Sports Event Coordination? Breville Bambino Deluxe Coffee Maker seems like a weird name for somone smuggling little kids over the border.

            New Post-PQC algorithm specifies cloud connectivity to be always up to date with the newest and safest constants? Alright boys, finally going with the times.

          4. It's not silly but it does need to be evaluated from a risk assessment standpoint on our side. I'm not a tin foiler. Trust is proven not earned.
          5. > it's not impossible

            Tin foil argument.

        2. > the agency tasked with cryptographic security

          isn't this NSIT?

          NSA is supposed to be listening in on our friends and adversaries, I thought.

          Replies (1)
          1. I think NIST's job is to rubber stamp the NSA's recommendations, making them official. Dual_EC_DRBG was a NIST standard.
        3. Yes but it's also true that their job is to fix things in advance so they don't become a crisis, which is normal responsible management.

          What people hate though is their news not being entertaining enough and so here we are with the people implying "all cryptography to be broken by the end of the month!" or whatever.

          When the actual report will say something like "by 2035 there's a 20% chance a viable quantum computer will be able defeat <system>."

          They want that chance to be neglible, and the risk manageable (I.e. upgradeable systems in mission critical roles).

        4. Aside: I don’t see why the guy who does IT procurement for a water treatment plant wouldn’t ever be on HN
          Replies (1)
          1. These are precisely the type of people whose comments I look for when scanning comment threads. They stand out in that they tend to be longer, often multi paragraph responses, and the writing style is usually what I can only describe as relaxed authoritative. They are always gems to find, and I expect to learn something I didn’t previously know.
    3. Yeah I'm reading this as the same kind of thing as the Y2k/2038 problem. Issues with these systems are COMING but nothing imminent.
      Replies (1)
      1. It still is imminent because bad people could just capture encrypted traffic or encrypted files, store them, and then, in a few years decrypt them. Every "encrypted" PDF document, zip file, sqlite database, … are prime targets.
        Replies (2)
        1. "Just" capture?

          Yes, leaked encrypted data that does not have perfect forward secrecy is at risk, but that's by definition. That similarly holds for post-quantum cryptography — if algorithms are broken at some time in the future, not much you can do about it if someone recorded encrypted data.

          Replies (1)
          1. Perfect forward secrecy means nothing if the encryption scheme itself is broken. It only protects against stolen keys. If RSA/EDD25519 etc were all broken, all captured Internet traffic would be exposed. A working large QC would absolutely be able to decrypt the traffic between myself and my bank from today that some MITM might be storing.

            PFS ensures that the session key remains a secret even if the private key used to derive is later leaked. But if you can break the encryption itself, you can extract the ciphertext without needing any key, that's what breaking encryption means.

        2. amount of encrypted data that is still valuable and dangerous after 5-10 years is vanishingly small
    4. It may not be that your router is immediately vulnerable. The NSA could be looking years ahead. However, they need to.

      1. Credit cards can last up to 5 years before expiring.

      2. Ciphertext of transactions can be stored and cracked at a later date with more advanced methods/hardware.

      Put 1 and 2 together and you need whatever encryption is being used for common transactions to remain secure for 5 years or more. You could stop using your credit card today and not be safe until you replace it. Somebody might have already backed up a copy of one of your transactions without yet cracking the encryption.

      It's possible #1 could be another form of data that the NSA is worried about which remains sensitive for longer than 5 years, and we have a little more time. However, if they're recommending rapid change, it's probably not wise to debate how long you can do nothing for and get away with it.

      Replies (3)
      1. One thing about #2 here is that PFS (Perfect Forward Secrecy) prevents someone from breaking your communications after-the-fact as it mints new ephemeral keys for each session.

        Even if attackers record encrypted traffic today and steal long-term keys or break them later, those keys cannot reconstruct past ephemeral session keys. They would have to then go on to break each session's key to reconstruct the full transmission.

        Replies (2)
        1. Correct, in so far as PFS is a protection against key theft. It does not protect you in the case of cipher breaks in a HNDL attack though.
        2. If EC is broken, yes, you can reconstruct past session keys.
          Replies (1)
          1. Depends on how broken EC is. If we're talking "it takes 2 days of all of US data center capacity to crack" then yeah we're OK.
            Replies (1)
            1. Something else to factor in: NSA is almost uniquely positioned to understand how quickly attacks will get better. 2 days now becomes 1 day some time soon, and so on down the scale, and you can bet they have a good read on what the constant factors in the shape of that curve are.
      2. > It's possible #1 could be another form of data that the NSA is worried about which remains sensitive for longer than 5 years, and we have a little more time.

        The NSA's threat model is the Chinese government spending 10 billion dollars on compute 10 years from now, with whatever hardware and algorithm improvements happen in that time.

      3. For better or worse, payment cards are probably surprisingly unaffected by all of this, especially in the US. The bulk of the protocol stack uses symmetric algorithms exclusively.

        > You could stop using your credit card today and not be safe until you replace it.

        You're in any case safe, since weak cryptography is the industry's problem, not the cardholder's. (If several big banks were to fail due to this, legal liability assignment might also show its limits, of course.)

        Replies (1)
        1. Transit is probably the biggest user of the asymmetric support in EMV, and is fundamentally limited to RSA keys less than 2048 bits. Somebody breaking the root keys would be very problematic I imagine.
          Replies (1)
          1. Definitely, open loop contactless payment transit might be in a bad spot, as will be the few remaining offline payments.

            On the other hand, you always have to consider the alternatives available (e.g. just hopping a turnstile). The lock doesn't have to be perfect, just more annoying to pick than it would be to kick the door in. This tradeoff will vary a lot across transit systems.

            The other major threat would be to the EU offline credit/debit card payment rollout [1], which fortunately is only a fallback solution for infrastructure outages and is only supposed to cover essential goods, hopefully making it much less attractive a target, but it's still not great having to worry about this on top of existing offline risks to be mitigated.

            [1] https://www.heise.de/en/news/Mastercard-to-introduce-offline...

    5. > I don't think they are coordinating disclosure of a particular break, so much as signalling

      I suppose we could read this as the NSA trying to piggyback on recent media attention, hoping that decision-makers will be a bit more receptive this week.

    6. > (finite field diffie Hellman

      I had to look this up because I never heard of DH being broken. Turns out DH isn't broken, but TLS 1.2 had a bad way to negotiate which group/field is used. The server or client could try to specify a broken one and hope the other side didn't notice.

    7. Isn't it still valid to use post quantum algorithm to establish a key for CBC?