Research on black-box LLM key extraction framework
Start here
Researchers propose a black-box key extraction framework that relies only on the output interface, used to extract memorized API keys from commercial API large models. The method has two stages: first, using semantically preserved prompt variants, response cross-validation, and vendor format filtering, they distill the victim model's key-related behavior into a local white-box proxy; then, on the proxy, they use truncated top-p sampling combined with local token entropy, N-gram frequency, and vendor structure priors to filter candidates. On a controlled benchmark containing 100 real keys from 5 vendors and 4 programming languages, the recovery improvement over representative baselines is up to 57.1%.
Generated by AI from reports · Updated 2026-10-09
Related research
This event's paper
- Practical Secrets Extraction against Black-box LLMs
arXiv · 2026-09-29 · Deep reading
Progress timeline
- arXivSelectedResearchers propose a practical key extraction framework for black-box LLMs
Researchers propose a black-box key extraction framework that relies only on the output interface, used to extract memorized API keys from commercial API large models. The method has two stages: first, using semantically preserved prompt variants, response cross-validation, and vendor format filtering, they distill the victim model's key-related behavior into a local white-box proxy; then, on the proxy, they use truncated top-p sampling combined with local token entropy, N-gram frequency, and vendor structure priors to filter candidates. On a controlled benchmark containing 100 real keys from 5 vendors and 4 programming languages, the recovery improvement over representative baselines is up to 57.1%, the real key ratio is improved by up to 2.6 times, and post-construction extraction latency is reduced by 20.7 to 34.8 times. Real-world evaluation recovered masked vendor credentials from three independently deployed black-box systems, involving OpenAI and Claude Code; GitHub search showed public matches for these keys, and the authors did not make actual API calls for ethical reasons.