PulseAugur
中
实时 14:58:41
English(EN) One claude mcp add saved my API key in plain text in two places

Claude MCP命令明文泄露API密钥

在 `claude mcp add` 命令中发现了一个安全漏洞,API密钥会以明文形式出现在两个位置:shell历史记录和 `~/.claude.json` 配置文件中。虽然最近对 `claude mcp add-json` 的更新通过允许通过stdin进行配置解决了shell历史记录的问题,但API密钥仍然保留在配置文件中。推荐的解决方案是将环境变量的引用(例如 `'NOTION_TOKEN=${NOTION_TOKEN}'`)注册进去,而不是直接使用API密钥,从而确保密钥不会在任何一个位置以明文形式存储。 AI

影响 暴露了特定AI工具中的一个安全缺陷,促使用户保护他们的API密钥。

排序理由 该条目描述了特定命令行工具中的一个安全漏洞并提供了修复方法。

在 dev.to — MCP tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

Claude MCP命令明文泄露API密钥

本文如何被排名

Signal score
25 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
该条目描述了特定命令行工具中的一个安全漏洞并提供了修复方法。
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, safety
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

完整方法见我们的编辑标准。

报道来源 [1]

  1. dev.to — MCP tag TIER_1 English(EN) · The Paste-Ready Engineer ·

    一个claude mcp插件将我的API密钥明文保存在两个地方

    <p><em>I searched my shell history for my Notion token. It was there three times. Then I opened ~/.claude.json and found it a fourth time.</em></p> <h2> TL;DR </h2> <ul> <li>If you pass an API key straight to <code>claude mcp add</code>, it ends up in plain text in two places: yo…