RSA-896

(saweis.net)

190 points by madars14 hours ago

11 comments

  • madars14 hours ago
    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</a><p><pre><code> 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.</code></pre>
    • whizzter9 hours ago
      10 days of 2048 GPU&#x27;s.<p>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)<p>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)
      • walrus018 hours ago
        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.<p><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</a>
      • upofadown2 hours ago
        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.<p>[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</a>
      • gpugreg2 hours ago
        <p><pre><code> &gt; 1024 bit keys with recordings of not too old data can probably be found </code></pre> 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.
      • ErroneousBosh8 hours ago
        &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)<p>Something I&#x27;ve often wondered is where the curve between &quot;shit encryption &#x2F; nation state cracking&quot; crosses.<p>How much CPU would you need to be Annoyingly Difficult to crack?<p>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.<p>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.<p>I reckon that would keep even a fairly interested nation state chewing away long after your message had been read, understood, and acted upon.
    • bertonvv4 hours ago
      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</a><p>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.
    • charlieyu14 hours ago
      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.
      • hughw2 hours ago
        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.
      • timcobb2 hours ago
        ~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...?~<p>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</a>
      • saidnooneever3 hours ago
        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?
    • DavideNL10 hours ago
      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...</a>
    • weinzierl6 hours ago
      What does <i>&quot;scavenged idle capacity&quot;</i> mean here?
      • JoshTriplett6 hours ago
        The author works at Anthropic, so probably idle capacity in Anthropic&#x27;s datacenters.
        • bradfa4 hours ago
          If so, then the class of GPU used here may be significantly higher than mere mortals generally have access to simply due to cost.<p>Obviously nation states will likely have significantly more resources than this, but this is not script kiddie levels of GPUs.
        • gosub1001 hour ago
          &quot;idle capacity&quot; - aka subtle advertisement
      • dgacmu3 hours ago
        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.
    • sjs38212 hours ago
      <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</a>
    • wslh12 hours ago
      &gt; It’s still exponential<p>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...</a>
      • sweis10 hours ago
        I misspoke and corrected down thread.
      • cwillu11 hours ago
        …but super-polynomial.
        • schoen10 hours ago
          Like in the song!<p><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...</a>
          • homosapien971 hour ago
            Thanks for sharing, that brightened my day
          • aidenn010 hours ago
            When&#x27;s the coming age of crypto-anarchy?
            • schoen9 hours ago
              Not sure! It sounded more imminent back in 2000 when I heard Eric Hughes perform the song.
    • jgalt2123 hours ago
      &gt; I had Claude port CADO-NFS to run on GPUs. Then it orchestrated a fleet to run on scavenged idle capacity<p>Is it easier to find unused GPUs than unused CPUs?
  • vavkamil6 hours ago
    Interesting. Instagram still publishes a 768-bit RSA DKIM key, so I guess factoring it is now just a weekend GPU project?<p><a href="https:&#x2F;&#x2F;dns.google&#x2F;resolve?name=pm._domainkey.instagram.com&amp;type=TXT" rel="nofollow">https:&#x2F;&#x2F;dns.google&#x2F;resolve?name=pm._domainkey.instagram.com&amp;...</a>
    • functional_dev5 hours ago
      RSA-768 was already factored in 2009.. cheap now. What surprised me is that RSA keys are much weaker than their size looks. You need 2048 bits to get normal safety, and 768 is far below that.<p><a href="https:&#x2F;&#x2F;vectree.io&#x2F;c&#x2F;how-rsa-key-sizes-map-to-real-security-512-to-4096-bits" rel="nofollow">https:&#x2F;&#x2F;vectree.io&#x2F;c&#x2F;how-rsa-key-sizes-map-to-real-security-...</a>
    • natdempk42 minutes ago
      What&#x27;s the cost estimate to factor this?
  • redox997 hours ago
    Quite bearish on Anthropic if they had nothing better to do with 2048 GPUs for 10 days than finding an RSA number with already existing algorithms.
    • muglug3 hours ago
      1 engineer != Anthropic
      • hinkley13 minutes ago
        Someone allocated those GPUs.
  • tristanj13 hours ago
    If you&#x27;ve already paid for and reserved a whole cluster of GPUs, any idle capacity is capacity you&#x27;ve already paid for. Using it is effectively free. So might as well use it to solve fun math puzzles.<p>Though, it would make more financial sense to mine crypto.
    • qurren11 hours ago
      &gt; it would make more financial sense to mine crypto<p>GPUs are power-inefficient for mining most crypto so not necessarily. You may end up paying more in electricity than you are able to mine.<p>Most crypto mining is on ASICs now.
      • aidenn010 hours ago
        You missed the part where they have already pre-paid for the GPU-hours and they pay the same regardless of he electricity used.<p>Also, even if they were paying for electricity, they would lose <i>less</i> money mining crypto than factoring RSA numbers.
        • schoen7 hours ago
          Except for the prize money for the RSA challenge contest! Although they&#x27;ll also need to have Claude invent a time machine.
          • upofadown5 hours ago
            Is someone providing prize money again? RSA ended the contest in 2007.
    • ehe78qhe13 hours ago
      Only if you pay a flat rate for electricity and cooling.
      • tristanj13 hours ago
        But Anthropic isn&#x27;t paying for the electricity and cooling. They don&#x27;t run their own data centers, they rent compute from providers who cover those costs.<p>That&#x27;s entirely why they can blow compute on the fun projects like this. If they had to pay extra for the electricity, they wouldn&#x27;t do it.
        • londons_explore8 hours ago
          But training LLM&#x27;s is <i>also</i> a task one can do whenever you have a spare GPU-minutes.<p>I wonder why they don&#x27;t have some kind of scheduler which makes sure there are never any idle minutes. One would imagine they at least would have autoscaling on their production serving workload and use the freed compute capacity for model training for example.
          • esseph8 hours ago
            I doubt they&#x27;re inferencing on their training hardware
        • Barbing12 hours ago
          Is the electricity cost far greater than the marketing value?
          • adastra2211 hours ago
            The marginal electricity cost is zero.
            • lazide9 hours ago
              Or specifically, electricity was already paid for with the pre-paid capacity.<p>Not using it would not save them any money, they already paid for it.
          • rightnutwingjob12 hours ago
            The first is a physical quantity that can be written down.<p>The second is approximately no better than astrology.
            • ehe78qhe12 hours ago
              The second point is, sadly, true of quite a lot of aspects of software, including &quot;design&quot; and &quot;quality&quot;
      • odo124211 hours ago
        Most of the GPU cost is in the GPUs themselves (and in the space and maintenance costs of the building). Electricity is a small fraction, and it&#x27;s not like datacenters are just going to shut down their servers when they&#x27;re not in use.<p>There is cost, but the cost is mostly the opportunity cost of not being able to do something else.
        • toast011 hours ago
          &gt; Electricity is a small fraction, and it&#x27;s not like datacenters are just going to shut down their servers when they&#x27;re not in use.<p>I don&#x27;t have any insight on modern GPU datacenters, but in decades past, some owned and operated datacenters didn put effort into making sure power management worked because the cost savings were worth it. I&#x27;m pretty sure I saw plans to shed load and power off servers if a utility made a demand response request or in case of loss of cooling. I wouldn&#x27;t be surprised if some owned and operated data centers do regular full shutdowns at off peak... WOL, IPMI or RTC wakeup can bring them back when needed and <i>if</i> you already have a dynamic service orchestrator and setup times are acceptable, why not shut down if there&#x27;s no actual priority work and there&#x27;s also no idle priority opportunistic load either...
          • huslage8 hours ago
            No one does this. There is zero value, economic or otherwise, in turning off machines.
          • esseph8 hours ago
            I&#x27;ve never heard of anybody shitting a DC down off peak. Been around 30yr or so.<p>&gt; why not shut down if there&#x27;s no actual priority work and there&#x27;s also no idle priority opportunistic load either...<p>Full shutdown and startup often kills capacitors and used to be dangerous for rotational HDD.<p>Sometimes once you turn things off, they simply don&#x27;t come back on. It happens.
    • charlieyu14 hours ago
      Except you can do it with CPUs as well for much cheaper.
    • logicallee11 hours ago
      How much crypto do you think the mentioned 30 GPU years would have produced at current exchange rates? They&#x27;re not as efficient as ASICs but GPU&#x27;s can still mine a lot...
      • monster_truck10 hours ago
        wouldn&#x27;t even cover the cost of power and cooling otherwise everyone would still be doin it
  • someguydave12 hours ago
    kinda bearish for the data center rollouts if the spare compute can be used to solve math puzzles instead of training LLMs
  • Retr0id4 hours ago
    If anyone else has spare GPU hours they don&#x27;t know what to do with, may I recommend partial hash collisions: <a href="https:&#x2F;&#x2F;github.com&#x2F;DavidBuchanan314&#x2F;birthday_party" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;DavidBuchanan314&#x2F;birthday_party</a><p>(The &quot;record&quot; set by me only took about 1 GPU day - easy to beat!)
    • gpugreg4 hours ago
      Here&#x27;s a larger partial hash collision (108 trailing bits):<p><pre><code> echo 23ca73454a1b981fe51cad0dbd05f4e696795ba67abb28c61aea1a024e5bbeca | xxd -r -p | sha256sum echo a16a8141361ae9834ad171ec28961fc8a951ff1bfc3a9ce0dc2fcdbdfa2ccd35 | xxd -r -p | sha256sum </code></pre> From this post from 6 years ago: <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;crypto&#x2F;comments&#x2F;guctw4&#x2F;finding_sha256_partial_collisions_via_the_bitcoin&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;crypto&#x2F;comments&#x2F;guctw4&#x2F;finding_sha2...</a>
      • Retr0id4 hours ago
        True, I forgot about that! It&#x27;s more fun when the inputs are printable ascii, though :P<p>It should also be easy to beat with just a few GPU weeks.
        • gpugreg2 hours ago
          I agree that ASCII is definitely cooler, for example when personalizing the hashed data as in your example.
  • speedgoose4 hours ago
    Nice. I will make sure to turn my WiFi box off at night and pee in the shower to compensate the environmental impact of this.
    • tptacek16 minutes ago
      You&#x27;d be having approximately the same impact on the climate as the factoring work, so, makes sense.
  • gizmodo595 hours ago
    You don’t need AI to solve this. Just lots of compute.
  • blackdahlia31312 hours ago
    Enjoy the bounty
    • tristanj12 hours ago
      There is no bounty, RSA labs ended the $75,000 reward in 2007.
      • qurren11 hours ago
        There&#x27;s about 900 BTC remaining for anyone who breaks these keys:<p><a href="https:&#x2F;&#x2F;privatekeys.pw&#x2F;puzzles&#x2F;bitcoin-puzzle-tx" rel="nofollow">https:&#x2F;&#x2F;privatekeys.pw&#x2F;puzzles&#x2F;bitcoin-puzzle-tx</a><p>If you break one though be careful when redeeming it, there are bots set up to pounce and steal the coins when they are transacted because the reduced entropy makes that possible. You need to submit the transaction to a mining pool that will not broadcast it until it is mined.
        • DoctorOetker11 hours ago
          thats a poorly implemented reward script, if it <i>leaves you exposed to the mining pool with this gentleman&#x27;s agreement</i>.<p>the script could have been designed 2 phase, so one first submits a hash of the solution &amp; submitter address, so even if miners front-run the submitter, they just helpfully pay the transaction fee!
          • schoen10 hours ago
            I&#x27;ve recently been working on this exact problem due to my desire to create puzzle challenges for Simplicity, the smart contract programming environment that I work on for my job.<p>Since Simplicity runs on Bitcoin-like blockchains, someone can swipe the witness data from the legitimate winner&#x27;s proposed transaction, and create a new transaction (perhaps with a higher fee) using the same claim data and sending the prize to a different address.<p>Anyway, I ended up implementing a two-phase commit mechanism in which you pay a deposit to temporarily lock the prize so that it can only be paid out to your address. If you then make a valid claim, the prize can be paid to you; if you don&#x27;t, you forfeit your deposit.<p><a href="https:&#x2F;&#x2F;community.simplicity-lang.org&#x2F;t&#x2F;running-prize-contests-without-witness-swiping&#x2F;35&#x2F;10" rel="nofollow">https:&#x2F;&#x2F;community.simplicity-lang.org&#x2F;t&#x2F;running-prize-contes...</a><p>(I think this was suggested by Russell O&#x27;Connor, the inventor of Simplicity, but it may have been a widespread idea in the smart contracts world. I don&#x27;t know whether there&#x27;s a straightforward way to implement it with Bitcoin Script, which is what this older prize would have needed.)
            • zephen17 minutes ago
              I don&#x27;t claim to know the nuance of what you&#x27;re trying to address with this.<p>Wouldn&#x27;t it be simpler to simply protect a bitcoin private key with the encryption that you are challenging people to break?<p>Off the top of my head, the only downside I can see is that someone could drain the wallet without publishing the key, but people like to brag, so it seems unlikely to be a problem in practice.
          • LiamPowell11 hours ago
            There is no script.
            • greyface-10 hours ago
              Of course there&#x27;s a script; every bitcoin tx output has a script. These challenges use the standard P2PKH script, i.e.:<p><pre><code> scriptPubKey: OP_DUP OP_HASH160 &lt;pubKeyHash&gt; OP_EQUALVERIFY OP_CHECKSIG scriptSig: &lt;sig&gt; &lt;pubKey&gt; </code></pre> <a href="https:&#x2F;&#x2F;en.bitcoin.it&#x2F;wiki&#x2F;Script" rel="nofollow">https:&#x2F;&#x2F;en.bitcoin.it&#x2F;wiki&#x2F;Script</a>
              • LiamPowell5 hours ago
                You know what I mean, there&#x27;s no clever on-chain reward script.
              • tromp8 hours ago
                Not every bitcoin tx output.<p>With taproot (P2TR), scripts are optional, and outputs can be based solely on Schnorr signatures.
                • greyface-8 hours ago
                  P2TR outputs have a script that always starts with OP_1. That script may or may not commit to a tapscript.
        • gautamcgoel9 hours ago
          Just to confirm: these puzzles are unrelated to RSA, correct?
          • azatom5 hours ago
            rsa is prime factorization, bitcoin is elliptic curve ps: elliptic curve or breaking sha256 &quot;bitmixing&quot;
        • raverbashing9 hours ago
          Interesting<p>I guess it would be &quot;trivial&quot; to have a bounty on each of the future numbers, since you could encrypt a bitcoin private key with it (it would probably make sense to do RSA -&gt; AES key that encodes the BTC private key)
  • singpolyma31 hour ago
    Literally no content here