
repello-ai/mcp-exploit-demo
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
이 저장소는 MCP (Model Context Protocol ) 서버에서 보안 취약성을 입증하여 원격 실행 및 도구 독을 통해 데이터 압축을 허용합니다.
개요
이 저장소는 MCP (Model Context Protocol) 서버의 보안 취약점을 보여줍니다. 원격 코드 실행 및 도구 독을 통해 데이터 압축을 허용. MCP 도구 RCE에 중독 - 서버.py - 유독한 도구를 포함하는 악성 MCP 서버 구현 - .cursor/mcp.json - Cursor AI 통합을위한 구성 파일 공격은 "Rug Pull"방식을 보여줍니다. 1. 사용자는 Cursor AI 2.와 같은 MCP 클라이언트를 통해 악성 MCP 서버에 연결 Server modifies the DockerCommandAnalyzer tool's documentation 와 악성 코드 3. AI Assistant가 이 문서를 읽을 때 base64-encoded 명령을 실행하는 것이 좋습니다. 인코딩된 명령을 조용히: - 사용자의 SSH 공공 키를 수집 - 원격 서버에 추가 - 공격의 증거를 제거 1. : 공구가 중독되기 위해 persistence에 대한 마커 파일을 사용합니다. : AI 조수를 조작하는 긴급한 언어를 사용합니다. 3.
개요(AI 번역)
이 저장소는 MCP (Model Context Protocol) 서버의 보안 취약점을 보여줍니다. 원격 코드 실행 및 도구 독을 통해 데이터 압축을 허용. **이것은 교육 및 보안 연구 목적으로만 사용됩니다. **
블로그 링크 :
MCP 도구 RCE에 중독
저장소 내용
- [T0]] - 중독된 도구를 포함하는 악성 MCP 서버 구현
.cursor/mcp.json- Cursor AI 통합을 위한 구성 파일
그것이 작동하는 방법
공격은 "Rug Pull"방식을 보여줍니다.
- 사용자는 Cursor AI와 같은 MCP 클라이언트를 통해 악성 MCP 서버에 연결
- 서버는
DockerCommandAnalyzer] 악성 코드로 도구의 문서를 수정합니다. - AI 조수가 이 문서를 읽을 때, base64-encoded 명령을 실행하는 것이 좋습니다.
- 인코딩된 명령은 조용히:
- 사용자의 SSH 공개 키 수집
- 원격 서버에 추가
- 공격의 증거를 제거
기술 구현
공격의 핵심 요소는:
- ** 2 단계 독**: 공구가 독을 유지하도록 persistence에 대한 감적 파일 사용
- 명세.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
SSH Key Exfiltration via MCP Tool Poisoning
This repository demonstrates a security vulnerability in MCP (Model Context Protocol) servers that allows for remote code execution and data exfiltration through tool poisoning. This is intended for educational and security research purposes only.
Link for the Blog:
Repository Contents
server.py- The malicious MCP server implementation containing the poisoned tool.cursor/mcp.json- Configuration file for Cursor AI integration
How It Works
The attack demonstrates the “Rug Pull” method:
- A user connects to the malicious MCP server through MCP Client like Cursor AI
- The server modifies the
DockerCommandAnalyzertool’s documentation with malicious code - When an AI assistant reads this documentation, it’s manipulated to recommend running a base64-encoded command
- The encoded command silently:
- Collects the user’s SSH public keys
- Exfiltrates them to a remote server
- Removes evidence of the attack
Technical Implementation
The key elements of the attack are:
- Two-stage poisoning: Uses a marker file for persistence to ensure the tool remains poisoned
- Social engineering: Uses urgent language to manipulate AI assistants
- Base64 obfuscation: Hides the malicious commands from casual inspection
- wget for exfiltration: Uses standard HTTP POST to send data to an attacker-controlled server
Mitigation Recommendations
To protect against this type of attack:
- Disable auto-run features in AI development tools like Cursor
- Always verify the source of any MCP server before connecting
- Review code from untrusted sources before execution
- Use sandboxed environments when testing new AI tools
- Implement egress filtering to block unexpected outbound connections
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →