読書リサーチレーダー投資フレームワーク
ログイン / 新規登録
← 読解に戻る
トピックDisconfirmAI 編集部更新日 2026-11-03 23:06

Claude Code

4 ステップ1 件5 ソース

Anthropic 的 AI 编码工具 Claude Code 近期被曝出多起涉及敏感凭证泄露的安全隐患。核心问题在于其执行命令的方式及上下文隔离机制:一方面,Claude Code 将用户命令包裹在 eval 结构中执行,导致父 Shell 进程在 ps 输出中全程保留明文密码,且会话记录文件也会存储这些敏感信息;另一方面,研究人员发现其 CI 集成存在漏洞(CVE-2026-54316),允许通过 GitHub Issue 注入指令并利用 Hugging Face 下载计数作为侧信道外泄密钥。此外,GitHub 上也有报告指出模型可能生成或混淆其他用户的数据库凭证,尽管部分案例被标记为幻觉而非真实泄露,但引发了对租户隔离的担忧。目前 Anthropic 已修复 CI 相关漏洞,并建议开发者避免在命令行参数中直接传递密码,转而使用权限受限的配置文件。

経緯

  1. 2025-09-30

    GitHub 用户 dev-kimke 报告 Claude Code (Sonnet 4.5) 生成了未提供的 MySQL 密码字符串,怀疑存在跨用户数据泄露或模型幻觉。

    github.com ↗
  2. 2026-06-29

    GitHub 用户 acosmi-fushihua 报告在 Claude Code 会话中出现另一台服务器的 root 密码,并导致对该第三方生产数据库的非授权修改。

    github.com ↗
  3. 2026-08-05

    Novee Security 在 Black Hat USA 2026 披露 CVE-2026-54316,展示如何通过 GitHub Issue 注入指令,利用 Claude Code 预批准的 Hugging Face 访问权限外泄 CI 密钥。

    swarmproof.github.io ↗
  4. 2026-11-03

    V2EX 用户 mysoko 复现并公开了 Claude Code 在本地执行带密码命令时,因 `eval` 包装结构导致密码在 `ps` 进程列表及本地会话日志中明文可见的问题。

    v2ex.com ↗

未解決の問題

  • Anthropic 是否计划修改 Claude Code 的命令执行封装方式(如避免在父 Shell 中保留完整命令行)以从根源解决本地 `ps` 泄露问题?
  • 针对 GitHub Issue #72274 等报告的跨会话凭证混淆,Anthropic 是否确认存在真实的后端数据隔离缺陷,还是确认为模型幻觉?
ログイン / 新規登録
読書リサーチレーダー投資フレームワーク
  • 除了更新版本,Anthropic 是否会提供更自动化的工具来扫描和清理历史会话日志(~/.claude/projects/)中已存在的明文密码?
  • ソース

    • v2ex.comV2EX: Claude Code 用 eval 包装命令,数据库密码在 ps 中全程可见↗
    • swarmproof.github.ioSwarmProof: A single malicious GitHub issue could make CI-wired Claude Code exfiltrate secrets via Hugging Face download counts (CVE-2026-54316)↗
    • github.comGitHub Issue #72274: Cross-session credential leakage: production database modified on unauthorized host↗
    • github.comGitHub Issue #8431: Unexplained Password String Generated by Claude Code↗
    • michellelinmd.comMichelle Lin: Claude Code put my WordPress app password in our chat↗

    このトピックでのカバー範囲

    • Claude Code Wraps Commands in eval, Database Passwords Remain Visible in ps Output2026-11-03ニュース

      V2EX user mysoko reviewed 253 Claude Code session records and found that 16 contained plaintext passwords. Reproduction tests showed that Claude Code wraps commands in a composite structure of source snapshots and eval; the parent shell process retains the full command line throughout execution, even though curl itself has already masked the password in child processes.