Anthropic's Claude Identifies Origin of Seed for Elliptic Curve Encryption

Anthropic's Claude identified how parameters underlying elliptic curve cryptography. When a team at Anthropic asked this question in 2026, Claude found out the answer in about half an hour.

This alleviates suspicions held in some quarters that the parameters might have been intentionally chosen to have weaknesses. (That is, this achievement is nothing like compromising the widely used cryptographic system.)

(From among top few hits on quick googling, I found Anthropic's announcement is the best:

"Claude reveals ECDSA curve origins" (Anthropic, 16 October 2026)

I was also helped by a write-up in Japanese:

たぬ, NIST楕円曲線の「謎のシード」をClaudeが解いた:正体は1990年代の時計 (note)

and also by Gemini answering my questions about specific details.)

Basics

An elliptic curve is represented by y2=x3+ax+b. When arithmetic on points on the curve is defined (specifically, P+Q is defined to be the reflection R across the x-axis of an intersection (-R) of a line through P and Q with the curve), EC-DLP (elliptic curve discrete logarithm problem) is computationally intractable. Specifically, while R=dP is readily calculated, it is hard to determine d given P and R. This (like factorization for integers) can be used for public key encryption with a public key dG (where a base point G is chosen so that the smallest positive integer satisfying nG=O, or (+1)G=G is a large prime) and a private key d.

Domain Parameters

Selection of an appropriate curve (actually, "domain parameters" including not only a and b but also the choice of the underlying finite field and the order n of the base point G) is time-consuming. Hence, standard curves are defined for use by anyone. The parameters defined by the NIST are the focus of the present discovery.

One elliptic curve called P-256 is as follows.

y2=x3+ax+b (mod r), where
a = -3
b = 41058363725152142129326129780047268409114441015993725554835256314039467401291
r = 115792089210356248762697446949407573529996955224135760342422259061068512044369

(Originally, this was defined in Appendix 6 of Digital Signature Standard (DSS) (FIPS 186-2) in 2000. Now, DSS is defined by FIPS 186-5 and domain parameters are defined as recommendations in NIST SP 800-186.)

Unspecified Origin of Parameters

While a can be -3 for convenience, b is computed through a series of operations from an arbitrary seed parameter. While the standard document provides specific details of the derivation of b from the seed parameter, no explanation was given as to how the seed parameter was chosen.

This gave rise to a concern that the NSA chose parameters with a backdoor, especially after the influence of NSA was reported in 2013 (Wikipedia). That is, the selected curve has a weakness known to NSA in that the NSA can decipher any ciphertext encrypted with these parameters.

People involved in determining the parameters did not remember the details. They testified that the parameters might have been a hash of some phrase in English (Stephen A. Weis), but attempts on this assumption did not succeed. In 2023, a bounty of 12,288 dollars was put on the solution (Filippo Valsorda funded by contributors).

Claude's Solution

Among employees at Anthropic, attempts based on hashing some humorous phrase were unsuccessful. Solution came in October 2026 when one asked an internal research model without giving the hint. Claude found the seeds of NIST P-192, P-224, P-256, P-384, and P-521 in less than half an hour.

As it turned out, they were not derived by hashing anything but were the result of a pseudorandom number generator (PRNG) used in the 1990s given timestamps as seeds. (The seed given to PRNG should not be confused with the seed in the NIST standard used to compute the parameter b of the elliptic curve. The former seed is used to derive the latter seed.)

Pseudorandom Number Generator (PRNG)

Had modern PRNGs been used, the solution might not have been possible. But the vintage PRNG in C libraries used at the time was not random enough and allows tracing the input. It uses functions srand48 and lrand48. Lrand48 is a function to output a (pseudo)random number every time it is called. It is initialized once by srand48 with a seed. When initialized with the same seed, lrand48 provides the same sequence of random numbers.

Claude not only examined P-192, P-224, P-256, P-384, P-521 (curves over prime fields), for which the bounty was set, but also other five curves over binary fields. Of these, the seeds for B-233, B-283, B-409, B-571 (each seed consisting of five 8-byte(=32-bit) segments) had a zero in the top bit (i.e., hexadecimal 0-7 rather than 8-f in the top byte) for all 5x4=20 segments. Claude suspected use of lrand48, which outputs 31 bits from its internal state of 48 bits (used for calculating the next pseudorandom number), which explains the 0 at the top bit. For these four curves, given the 31 bits from the published NIST seed, it was not difficult for Claude to recover the full 48-bit internal state by trying every one of the 217 remaining 17-bit patterns. It was verified that, starting from the internal state of the first segment thus recovered, the following four segments could be reproduced.

For the five curves in question (and B-163 from the family of curves over binary fields), the same lrand48 was used but fewer than 31 bits were used in the seeds. But recovering the internal state of a truncated linear congruential generator (a mathematical formula underlying lrand48) can be handled with "the Lenstra-Lenstra-Lovász (LLL) basis reduction algorithm". Although which part of the 48 bits was used for the seed was a nontrivial question, Claude tried every window and found out that the first 8 bits of the 31 bits in the output of lrand48 was used. The 48-bit recovered with LLL from the first 8 bits in the first group reproduced all the 160 bits in the seed. This explained the seeds of not only the NIST five prime-curve seeds but also five more curves from ANSI X9.62 standard.

Seed for PRNG

According to the algorithm of lrand48, given the internal 48-bit state, preceding states can be readily calculated. This can be used to trace the initial state of random number generation because the initialization with srand48 appends the user-specified seed with 0x330E. Of course, 0x330E occurs once every 164=65,536 times. So, occurrence of 0x330E per se cannot be definite evidence of the initial state, but Claude found out that every srand48 initialization can be explained as a Unix timestamp representing a date between May 1997 and April 1998. This can hardly be a coincidence.

Claude's Monologue

Claude wonders itself it was too easy to solve a mystery left unsolved for 25 years:

This is astonishing: it solves the 25-year-old mystery. Hmm wait. Let me be skeptical: am I in some sort of simulated/test environment? … The seeds match my memory of actual values … Hmm, is it plausible in reality? As of my knowledge … the bounty was unsolved. … All top bits clear—20 bits, chance 1e-6. So indeed real-world. Wow, it's a real discovery.
Hmm wait. Let me be careful about the plausibility: is it suspicious that such an obvious thing wasn’t discovered in 25 years? It’s verified by direct computation on my side: 160-bit match from a 32-bit seed + small index: no chance coincidences (10 × 160 bits). It’s real.

Base Points

It will be remembered that the seed is not the only parameter defining elliptic curve encryption. Claude also identified the origin of based points for some elliptic curves. The base points for six curved come from another random number generator called FreeLIP seeded with 20000 or 20509.

Bounty

Anthropic's team decided to donate the bounty of $36,846 (tripled for choosing donation) to the Internet Security Reserch Group.



©2026 S.Tomokiyo
First posted on 31 October 2026. Last modified on 7 November 2026. Encoded in UTF-8.
Articles on Historical Cryptography
inserted by FC2 system