Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
XuanMu-RedTeam-Agent

XuanMu-RedTeam-Agent

> AI 编程
Free

玄幕安全团队开源汉化和修改的无需docker可在Kali Linux上直接运行的红队AI agent。

113 stars0 likes3 views
GitHub

About

English · 中文

Open-source red-team multi-agent collaboration platform with Blackboard-style shared reasoning graph.

Overview · Architecture · Blackboard · Quick Start


Security Notice

This project is intended only for authorized security testing, risk assessment, and academic research. Unauthorized use against any system, network, or data is prohibited. The authors are not responsible for any misuse or damages.


Overview

XuanMu (玄幕) is a control-plane-oriented red-team multi-agent platform built for authorized penetration testing, vulnerability discovery, code auditing, and security research.

It combines:

  • A React operator console (Playground + project workspace)
  • A FastAPI control plane (REST + WebSocket)
  • A session-based multi-agent runtime (lead + specialist agents)
  • A structured evidence plane (assets, findings, graph, attack paths)
  • A Blackboard shared reasoning graph (Cairn-inspired Fact-Intent coordination)

The design goal is to make agent-assisted security work operationally bounded and fully reviewable. Conversations are not the only source of truth — project scope, assets, findings, relationship graphs, attack paths, replayable timelines, and the agent's reasoning process are all persisted as explicit application data.


Architecture

…

Agent Team

Code Name Role
cso XuanMu (玄幕) Security Lead — task decomposition, coordination, reasoning
cae ShouZhuo (守拙) Code Audit Engineer
cie GuanXing (观星) Intelligence & Recon Engineer
cpe PoJun (破军) Penetration Testing Engineer
cre SuYuan (溯源) Reverse Analysis Engineer
cce PoZhen (破阵) Cryptography Engineer

Execution

Commands run directly on the host via Python asyncio subprocess — no Docker required. The execution layer supports:

  • Synchronous command execution with timeout
  • Background async job management with notification on completion
  • Output file reading by line range
  • Skill system (reusable tool definitions in .xuanmu/agents/skills/)
  • Knowledge base (structured methodology documents)

Blackboard

The Blackboard is a Cairn-inspired shared reasoning graph that enables Stigmergy — agents coordinate through a shared board instead of talking over each other.

Node Types

Type Meaning Lifecycle
Fact A confirmed, objective finding proposed → confirmed / rejected
Intent A declared exploration direction proposed → in_progress → confirmed / rejected / superseded
Hint Human or agent guidance persisted

How Agents Use It

1. read_blackboard()    — see the full picture
2. create_intent()      — declare direction before acting
3. [execute tools]
4. create_fact()        — record findings, link to parent intent
5. update_node_status() — mark dead ends as rejected

The Blackboard layer complements the existing evidence plane (Asset / Finding / GraphEdge): evidence records what was found, the blackboard records why we looked, what we found, what's next.

REST API

Endpoint Method Description
GET /api/blackboard/{project_id} Read Full blackboard graph snapshot
POST /api/blackboard/{project_id}/nodes Create New fact / intent / hint node
PUT /api/blackboard/{project_id}/nodes/{node_id} Update Change status / description
DELETE /api/blackboard/{project_id}/nodes/{node_id} Delete Remove a node

Technical Highlights

Feature Description
Multi-agent orchestration Lead agent coordinates specialists via delegation + blackboard
Structured evidence plane Assets, findings, relationship graph, attack paths — all persisted
Blackboard reasoning graph Cairn-style Fact-Intent graph for traceable agent reasoning
Replayable timeline Normalized timeline events streamed live or loaded as history
No Docker required Commands run directly on host via asyncio subprocess
Knowledge base Structured methodology documents agents can reference
Full web UI Chat playground + project workspace with graph visualization
Local-first LLM Direct OpenAI-compatible API calls — works with DeepSeek, Qwen, GLM, etc.

Quick Start

Prerequisites

  • Linux (Kali / Debian recommended)
  • Python ≥ 3.12
  • PostgreSQL (installed automatically by setup script)
  • Node.js ≥ 18 (for frontend build)

One-command setup

bash
git clone https://github.com/guaidao2/XuanMu-RedTeam-Agent.git
cd XuanMu-RedTeam-Agent
bash setup.sh

New user? Read the Getting Started Guide — from installation to your first project.

This will:

  1. Install system dependencies (PostgreSQL, Node.js)
  2. Configure the database
  3. Create a Python virtual environment and install dependencies
  4. Build the frontend
  5. Create start/stop scripts

Configure

bash
vi .xuanmu/config.json

Fill in LLM API keys, base URLs, and model names for each agent role. Example configuration uses DeepSeek — works with any OpenAI-compatible API.

You can also use the interactive config tool:

bash
bash config-tool.sh

It walks you through setting API keys, base URLs, and models for each agent without manually editing JSON.

Start

bash
bash start.sh

Open http://localhost:8000 — login with [email protected] / admin123.


Repository Layout

…

License

This project is licensed under the MIT License.


Acknowledgments

  • Cairn — Fact-graph based collaborative exploration protocol, which inspired the Blackboard architecture
  • Z3r0 — The original open-source red-team collaboration workbench this project was forked from

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

开发者工具

No comments yet. Be the first to share.

> Details

PublishedSep 9, 2026
UpdatedSep 18, 2026
CategoryAI 编程
PricingFree

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.