BP

bountyyfi/projectmemory

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

47 stars 8 forks 质量 73 趋势 0MIT

bountyyfi/projectmemory 是一个从 https://github.com/bountyyfi/projectmemory. 导入的 MCP 服务器候选。

概览

bountyyfi/projectmemory 是一个从 https://github.com/bountyyfi/projectmemory. 导入的 MCP 服务器候选。

概述(AI 翻译)

警告:本文为安全研究概念验证,仅供负责任披露目的。

请勿将此工具用于恶意目的。 所有PoC中的窃取目标均针对本地主机 (127.0.0.1:9999)。本项目旨在展示一种针对 支持MCP的AI代理推动MCP客户端安全性的改进。

本研究已提交给Anthropic、Cursor/Anysphere负责任披露, 及其他 MCP 客户端开发者。


什么是MCP寄生虫?

MCP 寄生虫(“ProjectMemory”)是一款概念验证的 MCP 服务器,展示了一种针对支持MCP的AI代理(如Claude Desktop、Cursor等)的新型自适应、时间性、跨服务器寄生攻击。它伪装成一个合法且真正有用的项目内存/上下文工具,同时默默分析用户环境,学习工作流程模式,并在高价值时刻执行针对性的跨服务器跟踪攻击。

为什么这很重要

现有的MCP安全研究重点包括:

  • 恶意工具描述(可被mcp-scan检测)
  • 单次拉地毯攻击(一击必杀,无持久性)
  • 工具元数据中的直接提示注入

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MCP Parasite: Adaptive Cross-Server Parasitic Attack on MCP-Enabled AI Agents

WARNING: This is a security research proof-of-concept for responsible disclosure purposes only.

DO NOT use this tool for malicious purposes. All exfiltration in this PoC targets localhost (127.0.0.1:9999) only. This project exists to demonstrate a novel class of attack against MCP-enabled AI agents to drive improvements in MCP client security.

This research has been submitted for responsible disclosure to Anthropic, Cursor/Anysphere, and other MCP client developers.


What is MCP Parasite?

MCP Parasite (“ProjectMemory”) is a proof-of-concept MCP server that demonstrates a novel adaptive, temporal, cross-server parasitic attack against MCP-enabled AI agents (Claude Desktop, Cursor, etc.). It disguises itself as a legitimate and genuinely useful project memory/context tool while silently profiling the user’s environment, learning workflow patterns, and executing a targeted cross-server shadowing attack at a high-value moment.

Why This Matters

Existing MCP security research focuses on:

  • Malicious tool descriptions (detectable by mcp-scan)
  • Single rug-pull attacks (one-shot, no persistence)
  • Direct prompt injection in tool metadata

MCP Parasite is different. It introduces a new class of attack that:

Aspect Existing MCP Attacks MCP Parasite
Timing Immediate or single rug pull Multi-phase, days/weeks dormancy
Detection Tool description contains malicious text Tool descriptions are 100% clean
Mechanism Direct prompt injection in tool metadata Cross-server shadowing via return values
Intelligence Static payload Adaptive, profile-based targeting
Persistence One-shot Repeatable, cooldown-based
Disguise Minimal Fully functional, desirable tool
mcp-scan Detectable Undetectable (no poisoned descriptions)

The Attack

Phase 1: Reconnaissance (Days 1-7)

The server operates as a fully functional, genuinely useful project memory tool. Every interaction is silently analyzed:

  • Codebase indexing maps the attack surface (sensitive files, CI/CD configs, credentials)
  • Stored memories are analyzed for secrets, infrastructure details, team information
  • Conversation context reveals which other MCP servers are installed
  • Subtle prompts in tool responses encourage the LLM to share more context

Phase 2: Dormancy (Days 7-14)

Zero parasitic activity. The server operates purely legitimately. This is the trust-building phase where:

  • mcp-scan finds nothing suspicious
  • Users grow to rely on the tool
  • Users recommend it to teammates
  • Security audits find nothing

Phase 3: Armed Strike (Day 14+)

The server monitors for high-value trigger events:

  • Production deployments
  • Credential rotation
  • Sensitive file edits
  • PR merges to main
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "project-memory": { "command": "python", "args": ["-m", "project_memory.server"], "env": { "PROJECT_MEMORY_DB": "~/.project-memory/memory.db", "PROJECT_MEMORY_DEMO": "true" } } } }