CyberStrikeAI 个人维护主线:日常修复、功能优化与验证;选定改动通过独立 fork 向上游贡献。
Go to file
Sycun 7d209533fd fix(pi,assessment): retry TLS handshake ECONNRESET, preserve active workers, and deduplicate inline host:port 2026-11-30 16:11:32 +08:00
.github/workflows feat(frontend): migrate to Semi Design and refresh workspace 2026-11-19 09:09:11 +08:00
agents fix(pi): warn plan_execute that unfinished todos block the run 2026-11-24 10:24:27 +08:00
cmd fix(tls): reuse the generated HTTPS certificate across updates 2026-11-13 11:09:49 +08:00
docs feat(pi): upgrade Pi SDK runtime to 1.7.0 and undici to 8.12.4 2026-11-29 20:17:17 +08:00
images docs(readme): refresh bilingual README and Semi Design screenshots 2026-11-26 18:03:52 +08:00
internal fix(pi,assessment): retry TLS handshake ECONNRESET, preserve active workers, and deduplicate inline host:port 2026-11-30 16:11:32 +08:00
knowledge_base Add files via upload 2025-12-20 18:13:32 +08:00
mcp-servers Update mcp_reverse_shell.py 2026-03-27 19:39:49 +08:00
plugins refactor(runtime): remove Eino and make Pi the sole agent engine 2026-11-11 12:45:32 +08:00
roles refactor(runtime): remove Eino and make Pi the sole agent engine 2026-11-11 12:45:32 +08:00
runtime/pi fix(pi,assessment): retry TLS handshake ECONNRESET, preserve active workers, and deduplicate inline host:port 2026-11-30 16:11:32 +08:00
scripts feat(frontend): migrate to Semi Design and refresh workspace 2026-11-19 09:09:11 +08:00
skills refactor(runtime): remove Eino and make Pi the sole agent engine 2026-11-11 12:45:32 +08:00
tools feat(proxy): add stable HTTP egress settings isolated from tools and models 2026-11-01 00:03:51 +08:00
web fix(assessments): prevent zero-intent planning spin and extract unlinked declared targets 2026-11-30 15:57:09 +08:00
.gitignore feat(frontend): migrate to Semi Design and refresh workspace 2026-11-19 09:09:11 +08:00
CHANGELOG.md feat(assessment): fuse global security base and deep assessment governance (v1.8.2) 2026-11-27 19:21:04 +08:00
LICENSE Add files via upload 2026-03-13 00:11:48 +08:00
README.md feat(pi): upgrade Pi SDK runtime to 1.7.0 and undici to 8.12.4 2026-11-29 20:17:17 +08:00
README_CN.md feat(pi): upgrade Pi SDK runtime to 1.7.0 and undici to 8.12.4 2026-11-29 20:17:17 +08:00
SECURITY.md Add files via upload 2026-07-07 14:06:29 +08:00
config.example.yaml feat(pi): enable native QuickJS-WASI codemode extension for batched tool orchestration 2026-11-29 22:10:17 +08:00
go.mod feat(plugin-hub): add plugin capability platform with embedded WebUI proxy and unified LLM gateway 2026-11-28 20:10:45 +08:00
go.sum refactor(runtime): remove Eino and make Pi the sole agent engine 2026-11-11 12:45:32 +08:00
requirements.txt fix(tools): declare Python parser dependencies 2026-11-13 10:29:50 +08:00
run.sh feat(runtime): introduce Pi agents and native workflow and retrieval engines 2026-11-11 09:19:14 +08:00
upgrade.sh fix: serialize installation updates and recover interrupted adoption and rollback 2026-10-09 10:58:12 +08:00

README.md

CyberStrikeAI

CyberStrikeAI

Describe goals or tasks, run tool-calling security agents, and record verifiable execution evidence.

中文 · English

Pi runtime CI Deep assessments CI Frontend build CI Self-update CI

CyberStrikeAI is an open-source cybersecurity agent workbench built with Go + Pi (Go backend + React / Semi Design frontend). It unifies interactive security chat, goal-driven Deep Assessments, and list-driven Batch Tasks, enabling security agents to orchestrate tools and record structured execution evidence.

This repository (Sycun/CyberStrikeAI) is forked from the original open-source AIPentest/CyberStrikeAI repository with its full commit history, copyright notices, and Apache-2.0 License preserved. Following the upstream project's transition to closed source, this repository is independently maintained and developed as an open-source branch by Sycun, former core maintainer of the official project.

Key highlights · Preview · Quick start · Execution modes · Capabilities · Architecture · Documentation · Feedback

Key highlights

  • Native Pi 1.7.0 agent runtime: Powered by native Pi session persistence, automatic context compaction, live mid-run steering (Interrupt & continue), and configurable reasoning-effort controls, with legacy Eino engine dependencies completely removed.
  • Goal-driven Deep Assessments workbench: Long-running autonomous assessments backed by a shared project Attack-Surface Graph, hot/cold archived Exploration Graph, prioritized Intent Queue, and receipt-backed Facts & Acceptance Evidence Matrix.
  • React 19 + Semi Design workbench: Modern single-page interface featuring unified detail drawers, project-grouped conversations, compact model/role pickers, domain/host/task vulnerability views, and one-click vulnerability retesting.
  • Multi-gateway compatibility & adaptive context: Supports custom per-channel auth headers (same-origin guarded for third-party gateways), automatic runtime context-window probing, local_auto profiles for local inference servers (oMLX, Ollama, etc.), DeepSeek economy profiles, and dedicated HITL review model testing.
  • Isolated HTTP proxy pool & self-hosted operations: Provides an HTTP testing proxy pool with failover isolated from model API traffic, supervisor-free One-Click Update preserving self-signed TLS certs and active sessions, plus previewable Storage Cleanup.

Workbench preview

Dashboard (Risk distribution & live metrics) Deep Assessments (Dark theme · Goals & progress)
Dashboard Deep Assessments Dark Theme
Deep Assessments · Exploration Graph (Intents, facts, findings & archive) Chat Console (Project groups, tool receipts & summary)
Exploration Graph Chat Console
Vulnerability Management (Domain/host tree & severity overview) MCP & Tool Management (External MCP status & built-in tools)
Vulnerability Management MCP Management

Quick start

1. Prepare the environment

Dependency Requirement Purpose
Go 1.25+; see go.mod Build the backend server and runtime builder
Node.js and npm Node.js 22.19+ Build and run the Pi worker (and optional frontend rebuilds)
Python 3.10+, with venv support Launcher and Python tool dependencies
Git Available on PATH Clone source and run Web one-click updates

You also need a model channel that supports tool calling, plus the local security tools or external MCP servers required by your tasks. The repository includes tool recipes, not preinstalled third-party security binaries. By default, run.sh configures temporary Go and PyPI mirrors for faster setup; set GOPROXY and PIP_INDEX_URL in your environment to override them.

2. Clone and start

Run the following commands in Bash on macOS or Linux:

git clone --branch main https://github.com/Sycun/CyberStrikeAI.git
cd CyberStrikeAI
cp config.example.yaml config.yaml

For local trials, set server.host in config.yaml to 127.0.0.1, then start the server:

bash run.sh --http

The script builds the Pi worker, creates a Python virtual environment, installs dependencies, and compiles the Go server (prebuilt frontend assets are already included under web/static/app/). Open http://127.0.0.1:8080/ by default, or check your terminal output for the active port.

Without --http, run.sh starts with HTTPS + HTTP/2 and generates a reusable local self-signed certificate when none is configured. For shared team deployments, see the deployment guide for bind addresses, TLS certificates, and access controls.

3. Complete the initial setup

  1. Sign in with the initial admin password printed under ADMIN SETUP REQUIRED in the terminal, then change it.
  2. Go to System settings → Basic → AI channel config, enter your provider, Base URL, API key, and model, then save it as the default channel (values in config.example.yaml are placeholders).
  3. Install the local tools needed for your engagement or connect external MCP servers, and verify each tool before assigning it to an agent role.
  4. For multi-user deployments, create separate member accounts, roles, and project scopes under Platform Access → Add Member.

Use config.example.yaml as the full reference. See configuration and configuration profiles for model channels, local models, and context sizing.

Manual build and frontend customization

After preparing config.yaml, you can build the Pi worker and Go server step by step:

bash scripts/build-pi-runtime.sh
go build -o cyberstrike-ai ./cmd/server
./cyberstrike-ai -config config.yaml --http

If you modify frontend source files under web/frontend/, rebuild the static bundle before starting the server:

cd web/frontend && npm ci && npm run build

Deployments require the runtime directory, web/static/, and a matching Pi worker bundle (or a fresh build on the target host); copying the Go binary alone is not sufficient to run agents. Prepare Python tool dependencies separately. See the Pi runtime guide.

Execution modes

CyberStrikeAI provides three complementary ways to run security work over a shared project asset library, tool permissions, and vulnerability records:

  • Chat: Interactive investigation and ad-hoc tool execution across single-agent, Deep, Plan-Execute, and Supervisor modes, with project-grouped conversations and live mid-run steering via Interrupt & continue.
  • Deep Assessments: Goal-driven persistent assessment workbench powered by native Pi sessions. Maintains attack-surface graphs, exploration graphs, prioritized intent queues, in-task operator Q&A, and receipt-backed acceptance criteria across pause/resume cycles. See the deep assessments guide (zh-CN).
  • Tasks (Task Management): Queue-based batch execution for explicit task lists. Open Tasks → New task (Task Management), enter one task per line, and configure project scope, role, agent mode, tool approval, concurrency, and optional Cron schedules. Inspect per-subtask results and conversations, or pause, resume, and edit subtasks from the queue detail view. See batch task management (zh-CN).

Capabilities

Capability What it provides Details
Pi agent orchestration Single-agent, Deep, Plan-Execute, and Supervisor modes with live steering and reasoning controls Agents and roles
Deep assessments Goal-driven planning, shared attack-surface graph, hot/cold exploration graph, intent queues, and acceptance matrix Deep assessments (zh-CN)
Batch task queues Concurrent task lists, Cron schedules, pause/resume, and subtask conversation logs Task management (zh-CN)
Tools, skills, and proxy pool YAML tool recipes, MCP connections, on-demand skills, and isolated HTTP egress proxy pool Tools · Skills · Proxy pool
Visual workflows Compose agent, tool, conditional, and human-approval nodes Workflows
Knowledge, evidence, and reports RAG retrieval, project facts, raw tool receipts, attack-chain analysis, and Word / Markdown reports Knowledge base · Reports
Project & vulnerability workspace Project-scoped asset library, domain/host/task vulnerability views, and one-click retesting Asset management
Human oversight & governance RBAC, human-in-the-loop (HITL) approvals, call guards, audit logs, and token monitoring Security model · HITL · Token usage
Integrations Burp Suite extension, browser DevTools extension, chat bots, and MCP federation Plugins · Bots · MCP

Specialized operations also include WebShell management and C2. Enable only the capabilities required for your authorized scope; a bundled tool recipe does not imply the underlying binary is installed or validated in your environment.

Architecture

Component Responsibility
Go server and schedulers HTTP/SSE APIs, deep-assessment and batch-queue scheduling, tool governance, storage cleanup, and evidence persistence
Pi runtime Pi 1.7.0 model interaction, agent tool loops, native session persistence, compaction, steering, and tool discovery
Tool gateway Dispatches local tools and MCP calls under role boundaries, permissions, HITL approvals, and output/timeout guards
SQLite and Pi sessions Business state, graph nodes, and raw tool receipts in SQLite; model transcripts and compaction entries in Pi sessions
Web workbench React 19 + Semi Design + Cytoscape frontend unifying chat, assessment graphs, task traces, and project assets

Browser and proxy plugins

Integration Usage Documentation and package
Burp Suite Send selected HTTP requests to CyberStrikeAI for analysis Setup · JAR
Chrome / Edge Capture and forward requests from the CyberStrikeAI DevTools panel Setup · ZIP

Updates and version migration

Fresh installations using config.example.yaml point updates to this repository by default:

update:
  repo: https://github.com/Sycun/CyberStrikeAI

When migrating an older installation, ensure update.repo is set to https://github.com/Sycun/CyberStrikeAI in config.yaml or under System settings → One-Click Update (leaving update.repo empty still points to the historical upstream URL, which no longer publishes open-source updates). One-click update pulls the latest source, rebuilds a matching Pi worker and server binary, and preserves existing self-signed TLS certificates and active sessions; see deployment for details.

Before upgrading from an older Eino-based release, back up your configuration and database and finish or export active workflow runs: legacy Eino binary workflow checkpoints cannot be resumed in this version. Historical records, configuration keys, and compatibility routes remain readable, with no legacy-engine fallback switch. See the Pi runtime and migration guide.

Validation and scope

Continuous integration covers Go backend tests, Pi runtime protocol checks, frontend builds, process isolation, HTTP proxy pool tests, and isolated regressions for deep assessments and batch queues; check GitHub Actions for current status. Automated checks do not replace live evaluation—model compatibility, token cost, and effectiveness on real targets depend on your configured model channel and environment.

Documentation

What you want to do Start here
Deploy and configure models Deployment · Configuration · Config profiles · Troubleshooting
Run assessments and batch queues Deep assessments (zh-CN) · Task management (zh-CN)
Customize agents, tools, and proxies Pi runtime · Agents and roles · Tool recipes · HTTP proxy pool
Integrate external systems API reference · API examples · MCP federation
Operate a team service Security hardening · Tool governance · Runbooks
Contribute and explore the repo Developer guide · Testing · Repository guide

Browse all topics in the English documentation or the bilingual index.

Feedback and contributions

As an independently maintained open-source branch, community bug reports, feature requests, and pull requests (including tool recipes, UX refinements, and regression tests) are welcome in Issues and Pull Requests. When reporting issues, please include the commit hash, OS, model protocol/channel type, reproduction steps, and redacted logs—never upload live API keys, credentials, or sensitive engagement data.

Thanks to the original authors and past contributors of the earlier open-source AIPentest/CyberStrikeAI project, as well as the Pi, MCP, and broader open-source communities.

License and intended use

Licensed under the Apache License 2.0 with the original commit history and copyright notices preserved; third-party components retain their respective licenses and notices. Use this software only on systems you own or have explicit written authorization to test, in compliance with your agreed scope and applicable law. See SECURITY.md for vulnerability reporting.