Study: 25% of Public MCP Configs Leak API Keys in Plaintext
checkpointdev · reddit · 2026-08-22
A security audit of MCP (Model Context Protocol) configs reveals significant credential leakage risks in public repositories.
- Data: Scanned 2,000 configs across 1,622 GitHub repos; 1,113 defined environment variables.
- Findings:
- 25% (279) contained plaintext secrets.
- 17% (196) correctly used variable indirection.
- 26 exposed valid credential formats for vendors like GitHub, Anthropic, and OpenAI.
- Observation: Many leaks were AWS doc examples; excluding them reduced false positives by 10%.
- Tool: Released mcp-secrets CLI (npx mcp-secrets scan) to detect plaintext keys and migrate them to the OS keychain, supporting CI checks.
More from coding & agent
- DHH cracks Linux deep sleep on Zenbook A16: 0.16W overnight draw — cgarciae88 · 2026-11-30
- Sakana AI open-sources Agentic Scientist, pushing toward self-improving AI researchers — SakanaAILabs · 2026-11-30
- Blogger migrates Ghost blog to self-hosting in hours with Claude — kevinakwok · 2026-11-30
- Business-prose model open-sourced: trained on a single 96GB GPU, all quant formats in one repo — IridiumEagle · 2026-11-30
- Devs say vibe-coding workflow is draining the joy of programming — weskambale · 2026-11-30
- Slipwing: Open-Source Windows MCP Server Lets Agents Drive Chrome and Desktop Apps in the Background — Sudden_Analysis8617 · 2026-11-30