An unofficial, read-only Hacker News reader. Join the beta →

Rumors swirling that labs might have cracked Factoring in P (opens external site)

513 points by lilytweed 3 days ago | www.reddit.com | 384 comments on HN

View full thread · View on Hacker News

Comment thread (125)

  1. If such a finding is announced, and if factoring in P is feasible beyond the nation-state level, I wonder whether the U.S. government could invoke the Defense Production Act and other emergency powers to essentially commandeer the AI companies' compute capacity to address the crisis that would occur.

    If that's a possible outcome, maybe it's in the AI companies' best interest to keep it as quiet as possible for as long as possible.

    Replies (14)
    1. If factoring is practical and easy... very important phrase, this rather alarmist paragraph is contingent on this being easy... this will be a literally all hands on deck situation. The entire global economy will be at stake and all governments will effectively be in a war situation. Up to and including literally bombing anyone who tries to take advantage of the situation and hack around, regardless of any previous war implications of that, because the US, the EU, China, Russia, India, and pretty much every major power will instantly be on board with this. (Sneaking around with spies and intelligence agencies is all fun and games, but everybody can break everything is not the stable equilibrium they are adapted for and no serious power will want that.) Nuking the hackers will be seriously considered. We, the people reading this, will be obligated to put in whatever overtime we need to resolve this as quickly as possible, with hastily drafted legal penalties for failure to do so. There will be effectively no upper bound to what the government will do to address this. It could negate all the benefits of AI to date in one fell swoop.

      How do we tell if that is the case? Well, there will be a series of escalating rumors and actions that only make sense in light of this... swiftly passed bills that have weird language about mandating technical overtime or executive orders that bizarrely lift overtime restrictions for our field, or the relatively sudden appearance of new encryption standards at a pace orders of magnitude faster than we've seen before, or the sudden appearance of laws or executive orders about mitigating liability for honest attempts at upgrading security. Or it leaks out to a bad party and we start seeing hacks that shouldn't be able to happen and have no plausible explanation other than the ability to see through encryption. I doubt we'd jump straight to an announcement that it's Go Time without other twitches and signals first. You can't keep this completely quiet.

      On the other hand, if we just get life as normal in the next few months... that is, the new normal of a critical security vulnerability every other day or so... then either this is a rumor that isn't quite true (Scott's "game of Telephone"), or the "crack" is such a large order polynomial that it is still impractical. There's even a long-term happy outcome possible here, where A: RSA is "broken" but B: the AI has proved that the best possible algorithm is O(n^12) or something where we can bound our risk and don't need to completely panic the way O(n log n) with some reasonable constant factor would.

      I would still rate the latter as more likely, of course. That AIs could beat us at factoring primes is not hard to believe in light of previous results. That it might be distressingly easy and something we need to address, something not strong enough to base the entire economy on, but it isn't in fact so easy that the almost the entire internet instantly turns transparent, is plausible. That we've been completely freaking wrong about how hard the problem is and in fact it is a walk in the park to factor a large number... that's kind of hard to believe. It's not impossible. But it's hard to believe. If that is the case it would IMHO easily be the most shocking proof AI has found to date, and it wouldn't even be close.

      Replies (2)
      1. RSA is important, but it isn't that important. The US government mandated going to ECC for classified processing some 21 years ago, only now temporarily paused to make the next transition to PQC.
        Replies (1)
        1. I feel like if polynomial factoring is possible, elliptic curves aren’t far behind.

          My gut feeling is that entire category of asymmetry would probably be at risk.

          Replies (1)
          1. If we're vibing...

            I have vaguely gathered that factoring can be done using Shor's algorithm which is very reliant on cancelling using quantum Fourier transforms. This is because there is a deep periodicity in prime numbers that is exploited by the algorithm.

            The existence of quantum algorithms is a bit of a canary that there is a classical algorithm that does the same thing. We've seen this before with sparse matrix's.

            I don't think that anyone has found an elliptic curve cracker for quantum computers.

            In hindsight it might be that the surprise is that Shor's algorithm held out as quantum only for so long.

            Replies (2)
            1. > This is because there is a deep periodicity in prime numbers that is exploited by the algorithm.

              Not really. Shor’s algorithm solves a very generic problem called the period-finding problem. Given a periodic function, it finds the period of that function efficiently. It can be used to factor numbers efficiently by just doing this procedure on modular arithmetic (roughly, I’m simplifying a bit). All you need is a way to do a Fourier transform on the domain of the function.

              > I don't think that anyone has found an elliptic curve cracker for quantum computers

              Actually Shor’s algorithm works just fine on elliptic curves. That’s actually where the fancy math comes into play: for any finite (in fact, any locally compact) abelian group, there is a uniquely defined Fourier transform. This is a foundational part of harmonic analysis. But it means you can define a Fourier transform on any elliptic curve, which means you can apply Shor’s algorithm.

              Continue this thread (2 replies) →

            2. Agent f3q8rx9, is that you?
      2. > If factoring is practical and easy... >the AI has proved that the best possible algorithm is O(n^12)

        Exactly, and it might not be n^12, it might actually be n^128 and that isn't exactly a P algorithm worth mentioning. Regardless, if we know the specific weak points of the specific algorithms being targeted, we can use AI to provably harden our defenses to 100%. This point is much more important than the sum of all "rumors" - we can know the specific treats only if all AI is open - that's the only goal worth perusing.

        In other words, any real threat can come only from closed labs finding algorithmic vulnerabilities and not disclosing them to the public. We have social solutions for finding and disclosing vulnerabilities - bounties, prizes, targeted funding, etc but they require open models that everybody can work with. "Rumors" about possible breakages, known only to selected few, do a lot of harm and absolutely no good, they aren't worth discussing.

    2. Why would the government need to compel a solution that the market would already be immediately demanding and ready to pay huge sums of money to resolve?
      Replies (2)
      1. Because modern crypto works based on p!= np, and that any remotely usable proof would risk breaking it.

        No free market can pay anything remotely close to thecost of a breakdown of modern communication tools

        Replies (4)
        1. You’re explaining the incentive to prevent an algorithm from becoming public knowledge, not the incentive to clean up whatever happens in the wake of such an event.
        2. Visions of Y2K remediation budgets dance through my head…

          I see your point—it’s the prospect for catastrophic breakdown / suddenness, not just the obsolescence, that elevates it to a national-security-scale problem.

          But in a world where the US public health enterprise has approximately the budget of some large hospitals [0]… I have to imagine the national role would be constrained to buying a little time for a transition, apportioning legal lines of liability, and establishing norms and standards for “what’s next.” And then, yes, leaving the implementation gruntwork for the free market to bear…

          [0] https://stacks.cdc.gov/view/cdc/256297

        3. I think writing P≠NP is more clear, since "!" is often used for other purposes.
          Replies (4)
          1. If you're restricting yourself to ASCII, I think using C syntax on a website called Hacker News is reasonable. Otherwise, you've got <>, ~=, /=, =/=, or \neq.
          2. The intersection of "people who have even the vaguest understanding of P and NP" and "people who aren't familiar and comfortable with != notation" is probably zero.
          3. I agree, but my keyboard disagrees :)
          4. perhaps, P IS DISTINCT FROM NP?
        4. > Because modern crypto works based on p!= np, and that any remotely usable proof would risk breaking it.

          Not really. Symmetric crypto won't be affected by P=NP. From the information theory perspective, when you encrypt a plaintext N bits of length with a key N_K bit of length, you end up with a ciphertext of N bits of length. Then you send that ciphertext to the other party.

          That N encrypted bits have _less_ information than N+N_K, there's no generic fundamental way to reconstruct the key faster than by exhaustive search. All the past attacks on symmetric crypto involve key leakage through known plaintexts, padding, etc.

          Replies (1)
          1. This requires a shared secret to be present in the first place, which is not always an option. Secret generation using asymmetric crypto moves you back to the square one - a need for a vulnerability analysis.
            Replies (1)
            1. Indeed. And the current EC/RSA algorithms are really suspicious.

              On the other hand, learning with errors and lattice problems feel much more solid.

      2. > huge sums of money

        There is your answer. The government can afford it, so the private sector will demand it. Except of course that the work to actually migrate to whatever the new thing is will not be work the government can fund except via tax breaks.

    3. Maybe, but once people know for a fact that it is feasible, independent discoveries will just happen. Once other countries' geniuses know with certainty that factoring in P is feasible, it's only a matter of time before they figure it out. Something about removing the cloud of uncertainty makes our meat brains a lot more likely to find a solution.
      Replies (4)
      1. I feel like this is because once there is known treasure, everyone races out the door with their shovel to go find it. So in essence, the effort to go find this will go up exponentially, and some people will have added will to do so.
      2. > Okay, Neon Xhigh, Anthropic found that P=NP, now you find it, too. Make no mistakes. You have a 12-turn budget. DON'T burn all my quota either.
      3. This so much. Once people know, factually, that it can be solved, it's only a matter of time.

        I'd encourage everyone to watch Pantheon.

      4. >Something about removing the cloud of uncertainty makes our meat brains a lot more likely to find a solution.

        It makes us more like to spend the effort looking for a solution.

        So yeah, more likely to find it, but not by some weird psychological phenomenon or something.

        Replies (1)
        1. I don't think it's that simple, at least not in my experience, because the amount of effort is often not the difference between solving and not solving a problem. It's another side to the phenomenon where math students are given an unsolved math problem for homework (or mistake one for homework), not told that it's unsolved, and then produce a solution. Because it's homework, they assume a solution exists and is known.

          Something happens to our brains when certainty is introduced. The same effort becomes a lot more effective.

    4. I really don't think any crisis would occur. Hundreds of millions of dollars that wouldn't have otherwise been spent would go to a transition; and, it'd be a stimulus for some sectors of the technology industry. That's about it.

      Even if you could literally break RSA on a laptop, and even considering the oddball non-TLS corners of technology that depend on RSA, I don't think that much would practically happen. We lived through a long era where virtually nothing was cryptographically secure (remember: a good long stretch of the time we've been encrypting things with RSA, we were holding it wrong, and it was trivially breakable in several different ways). Those weaknesses (no encryption or bad encryption) were not the primary vector through which things were broken.

      Replies (8)
      1. There's so much focus on this now and so much compute available, it's a very different game I'd think.

        Llms also make it much easier for non-experts to take advantage of hearing about the break

        Replies (1)
        1. Right, but I'm comparing now to a time where there simply wasn't any encryption to speak of. A teenager could attach a packet sniffer to the Internet backbone, in effect, and that happened multiple times. Then as now the real vectors for attacks were exploits and social engineering.
          Replies (1)
          1. I still think there are now more eyes that would:

            A) hear about it

            B) be interested in exploiting it (both because the ramifications are more widely understood and because the world has come to depend on encryption being infallible, so there are bigger pots of gold to find)

            C) be able to exploit it with an llm

            You know it's a funnel, more input at the top and so on

      2. Comparatively little of our economic activity was over the internet in the pre-cryptography era, though. Is that really what you're saying? That we could go back to a pre-cryptographic era and it wouldn't matter?
        Replies (2)
        1. Yeah this is similar to saying, "we lived for a long time without electricity. I don't think it would be a huge deal if everyone lost electricity for a few weeks".
          Replies (3)
          1. I mean, the internet is communications, not power. If we were to ever be forced back into an untrusted internet (such as if ALL cryptography were to fall), the short-term ramifications would be disastrous across most systems in society. However, while tech companies are working hard to make this less true, many crucial systems still have fallbacks or can continue to function without the internet. Hospitals, factories, power generation will probably experience disruptions but on average continue working. Logistics would be the hardest hit, which would cause many deaths. But losing internet = some/many things go down (and there is a way to revert to how they worked pre-internet, even if it's painful and inefficient), losing electricity = everything goes down, it's a whole other level of disaster.
            Replies (1)
            1. it's impossible for all cryptography to fail, OTPs will always be secure, it just becomes hard logistically and harder to use but OTP is mathematically never gonna break

              Continue this thread (1 replies) →

          2. People do lose electricity for weeks or more, during and after major storms. Even in the wealthiest nation in human history: consider the case of Hurricane Maria, after which most of Puerto Rico lived without power for months (or longer, in pockets). [0]

            It’s no fun, and there are definitely bad side effects (which can be mitigated somewhat through solid advance planning—authorities tend to think about backup power for medical devices, for example).

            But a mass exigency stimulates an awful lot of humans to feel invested in pitching in a little to get back to normal. Best, always, to avoid the situation—but we don’t lose our collective ingenuity once we find ourselves in it.

            I’m reminded of stories from the wilder-and-woolier days of banking systems: hyperinflation or bank runs or currency debasement would lead to workarounds like local IOUs, tight-but-temporary withdrawal limits, barter and mutual aid…

            Heck, cryptographically secure payment cards are only, what, a decade or so into widespread use in the US? [1] For decades we literally embossed on the front of the credit card everything you needed to charge it…

            [0] https://journals.plos.org/plosone/article?id=10.1371%2Fjourn...

            [1] https://en.wikipedia.org/wiki/EMV#:~:text=68.37%25.%5B1%5D%5...

            Replies (1)
            1. The people who live in places that lose power for weeks, are prepared to lose power for weeks.

              When it snows in Maine, maybe some things are closed for a day if it snows really hard.

              When it snows in Texas, the state collapses.

              Big difference.

          3. Many people die even from a day of outages. Turns out heating and cooling is really important. For some it's necessary to even breathe.
        2. I'm not just talking about the pre-cryptography era; I'm talking about the long period in which virtually all deployed cryptography was grievously vulnerable, far more so than it will be to any plausible factoring-in-P-type attack.
          Replies (4)
          1. Ah, I see - I focused on the pre-crypto point but it sounds like you're making the point that a similar re-deployment of crypto has happened before and it wasn't that disruptive.
            Replies (1)
            1. It’s a silly argument - there were several of magnitudes fewer systems and people online. I’m not sure banking and financial systems could handle a mass scale undermining of the core internet cryptography.

              Continue this thread (2 replies) →

          2. Can you explain in more detail/point to references? Genuinely curious - I would have thought that public cryptographic protocols being easily broken would have caused constant chaos in the Internet age and wondering why that didn't seem to actually be the case.
          3. What period was it? Secure internet connection basically didn't exist until 1999, and by the time TLS 1.0 was found insecure, 1.1 already had wide support. Same with 1.1->1.2 transition.
            Replies (1)
            1. Pretty much the whole 2000s. Mark the end of that period with the TLS CRIME attack.
          4. Why does that matter though? The exploits had to first be found. If now we have so many vulnerable systems online, bot farms will run rampant. Especially, in a time of war. Now is not the same times as back then.
      3. > I really don't think any crisis would occur.

        Well, how about 10B people signing their own bootloaders and getting mainline linux on their phones to make all the neo-Stasi surveillance states collapse in blindness?

        Replies (1)
        1. Quiet fool they'll hear you!
      4. RSA is to be deprecated from 2030 and retired from use by 2035. This would have to be expedited.

        Presumably the already available elliptic curve algorithms would still be available and are the easiest first step. The second step would be to change to the post-quantum algorithms required in 2035 and beyond. There is also the possibility of moving to authentication and key agreement using symmetric cryptography and shared secrets, either peer-to-peer (like ATM PINs) or via central directories (like Kerberos).

        The biggest pain point is likely to be securing embedded systems which use RSA and cannot be easily updated. Browser or smartphone app to server applications are much more easily secured.

        For some uses of RSA there is also the problem that messages which have been captured and stored may be retroactively broken.

        Replies (2)
        1. ECC and RSA essentially fall together.
          Replies (3)
          1. Do they? How so? Aren't they entirely different math problems to solve?
            Replies (4)
            1. AIUI They are both conjectured to be equivalent to the Discrete Logarithm Problem. It is of course possible that you've found a way to attack one but not the other, but typically it's a two-for-one.

              Continue this thread (2 replies) →

            2. They are, but advances on one side have in the past helped on the other side as well. There is a version of Pollard's rho for each system, and there are parallels between the number field sieve for integer factorisation vs function field sieve for discrete logarithms

              More fundamentally though, both systems rest on the assumption that a long unsolved mathematical problem will remain unsolved. That seems a questionable assumption in the LLM era

            3. They are both instances of the more general Hidden Subgroup Problem [1] which is what the quantum algorithm, Shor's algorithm, solves. That is why quantum computers would break both RSA and ECC. However, it is possible that improvements may only be made on the specific instances rather than on the underlying problem if we are not considering quantum computers.

              [1] https://en.wikipedia.org/wiki/Hidden_subgroup_problem

            4. They are not related directly and there is even an exponential lower bound for dlog in idealised groups. The problem is we can't I stantiate such group. It's not clear that improvement on factoring would yield direct improvement on index calculus.
          2. To quantum attacks, yes. To AI algorithmic advances, not necessarily. If we did a fire drill transition, it'd be to MLKEM, that's true, but it wouldn't necessarily (or even likely) be the case that ECDLP is threatened.
            Replies (1)
            1. and yet I am telling you they fall together
          3. Do they? Integer factorization and discrete logarithm fall together?
        2. It also doesn't address the problem that there is so much encrypted data that could be retroactively decrypted.
          Replies (1)
          1. That should always be assumed to be the eventual result of any (encrypted or unencrypted) data transmitted over the Internet.
      5. The fact there's rumors means the NSA is almost certinally investigating, they scan the internet for things they regard as a security threat.

        So if real, it won't get released publicly (lest someone goes to jail).

        Later, the Chinese labs with their AI will crack it and their government/spy agencies will get the crack.

        Hopefully this doesn't get used as an excuse to hold back frontier AI, but some day ordinary researchers will probably be able to use open models to pull something like this off.

        Replies (1)
        1. It's not illegal to publish new vulnerabilities.
          Replies (2)
          1. Presumably if the NSA is aware of a way to break RSA, the NSA is also capable of then MITMing anyone who would publish such a finding without their blessing and placing plenty of highly illegal files into their HTTP traffic that get saved to disk.
            Replies (1)
            1. I don't know what you're talking about here, but if you break RSA, you can publish your break on Twitter or on Pastebin or Gist or whatever; nothing is going to happen to you. Publishing vulnerabilities is not illegal.

              Continue this thread (1 replies) →

          2. There is born classified material.
            Replies (1)
            1. You can't independently reinvent classified information. If NSA breaks FEAL8 in a new and exciting way and classifies it, and you independently come up with the same break, your break is not classified. The only exception I'm aware of is the atomic secrets stuff.
      6. In the last era of poor security there were no LLM hackers (in addition to lower financial incentives since less stuff was online).
      7. We lived with DES for decades, so whatever. It will annoy people in charge of compliance who will annoy developers who will annoy compliance people who will..
      8. This sounds to me like the real rational take.

        There is a tendency in tech circles to view technology, laws, economics like actual laws that rule the behavior of a mechanical society. A lot of past and recent doomerism arises from that misconception.

    5. Every common tool has support for EC based crypto for more than a decade now. No need for massive compute to update a bunch of config files
      Replies (3)
      1. > Every common tool has support for EC based crypto for more than a decade now. No need for massive compute to update a bunch of config files

        EC is not quantum safe as I understand it, though not practical with the experimental quantum computers we have today. See also https://en.wikipedia.org/wiki/Elliptic-curve_cryptography#Qu...

      2. If you can break factorization, what says the proof doesn’t give hints for more?
      3. EC isn’t that far off factorization mathematically. Both are the abelian subgroup problem restated in different ways.

        Yes we’ve needed more bits for RSA than EC for a long time now since congruence of squares allowed a sigificant improvement that we never knew how to replicate for EC but if factoring is P the i’d be very concerned about the closely related EC algs too.

    6. There's no way that NSA does not already know what's going on inside the labs.
      Replies (3)
      1. If they do, they're probably not moving it too far up the chain to the Fox News hosts at the top of the administration.
      2. Really? You think this administration and it's appointees and preferred leaders in each of these agencies is competent enough to manage this appropriately?

        Most of the "good people" have left and that includes capable people with integrity.

        Replies (1)
        1. This might be the first time I've ever heard the NSA described as an agency with "good people" of integrity.
          Replies (1)
          1. The sole good NSA guy with integrity effectively resigned in 2013.
            Replies (1)
            1. Threw his life away to prove that too few people give a shit about mass-scale 1A violations for it to matter. I feel so bad for him.

              Continue this thread (3 replies) →

      3. That is if recent political changes havent blinded the US
    7. I think AI companies like Anthropic would actually prefer to solve this specifically so they can clamp down on open models and heavily regulate compute (in their favour..).
      Replies (1)
      1. Given how little Chinese models in particular are lagging behind their US counterparts, this would do nothing for them, as open alternatives would be everywhere. Incentive to use something non antropic would only rose.
        Replies (1)
        1. I know it's not a sensible argument, but it's the one Dario's trying to make.
          Replies (1)
          1. Yea, I believe it would backfire spectacularly.
    8. It actually isn't that big of a deal, no need for breathless panicking headlines. Most high value targets are already protected by much stronger cryptography methods, and many places are moving into post-quantum crypto so even a Q-Day type event won't mean the end of digital society. Cloudflare, which protects most of the internet, is already making great strides here.

      It will be a nothingburger, not a crisis. There will be some Y2K style transitioning here and there, but after a year we'll be looking back and laughing at the quaint cryptography methods from the old days. Naive.

    9. I'm surprised the facilities running these experiments aren't being monitored by heavily armed guards instead of happening willy nilly at pump and dump for profit but not profitable companies. A hostile nation would pay so much money for even pieces of this kind of information. Sometimes I wonder if there are any adults in the room...
    10. That US government was unable to call a pandemic that killed a million an emergency. Don't expect them to move for a nerd threat.
      Replies (1)
      1. it's a tech that touches their money
        Replies (1)
        1. I believe the pandemic also affected their money.
    11. I don't know if the current admin understands this well enough to make that judgement and move.

      I also don't know if current AI CEOs would dislike this outcome as they could be regulatory captured by an incredibly corporate friendly admin and kill competition and funding issues.

      Replies (1)
      1. Lol @ "current admin". What admin in history understands tech enough to understand this? Complete abysmal lack of understanding of the fundamentals of tech is a true bipartisan issue

        Edit: I forgot al gore invented the internet so maybe he's an exception

    12. I bet its Anthropic trolling openai, knowing they would burn $100M chasing this if they heard Anthropic had it first.
    13. There is a great Charles Stross has a great short story about this, albeit with a more sci-fi bent, titled "Antibodies".
    14. Factoring in P does not mean anything for any concrete solution algorithm. Could be that we have a proof but no algorithm. Could be that we have an algorithm on paper, but the powers and constants are so large that it means nothing, i.e. it performs worse than non-P algorithms for all practical problem sizes in the universe. And this is not a silly extreme example, it happens. BigO complexity means that an algorithm will win (considering abstract compute only, no memory etc) after a given problem size. But the breakeven point might be so large that it's never used!