Yes, P-256 is probably cooked

(int08h.com)

117 points | by int08h 4 hours ago

13 comments

  • dragontamer 1 hour ago
    If P-384 is still safe and if NSA still recommends RSA 2k for legacy applications, this is a "little b" break.

    EDIT: the most surprising thing about this, that made me feel like the whole thing was fake, was that RSA 2k is sorta fine but ECC 256-bit was killed off. What kind of new math would kill ECC 256 but not RSA 2048?

    But the evidence really is pointing more and more towards an Elliptical Curve specific little-b break. Highly unexpected but everyone's reactions matches to this evidence.

    • ls65536 1 hour ago
      > What kind of new math would kill ECC 256 but not RSA 2048?

      The "hard problem" that underlies ECC's security is the elliptic curve discrete logarithm problem (ECDLP), while RSA's is integer factorization. Mathematically, they're distinct problems, so it's entirely plausible that there can be a breakthrough in one without there being any impact on the other.

      • teravor 27 minutes ago

            > RSA's is integer factorization
        
        it's actually finding e-th roots modulo N which no one has proven is as hard as factoring. it's assumed to be, which is a dangerous thing to be doing with these LLMs around.
    • int08h 1 hour ago
      The "A Riddle Wrapped in an Enigma" paper (Koblitz/Menezes 2015), page 11 has and intriguing hint:

      <quote> 3.2. Does the NSA have a cube-root algorithm for finding elliptic curve discrete logs?

      The question arose when the NSA dropped P-256 from Suite B, leaving only P-384. If solving the elliptic curve discrete logarithm problem in a group of order n takes roughly the square root of n operations, then P-256 provides 128 bits of security. If it takes only the cube root of n operations, then P-384 would be needed for the same 128 bits of security.

      At Asiacrypt 2013, Bernstein and Lange presented an algorithm that could solve a discrete log in about n^(1/3) operations after an initial precomputation costing about n^(2/3) operations. As they pointed out, that upfront cost made the algorithm impractical. Could the NSA have found a similar algorithm that needs far less precomputation, or believe that one might exist? </quote>

      A newly found efficient cube-root attack fits with the rumors. It would be a "small-b Break" on the order of 2^85.

    • fchicken 1 hour ago
      > But the evidence really is pointing more and more towards an Elliptical Curve specific little-b break. Highly unexpected but everyone's reactions matches to this evidence.

      So is Monero cooked?

      • dwood_dev 31 minutes ago
        Yeah, this is a very solvable and straightforward thing for BTC to fix. This is a protocol redesign for Monero. Apparently you could just stealth inflate the money supply.

        If the cube-root speculation is true, secp256k1 is effectively 85.3bits for BTC, Edwards25519 for Monero is 84bits.

        It's still fine today, but if someone wanted to throw a few billion dollars of custom silicon compute and energy at the problem, they could sink Monero within a decade.

        • therein 15 minutes ago
          So about Bitcoin, Satoshi coins are pre-p2pkh so his public key is already on the blocks. When an upgrade takes place, he would have to move them, right?

          For everyone else using the normal flow of change addresses, each address reveals its public key once, with an outbound transaction that spends the whole address/output, generally leaving the address empty as long as it wasn't reused.

      • dragontamer 17 minutes ago
        We need the full secret paper to know for sure.

        All of the public information is guesswork based on what the big boys are doing.

    • zarzavat 1 hour ago
      > What kind of new math would kill ECC 256 but not RSA 2048

      Historically ECC has been resistant to the techniques that work best for RSA. The two problems are related but only distantly. This has allowed ECC to be deployed with much smaller key sizes compared to RSA for the same security level.

      It seems that humanity did a good job optimizing the algorithms for integer factorization but we missed something with elliptic curve discrete log and deployed too small ECC, perhaps.

    • ijustlovemath 27 minutes ago
      How should we be thinking about prime numbers as the basis for our cryptosystems?
    • chasil 1 hour ago
      DJB's published opinion of P-384 is that it us unsafe (it fails in his categories of rigidity, Montgomery ladder/isomorphism, completeness, and indistinguishability).

      https://safecurves.cr.yp.to/

      https://crypto.stackexchange.com/questions/117500/curve-comp...

      He has a higher opinion of P-521, to which I would personally defer.

      http://blog.cr.yp.to/20140323-ecdsa.html

      "To be fair I should mention that there's one standard NIST curve using a nice prime, namely 2^521 – 1; but the sheer size of this prime makes it much slower than NIST P-256."

      • some_furry 26 minutes ago
        SafeCurves fails to also consider cofactor security, malleability, etc. https://moderncrypto.org/mail-archive/curves/2017/000898.htm... https://hdevalence.ca/blog/2020-10-04-its-25519am/

        It's a marketing document for Curve25519.

        Prime order curves (i.e., P-384) have had complete addition formulas since 2015. https://eprint.iacr.org/2015/1060

        Go's crypto module, for example, uses complete addition formulas.

        Citing SafeCurves in 2026 in the wake of the 256-bit ECC advisory isn't really helpful. You're muddying waters that have long since settled.

        • cowlevel 25 minutes ago
          So you'd want a good curve to fulfil all of the safecurves criteria and more, right?
          • some_furry 24 minutes ago
            There are none, that I'm aware of, that matches all of the criteria we care about today. Maybe Decaf448 is fine.

            But we shouldn't invent new elliptic-curve cryptography in 2026. We should move to post-quantum as soon as we can.

        • chasil 23 minutes ago
          I am far more comfortable with:

            x^2+y^2 = 1-376014x^2y^2
          
            modulo p = 2^521 - 1
          
          Than I am with:

            y^2 = x^3-3x+27580193559959705877849011840389048093056905856361568521428707301988689241309860865136260764883745107765439761230575
          
            modulo p = 2^384 - 2^128 - 2^96 + 2^32 - 1
          • some_furry 20 minutes ago
            You're free to have whatever personal comfort level you want, but it's immaterial to the facts about cryptographic security.

            See https://words.filippo.io/seeds-solved/ for why the equation you posted has no relevance to the security of the NIST curves.

            • chasil 15 minutes ago
              You are also free to ignore the questions of custom parameters that introduce back doors.

              https://bada55.cr.yp.to/bada55-20150927.pdf

              • some_furry 13 minutes ago
                I recommend reading the words of cryptographers besides Bernstein.

                He's not he only cryptographer on earth. Many of them have opinions you might find compelling, if you would only consider them.

  • TheBlight 26 minutes ago
    My bet is on this scenario:

    There's a theoretical attack floating around that gives a best-case weakening of ECC on the order of e.g. 1/3 the security strength but requires theoretically possible but yet-to-be discovered intermediate optimization(s) to be practical.

    Labs self-estimate they could figure out those intermediate steps in e.g. 6mo-1yr given current progress in related fields. NSA takes this estimate seriously but also with a grain of salt.

    I think this scenario would potentially neatly explain all of the seemingly vague and sometimes conflicting communications we're seeing from labs, NSA, theoreticians, and industry CEOs etc.

  • peatmoss 1 hour ago
    With all the crypto news this week I'm beginning to regret buying a new Yubikey Bio.
    • tiltowait 1 hour ago
      I was surprised^1 to learn PQC-capable hardware keys aren't really a thing yet. Yubico has a beta program, just launched, and that seems to mostly be it? Once they're more generally available, I'll buy one^2.

      Until then: everything I care about connecting with supports PQC key exchange. My Ed25519 keys are only used for auth. Nothing I do is important enough for anyone to justify the spending required to break 85 bits, even if it's technically feasible.

      If another breakthrough occurs ... well, I'll adjust.

      [1]: Until I learned PQC keys are much larger. Those secure enclaves are starved for space. [2]: That PQC algos haven't been vetted as long is a bit of a concern, but I don't know anywhere near enough about crypto to say how realistic that concern actually is.

      • tonfa 4 minutes ago
        I was also wondering, but depending on what you use the yubikey for it might not matter much.

        (at least for passkey, it seems like there would be some time to switch since getting the public key requires compromising the target website, and there's a different key for each website)

      • ls612 38 minutes ago
        Why would it be so hard to add 16MB of ROM to even a cheap key? That should be able to store as many giant certificates as you could possibly want.
  • charlieyu1 1 hour ago
    Maybe we should never rely on 128-bit security anyway. 2^128 always feels dangerously close to be breakable
    • layer8 1 hour ago
      Breaking 85 bits is estimated at roughly $100 million in energy cost: https://www.johndcook.com/blog/2026/12/05/dlp-attack/. 128 bits would be almost 9 trillion that amount. Give and take a few orders of magnitude, it’s probably fine for the time being.
      • lisper 1 hour ago
        128 bits is fine as long as it stays 128 bits. The point is that if you start with 256 bits you can withstand a lot more mathematical breakthroughs before it becomes a crisis.
        • layer8 1 hour ago
          Is it though? Assuming the rumored breakthrough from n/2 to n/3 is true, P-384 is now at 128 bits, and hence it would take only a single additional equivalent improvement for it to share the same fate as P-256. If you previously rejected P-256 for only being 128 bits, you should also reject P-384 now for that reason. But I don’t think it works that way, because we have no way to tell how likely such a breakthrough is. And if it hadn’t been n/3 but n/4.5, then using P-384 from the start wouldn’t have helped either.

          The bit measure is used because we believe that it is accurate in terms of exponential cost, and safety margins in number of bits are assessed based on that assumption. As soon as this assumption breaks, you can’t make any serious estimate anymore, the bits lose their meaning for that kind of security assessment.

          • Tadpole9181 1 hour ago
            But to their point, if you go from 256 bits of security to 128 bits, it's still impossible amounts of compute. If you go from 128 bits to 84 bits, it's "only" a 100 million.

            So keeping the baseline at 256 would give you more time and mean a "little b" break would still not be vulnerable to a HNDL attack for potentially ever.

            • layer8 1 hour ago
              From 128 to 84 bits is a factor of 2^44 bits, so 17 trillion.

              More bits is, of course, better. But how do you assess how many bits are likely to be enough? We have no expectation value for how many bits a breakthrough will lose us. “Little b” just means that we got lucky in whatever guess we made.

              • lisper 0 minutes ago
                > how do you assess how many bits are likely to be enough?

                History. Big breakthroughs are less common than little ones. Until an AI proves P!=NP there is always the possibility that there are no hard problems and truly secure crypto is not actually possible in this universe. We can only do the best we can with what we've got.

                You also have to look at your risk posture, your threat models, and how much you're willing to pay, both in terms of day-to-day operational costs, and in terms of time and headaches when the next Big News drops.

      • SolarNet 1 hour ago
        The point they are making is that small breaks make it in the realm of possibility, as happened here. If we had always operated 256 bits of effective security we'd still be above 128 of it with this new finding.
        • NetMageSCW 34 minutes ago
          But how do you guess the scale of a small break and what is the cost of going larger?
      • yread 38 minutes ago
        it's 100M$ after you've spent 100sM$ designing and manufacturing millions ASICs specifically for this
        • Mtinie 24 minutes ago
          $100M is a drop in the bucket for a nation-level cyber program, so let’s assume that isn’t an obstacle.
          • emn13 11 minutes ago
            I'm not sure how he's arriving at that number. At 5 billion checks a second per GPU and 2^85.333 checks needed, I'm getting costs that are quite a few orders of magnitude larger than that. Perhaps there's some assumption of specialized asics that could be built before hitting that 100M cost?

            I guess part of the issue is whether you're looking for a conservative bound, or if you're trying to estimate the actual cost assuming not every unpredictable detail happens to work out in your favor - not that I have any clue what all those details would be...

    • marcosdumay 1 hour ago
      That's the rationale for using 128 bits when 80 should be more than enough.

      Anyway, the minimum recommended for RSA was expected to have 1k-bit initially. I do think in classical asymmetric algorithms 256-bit levels are cheap enough to use everywhere, but it's hard to talk about general rules. (As in, I have little problem with 128-bit symmetric algorithms; 256-bit post-quantum is probably way too expensive for most things...)

    • tntxtnt 55 minutes ago
      Breakable by whom? By an average person with a PC or by a billionaire who want to waste $100 million to "break" into an average person with $1000 in bank account? If you want to impersonate me just give me $50 million, don't need to "break" anything.

      Even if it's Satoshi's wallet which might worth billions but when it's "cracked" no one will trust or use bitcoin anymore so it basically worths nothing. Good luck spending $100 mil to get back maybe $10 mil.

  • 0xbadc0de5 5 minutes ago
    [delayed]
  • izend 51 minutes ago
    I also believe P-256 is "broken" and I believe for non-technical folks having to re-register all their Passkeys is going to be a huge pain. I checked last night and the majority of web apps supporting Passkeys are only supporting P-256.
  • ajkjk 1 hour ago
    A possible silver lining: perhaps AI-invented crypto techniques ends up being good enough to keep pace with AI-invented crypto breaks.
    • marcosdumay 1 hour ago
      Apparently, 50 years old crypto is good enough to keep up with AI-invented attacks.
  • int08h 4 hours ago
    Author here. We were promised a quantum apocalypse and maybe got an AI one instead?
    • ytxm 1 hour ago
      I think ignoring details of individual incidents, the rate and breadth of incidents occurring is the bigger concern. I just hope by the end of this we can still use pre-AI hardware in some form without having to scrap it all. When cometh the next influx of CPU bugs after AI is applied to that domain? It's quite practical by now to make jokes about smart toasters modulating their relays to hack nearby smart TVs and whatnot. So many fixed function wireless devices turning out to be SDRs after a few hours of Clauding, etc. Straight out of Battlestar Galactica. A great time to be writing scifi!
      • d-us-vb 57 minutes ago
        Or maybe steve jobs original vision of the solitary creative will return by necessity of all the air-gap-only hardware lying around.
    • reactordev 1 hour ago
      We haven’t seen the second act yet
    • gxs 1 hour ago
      Yeah and now that you mention it it sort of makes sense

      A lot of encryption is based on assumptions and some of those assumptions are very resource consuming to test - be it additional research into alternative algorithms / approaches or some form of brute forcing.

      Where in the past that type of research would have been less valuable and/or progressed too slowly for humans to tackle because of the perceived payoff, now that you have something that can go through and thoroughly test those assumptions it makes sense that it’s finding them. After all, it’s relentless, doesn’t tire, and your only constraint is how deep your pockets are

      Add that to whatever other novel approaches it’s found that might have been valuable for humans to look into anyway, and it compounds into the results we are seeing now

    • steinwinde 1 minute ago
      [delayed]
  • anotherhue 1 hour ago
    The most important questions, as ever, are what did they know and when did they know it?

    We may just be the last to know.

    • reader9274 1 hour ago
      NSA is rumored to have known in 2015
      • bigfatkitten 37 minutes ago
        Cube-root breaks were publicly theorised at the time. Even if a working attack wasn’t known, moving away from 256 bit curves was prudent.
    • ranger_danger 1 hour ago
      [dead]
  • fchicken 1 hour ago
    Tech is going to consume itself..

    It's time to divorce from tech

  • elbistec24 1 hour ago
    This is just more baseless speculation. The author even presents the now deleted Cloudflair CEO tweet as evidence so I'm having trouble taking this article seriously at all.
  • cowlevel 1 hour ago
    TL:DR:

    > No idea.

  • SkyPuncher 1 hour ago
    In my opinion, regardless of what's actually broken, there's an outcome that most people should be worried about: encrypted data captured today can now be plausibly decrypted at some point in the foreseeable future.

    Specifically, any secret that you relied on encryption to keep safe (think an API key or username/password being sent over HTTPS) is effectively plain text once this breaks. So, it's just a matter of swapping to a better encryption and saying "I'm good". It's also a matter of assessing data that had exposure to broken encryption schemas.

    In other words, that key/password you never rotate probably needs rotation.

    • xenocratus 57 minutes ago
      You don't seem to understand the difference between encryption, key establishment, and authentication, since you vaguely mix them all up. In which case, I recommend not talking about it so confidently.
      • goolimari 31 minutes ago
        maybe enlighten rest of us instead of being a pedantic snark
        • athrowaway3z 10 minutes ago
          i doubt they will - so instead i will be a padantic snark towards xenocratus and say they need to learn to read better because the parent comment is saying:

          If you typed in the password to a heavily encrypted backup - remotely using ssh - you need to realize that anybody who stored that network might be able to read your password to the heavily encrypted backup.