Skip to main content
Glama

基于 Claude、C2 与 MCP 的 AI 驱动红队测试

一个探索整合 Claude、模型上下文协议(MCP)以及命令与控制(C2)Mythic 的项目,旨在构建一个用于红队作战的 AI 驱动副驾驶。

该项目旨在让 Claude 能够通过 MCP 与 C2 能力交互,理解正在进行的作战的背景和结果,并根据交战期间收集的信息提供 上下文感知的推荐、攻击路径和后续行动

集成示意图

alt text

Related MCP server: BloodyAD MCP

要求

  1. uv

  2. python3

  3. Claude Desktop

  4. Mythic C2(使用 Docker 运行该服务)

  5. 一台运行在 VMware 中的 Windows 受害机

初步步骤

  1. 安装并运行 Mythic C2 服务器。你需要使用官方仓库并在 Docker 中运行它。仓库链接:Mythic 仓库

  2. 安装代理(Apollo、Apfell、Poseidon)和配置文件(HTTP、WebSocket)。

  3. 使用部分载荷生成一个载荷,发送到受害机。

  4. 在受害机上执行载荷,以在 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_adminmythic_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?
Install Server
F
license - not found
B
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables 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.
    16
    MIT
  • A
    license
    C
    quality
    D
    maintenance
    Enables 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.
    26
    6
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables 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.
    51
    MIT

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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