cd /news/ai-safety/practical-secrets-extraction-against… · home › topics › ai-safety › article
[ARTICLE · art-142365] src=arxiv.org ↗ pub= topic=ai-safety verified=true sentiment=↓ negative

Practical Secrets Extraction Against Black-Box LLMs

A 29 September 2026 arXiv paper presents a black-box secret extraction framework that recovers memorized credentials from commercial API-based LLMs under output-only access. The framework combines Cross-Validated Secret Knowledge Distillation, which uses semantics-preserving prompt variants and response cross-validation to train a local white-box proxy, with Proxy-Guided Secret Extraction and Candidate Filtering, which applies truncated top-p sampling, local token entropy, N-gram frequency profiling and provider-specific structural priors. The authors report improved recovery effectiveness and real-key rates over representative baselines with reduced extraction latency, and say a responsible real-world evaluation recovered masked provider-specific credentials from three independently deployed black-box LLM systems spanning OpenAI and Claude Code.

read2 min views1 publishedSep 30, 2026
Practical Secrets Extraction Against Black-Box LLMs
Image: source
  [Submitted on 29 Sep 2026]


[View PDF](https://arxiv.org/pdf/2609.36941)

[HTML (experimental)](https://arxiv.org/html/2609.36941v1)

Abstract:Large 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. In this work, we present a black-box secret extraction framework for commercial, API-based LLMs under output-only access. It comprises (i) \emph{Cross-Validated Secret Knowledge Distillation}, which uses semantics-preserving prompt variants, response cross-validation, and provider-specific format filtering to distill secret-relevant behavior into a local white-box proxy; and (ii) \emph{Proxy-Guided Secret Extraction and Candidate Filtering}, which combines truncated top-$p$ sampling with local token entropy, $N$-gram frequency profiling, and provider-specific structural priors. On controlled API-key benchmarks, our framework improves recovery effectiveness and real-key rates over representative baselines while reducing extraction latency. A responsible real-world evaluation further recovers masked provider-specific credentials from three independently deployed black-box LLM systems spanning OpenAI and Claude Code, showing that memorized secrets can be exposed under output-only access.

References & Citations

...

Bibliographic Explorer

(What is the Explorer?) Connected Papers

(What is Connected Papers?) Litmaps

(What is Litmaps?) scite Smart Citations

(What are Smart Citations?) alphaXiv

(What is alphaXiv?) CatalyzeX Code Finder for Papers

(What is CatalyzeX?) DagsHub

(What is DagsHub?) Gotit.pub

(What is GotitPub?) Hugging Face

(What is Huggingface?) ScienceCast

(What is ScienceCast?) Influence Flower

(What are Influence Flowers?) CORE Recommender

(What is CORE?) arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

── more in #ai-safety 4 stories · sorted by recency
── more on @arxiv 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/practical-secrets-ex…] indexed:0 read:2min 2026-09-30 · —