mythic-mcp
mythic-mcp
Mythic C2 프레임워크를 MCP 서버로 노출하여 LLM(Claude 등)이 대화형으로 에이전트를 운영하고, 작업을 발행하며, 플랫폼 데이터를 조회할 수 있도록 합니다.
기능
에이전트 관리 — 활성 콜백을 전체 세부 정보와 함께 나열, 개별 에이전트 검사, 에이전트 종료, 수면 타이머 변경
작업 실행 — 셸 명령, 파일 읽기/다운로드/업로드, mimikatz, make_token, 모든 Mythic 명령을 위한 일반 디스패처
플랫폼 데이터 — 자격 증명 저장소, 아티팩트 로그, 이벤트 로그, 파일 브라우저, 페이로드 목록, C2 프로필 상태
구조화된 응답 — 모든 도구는 신뢰할 수 있는 LLM 파싱을 위해
{"status":"ok","data":...}또는{"status":"error","message":...}를 반환합니다.내장 프롬프트 —
start_pentest및start_recon프롬프트 템플릿
Related MCP server: caldera-mcp
요구 사항
Python 3.10+
uv 패키지 관리자
실행 중인 Mythic 서버 (v3.x+)
설치
git clone <this-repo>
cd mythic-mcp
uv sync실행
위치 인수
uv run main.py <username> <password> [host] [port]uv run main.py mythic_admin mythic_admin_password localhost 7443환경 변수
export MYTHIC_USERNAME=mythic_admin
export MYTHIC_PASSWORD=mythic_admin_password
export MYTHIC_HOST=localhost
export MYTHIC_PORT=7443
uv run main.pyTLS 없이
uv run main.py mythic_admin password localhost 7443 --no-ssl서버가 출력 없이 조용히 시작되면 정상 작동 중입니다. MCP 메시지를 위해 stdio를 기다립니다.
Claude Desktop에 연결
설정 파일 찾기:
OS | 경로 |
Linux |
|
macOS |
|
먼저 uv 경로를 확인하세요:
which uvmcpServers 아래에 항목을 추가하세요:
{
"mcpServers": {
"mythic_mcp": {
"command": "/home/user/.local/bin/uv",
"args": [
"--directory",
"/path/to/mythic-mcp",
"run",
"main.py"
],
"env": {
"MYTHIC_USERNAME": "mythic_admin",
"MYTHIC_PASSWORD": "mythic_admin_password",
"MYTHIC_HOST": "localhost",
"MYTHIC_PORT": "7443"
}
}
}
}Claude Desktop을 완전히 종료하고 다시 실행하세요. 서버가 연결되면 채팅 UI의 도구 아이콘에 등록된 모든 도구가 표시됩니다.
도구
에이전트 / 콜백 관리
도구 | 설명 |
| 모든 활성 콜백을 전체 세부 정보(OS, 아키텍처, PID, IP, 수면, 프로세스, 페이로드 유형 등)와 함께 나열 |
| 표시 ID로 단일 에이전트의 전체 세부 정보 |
| Mythic에서 에이전트를 비활성으로 표시 |
| 수면 간격(초) 및 지터(%) 변경 |
작업 실행
도구 | 설명 |
| 에이전트의 기본 인터프리터를 통해 셸 명령 실행 |
| 대상에서 파일 읽기 ( |
| 파일을 다운로드하고 base64로 반환 |
| base64로 인코딩된 파일을 대상에 업로드 |
|
|
| mimikatz 실행 (예: |
| 일반 디스패처 — 이름으로 모든 Mythic 명령 |
플랫폼 데이터
도구 | 설명 |
| Mythic 자격 증명 저장소의 모든 자격 증명 |
| 아티팩트 로그 (파일, 레지스트리 키, 생성된 프로세스) |
| 작업 이벤트 로그 |
| 대상 디렉토리의 파일 브라우저 항목 |
| 빌드 상태 및 C2 프로필을 포함한 삭제되지 않은 모든 페이로드 |
| 실행 상태를 포함한 모든 C2 프로필 |
프롬프트
프롬프트 | 설명 |
| Claude가 특정 위협 행위자를 목표를 향해 모방하도록 설정 |
| Claude가 모든 활성 에이전트에서 초기 정찰을 수행하도록 설정 |
Claude에서의 사용 예시
Use the start_recon prompt.List all active agents, then run whoami on agent 1.Download /etc/passwd from agent 2 and show me its contents.Run mimikatz sekurlsa::logonpasswords on agent 3.Use execute_command to run 'ps' on agent 1 with parameters {"host": "."}.아키텍처
Claude Desktop
│ MCP stdio
▼
main.py (FastMCP tools + prompts)
│
▼
lib/mythic_api.py (MythicAPI class)
├─ mythic Python library → Mythic GraphQL/REST API
└─ httpx (raw GraphQL) → Mythic GraphQL endpoint모든 작업 호출은 60초 타임아웃으로 asyncio.wait_for를 사용합니다. GraphQL 요청은 Mythic의 자체 서명 인증서를 처리하기 위해 TLS 검증을 건너뜁니다 (verify=False).
환경 변수 참조
변수 | 기본값 | 설명 |
| — | Mythic 운영자 사용자 이름 (필수) |
| — | Mythic 운영자 비밀번호 (필수) |
|
| Mythic 서버 호스트명 또는 IP |
|
| Mythic 서버 포트 |
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- MIT
- AlicenseAqualityDmaintenanceConnects MCP-compatible AI clients to a MITRE Caldera adversary emulation platform, enabling natural language construction of attack scenarios, agent inspection, and operation management.18Apache 2.0
- Alicense-qualityDmaintenanceA full-featured MCP server providing seamless access to CustomGPT.ai APIs, enabling agent and conversation management through MCP-compatible clients.5MIT
- Alicense-qualityDmaintenanceExposes internal tools from agent harnesses (Claude Code, Codex, etc.) as a standard MCP server by intercepting LLM API calls.1MIT
Related MCP Connectors
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kyawthiha7/mythic-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server