✕ Beranda Langganan Per Project Proses Profil FAQ Co-Researcher Blog Carousel SaaS Hubungi
Artikel ini juga tersedia dalam Bahasa Indonesia. Baca versi Indonesia →

Claude Uncovers the Mysterious Origins of NIST ECDSA Curve Seeds

Claude Uncovers the Mysterious Origins of NIST ECDSA Curve Seeds

A 25-Year Mystery, Solved in Under Half an Hour

If your website runs on HTTPS, there is a good chance your visitors' connections are secured by an elliptic curve called NIST P-256. It sits behind TLS certificates, digital signatures and crypto wallets. Yet for more than two decades one question went unanswered: where did the "random" numbers that define that curve actually come from?

On October 16, 2026, Anthropic's Frontier Red Team published research that answers it. An internal Claude research model reconstructed the origin of the seeds behind the standard NIST ECDSA curves — and the answer turns out to be far more mundane, and more reassuring, than the conspiracy theories that have circulated for years.

Background: Seeds Handed Over Without Explanation

ECDSA (the Elliptic Curve Digital Signature Algorithm) was adopted by NIST in 2000 in FIPS 186-2. For the prime and binary curves, the standard published a seed whose hash determines the curve coefficient b. The idea is sound: if the coefficient comes from hashing a seed, the public can trust that the designers did not hand-pick a "special" curve with a hidden weakness.

The catch is that the NSA supplied those seeds with no explanation of how they were produced. After the Dual_EC_DRBG affair, that silence only fed suspicion. Neal Koblitz and Alfred Menezes summarized the controversy in a 2015 paper, and both an amateur investigation and a bounty organized by Filippo Valsorda failed to find the answer.

The best-known story came from NSA cryptographer Jerry Solinas. In 2015 he suggested the seeds were hashes of a humorous phrase along the lines of "Give Bob and Jerry a raise" or "Bob and Jerry rule", while admitting he did not know the details and that the archives were probably lost. Solinas passed away in 2023. Anthropic's research shows that story was wrong.

The Key Finding: Not a Hash, but lrand48

In under half an hour, Claude found that the seeds for P-192, P-224, P-256, P-384 and P-521 are not hash outputs at all. They are outputs of the standard C library pseudorandom generator lrand48, seeded with a Unix timestamp — in other words, the computer's clock at the moment the program ran.

Each candidate seed is 20 bytes taken from successive generator outputs. The generating program tried candidates one after another until it found a curve that met its criteria. For P-256 that took 1,842 iterations.

How Claude Cracked It

The approach is worth studying, because it mirrors how an experienced cryptanalyst would work:

  1. Form a hypothesis. Claude guessed that 1990s software probably relied on a weak PRNG that was common at the time.
  2. Build a scanner. It wrote a tool that tested overlapping bit windows across 34 combinations of generator and output slicing.
  3. Look for fingerprints. On the binary curves, the top bit of every 32-bit word was always zero. That matches lrand48, which returns only the top 31 bits of its 48-bit internal state. The remaining 17 hidden bits were recovered by brute force (2^17 candidates — trivial for a modern machine).
  4. Use lattice reduction. The prime curves keep fewer bits per output, so brute force was not enough. Claude used the LLL lattice basis reduction algorithm to recover the internal state and found the pattern lrand48() >> 23.
  5. Walk backwards. From the recovered state, the generator was stepped back to its srand48 initialization — which holds the timestamp.

The Timeline It Uncovered

The recovered timestamps show when the curves were generated:

Time (timestamp) Curves
1997-05-15 15:49:03 prime239v1, v2, v3 (ANSI X9.62)
1997-05-18 14:45:34 P-192, prime192v2, prime192v3
1997-08-08 01:12:04 P-521
1997-08-16 01:52:34 P-256
1997-08-30 14:50:08 P-384
1998-04-03 12:52:07 P-224
1998-04-17 15:24–15:32 B-233, B-283, B-409, B-571

The prime curves were generated between May 1997 and April 1998. For the binary curves, the raw readings point to February 1984 — but doubled, they land on April 17, 1998, which suggests the program seeded the generator with half the clock value. In total, 14 seeds were reproduced: 10 prime curves and 4 binary curves.

Claude also found that the base points of six curves (P-192, prime192v2, prime192v3, prime239v1–v3) come from the random generator in FreeLIP, Arjen Lenstra's long-integer package (the same code shipped in early versions of Victor Shoup's NTL), using simple seeds such as 20000 for P-192.

What This Means for Your Website's Security

The most important point: this is not a cryptographic break. ECDSA and P-256 are no weaker because of this finding. Quite the opposite — because the seeds came from an ordinary clock-seeded PRNG, anyone can reproduce them, which makes the theory of a deliberately planted backdoor in the curve parameters much less plausible.

For site owners and developers, nothing needs to change: TLS certificates based on ECDSA P-256 remain safe to use. The practical lessons lie elsewhere:

  • Never use rand(), lrand48 or mt_rand for anything security-related. Use a CSPRNG such as PHP's random_bytes() or Python's secrets module.
  • Transparent parameters matter. A standard the public cannot verify breeds years of distrust.
  • AI is now a serious audit tool. A problem that stayed open for 25 years was untangled in minutes.

Open Questions

The research is candid about its limits. Some perfectly valid candidate curves were skipped — P-256 could have used candidate 876 instead of 1,842. P-224 skipped three, and the two ANSI X9.62 runs skipped seven more. The criteria are unknown, but the authors judge the count too small to suggest weakened curves were chosen on purpose. The B-163 seed matches none of the tested patterns, and the base points of P-224, P-256, P-384, P-521 and the NIST binary curves remain unexplained.

The $36,864 bounty for finding the seeds will be donated to the Internet Security Research Group (the organization behind Let's Encrypt). Python code that regenerates all 14 seeds and the six base points is released under CC0.

Closing Thoughts

This story is a reminder that many security "mysteries" trace back to plain engineering choices — a 1997 C program calling srand48(time(NULL)). At the same time, an AI that can form hypotheses, write its own analysis tools and apply techniques like lattice reduction opens a new chapter in cryptographic auditing. For anyone running a website, the news is good: your HTTPS keys are as safe as they were yesterday.

References

Share Article