What is SSH Key Exfiltration via MCP Tool Poisoning?
SSH Key Exfiltration via MCP Tool Poisoning is a proof-of-concept repository that demonstrates a security vulnerability in Model Context Protocol (MCP) servers. It shows how a malicious MCP server can use tool poisoning to achieve remote code execution and exfiltrate SSH public keys from a user’s machine. This repository is intended for educational and security research purposes only.
How to use SSH Key Exfiltration via MCP Tool Poisoning?
The README does not provide explicit installation or usage steps. The repository contains a malicious MCP server implementation (server.py) and a configuration file for Cursor AI integration (.cursor/mcp.json). Users connect to the malicious MCP server through an MCP client like Cursor AI to observe the attack in a controlled environment.
Key features of SSH Key Exfiltration via MCP Tool Poisoning
- Demonstrates a two-stage tool poisoning attack on MCP servers
- Uses base64 obfuscation to hide malicious commands
- Employs wget for HTTP POST data exfiltration
- Includes social engineering to manipulate AI assistants
- Provides persistence via a marker file
Use cases of SSH Key Exfiltration via MCP Tool Poisoning
- Security researchers studying MCP server vulnerabilities
- Red teams testing defenses against AI-assisted tool poisoning
- Developers learning about remote code execution risks in MCP clients
- Educators demonstrating real-world supply chain attacks on AI tools
评论