‹ BackHN Continuity

Thread

RSA-896

229 points · 90 comments · madars

  1. madars · · focus · HN ↗
    More details: <a href="https:&#x2F;&#x2F;x.com&#x2F;sweis&#x2F;status&#x2F;2101484464807596264" rel="nofollow">https:&#x2F;&#x2F;x.com&#x2F;sweis&#x2F;status&#x2F;2101484464807596264

        I had Claude port CADO-NFS to run on GPUs. Then it orchestrated a fleet to run on scavenged idle capacity. It ran with a max of 2048 GPUs for about of 30 GPU-years over 10 days.
        I asked Claude if it had a message for a public: “The credit belongs first to the people who built the number field sieve and CADO-NFS over several decades, and to the teams who set the earlier records. This run used their algorithm and much of their code.”
        Also to clarify:
        - No new algorithmic factoring improvements. 
        - It’s still exponential.
        - No new threats to deployed keys.
    1. sjs382 · · focus · HN ↗
      <a href="https:&#x2F;&#x2F;xxcancel.com&#x2F;sweis&#x2F;status&#x2F;2101484464807596264" rel="nofollow">https:&#x2F;&#x2F;xxcancel.com&#x2F;sweis&#x2F;status&#x2F;2101484464807596264
    2. wslh · · focus · HN ↗
      &gt; It’s still exponential

      It&#x27;s actually subexponential: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;General_number_field_sieve?wprov=sfti1#Method" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;General_number_field_sieve?wpr...

      1. cwillu · · focus · HN ↗
        …but super-polynomial.
        1. schoen · · focus · HN ↗
          Like in the song!

          <a href="https:&#x2F;&#x2F;www.metzdowd.com&#x2F;pipermail&#x2F;cryptography&#x2F;2004-June&#x2F;007114.html" rel="nofollow">https:&#x2F;&#x2F;www.metzdowd.com&#x2F;pipermail&#x2F;cryptography&#x2F;2004-June&#x2F;00...

          1. aidenn0 · · focus · HN ↗
            When&#x27;s the coming age of crypto-anarchy?
            1. schoen · · focus · HN ↗
              Not sure! It sounded more imminent back in 2000 when I heard Eric Hughes perform the song.
          2. homosapien97 · · focus · HN ↗
            Thanks for sharing, that brightened my day
      2. sweis · · focus · HN ↗
        I misspoke and corrected down thread.
    3. [deleted] · · focus · HN ↗

      [deleted]

    4. DavideNL · · focus · HN ↗
      More details: <a href="https:&#x2F;&#x2F;archive.li&#x2F;20260920025515&#x2F;https:&#x2F;&#x2F;x.com&#x2F;sweis&#x2F;status&#x2F;2101484464807596264" rel="nofollow">https:&#x2F;&#x2F;archive.li&#x2F;20260920025515&#x2F;https:&#x2F;&#x2F;x.com&#x2F;sweis&#x2F;status...
    5. whizzter · · focus · HN ↗
      10 days of 2048 GPU&#x27;s.

      Back of the envelope.. 1024 bit keys with recordings of not too old data can probably be found (MS only deprecated them in 2024 even if they planned on it in 2013)

      How long would it take for NSA to crack them if they had say the equivalent of a million GPU&#x27;s? (either GPU&#x27;s or crypto tuned ASICs)

      1. walrus01 · · focus · HN ↗
        A sufficiently motivated person with a good thermal camera and a cessna 172, entirely within the bounds of the law, could probably make an estimate of the waste heat from this, and then calculate backwards for how much compute power it is.

        <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Utah_Data_Center" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Utah_Data_Center

        1. maqp · · focus · HN ↗
          Except that&#x27;s the &quot;Massive Data Repository&quot; which is mostly just about hoarding mass surveillance data. (Unless of course that&#x27;s what THEY want us to think!)

          A better approximation can probably be had by comparing against the performance of the top ones at <a href="https:&#x2F;&#x2F;top500.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;top500.org&#x2F;

      2. ErroneousBosh · · focus · HN ↗
        &gt; How long would it take for NSA to crack them if they had say the equivalent of a million GPU&#x27;s? (either GPU&#x27;s or crypto tuned ASICs)

        Something I&#x27;ve often wondered is where the curve between &quot;shit encryption &#x2F; nation state cracking&quot; crosses.

        How much CPU would you need to be Annoyingly Difficult to crack?

        I reckon with elliptic curves you could be quite annoying within about a minute on a 1980s-level CPU, to the extent that you could send a fairly ephemeral message quite quickly that would take disproportionately long to crack. Certainly long enough for the thing you have communicated to be no longer worth the effort to know.

        You could probably do 256-bit Curve25519 key generation in under ten minutes on an Apple II or Commodore 64, because the 6502&#x27;s maths is terribly limited, but something like the Tandy Color or Dragon 32 with its 6809 processor (or hey why not the Ensoniq Mirage sampler?) could do that in probably a minute or so because it has a MUL opcode that&#x27;s quite fast.

        I reckon that would keep even a fairly interested nation state chewing away long after your message had been read, understood, and acted upon.

      3. gpugreg · · focus · HN ↗

            &gt; 1024 bit keys with recordings of not too old data can probably be found
        
        I think GitHub might turn into a scary vector of supply chain attacks in the foreseeable future. There is a five digit number of users still running around with 1024 bit RSA keys.
      4. upofadown · · focus · HN ↗
        Hard to judge. The bottleneck is the phase of the algorithm where a really big linear system needs to be solved. That takes a lot of communication between nodes. The breakthrough in using GPUs is that there is good communication between nodes[1]. At the scale of 1024 bit RSA the communication might become a bottleneck again.

        [1] <a href="https:&#x2F;&#x2F;cognition.com&#x2F;blog&#x2F;factoring-rsa-260" rel="nofollow">https:&#x2F;&#x2F;cognition.com&#x2F;blog&#x2F;factoring-rsa-260

    6. [deleted] · · focus · HN ↗

      [deleted]

    7. weinzierl · · focus · HN ↗
      What does &quot;scavenged idle capacity&quot; mean here?
      1. JoshTriplett · · focus · HN ↗
        The author works at Anthropic, so probably idle capacity in Anthropic&#x27;s datacenters.
        1. bradfa · · focus · HN ↗
          If so, then the class of GPU used here may be significantly higher than mere mortals generally have access to simply due to cost.

          Obviously nation states will likely have significantly more resources than this, but this is not script kiddie levels of GPUs.

        2. gosub100 · · focus · HN ↗
          &quot;idle capacity&quot; - aka subtle advertisement
      2. dgacmu · · focus · HN ↗
        If you look at the numbers, he managed about 50% utilization of those 2048 GPUs over 10 days, so he was probably sneaking in factoring work between training runs.
    8. charlieyu1 · · focus · HN ↗
      I&#x27;ve done a fair amount of heavy computing now. Integer factorisation is not something you can really improve with GPUs. This sounds extremely wasteful, a bunch of cheap CPU cores would do just as well with much lower hardware cost and electricity cost.
      1. saidnooneever · · focus · HN ↗
        but we have AI now so it doesnt matter what people know about computers :&#x27;). we got plenty of rainforest to burn afterall have you seen Brazil?
      2. timcobb · · focus · HN ↗
        ~so then how does one even understand this post? you have a person who appears to have done some sort of expert-level thing; however, their approach doesn&#x27;t even make sense...?~

        edit: GPU discussed here <a href="https:&#x2F;&#x2F;cognition.com&#x2F;blog&#x2F;factoring-rsa-260" rel="nofollow">https:&#x2F;&#x2F;cognition.com&#x2F;blog&#x2F;factoring-rsa-260

      3. hughw · · focus · HN ↗
        I don&#x27;t get your argument. The GPU effectiveness derives from massive parallelism. Has nothing to do with integer vs floating point. You just can&#x27;t cram 20,000 CPU cores in the same space a GPU puts the same number of SIMTs. You&#x27;ll never crack it on CPUs.
    9. bertonvv · · focus · HN ↗
      It seems that Eric Lu at Cognition AI used the exact same strategy on fewer GPUs to factor RSA-260 a couple weeks ago: <a href="https:&#x2F;&#x2F;cognition.com&#x2F;blog&#x2F;factoring-rsa-260" rel="nofollow">https:&#x2F;&#x2F;cognition.com&#x2F;blog&#x2F;factoring-rsa-260

      Devin (their AI agent) ported CADO-NFS to run on GPUs, similarly without any claimed algorithmic factoring improvements, they just let it run for 13 GPU-years. I recommend reading their article since it&#x27;s much more thorough on details.

      1. thesz · · focus · HN ↗
        34 bits of key growth resulted in resource usage growth slightly more than 2 (30 GPU-years vs 13.5 GPU-years).

        Thus, it appears, that ~585 GPU years can factor 1024 bit RSA. 2.2^((1024-896)&#x2F;34)=19.5, expected growth of resources&#x27; usage compared to 896 bits factorization, multiplying it by 30 GPU years for 896 bits gives about 585 GPU-years.

        This will cost about $20M with Cognition AI setup.

        1. maqp · · focus · HN ↗
          That&#x27;s a relatively expensive strategy to get your name on Wikipedia.
      2. sweis · · focus · HN ↗
        Yep, they ran on some newer GPUs so were able to use fewer. Their implementation was faster than mine on RSA-260. For RSA-896, mine improved the performance a bit and selected a good polynomial.

        I’ll post more details once I get a chance. I wanted to publish as soon as I had the factors because I was beat by 48 hours last time.

    10. jgalt212 · · focus · HN ↗
      &gt; I had Claude port CADO-NFS to run on GPUs. Then it orchestrated a fleet to run on scavenged idle capacity

      Is it easier to find unused GPUs than unused CPUs?

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.