Mythic MCP
基于 Claude、C2 与 MCP 的 AI 驱动红队测试
一个探索整合 Claude、模型上下文协议(MCP)以及命令与控制(C2)Mythic 的项目,旨在构建一个用于红队作战的 AI 驱动副驾驶。
该项目旨在让 Claude 能够通过 MCP 与 C2 能力交互,理解正在进行的作战的背景和结果,并根据交战期间收集的信息提供 上下文感知的推荐、攻击路径和后续行动。
集成示意图

Related MCP server: BloodyAD MCP
要求
uv
python3
Claude Desktop
Mythic C2(使用 Docker 运行该服务)
一台运行在 VMware 中的 Windows 受害机
初步步骤
安装并运行 Mythic C2 服务器。你需要使用官方仓库并在 Docker 中运行它。仓库链接:Mythic 仓库
安装代理(Apollo、Apfell、Poseidon)和配置文件(HTTP、WebSocket)。
使用部分载荷生成一个载荷,发送到受害机。
在受害机上执行载荷,以在 Mythic C2 服务器上获得一个会话。
与 Claude Desktop 一起使用
要将 MCP 服务器部署到 Claude Desktop,我们需要使用开发者选项。你需要编辑 claude_desktop_config.json 文件来配置 MCP 服务器。配置格式如下:
{
"mcpServers": {
"mythic_mcp": {
"command": "/snap/bin/uv",
"args": [
"--directory",
"/path/to/mythic_mcp/",
"run",
"main.py",
"mythic_admin",
"mythic_admin_password",
"localhost",
"7443"
]
}
}
}在部署 Mythic 服务器后,要找到 mythic_admin 和 mythic_admin_password 凭据,你可以使用以下命令:
sudo ./mythic-cli config get admin_user
sudo ./mythic-cli config get admin_password使用方法
一旦你在 C2 中有一个活动会话,并且已将配置文件上传到 Claude,你可以使用 任何提示。不过,我们建议先运行几个验证提示,以确保 C2、Claude 和 MCP 服务器之间的连接正常工作。
验证可用的会话
How many sessions are currently available?验证可用的命令
Which commands are available?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
- FlicenseNot gradedqualityDmaintenanceA demonstration server that allows large language models to perform penetration testing tasks autonomously by interfacing with the Mythic C2 framework.78
- AlicenseNot gradedqualityCmaintenanceEnables Active Directory enumeration and abuse operations through the bloodyAD tool. Supports LDAP queries, user/group management, DNS operations, and security testing directly from AI assistants.16MIT
- AlicenseCqualityDmaintenanceEnables LLMs to perform Active Directory penetration testing using tools like NetExec, Bloodhound, Nmap, Certipy, and John the Ripper. Automates vulnerability discovery, attack path analysis, and documentation generation for security assessments.266MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to autonomously execute over 200 open-source penetration testing tools via MCP, including reconnaissance, web exploitation, and brute-forcing, through a unified server architecture with Docker sandboxing for safe execution.51MIT
Related MCP Connectors
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
MEOK MCP Hardening MCP — automated security red-team for any MCP server. Maps OWASP LLM Top 10
Offline methodology engine for authorized penetration testing, CTF, and security research.
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/johanrobbenites/MCP-IA-for-Offensive-Security'
If you have feedback or need assistance with the MCP directory API, please join our Discord server