Unofficial Hacker News client - receive Push Notifications on replies.

Cryptanalytic result from Anthropic: paper title leaked (opens external site)

467 points by aklein 7 hours ago | twitter.com | 607 comments on HN | Vote on HN (opens Hacker News)

View full thread · View on Hacker News

Comment thread (23)

  1. He and another guy each published hashes of the title – one of them used SHA3, the other used SHA2-256 – just to prove to strangers on the internet that they really had exclusive access to the unreleased paper.

    They should both understand that it's very possible to find the preimage when you know that it's the title of an academic paper within a narrow domain.

    But these people are clout chasers and don't seem to have that level of cryptographic intuition.

    Replies (6)
    1. Great teachable example of why salting is useful!
      Replies (2)
      1. How would you use a salt in this scenario? "The title of the article plus the word 'toaster' has the SHA256 [hash]"? Doesn't that reverse just as easily? You need a public salt if you want to convince someone that you knew early?
        Replies (6)
        1. You would need to release the salt later. It would still be convincing, as the only other explanation would be that you found a SHA3 collision.
          Replies (1)
          1. > found a SHA3 collision

            Curious what are the chances to find a SHA3 collision with a plausible sounding scientific paper title.

            Replies (1)
            1. I did some back-of-the-envelope calculations in a sibling comment, and I think it's really implausible to find a collision, or crack the hash in the first place. Like, many GPU years worth of compute.

              Continue this thread (1 replies) →

        2. Pick a random uint32. Say "the paper title + a random number has the SHA256 [hash]". When the paper title is revealed, publish your random number. That proves you knew the paper title in advance.
        3. You need to withhold the salt until the paper is published and the title becomes known. Then you publish the salt, and people can concatenate it to the title and verify the hash.

          There's no practical way for you to construct a salt after the fact such that the title and the salt computes to the hash you already published, unless you also knew the title at the time.

        4. I guess you'd publish the salt after the public release of the paper. Finding a hash collision to "retrofit" the salted hash should not be feasible with a non-broken cryptographic hash function.
          Replies (1)
          1. Right. So for SHA256 I would be trusted, but for SHA1 I might have just reversed it after it was published?
            Replies (1)
            1. Even then, it would only be suspicious if your salt was large enough to be able to reach any possible target hash in the first place. If your precommitted salt is "five digits" then you can only possibly generate 10,000 hash values by mutating it.
        5. Like this:

          `d9a305c5156494da | Quasi-polynomial quantum algorithms for integral lattices and module lattices of small rank over power-of-two cyclotomic rings`

        6. Create the salted title:

            salt = "123456789"
            salted_paper_title = "The paper's title" + salt
          
          Publicly release:

            SHA3(salted_paper_title)
            SHA3(salt)
      2. How does salt work if you want to provide such a certificate? Don't you need to provide the clear text salt together with it in any case? (Though I understand you could keep the salt hidden and reveal it only afterwards if it's short enough, but doesn't feel as good a certificate).

        EDIT: lol, it's like throwing a chunk of meat to the piranhas

    2. What's the use of hashing a title anyways? Shouldn't you hash the whole paper? You can hash a title for anything you want.

      Edit: For example what's stopping me from hashing `P = NP`, then when it's proved/disproved just taking the paper and rewriting it and saying "Look, I proved this a year ago!"

      Replies (1)
      1. one letter correction in the paper throws the hash out
        Replies (2)
        1. Something something semantic hashing
        2. You still prove that you had an unpolished draft at some point, that proved _something_. Otherwise you can just hash a title to camp a discovery even before you started.

          The whole point is you can take your time to polish and work out issues while the bulk of the discovery is proved to have happened earlier.

          Edit: Like the hash proves you were 95% of the way there on that date.

    3. Yeah, they should never ever get privileged access to this stuff again. WTF
    4. While I agree that in principle they should have salted the hashes, it's very implausible that a 16 word paper title got cracked, even within a narrow domain. It's likelier that the actual title comes from a good old fashioned leak; the unsalted hash just proves that both leaks refer to the same title.

      A very rough back of the envelope calculation: suppose you use an LLM to generate plausible titles. The title has 16 words, about 24 BPE tokens. Let's say about 2 bits/token of entropy (that's really optimistic even within the narrow field of quantum lattice papers). Very optimistically that's 2^45 candidates. A fast, small LLM can generate 100k candidates/sec on a GPU, so we're talking about 11 GPU years to generate the candidates. But only 3.5 GPU-hours for the hashes themselves!

      But without the plausible candidates, you have a much bigger search space. Maybe 65 bits very optimistically? That's 400 GPU years worth of SHA3 hashing. I can think of certain firms that have that kind of GPU fleet to throw at the firm, but, uhh, I think they have better things to do with the cards.

      If someone's claiming they actually cracked the hash, I'm very curious how they did it, because I'm stumped.

      (I don't think adding the SHA2-256 changes things; afaik there are no good practical techniques that can combine the two hashes to narrow the search space.)

    5. And further down in the thread, the author of linked tweet replied showing that the title matches both SHA3 and SHA2-256 hashes: https://x.com/justalexoki/status/2127404435504574675

        echo -n "Quasi-polynomial quantum algorithms for integral lattices and module lattices of small rank over power-of-two cyclotomic rings" | openssl dgst -sha3-256
        SHA3-256(stdin)= 560296b35da4dc4add8104d573b5c479eb3c97c66b677a3513b5aaa6432aa387
      
      
        echo -n "Quasi-polynomial quantum algorithms for integral lattices and module lattices of small rank over power-of-two cyclotomic rings" | openssl dgst -sha2-256
        SHA2-256(stdin)= cfbaf75b3a174da179befb0af94421f60a2cdfcf94b24ab1aa565978d6f335a4
    6. orrr he wanted to leak the title but signed an NDA and did it in a way that could be plausibly passed off as a mistake