Claude reveals ECDSA curve origins
TL;DR Highlight
Claude found in under 30 minutes that NIST curve seeds came from lrand48 seeded with timestamps.
Who Should Read
A backend developer who works with crypto standards or random number generators and wonders whether LLMs can reverse-engineer code and math.
Core Mechanics
- The seeds were lrand48 output, not hashes
- The NIST P-192, P-224, P-256, P-384 and P-521 seeds were not hash results.
- They were output from the C library's lrand48, seeded with a Unix timestamp.
- Each candidate took 20 bytes, and P-256's published seed was candidate 1,842.
- Changing the approach solved it
- Searching for the rumored humorous phrase hash had come up empty.
- Claude guessed the software used a weak 1990s C library PRNG.
- It wrote a scanner that slid along each seed bit by bit, covering 34 generator and output-slice combinations.
- Top bits being zero was the key clue
- Four of the ten seeds had a 0 top bit in all 20 words, a 1/5,810 chance.
- This matches lrand48, which returns only the top 31 bits of a 48-bit state.
- Claude tried all 2^17 hidden-bit values and recovered the state for four seeds.
- Prime curves fell to an LLL lattice solve
- Prime-curve seeds kept fewer output bits, but recovering a truncated LCG state is a textbook lattice problem.
- Claude ran the LLL algorithm over every bit window.
- Five NIST and five ANSI X9.62 seeds all showed the lrand48() >> 23 pattern.
- Timestamps landed in 1997–1998
- The ten prime-curve srand48 initializations were Unix timestamps between May 1997 and April 1998.
- The four binary curves map to April 17, 1998 if timestamps are doubled, so the program may have halved the clock, per the article.
- Some base points explained, gaps remain
- Base points for P-192 and five ANSI example curves came from FreeLIP's random generator.
- Base points for P-224, P-256, P-384 and P-521, and the B-163 seed, remain unexplained.
- The article says this is not a cryptographic break and raises confidence the curves have no backdoors.
Community Reactions
- Selection process is still unknown
- One commenter said the method is confirmed but discarded candidates are invisible, so selection criteria remain unknown.
- Another pointed out that the article's logic about disclosing timestamps fails, since staying silent would suffice.
- B-163 may be a typo
- One commenter suggested it was generated the same way but a digit was mistyped when published, which is why no solution was found.
- How to prompt an LLM to do this
- One commenter asked how one would prompt a general LLM to do this without an internal research model.
- Another shared an experience giving Opus 5.5 a hint that the first digit never exceeds 7, hinting at lrand48's 31-bit output, and watching it work through it.
- Concern about model access gap
- One commenter worried that Anthropic can do this work while ordinary users get blocked, widening a moat between providers and the public.
- They argued only open model progress bridges that gap.
How to Apply
- Audit random number usage in your code
- Spend 30 minutes today searching your repo for rand, lrand48, srand48 and time-based seeds.
- List every place used for keys, tokens or passwords.
- Replace those with a cryptographically secure PRNG.
- Give LLMs reverse-engineering problems as hypotheses
- For stuck problems, ask how the software of that era might have produced the data instead of asking for the answer.
- Attach any visible pattern, like top bits always 0, as a hint.
- Verify each hypothesis the model proposes with your own code.
- Run the model's verification code yourself
- Run the article's published Python code to confirm the seeds reproduce.
- Judge model claims by whether the output matches.
Try It
# Paste into Claude or ChatGPT chat (simplified version of the article's approach)
I want to find out what software generated the data below. Reversing a hash has already failed.
Data:
{{data (e.g., list of hex values)}}
Proceed in this order.
1. Propose 3 hypotheses for how software of that era (e.g., a PRNG in a contemporary C library) might have produced it.
2. Look for bit-pattern bias in the data (e.g., a bit that is always 0).
3. Write Python code to test each hypothesis.
Next step: run the code yourself and check the output matches the data; if it does, ask the model to work backward to the input (seed) that was used.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques