CyberGuardAI 安全情报工作区
AI 安全知识情报
LJH 管理员
返回首页 学术论文

针对黑盒大模型的实用密钥提取研究

Shiqian Zhao、Siwei Jiang、Xinfeng Li、Runyi Hu、Yandan Zheng、Congyu Guo 等

摘要与解读

研究黑盒商业大模型的记忆化密钥提取风险与评估框架

六维情报分析

6 个维度 · 原文可溯源

影响范围

  • 来源报告指出,Codex、Claude Code 等自主编码代理依赖的 LLM 训练语料可能包含公开仓库泄露的凭据或私有开发产物中的凭据,形成记忆化与后续泄露风险;影响对象是使用商业 API 型 LLM 的编码代理及其下游代码与凭据持有方。触发前提是模型在训练中接触过相关秘密且攻击者仅具备 output-only 访问;信任边界落在 API 输出通道,后果是凭据经模型输出外泄。

    原文依据 · 2
    s) 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-preservin
    查看原文 · v1
    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.
    查看原文 · v1

关联资产

  • 原文明确关联的产品与组件包括 Codex、Claude Code 及商业 API 型 LLM 系统(涉及 OpenAI)。适用资产类型为:进入模型训练语料的公开仓库内容、私有开发产物中的凭据,以及对外提供 output-only 接口的 LLM API 服务。适用前提是这些资产中的秘密已被模型记忆且可通过 API 输出触达;本次未提供本地资产清单,未做任何本地匹配。

    原文依据 · 2
    s) 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-preservin
    查看原文 · v1
    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.
    查看原文 · v1

风险评估

  • 已报道的风险机制是训练语料中的机密凭据被模型记忆,并在仅输出访问条件下被提取;来源称在三个独立部署的黑盒 LLM 系统(涉及 OpenAI 与 Claude Code)上暴露了特定凭据。触发条件包括语料含真实凭据、模型完成记忆化、攻击者具备 API 输出访问。防护优先级应放在减少凭据进入训练与开发产物的环节,其次是对输出侧做秘密检测。

    原文依据 · 2
    s) 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-preservin
    查看原文 · v1
    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.
    查看原文 · v1

相关研究

  • 来源提出面向商业 API 型 LLM、仅输出访问的黑盒秘密提取框架,包含 Cross-Validated Secret Knowledge Distillation,利用语义保持的变换进行知识蒸馏与交叉验证;其贡献在于把既有依赖模型权重或 token 概率的提取审计扩展到黑盒条件。材料仅给出方法名称与定位,未提供变换细节、提示设计或评测协议。

    原文依据 · 1
    s) 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-preservin
    查看原文 · v1

验证资料

  • 来源报告的实验对象是三个独立部署的黑盒 LLM 系统,覆盖 OpenAI 与 Claude Code,访问条件限定为 output-only,结论是记忆化秘密可在该条件下被暴露。摘录未给出样本量、凭据类型分布、成功率或误报率数字。防御性核查可围绕训练数据与开发产物中的凭据扫描、API 输出侧的秘密模式检测与告警日志开展。

    原文依据 · 2
    s) 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-preservin
    查看原文 · v1
    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.
    查看原文 · v1

处置建议

  • 第一步,对拟用于训练或已进入开发产物的仓库与制品做凭据扫描与清理,直接对应来源所述语料含机密凭据这一成因。第二步,在调用 Codex、Claude Code 等代理所用 LLM API 的输出链路上部署秘密模式检测与告警,并记录命中日志,对应 output-only 提取路径。第三步,对已暴露凭据执行轮换,并以回归方式复测输出侧检测规则的有效性。

    原文依据 · 2
    s) 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-preservin
    查看原文 · v1
    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.
    查看原文 · v1
模型与引文记录
模型
deepseek-flash
生成时间
记录编号
REQ-ffde07f2335b4b07beda87368d29d261
分析原文
查看原文 · v1

资料档案

文献来源与参考链接

当前保存的来源版本 · v1

作者
Shiqian Zhao、Siwei Jiang、Xinfeng Li、Runyi Hu、Yandan Zheng、Congyu Guo、Tianwei Zhang、Anh Tuan Luu
文献与标准标识
arxiv:2609.36941
主题分类
cs.CR
来源版本
v1
来源更新时间
2026-09-29T07:52:12+00:00
日期依据
来源明确给出发表日期
原始标题与分类记录

Practical Secrets Extraction against Black-box LLMs

研究方向
评测治理
影响维度
机密性
风险类型
待人工确认
相关技术
LLM

当前为离线关键词规则模式。

分类规则与原始字段
评测治理 · evaluation
reducing extraction latency. A responsible real-world evaluation further recovers masked provider-specific credentials from three independently deployed black-box L
机密性 · secret
en probabilities. In this work, we present a black-box secret extraction framework for commercial, API-based LLMs under output-only access. It comprises (i) \emp
LLM · llm
redentials from three independently deployed black-box LLM systems spanning OpenAI and Claude Code, showing that memorized secrets can be exposed under output
{
  "ai_relevance": {
    "evidence": [
      {
        "end_offset": 51,
        "location": "title_and_content",
        "quote": "LLMs",
        "rule": "ai_term",
        "start_offset": 47
      },
      {
        "end_offset": 73,
        "location": "title_and_content",
        "quote": "Large language models",
        "rule": "ai_term",
        "start_offset": 52
      },
      {
        "end_offset": 79,
        "location": "title_and_content",
        "quote": "LLMs",
        "rule": "ai_term",
        "start_offset": 75
      },
      {
        "end_offset": 550,
        "location": "title_and_content",
        "quote": "LLMs",
        "rule": "ai_term",
        "start_offset": 546
      },
      {
        "end_offset": 1341,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 1338
      },
      {
        "end_offset": 1365,
        "location": "title_and_content",
        "quote": "OpenAI",
        "rule": "ai_component",
        "start_offset": 1359
      }
    ],
    "matches": [
      {
        "end_offset": 51,
        "location": "title_and_content",
        "quote": "LLMs",
        "rule": "ai_term",
        "start_offset": 47
      },
      {
        "end_offset": 73,
        "location": "title_and_content",
        "quote": "Large language models",
        "rule": "ai_term",
        "start_offset": 52
      },
      {
        "end_offset": 79,
        "location": "title_and_content",
        "quote": "LLMs",
        "rule": "ai_term",
        "start_offset": 75
      },
      {
        "end_offset": 550,
        "location": "title_and_content",
        "quote": "LLMs",
        "rule": "ai_term",
        "start_offset": 546
      },
      {
        "end_offset": 1341,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 1338
      },
      {
        "end_offset": 1365,
        "location": "title_and_content",
        "quote": "OpenAI",
        "rule": "ai_component",
        "start_offset": 1359
      }
    ],
    "method": "explainable_keyword_rules",
    "reason": "Matched AI topic or component evidence",
    "relevant": true
  },
  "entity_ids": [],
  "facts": [],
  "method": "source_grounded_extraction",
  "unknown_fields": [
    "affected_products",
    "affected_versions",
    "fixed_versions",
    "cvss",
    "mitigations",
    "references",
    "papers",
    "poc"
  ]
}
原始采集文本
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.
采集信息与校验
完整来源元数据
{
  "authors": [
    "Shiqian Zhao",
    "Siwei Jiang",
    "Xinfeng Li",
    "Runyi Hu",
    "Yandan Zheng",
    "Congyu Guo",
    "Tianwei Zhang",
    "Anh Tuan Luu"
  ],
  "content_level": "abstract",
  "date_basis": "explicit_published",
  "date_evidence": {
    "published": "2026-09-29T07:52:12Z",
    "updated": "2026-09-29T07:52:12Z"
  },
  "identifiers": [
    "arxiv:2609.36941"
  ],
  "source_updated_at": "2026-09-29T07:52:12+00:00",
  "subjects": [
    "cs.CR"
  ],
  "version_label": "v1"
}
原文版本历史与校验
版本入库更新时间来源发布日期校验标识
v1 · 正在查看2026-10-12 05:57 UTC2026-09-29 07:52 UTC1418c4b509d5eca50858fe7c82c3add169714238a7086a509a7ad50015017589
可引用分片 · 2 段

CHK-c9cfe344c1b91c621b6ab276

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.

CHK-9fba67fb76911a771cfc24dd

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.
处理记录
补充资料

中文译文

正文译文暂缺,以下仅为中文摘要。

中文摘要

研究黑盒商业大模型的记忆化密钥提取风险与评估框架

已采集原文

访问来源网页

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.

原文依据