Practical Secrets Extraction against Black-box LLMs
Researchers recover memorized credentials from black-box commercial LLMs, including OpenAI and Claude Code.
Researchers present a black-box framework that extracts memorized secrets from commercial API language models using only model outputs. Semantics-preserving prompts and response cross-validation distill secret-related behavior into a local proxy, which then guides candidate filtering. On controlled API-key benchmarks the method improves recovery effectiveness and real-key rates while reducing latency. A responsible evaluation recovered masked provider-specific credentials from three deployed systems spanning OpenAI and Claude Code.
- Output-only access is enough; weights and token probabilities are not required.
- A local proxy and cross-validation improve recovery on controlled API-key benchmarks.
- Masked credentials were recovered from three deployed OpenAI and Claude Code systems.
- Products
- CodexClaude Code
From the original article
1 min read at arxiv.orgLarge language models (LLMs) increasingly power autonomous coding agents such as Codex and Claude Code, yet their training corpora may contain confidential credentials exposed in public repositories or collected from private development artifacts, creating risks of memorization and subsequent leakage. Existing extraction audits, however, largely assume access to model weights or token probabilities.
By Shiqian Zhao · arxiv.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.