What to Make of the NSA Advisory

(words.filippo.io)

245 points | by jvdheyden 2 hours ago

29 comments

  • leishman 57 minutes ago
    It's worth noting that the NSA has been recommending 384 bits as the baseline for Elliptic curves since 2015 https://en.wikipedia.org/wiki/Commercial_National_Security_A...
  • adrian_b 8 minutes ago
    > They are not calling out RSA.

    This is not true. RSA is still allowed temporarily, but only with a size of at least 3072-bit.

    Moreover, "starting in 2027, no new product for NSS should have a burned-in root of trust relying on a non-quantum-resistant primitive".

    Also: "by the end of 2030, all available devices should fully support quantum-resistant algorithms".

    Therefore, after the New Year new products should not use RSA in root certificates, and by the end of 2030 the use of RSA and elliptic curves in non-hybrid algorithms should be discontinued.

    Among the non-public-key algorithms, only 3 are permitted: AES-256, SHA-384 and SHA-512. Older or weaker algorithms are deprecated.

    There is an exception for the digital signatures specified in NIST SP 800-208, inside which SHA-256 and SHA-192 are allowed, but these smaller hashes are not permitted for general usage.

    It is notable that SHA3 is not among the algorithms permitted by the "Commercial National Security Algorithm Suite 2" promoted by NSA, despite being significantly stronger than SHA-512 and SHA-384.

    Unlike with many other algorithms that are mentioned and about which it is said that there are no plans to include them among the algorithms that are allowed for owners and operators of "National Security Systems", for SHA3 it is said that even if NSA currently has no plans to allow the use of SHA3, "it would be prudent from a cryptographic agility perspective for NSS customers to have larger versions of SHA-3/SHAKE available in FIPS 140 validated products", which appears to imply that they might reconsider this decision in the future.

    • ComputerGuru 0 minutes ago
      They actually allow RSA-2048 in a footnote! (Yes, surprised me.)
    • adgjlsfhk1 1 minute ago
      The fact that SHAKE and cha-cha aren't more standardized/govt recomended to me is crazy. It seems really obvious that we want a large number of really high quality schemes.
  • ramblurr 46 minutes ago
    But for normal ops engineers there's little we can do right now. We touch crypto every day in two places:

    1. TLS 2. Hardware ssh keys

    TLS -> we can configure X25519MLKEM768 for key exchange, but Let's Encrypt doesn't offer PQ auth yet. Should we switch to RSA 4096?

    SSH -> there aren't any commercially available hardware keys that support ML-DSA or a hybrid

    Seems kind of like shouting fire in a crowded room with no fire escapes, fire alarm pulls, or sprinklers. We just have to wait for the firefighters to come?

    • cayleyh 41 minutes ago
      This type of announcement is a way to kick off the process so these types of things will start to get supported & filter down to everyone. It's meant for people like Filippo who maintain crypto libraries, are major issuers, operating systems & browsers vendors, etc. to tell them "hey it's actually really important now, not that 5-10 year timeline you thought you had"
    • cipehr 29 minutes ago
      If you're on apple/mac devices, the Secure Enclave does in fact support ML DSA keys... https://developer.apple.com/documentation/cryptokit/secureen...

      You can use them with apps like Secretive https://secretive.dev

      • bonyt 4 minutes ago
        Yes, but the current Secretive doesn't support any of the formats that mainline OpenSSH supports. It supports mldsa-65 and mldsa-87, but OpenSSH only has mldsa44-ed25519 (hybrid) at the moment I think, and may stick to hybrids.

        The secure enclave only supports ML-DSA-65 and 87 as far as I know, so it seems unlikely that Secretive will ever support mldsa44-ed25519, but maybe they will eventually agree on a hybrid.

    • bwindels 20 minutes ago
      > Let's Encrypt doesn't offer PQ auth yet.

      Last month they got funding for exactly this it seems: https://letsencrypt.org/2026/11/05/sta-pq-funding

    • dist-epoch 17 minutes ago
      This sounds like the perfect moment to put pressure on Let's Encrypt, YubiKey, ...
    • adverbly 20 minutes ago
      Claude build a commercially available hardware key that supports ML-DSA. Make no mistakes.
  • quaz4r 59 minutes ago
    My baseless guess, as someone in quantum computing and has worked in quantum cryptography, is that there were additional results not publicly disclosed which point to a reduction of resources required for quantum attacks of ecc or discrete log (which is not unprecedented over the past few years even without AI), and thus more pressure to migrate PQC
    • KMag 28 minutes ago
      Are you using discrete log as shorthand for both discrete log and the RSA problem over Z_p, or do you have reason to suspect that discrete log over Z_p is likely more vulnerable than RSA?

      25-ish years ago, I was in 6.857, Ron Rivest's security class (mostly crypto, but much less math-intensive than Silvio Micali's crypto class). I asked him about the utility of either using 1024-bit El Gamal wrapped in 2048-bit RSA or 2048-bit RSA wrapped in 2048-bit El Gamal. (These size relationships avoid waisted bits in the wrapping.) His response was that it was very unlikely to have a significant breakthrough against one without having a breakthrough against the other.

    • djha-skin 28 minutes ago
      He addresses this in the article, opining that it's actually a "normal" computer attack:

      > This, to me, says this is a classical attack, because no quantum algorithm would “present a significant threat to cryptographic systems” without also a big progress in CRQC development, which is not mentioned anywhere.

      • quaz4r 22 minutes ago
        Yeah, I don't agree with that line of reasoning. If ECC quantum algorithm requirements were reduced, say another 10x by AI, these would be vulnerable to attack within a few years just looking at public QC timelines.
    • dist-epoch 20 minutes ago
      Aren't quantum computers far away from anything larger than the toy-iest of problems?

      These advisories seem very urgent, could it be they found a classical attack?

    • oofbey 29 minutes ago
      Everything about this advisory would seem perfectly normal without AI. QC is getting real at an increasing rate. If you care about today’s communications staying secret for years to come, you need to be using PQC.
    • 3949499559 43 minutes ago
      [dead]
  • galadran 1 hour ago
    The best part of this advice is that it is exactly what everyone should have been doing already.

    Moving to MLKEM768-X25519 hybrids for key exchange as soon as possible and building in agility for authorisation.

    • insanitybit 28 minutes ago
      You should be moving to ML-KEM. The hybrid option is only an option if you find it easier.
    • busterarm 1 hour ago
      it's not without cost. the size is much bigger and you're adding 2-4KB to all of your request headers, which at scale is a meaningful problem to deal with.

      There are a lot of high-volume environments where people weren't doing any key exchange whatsoever and had to be dragged kicking and screaming into doing so with x25519 only recently. They are going to be slow to adopt this.

      Ask me how I know.

      • g-b-r 59 minutes ago
        At what scale, and in what environments, is it a meaningful problem?

        Not doing any key exchange means? Hopefully static, rarely changed symmetric keys?

        • SV_BubbleTime 44 minutes ago
          Where is 2-4KB a big deal? BLE, Lora, serial interfaces to HSMs…
          • busterarm 41 minutes ago
            and SIP. Specifically STIR/SHAKEN. Imagine the volume spike in robocalls :D

            Plus the packet fragmentation issues.

        • busterarm 45 minutes ago
          There's lots of places where load balancer timeouts are extremely aggressive and you can't rely on long-lived connection pools. Start there and add thousands of microservices all talking to each other through the loadbalancers and you're gonna have a fun time.
          • g-b-r 42 minutes ago
            Great...
      • dgellow 1 hour ago
        Is the switch to MLKEM768-X25519 complicated? Genuine question
  • int0x29 1 hour ago
    Just tried to set up ssh-mldsa44-ed25519 and found that neither github nor forgejo supports it.
    • QuantumNomad_ 57 minutes ago
      Forgejo defaults to relying on the host ssh server. I.e. OpenSSH sshd or Dropbear sshd or what-have-you.

      There’s also a built in ssh server in Forgejo but it has to be explicitly enabled.

      If you have START_SSH_SERVER set to true in the [server] section of the Forgejo config, you are running the built-in ssh server of Forgejo itself. Otherwise it will be whatever ssh server your host OS is running.

      • int0x29 37 minutes ago
        Well my host has it but the docker container its running in probably doesn't. I'll need to look
  • ok_dad 1 hour ago
    What’s the new ssh key crypto I should use now? I’ve been using 25519 based keys everywhere. That’s the thing I need to know. Damn.
  • treetalker 22 minutes ago
    > The good closer of doors does so without bolt or lock, and yet the door cannot be opened; > The good tier of knots ties without rope or cord, yet his knots can't be undone.

    Tao Teh Ching ch. 27

  • segmondy 28 minutes ago
    Nothing, it's expected. Imagine that current encryption will fall in 5 years due to AI. I would consider that immediate threat. Why? How would you feel if some decrypted all your data from 3 years ago going back? You don't want to wait until it's proven to start upgrading. Govt keeps secrets for a long time. Collected encrypted data that can't be decrypted today will become valuable intel in a few years. For the government this is urgent, but it is for individuals too.
  • djha-skin 24 minutes ago
    David Hilbert thought the Riemann Hypothesis would fall before Fermat's Last Theorem and the Transcendence problem might never fall, thus getting the order of when they were solved backwards.

    I wonder if we'll find ourselves in a world where every algorithm has fallen _except_ RSA. We really don't know which one will fall first or which ones will never fall.

    • masfuerte 13 minutes ago
      The Riemann Hypothesis did fall after Fermat's Last Theorem, didn't it?
      • djha-skin 6 minutes ago
        Yes, sorry, I meant to write "before", fixed.
  • o_nate 14 minutes ago
    > Again, this is a "get off 256-bit elliptic curve" advisory.

    Isn't that what bitcoin uses to sign all transactions?

  • maratc 21 minutes ago
    It would be great if someone who understands this stuff could translate the news into clear instructions on what I should have in my .ssh/config for "Host: *".
    • SSLy 19 minutes ago

          PubkeyAcceptedAlgorithms ^ssh-mldsa44-ed25519
          HostKeyAlgorithms ^ssh-mldsa44-ed25519
          KexAlgorithms ^mlkem768x25519-sha256 
          #^sntrup761x25519-sha512 is probably ok too
      
      and be on 10.6+
    • pshc 20 minutes ago
      if you're on macOS, install Secretive, then generate an mldsa-87 key.

        Host *
          IdentityAgent ~/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh
  • wk_end 1 hour ago
    So, for us laypeople unfamiliar with the theory of ECC, what's the upshot of P-256 being broken but P-384 continuing to be safe? What did (likely) Claude discover/do?
    • SSLy 57 minutes ago
      Perhaps it's something like reduction of security, that is P-256 becomes 64b or smaller, while P-384 is an okay 128b?
    • adgjlsfhk1 23 minutes ago
      Eliptic curves have had absolutely no algorithmic progress since introduction, but the likely answer is something like what happened with factoring. Current SOTA is 2^(n/2) security, but if a 2^(2n/log(n)) attack were found, then 256 bit would have ~90 bits of security while 384 would have 129.
      • nullc 9 minutes ago
        > Eliptic curves have had absolutely no algorithmic progress since introduction

        More precisely curves over fields of small characteristic and over extension fields have been weakened to the point of insecurity. But so far curves over prime fields have had a quite stable security story.

  • blaind 38 minutes ago
    So... if:

    - ed25519 signatures could be practically forged from public keys;

    - most modern Linux distros default to it when generating keys;

    - GitHub publishes all user keys in https://github.com/[username].keys

    the potential adversary would have RW-access to very many repos?

  • ComputerGuru 9 minutes ago
    Have I been vindicated for never joining the “burn your RSA keys and switch to ed25519” brigade?

    The problem is that my rationale for sticking with RSA (it’s a simple math equation we understand very well) doesn’t extend to any of the PQ alternatives. Funny NSA seems to (maybe) similarly feel about RSA as I do.

  • rustyhancock 1 hour ago
    Does this suggest secp256k1 is at risk?

    Or do we just wait to see if the Satoshi wallets vanish into NSA coffers?

    • verysmart 44 minutes ago
      the satoshi wallet always was an NSA coffer, I've always believed the satoshi wallets were a cryptography honeypot. Although, I think it was expected to be drained much farther in the future, and that's still probably the case.
  • karel-3d 38 minutes ago
    Will Wireguard ever move to pq crypto?

    The current solution is just shrugging shoulders.

    I guess crypto agility was not such a bad idea after all?

    • marisen 29 minutes ago
      You can add a symmetric key to wireguard configs for PQC, used in addition to ECC.
  • jdthedisciple 16 minutes ago
    > 256-bit elliptic curves (P-256 and Curve25519/X25519/Ed25519) are likely broken or significantly weaker than we thought;

    Can we stop with this false rumor spreading? The NSA did NOT say any of the above.

    • natebc 11 minutes ago
      > They are explicitly calling out the P-256 elliptic curve (by exclusion), and Ed25519 (which is the only EdDSA in the NIST specifications). This implicates X25519/Curve25519/Ed25519 along with P-256.

      > They are not calling out RSA.

      it's qualified like that further down, even in bold. They don't ever claim that the NSA did say that. It's an analysis by a subject matter expert and frankly one that I trust to make a few inferences from the NSA posting.

    • baq 14 minutes ago
      He does say to read between the lines. Canary for those is dead.
  • dgellow 59 minutes ago
    Thanks Filippo, and all the best to anyone dealing with this situation. Doesn’t sound fun
  • baggy_trough 22 minutes ago
    Wonderful, now we're supposed to move to algorithms that release Debian doesn't have.
    • lazyweb 5 minutes ago
      Well openssh 10.6 is currently in testing and might make its way into stable-backports soon.
  • jmclnx 1 hour ago
    >They are explicitly calling out the P-256 elliptic curve (by exclusion), and Ed25519 (which is the only EdDSA in the NIST specifications)

    Interesting, OpenBSD standardized OpenSSH on Ed25519. But I think I saw they added a new encryption.

    Me, I take this as an advisory for people to do over the following year or maybe 2.

    • jstanley 1 hour ago
      Apparently P-256 has already been deprecated for US national security use since 2016 and P-384 is recommended by "CNSA 1.0", so I'm not sure this implies anything (new) at all about P-256.

      > Elliptic Curve Diffie-Hellman (ECDH) and Elliptic Curve DSA (ECDSA) must use the NIST P-384 parameters

      From https://media.defense.gov/2021/Aug/04/2002821837/-1/-1/1/Qua...

    • marcosdumay 55 minutes ago
      I do really dislike the author turning into "calling it out" the fact that NSA didn't mention 25519 in a document.

      The same NSA that has been fighting against 25519 for ages, and refusing to acknowledge it on every situation where it's possible.

      • SV_BubbleTime 41 minutes ago
        >The same NSA that has been fighting against 25519 for ages, and refusing to acknowledge it on every situation where it's possible.

        25518’s best selling point!

    • cwillu 1 hour ago
      They say explicit, but “calling something out” by its absence is practically the definition of implicit. I don't think it changes much, but it's annoying that a word with a perfectly good definition is being misused.
  • nullc 13 minutes ago
    Reasoning out that 256-bit ECC is broken from it's omission is seems spurious to me given that P384 has been their strong non-PQ mandatate for many years now.

    But for discussion, lets go with it--

    > The NSA wants you to move to PQC in such a rush that it’s saying explicitly, against all its previous recommendations, that you can use the X25519MLKEM768 hybrid key exchange since it’s the most widely available solution. (I think this is commendable policy, it lends credence to their previous anti-hybrid position being a simplicity expedient, and should probably lead to some retrospective about a lot of FUD from certain parties

    How's that follow? NSA has stridently worked against hybrids ... and now that __per-the author's conclusions__ the 256 bit ECC schemes are broken, they're suddenly OKAY with it and somehow this means they weren't previously opposing hybrids in order to make systems easier to attack?

    Seems to me that the logic would go the other way: if they became okay with it only once it was broken it suggests that their opposition was to avoid the inclusion of a strong component.

    But I don't buy the premise that this communication necessarily tells us anything about the security of any cryptosystem.

    I think it's also a missed opportunity to advocate for diverse hybrids-- in plenty of cryptosystems there is essentially no material performance consideration. I don't care if my rekeyed-once-a-day VPN tunnel to home spends 1 second of cpu time.

    For that it would be just fine to use E-521 + RSA-8192-KEM + FrodoKEM-1344 + mceliece8192128 + preshared. -- the bandwidth and compute costs are irrelevant for such an application but it would be very good to not have to go rush out to upgrade things when there is some mathematical advance against a particular hard problem.

  • bluegatty 42 minutes ago
    take it at face value
  • mikece 1 hour ago
    This infers a classical break of 256-bit ECC purely from what the NSA left off its inventory list. What's the strongest alternative reading of that list, and is there any independent evidence (a paper, a disclosure, a vendor statement) for a practical attack on P-256 or Curve25519?
    • owenmarshall 45 minutes ago
      I doubt we'll see the evidence you are seeking for a while.

      The NSA release from today said they were approached by a frontier lab for responsible disclosure - the only way to responsibly disclose something as massive as a break/fatal wounding of ECC is for everyone involved to say nothing beyond "you need to move to PQE immediately."

    • aphysically 1 hour ago
      Is there any prior art for recommending above 256 bit ECC explicitly? It did seem odd. I think their better argument for a dog whistled alternative reading was that they changed their recommendation on hybrid key exchange.
      • bri3d 59 minutes ago
        Yes, P-256 was effectively removed from the allowed US national security cryptography list in 2015-2016 when they migrated from Suite B to CNSA.
        • kzrdude 31 minutes ago
          Then the whole message is a lot less alarming, P-256 is not omitted because it was broken now, but because it already was off the recommended list.
    • free_bip 1 hour ago
      There is no real evidence, it's the exact same flavor of fearmongering that preceded the physically impossible quantum attacks on lattice encryption.
      • rustyhancock 59 minutes ago
        Telling people to do what everyone has been recommending for a long time doesn't seem like fear mongering.

        And the pace of AI work is such that's it's prudent to say get a move on doing what you should have done a decade ago.

        In my tinfoil hat moments I do wonder if we're being herded subtly onto backdoored security but nothing in this has that kind of smell to me (a lay person).

      • perrygeo 29 minutes ago
        The advisory says nothing specifically about any new threats. So technically, yeah this is just the NSA telling people to do what they've been telling them for 10 years.

        But the timing, the "Immediate" tone, and explicit omission of 256 bit ECC is a strong signal that something is up.

        Even if there were evidence, do you expect the NSA to just blurt it out? That is going to stay secret as long as possible, while their "Immediate Advisories" get more and more immediate.

  • 2883 18 minutes ago
    [dead]
  • mangod12 49 minutes ago
    [dead]
  • clownworld1984 24 minutes ago
    slop content. just yapping. no substance