AaronCaiii/AgenticPentest
Sobre
Agent-powered red team testing workbench with asset mapping, threat modeling, multi-agent workflows, cloud assessment, reports and MCP.
Segurança e privacidadeO que você pode fazer
- Workspaces and teams - Local login and first-admin setup; administrator/operator/viewer roles, invitations, welcome messages and password management; isolated personal data and shared team workspaces.
- Dashboard - Asset, task, Agent and finding statistics; P0–P4 severity groups, candidate/confirmed states and filtered links into the corresponding records.
- Asset management - CSV/TXT/JSON import templates, source uploads, canonical target grouping; network, identity/credential, data, channel and personnel categories with task/evidence references.
- Asset mapping - Saved ports, services, addresses and findings; mind-map, tree and star layouts, drag/zoom, minimap, fullscreen directory and collapse; persisted layout and color preferences.
Crescimento medido de estrelas
- em 24 h
- +2
- em 7 dias
- +9
- em 15 dias
- +20
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
Original🛡️ AgenticPenTest
English | 简体中文 | 繁體中文 | Русский | Français | 日本語 | Deutsch
Community and contact
| Channel | How to join |
|---|---|
![]() For users in China: scan this WeChat QR code to add me; I will invite you to the discussion group. |
|
| Telegram | Planned |
| Discord | Join the community |
🌐 Read-only demo
Username
apt· Passwordapt1234567Browse synthetic assets, reports, and Agent workflows. The demo blocks task execution and data changes.
An LLM-driven red-team testing workbench for individual operators and local teams.
🎬 English operation demo · 43 seconds · MP4
https://github.com/user-attachments/assets/ffd3d60d-03da-4cb7-bdf0-cfb291d09975
Real UI actions with synthetic data: add an asset, select linked assets and save a plan. Task results are pre-seeded examples, not a live penetration test.
APTv1.1.4: The Agent workflow canvas shows the saved input source, targets, source samples, and the number of existing findings. The update settings page and usage guidance have also been revised.
Update note: An update can fail when a container uses a custom seccomp profile. This issue was fixed in v1.1.6.
v1.1.2: Read saved evidence in Burp Suite, keep editor syntax highlighting aligned with the selected language, and recover MCP connections after local address changes. v1.1.2.
v1.1.1: Agent teams with Leader review, a customizable workflow canvas, separate security assessment and security testing flows, contextual in-app guidance, and deployment preservation that tolerates MCP reconnect timestamps. Scope and validation. IP proxy pool: v1.2.
v1.1: Connected scanner workflows and portable MCP. Scope and validation.
v1.0.4: Background tool installation, automatic readiness checks and platform-aware downloads; registered hosts support administrator-confirmed updates with backup, restart and rollback.
v1.0.3 — a further update to v1.0.2: download supported tools directly from their catalog entries, with clearer runtime details and download controls.
🚀 Deployment
🐳 1. Pull and run the Docker image
The v1.0.4 image is based on Debian 12 (bookworm) and provides native linux/amd64 and linux/arm64 variants. Docker selects the matching architecture; no host Node.js or Python is required.
| Host environment | Container architecture | Validation |
|---|---|---|
linux/amd64 |
Verified on Ubuntu | |
linux/arm64 |
Image verified; a native Linux ARM64 host has not been tested | |
linux/arm64 |
Initialization and five core tool version checks verified | |
linux/amd64 |
Compatible image; Intel Mac not tested | |
linux/amd64 |
Use Linux containers; Windows host not tested |
These are Linux images, not native Windows or macOS images. Tool compatibility follows the container/execution server, not the browser's operating system. Full tool execution requires the relevant runtimes and supported Linux isolation; Docker Desktop does not supply the project's host network guard. Check each tool's compatibility and run readiness detection manually.
Docker installation: Windows / WSL 2 · macOS.
docker pull docker.io/johncoke/agenticpentest:latest
docker run -d --name agenticpentest --restart unless-stopped \
--cap-drop ALL --security-opt no-new-privileges:true \
-p 127.0.0.1:8765:8765 \
-e PUBLIC_ORIGIN=http://127.0.0.1:8765 \
-v agenticpentest-data:/var/lib/agenticpentest \
-v agenticpentest-tools:/opt/agenticpentest-tools \
docker.io/johncoke/agenticpentest:latest
http://127.0.0.1:8765 · Docker
🧩 2. Deploy with Docker Compose
This method uses the published image and persistent named volumes. Repository access is currently required to obtain the Compose file.
git clone https://github.com/AaronCaiii/AgenticPentest.git AgenticPenTest
cd AgenticPenTest
docker compose up -d --pull always --no-build
🛠️ 3. Install from source
Linux amd64 with Git and Python 3. The installer asks for an installation directory (default under /opt), port, LAN access and tool profile. It uses an existing supported Node.js or installs an isolated, checksum-verified runtime.
git clone https://github.com/AaronCaiii/AgenticPentest.git AgenticPenTest
cd AgenticPenTest
python3 scripts/install-source.py
Open the printed URL after initialization. A fresh instance asks you to create the first administrator; there is no default account or password. The authorization notice appears before account creation. Installer options, proxy and startup details.
Portable LAN access
For a laptop that changes networks, set AP_LAN_ACCESS=true, listen on BIND_HOST=0.0.0.0, and keep the published port in PUBLIC_ORIGIN. Connect to http://<current-private-IPv4>:<port> or its /mcp endpoint. Browser links, OAuth discovery and MCP challenges follow the validated current address; changing networks does not require editing PUBLIC_ORIGIN. Existing credentials remain tied to the same installation, and refresh tokens can continue through its new address. Each authorization flow retains its original issuer and resource binding. With no hostname configured, this opt-in mode accepts only private IPv4 literals (10/8, 172.16/12, 192.168/16) at that port; same-origin, login, permissions and revocation remain enforced. Default: disabled.
To keep desktop MCP client URLs unchanged too, set AP_LAN_HOSTNAME=workbench.local once to the host's actual Bonjour/Avahi name. The connection panel then provides http://workbench.local:<port>/mcp; mDNS resolves its current IP on the same local network. Only that exact configured name is allowed. Clients need local name resolution and network reachability; multicast-blocked Wi-Fi, separate VLANs and cloud connectors need managed DNS or a VPN. Existing IP URLs remain valid.
🔄 Upgrading
Installations at v1.0.4 or later update from System settings → Version updates. Only v1.0.1 needs one manual pass first.
🔄 Upgrade v1.0.1 → v1.0.4 (legacy installations)
First upgrade: manual. Later upgrades: from the interface. v1.0.1 cannot install this feature from its update-check screen. Follow one deployment path below, then register its host channel once. Stop tasks, tool installs and SSH connections first. Keep the database with its matching key, configuration, ports, environment and tool storage; never run docker compose down -v or initialize a new database over an existing installation. Commands below use Bash on Linux/macOS; Windows Docker users run host commands inside the appropriate WSL 2 Linux environment.
🐳 Docker / Docker Compose: first manual upgrade
Run on the Docker host, in the original deployment directory. Set AP_CONTAINER to the actual name (Compose commonly uses agenticpentest-workbench-1). The image namespace is read from that container. Pull before stopping it; copy its data only after it stops. Backups contain credentials: keep them private and allow space for the tool backup. If data or tools use a custom container path, replace that path with the one shown by docker inspect.
AP_CONTAINER=agenticpentest
AP_BACKUP="$HOME/AgenticPenTest-backups/v1.0.4-$(date +%Y%m%d-%H%M%S)"
umask 077
mkdir -p "$AP_BACKUP"
docker inspect "$AP_CONTAINER" > "$AP_BACKUP/container.json"
AP_OLD_IMAGE="$(docker inspect --format '{{.Image}}' "$AP_CONTAINER")"
AP_IMAGE="$(docker exec "$AP_CONTAINER" node -p "require('./config/distribution.json').image")"
docker tag "$AP_OLD_IMAGE" "$AP_IMAGE:rollback-before-v1.0.4"
docker pull "$AP_IMAGE:v1.0.4"
AP_TOOLKIT="$(docker exec "$AP_CONTAINER" node -p "process.env.TOOLKIT_ROOT || '/opt/agenticpentest-tools'")"
docker stop "$AP_CONTAINER"
docker cp "$AP_CONTAINER:/var/lib/agenticpentest/." "$AP_BACKUP/data"
docker cp "$AP_CONTAINER:$AP_TOOLKIT/." "$AP_BACKUP/tools"
Compose: set the original Compose file, absolute env-file path and project name. Repeat every original -f override in both commands. The code below preserves the env file and updates only AP_IMAGE; it does not rename volumes. Keep these files on the host for future updates.
AP_COMPOSE="$PWD/compose.yaml"
AP_ENV="$PWD/.env"
AP_PROJECT=agenticpentest
touch "$AP_ENV"
cp -p "$AP_ENV" "$AP_BACKUP/runtime.env"
python3 - "$AP_ENV" "$AP_IMAGE:v1.0.4" <<'PY'
from pathlib import Path
import re, sys
p = Path(sys.argv[1])
text = p.read_text()
line = 'AP_IMAGE=' + sys.argv[2]
text = re.sub(r'^AP_IMAGE=.*$', line, text, flags=re.M) if re.search(r'^AP_IMAGE=', text, re.M) else text.rstrip() + '\n' + line + '\n'
p.write_text(text)
PY
docker compose -f "$AP_COMPOSE" --env-file "$AP_ENV" -p "$AP_PROJECT" pull workbench
docker compose -f "$AP_COMPOSE" --env-file "$AP_ENV" -p "$AP_PROJECT" up -d --no-build workbench
Standalone Docker: the following recreation command is only for the unmodified quick-start configuration below. For a customized installation, reproduce its original ports, environment, volumes/bind mounts, network and security settings from the saved container.json; do not substitute the default volumes. Keep --cap-drop ALL --security-opt no-new-privileges:true for the managed standalone update path. The stopped old container is retained during verification.
docker rename "$AP_CONTAINER" "$AP_CONTAINER-before-v1.0.4"
docker run -d --name "$AP_CONTAINER" --restart unless-stopped \
--cap-drop ALL --security-opt no-new-privileges:true \
-p 127.0.0.1:8765:8765 \
-e PUBLIC_ORIGIN=http://127.0.0.1:8765 \
-v agenticpentest-data:/var/lib/agenticpentest \
-v agenticpentest-tools:/opt/agenticpentest-tools \
"$AP_IMAGE:v1.0.4"
Wait until health is healthy and the package version is 1.0.4, then open the original URL and sign in with the existing account. Check assets, models, tasks and reports. For standalone Docker, only after verification remove the stopped old container with docker rm "$AP_CONTAINER-before-v1.0.4" (no -v); retain the backup and rollback image. If startup fails, restore the saved data/key and original image/configuration before retrying.
docker inspect --format '{{.State.Health.Status}}' "$AP_CONTAINER"
docker exec "$AP_CONTAINER" node -p "require('./package.json').version"
🛠️ Source: first manual upgrade
These managed-source steps target Linux. Run as the existing non-root service owner in the current source directory. Replace AP_DATA, AP_UNIT and AP_ORIGIN with the actual absolute data path, service name and browser URL. If the old installation runs in a terminal, stop that process with Ctrl+C before copying data. Preserve existing external tool directories; back them up separately. Do not rerun the fresh installer or npm run init against this installation.
AP_SOURCE="$PWD"
AP_DATA="$AP_SOURCE/data"
AP_UNIT=agenticpentest.service
AP_ORIGIN=http://127.0.0.1:8765
AP_REPOSITORY="$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["repository"])' "$AP_SOURCE/config/distribution.json")"
AP_BACKUP="$HOME/AgenticPenTest-backups/source-v1.0.4-$(date +%Y%m%d-%H%M%S)"
umask 077
mkdir -p "$AP_BACKUP"
if systemctl is-active --quiet "$AP_UNIT"; then sudo systemctl stop "$AP_UNIT"; fi
tar -czf "$AP_BACKUP/data.tar.gz" -C "$AP_DATA" .
if [ -f "$AP_SOURCE/.env" ]; then cp -p "$AP_SOURCE/.env" "$AP_BACKUP/app.env"; fi
Clean official Git checkout: run the following only when git status --short is empty. Preserve custom changes first; never force-reset a dirty checkout or divergent history. This selects the published v1.0.4 tag rather than an arbitrary newer main commit.
cd "$AP_SOURCE"
git status --short
git rev-parse HEAD > "$AP_BACKUP/source-commit.txt"
git fetch origin main refs/tags/v1.0.4:refs/tags/v1.0.4
git merge --ff-only v1.0.4
ZIP installation, missing Git metadata, or divergent history: skip the previous Git block. Create a new sibling checkout, keep the old directory for rollback, copy its existing env file and reuse its absolute AP_DATA path and matching key. The new directory must not exist. Keep original external tool paths in the environment; after a directory change update the service WorkingDirectory/ExecStart/env-file paths. Do not copy an empty data directory over the original.
AP_PREVIOUS_SOURCE="$AP_SOURCE"
AP_SOURCE="${AP_PREVIOUS_SOURCE}-v1.0.4"
git clone --branch v1.0.4 "$AP_REPOSITORY" "$AP_SOURCE"
if [ -f "$AP_PREVIOUS_SOURCE/.env" ]; then cp -p "$AP_PREVIOUS_SOURCE/.env" "$AP_SOURCE/.env"; fi
if [ -d "$AP_PREVIOUS_SOURCE/.runtime/node" ]; then
mkdir -p "$AP_SOURCE/.runtime"
cp -a "$AP_PREVIOUS_SOURCE/.runtime/node" "$AP_SOURCE/.runtime/node"
fi
cd "$AP_SOURCE"
Both source paths: build in the selected checkout, retaining its existing environment. An isolated Node runtime is reused when present. Install the pinned cloud SDKs; configure download proxy environment variables if required. Then use the source service/registration steps below. Native Windows/macOS source processes can be upgraded manually with Git/npm, but do not support this Linux/systemd update channel.
cd "$AP_SOURCE"
export PATH="$AP_SOURCE/.runtime/node/bin:$PATH"
npm ci
npm run build
python3 scripts/setup-cloud-sdk.py --install
🔑 One-time host update-channel registration
Run on the deployment host as the user who manages Docker or owns the source service, not inside the web container and not as root. The registering user needs Docker access (or approved non-interactive sudo) or narrowly scoped service permissions. Enable the host SSH server and install Git/Python 3. Ubuntu/Debian preparation is below; on macOS enable Remote Login and ensure Git/Python 3 are available. Verify SSH key authentication locally; create ~/.ssh/authorized_keys first if absent. Do not replace existing keys.
sudo apt-get update
sudo apt-get install -y openssh-server git python3
sudo systemctl enable --now ssh
mkdir -p ~/.ssh
touch ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
On other Linux distributions use their SSH service/package names. Registration pins the local SSH host key and creates a separate key limited to the updater command. Do not mount the Docker socket in the workbench.
Updater SSH key
- Registration with
--applygenerates a dedicated key. The workbench reads<WORKBENCH_DATA>/updater/id_ed25519(Docker default:/var/lib/agenticpentest/updater/id_ed25519) using the adjacentclient.json. The host keeps the original key under the registration--state-dir, or~/.local/share/AgenticPenTest/updater/<installation-hash>/by default. It does not reuse~/.ssh/id_ed25519. - The key authenticates only to the registered updater: the SSH host key is pinned, and its
authorized_keysentry usesrestrict,command="..."to force the update command. It is not returned through HTTP or MCP. - On Linux/macOS, keep the registration and updater directories at
0700, andid_ed25519andclient.jsonat0600, readable only by their owning service/registration account. Keep private keys out of Git, images and logs. - To revoke access, first wait for any update/rollback to finish. Remove only the host
authorized_keysentry whose comment matchesAgenticPenTest updater <registrationId>, then remove that installation'supdater/client.jsonandupdater/id_ed25519, and its original key pair in the host registration directory. Preserve other SSH keys, application data and backups. Register again to create a new key.
Docker: use a v1.0.4 checkout matching the deployed image. If one is already available, cd to it; otherwise clone the repository recorded in the image. Choose another empty AP_HOST_SOURCE if that directory exists. Keep the variables from the upgrade step in this shell; AP_ENV must remain an absolute host path.
AP_REPOSITORY="$(docker inspect --format '{{ index .Config.Labels "org.opencontainers.image.source" }}' "$AP_CONTAINER")"
AP_HOST_SOURCE="$HOME/AgenticPenTest-host"
git clone --branch v1.0.4 "$AP_REPOSITORY" "$AP_HOST_SOURCE"
cd "$AP_HOST_SOURCE"
Compose registration: preview first, inspect the output, then apply:
python3 scripts/setup-platform-updater.py docker --container "$AP_CONTAINER" --env-file "$AP_ENV"
python3 scripts/setup-platform-updater.py docker --container "$AP_CONTAINER" --env-file "$AP_ENV" --apply
Standalone Docker registration: omit the env-file argument:
python3 scripts/setup-platform-updater.py docker --container "$AP_CONTAINER"
python3 scripts/setup-platform-updater.py docker --container "$AP_CONTAINER" --apply
The user must be able to pull the mapped image (docker login on the host when required). Registry downloads use the Docker daemon proxy; system-settings proxy only covers application/metadata traffic. On macOS the default SSH host is host.docker.internal; Linux uses loopback or the Docker bridge gateway. Add --host, --ssh-port or --host-key /absolute/path/to/ssh_host_ed25519_key.pub to both registration commands when defaults differ. Public metadata checks need no token. Preserve any existing network-guard integration and its re-registration permissions.
Source: retain an existing systemd unit and its runtime parameters. Check systemctl show "$AP_UNIT" -p User -p WorkingDirectory -p ExecStart -p EnvironmentFiles; it must run this exact checkout as the registering user and use the original data/origin. If an existing unit needs path changes, edit it with sudo systemctl edit --full "$AP_UNIT". Only if there is no unit, use the following template after stopping the foreground process. Set AP_TOOLKIT to the existing absolute tool path (for the sibling-checkout route, this may remain under the old directory). Do not overwrite an existing unit with the template.
AP_USER="$(id -un)"
AP_NODE="$(command -v node)"
AP_TOOLKIT="$AP_SOURCE/tools/toolkit"
if [ -x "$AP_SOURCE/.runtime/node/bin/node" ]; then AP_NODE="$AP_SOURCE/.runtime/node/bin/node"; fi
if ! systemctl cat "$AP_UNIT" >/dev/null 2>&1; then
sudo tee "/etc/systemd/system/$AP_UNIT" >/dev/null <<EOF
[Unit]
Description=AgenticPenTest
After=network.target
[Service]
Type=simple
User=$AP_USER
WorkingDirectory=$AP_SOURCE
EnvironmentFile=-"$AP_SOURCE/.env"
Environment="WORKBENCH_DATA=$AP_DATA" "PUBLIC_ORIGIN=$AP_ORIGIN" "TOOLKIT_ROOT=$AP_TOOLKIT"
ExecStart="$AP_NODE" "--env-file-if-exists=$AP_SOURCE/.env" "$AP_SOURCE/server.mjs"
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable --now "$AP_UNIT"
fi
If this installation already uses a Linux host network guard, refresh its registration to the new Node host PID after the first manual restart, preserving the original limits. Do this before source-channel registration so the updater recognizes the guard. Follow the existing guard procedure; do not remove its socket mount or weaken its policy to complete an upgrade.
Grant only start/stop access to this one service, validate the sudo rule, start the service, then preview/apply registration. If a rule already exists, have the administrator integrate these entries instead of overwriting it. Deployments with a host network guard additionally need its reviewed re-registration permission; the two service permissions alone do not grant that access.
AP_USER="$(id -un)"
AP_SYSTEMCTL="$(command -v systemctl)"
AP_RULE="$(mktemp)"
printf '%s ALL=(root) NOPASSWD: %s start %s, %s stop %s\n' \
"$AP_USER" "$AP_SYSTEMCTL" "$AP_UNIT" "$AP_SYSTEMCTL" "$AP_UNIT" > "$AP_RULE"
sudo visudo -cf "$AP_RULE"
if sudo test -e /etc/sudoers.d/agenticpentest-updater; then
cat "$AP_RULE"
sudo visudo -f /etc/sudoers.d/agenticpentest-updater
else
sudo install -m 0440 "$AP_RULE" /etc/sudoers.d/agenticpentest-updater
fi
rm -- "$AP_RULE"
sudo systemctl start "$AP_UNIT"
systemctl is-active "$AP_UNIT"
curl -fsS "$AP_ORIGIN/api/auth"
cd "$AP_SOURCE"
python3 scripts/setup-platform-updater.py source --source-root "$AP_SOURCE" --unit "$AP_UNIT" --data-dir "$AP_DATA" --origin "$AP_ORIGIN"
python3 scripts/setup-platform-updater.py source --source-root "$AP_SOURCE" --unit "$AP_UNIT" --data-dir "$AP_DATA" --origin "$AP_ORIGIN" --apply
✅ Subsequent updates and verification
- Open System settings → Version updates → Check for updates as the actual team administrator; entering personal workspace mode does not grant administrator rights. Confirm the host channel is connected.
- Select Update platform, enter the administrator’s current password and confirm. Checking alone never installs updates. The updater selects the checked official source revision and its matching architecture-specific image.
- Watch progress/logs while it downloads, backs up, restarts and validates. Browser refresh and the service interruption do not lose update progress; after success the page returns to the workbench. Failure triggers rollback.
- Verify the version/source revision and original records. Retain the database/key backup and a known-good rollback image. The updater cleans only this project’s eligible cache/images, keeping the running image and one verified rollback.
Supported automatic paths: Linux Compose, standalone Docker on Linux/macOS, and clean Linux Git + systemd source deployments. Codespaces, archive-only sources and native Windows/macOS source processes retain manual upgrades. If the channel cannot connect, check SSH, its pinned host key, permissions and host address. If an image is not published, wait for Actions rather than deleting volumes. Keep tool installs stopped during a platform update; they do not survive a workbench-server restart.
✨ Features
Docker includes MCP. Client setup and permissions.
| Module | Available capabilities |
|---|---|
| Workspaces and teams | Local login and first-admin setup; administrator/operator/viewer roles, invitations, welcome messages and password management; isolated personal data and shared team workspaces. |
| Dashboard | Asset, task, Agent and finding statistics; P0–P4 severity groups, candidate/confirmed states and filtered links into the corresponding records. |
| Asset management | CSV/TXT/JSON import templates, source uploads, canonical target grouping; network, identity/credential, data, channel and personnel categories with task/evidence references. |
| Asset mapping | Saved ports, services, addresses and findings; mind-map, tree and star layouts, drag/zoom, minimap, fullscreen directory and collapse; persisted layout and color preferences. |
| Plans and tasks | Agent/workflow selection, quick/full depth and applicable checks; concurrent execution, tool-selection reasons, step details, searchable logs, retained results, interrupt/resume and archive/trash. |
| Agent workflow canvas | Typed DAG workflows with immutable snapshots, Leader review before dependents, capability and tool-binding checks, resumable runs and a reusable node library. |
| Agent management | One Leader and eleven specialists, plus custom Agents; editable/resettable prompts, LLM translation, batch model assignment and explicit tool/workflow bindings. |
| LLM configuration | OpenAI Chat Completions/Responses, Anthropic and Gemini-compatible endpoints; custom Base URL, optional authenticated HTTP(S) proxies, connection tests and model discovery/manual IDs. SystemOne supports judgment tests, not text planning. |
| Tool management | Categories, search and pagination; file/ZIP upload and updates, source/runtime metadata, argument editing and execution preview, manual readiness checks and local or dependency-host adapters. |
| Cloud and hybrid assets | AWS, GCP, Azure and Alibaba Cloud China/International connections; official region selection, read-only assessment and hybrid correlation. Resource categories retain original service/type and meaning; search, filters and pagination (10 per page). Real cloud accounts remain unverified. |
| Proxy pool and egress | SOCKS5, HTTP CONNECT and WebSocket-tunnel nodes with primary/standby rotation, cooldowns, request budgets and windows, WAF signals, multi-hop chain relay, pinned C2 egress, automatic replacement and encrypted credentials. |
| Cloud orchestration | Fifteen backends from signed webhook through Alibaba Cloud ECS/FC, AWS EC2/App Runner, Azure VM/Container Apps, GCP Compute/Cloud Run, Tencent, Oracle, DigitalOcean, Vultr, Linode and Hetzner. Replacement creates first and releases after within a managed-instance limit; the four container backends also create the WebSocket tunnel service. |
| Scan result import | Nuclei/Nessus/Greenbone/Qualys/Rapid7; 50 MB/file; batch LLM retesting → threat modeling → PoC/Exploit drafts. |
| Security assessment | Evidence-assessment plans with materials and selected assets, gap-aware review, test-evidence items bound to published workflows, and review runs that retain their results. |
| Threat modeling | Editable STRIDE architecture and data flows, linked assets, version history and risk tracking; LLM proposals require explicit human acceptance. Create validation-plan drafts and export JSON, Markdown or HTML. |
| C2 servers | SSH/SFTP and jump/proxy connections, tabbed terminals, background-session recovery, connection/command history, private/shared Markdown notes, tags/groups, port connectivity and IP location. |
| Listeners and sessions | Server/OS/port selection, start/stop/cancel, live state/logs and a service overview; supported reverse-connection presets and configured forward WebShell adapters. |
| Engagements | Target scope, time windows, allowed/denied techniques and stop conditions; timeline execution details, result filtering and conversion of recorded events into findings. |
| Controlled execution chains | Policy and budget checks, verification/approval cards, registered actions, rollback results and evidence. Requires AP_CHAIN_EXECUTION=on and configured, ready action executors. |
| PoC/Exploit and review | Finding-linked AI drafts, model/language selection and requirement refinement; code editing, search, save/export and review on a configured execution node with live output. Generated code still needs review and compatible dependencies. |
| Findings and reports | Finding filters, confirmation and retest evidence; six templates—pentest, assessment, audit, black-box, white-box and MITRE ATT&CK—with multilingual Markdown/HTML export, bulk archive/trash and 30-day/7-day retention. |
| Settings and interface | Task/SSH/dependency/transfer limits, authenticated HTTP(S) proxies, database export and confirmed reset; administrator-confirmed platform updates through a registered host channel, with progress, backups and rollback; seven UI languages and light/dark themes. |
| Developer MCP | stdio and Streamable HTTP, 100 typed tools covering every non-secret domain, scoped credentials with expiry/revocation, OAuth PKCE, auditing, idempotent mutations, progress/cursor logs and saved job/report resources. |
AgenticPenTest displays an authorization acknowledgement and legal footer; administrators can manage the notice in system settings.
🚦 Open-source feature comparison
🟢 Implemented · 🔴 Not implemented · — Not confirmed in public documentation. Unconfirmed does not mean unsupported.
| Feature | AgenticPenTest | ARTEX | PentAGI | PentestGPT | Strix | Faraday |
|---|---|---|---|---|---|---|
| LLM Agent scheduling and actual tool execution | 🟢 | 🟢 | 🟢 | 🟢 | 🟢 | — |
| Web asset and finding management | 🟢 | 🟢 | — | — | — | 🟢 |
| Editable STRIDE architecture modeling | 🟢 | — | — | — | — | — |
| AWS / GCP / Azure / Alibaba read-only inventory | 🟢 | — | — | — | — | — |
| Scoped workspace MCP server: stdio + Streamable HTTP | 🟢 | — | — | — | — | — |
| Docker self-hosting | 🟢 | 🟢 | 🟢 | 🟢 | 🟢 | 🟢 |
| Administrator-managed domain/CIDR scope and kernel egress guard | 🟢 | — | — | — | — | — |
| Cross-task semantic memory with vector / graph storage | 🔴 | — | 🟢 | — | — | — |
| HTTP interception proxy | 🔴 | — | — | — | 🟢 | — |
| HTTP traffic recording and request replay | 🔴 | 🟢 | — | — | — | — |
| ScopeSentry asset synchronization | 🔴 | 🟢 | — | — | — | — |
| Dedicated external scanner report-import adapters | 🟢 | — | — | — | — | 🟢 |
The MCP row means a developer-facing server with workspace permissions, not merely an outbound MCP client or a coding-agent skill.
🖼️ Interface preview
🧭 First engagement
- Select personal or team mode, configure/test an LLM profile, and assign models to Agents.
- Install the tools you need, manually check readiness, then add/import assets or upload source material.
- Create a plan or task, select its Agent, workflow and depth; configure an engagement/policy when controlled actions require it, then start execution.
- Inspect steps and logs, follow linked assets/findings, resolve review gaps, and export a report. Interrupted work keeps its saved evidence.
🔌 MCP integration
MCP clients drive the workbench through the same backend as the Web UI. The 100 typed tools are limited by each credential’s permissions and account role.
Coverage spans assets and observations, engagements, plans and tasks, Agents, tools, findings and reports, scanner imports and retest batches, threat models, PoC, workflow canvases, assessments, cloud inventory, the proxy pool and C2 hosts. Credential entry, shell sessions, account/team administration and platform updates stay in the UI, because MCP retains inputs for idempotent retries.
View saved finding evidence in Burp Suite
- Build the Java extension with Java 21 and Maven using
mvn -f integrations/burp/pom.xml package. In Burp, open Extensions → Installed → Add, select Java, and loadintegrations/burp/target/agenticpentest-evidence-0.1.0.jar. - In the workbench, open System settings → Developers & MCP. Create a credential with only
burp:readand select the workspace that owns the finding. - Open the finding details, select View evidence in Burp, then Copy reference.
- In Burp's AgenticPenTest tab, enter the workbench's HTTPS
/mcpendpoint and the developer credential. HTTP is accepted only on loopback. Paste the reference from the same workbench and select Load evidence.
findings_burp_evidence reads saved evidence in the selected workspace. The extension displays the target origin and saved HTTP methods and status codes. It sends no requests to the target and does not export raw HTTP messages.
The screenshot shows an isolated fixture in Burp Suite. HEAD 204 is a saved observation.

🔑 Create a developer credential
Open System settings → Developers & MCP, choose the allowed personal/team spaces, default space, permissions and expiry, then confirm with your current password. Copy the credential when it appears: it is shown only once. Credentials last 1–90 days, with a 30-day default, and can be revoked from the same page.
| Permissions | Operations |
|---|---|
assets:read / assets:write |
Read assets, observations, cloud inventory, scanner imports and samples / import, update or retire assets and commit scanner imports |
agents:read / agents:write |
Read Agents, model metadata, tools and canvases / change prompts, bindings and canvas drafts |
tasks:read / tasks:execute |
Read plans, engagements, task progress and logs, assessments, PoC, proxy-pool and C2-host state / dispatch work, engagements, scanner batches, threat analysis, PoC, canvas runs, assessments and pool rotation |
reports:read / reports:write |
Read findings, threat models, templates and reports / save findings and threat models, generate and archive reports |
burp:read |
Read saved, scoped finding evidence in Burp Suite |
Task execution requires an operator role; changing Agent configuration requires an administrator role. Personal permissions apply only to the member's own space. Enable the chosen Agent, bind its LLM and tools, and manually check tool readiness before starting work.
🔗 Connect your client
Streamable HTTP: use your workbench's actual URL followed by /mcp, with Authorization: Bearer <developer-credential>. An optional X-Workspace-Mode: personal or team header selects the default space; the tool's workspace argument takes precedence. Use HTTPS when accessing the service across an untrusted network. OAuth authorization-code authentication with S256 PKCE is also supported.
⚙️ Example HTTP client configuration
{
"mcpServers": {
"agenticpentest": {
"type": "http",
"url": "https://workbench.example/mcp",
"headers": {
"Authorization": "Bearer <developer-credential>",
"X-Workspace-Mode": "personal"
}
}
}
}
This is a generic example: adapt transport names, configuration keys and secret storage to your MCP client. The detailed guide includes a JavaScript SDK example. A browser login cookie is not an MCP credential.
stdio: install Node.js ≥22.19 and this project's dependencies on the client machine, then configure the bridge below. The bridge connects to the running workbench; it does not create another database or scheduler.
⚙️ Example stdio client configuration
{
"mcpServers": {
"agenticpentest": {
"command": "node",
"args": ["<project-directory>/scripts/mcp-stdio.mjs"],
"env": {
"AP_MCP_URL": "https://workbench.example/mcp",
"AP_MCP_TOKEN": "<developer-credential>",
"AP_MCP_WORKSPACE": "personal"
}
}
}
}
Replace the script path, URL and credential. On Windows, use an absolute script path with forward slashes or escaped backslashes. Use the client's protected environment/secret configuration rather than committing tokens. AP_MCP_WORKSPACE must be a space allowed by the credential; omit it to use the credential's default.
▶️ Run a task and retrieve its evidence
- Inspect
capabilities_list,agents_list,models_listandtools_list. - Import your authorized lab assets with
assets_import; importing does not start a scan. - Call
jobs_createwith the returned asset ID and selected Agent ID. It creates a draft by default (startNow: false); explicitly calljobs_startto run it. - Poll
jobs_getfor progress andjobs_logsfor output. Pass the returneddata.nextCursorasafteron the next log request; each page contains at most 200 entries. - Read
observations_listandfindings_list, then usereports_generateandreports_getto retrieve a report. - For the other domains, start from
dashboard_summary,engagements_list,scanner_imports_list,threat_models_list,poc_scripts_list,flows_list,assessments_get,proxy_pool_getorc2_hosts_list; mutations follow the same idempotency rule.
All write tools require an idempotencyKey (8–120 letters, numbers or _.:-). Retry the same operation with the same key and input to avoid duplicates. Updates also require the current record version; see the guide for each tool's _rev/rev field. Disconnecting the client does not stop an accepted task: use jobs_interrupt or jobs_cancel; saved evidence is retained.
From v1.0.1, no license is required. A team administrator opens System settings → Network restrictions and confirms their current password. Configure authorized CIDRs and domain names. The range 0.0.0.0/0 permits IPv4 targets; ::/0 permits IPv6 targets. Special-purpose exclusions still apply. A rule such as *.example.com covers subdomains at any depth, but not example.com itself; add the root separately when needed. network restrictions
Detailed MCP guide: runnable examples, scopes, tool parameters, OAuth and troubleshooting · 中文指南.
🏗️ Architecture
%%{init: {'flowchart': {'wrappingWidth': 560}}}%%
flowchart TB
FRONT["`Frontend<br/>Browser UI · Vue / Element Plus / xterm.js<br/>Developer clients · MCP stdio bridge`"]
BACK["`Backend<br/>Node.js HTTP / Streamable HTTP MCP<br/>Authentication / workspace permissions / domain services`"]
AGENT["`Agent orchestration<br/>In-process queue · Leader + specialists · workflow canvas<br/>Bound LLM models · planning / decisions / cancellation`"]
TOOLS["`Tool execution<br/>Registered adapters · HTTP / DNS / TLS / native / uploaded tools<br/>Scanner imports · read-only cloud SDKs`"]
EGRESS["`Egress control<br/>Authorized target scope + kernel host guard<br/>Proxy pool: SOCKS5 / HTTP CONNECT / WebSocket tunnel<br/>Rotation · chain relay · budgets · cloud orchestration`"]
DATA["`Data storage<br/>SQLite WAL · scoped assets / findings / task logs<br/>Encrypted credentials · evidence / reports / uploads`"]
FRONT --> BACK
BACK --> AGENT
AGENT --> TOOLS
TOOLS --> EGRESS
BACK --> DATA
AGENT --> DATA
TOOLS --> DATA
🔄 Default Agent lifecycle
Default Agents are task participants, not permanently running processes. Only required enabled specialists participate; each uses its bound model and role prompt. Decisions use observed evidence. Completion reflects coverage, not merely tool exit codes.
flowchart TB
TASK["Task + responsible Agent"]
CHECK["Validate scope, inputs, enabled Agents and model bindings"]
QUEUE["Queue within concurrency limit"]
PLAN["Leader / selected specialists plan with their bound LLMs"]
SELECT["Select an applicable registered tool"]
RUN["Enforce policy, execute and archive evidence"]
MORE{"Continue within coverage and budget?"}
END["Finish: completed / partial / failed"]
STOP["Interrupt or cancel: retain existing evidence"]
RESUME["Resume: revalidate and reuse successful checkpoints"]
TASK --> CHECK --> QUEUE --> PLAN --> SELECT --> RUN --> MORE
MORE -->|Yes| SELECT
MORE -->|No| END
RUN -.-> STOP
STOP -->|Resume| RESUME --> CHECK
Dockerfile Container image build
compose.yaml Deployment with the published image
src/ Backend, execution adapters and MCP service
frontend/ Widget source
public/ Served UI and generated bundles
i18n/ Translation source
config/ Agent presets, tool recipes and migration baselines
scripts/ Build, installation, maintenance and stdio bridge
tests/ Feature tests and isolated fixtures
docs/ Guides, translated READMEs and screenshots
deploy/ Container runtime helpers
🤝 Documentation and contributions
- Cloud inventory, account sites and resource classification
- Threat modeling workflow and first-release scope
- MCP developer integration
- Complete usage and legal guide
- User guides
- Setup and data configuration
- Development and translations
- PR / Issue guidelines
Git does not include databases, model/SSH keys or test history. Initialization preserves existing data; back up SQLite and data/master.key outside Git.
Use the Bug report / Feature request issue forms and PR template. Include reproduction steps, environment and relevant validation; remove credentials and private target data.
✉️ Contact
From v1.0.1, no license is required.
Network scope setup
A team administrator opens System settings → Network restrictions and confirms their current password. Configure authorized CIDRs and domain names. The range 0.0.0.0/0 permits IPv4 targets; ::/0 permits IPv6 targets. Special-purpose exclusions still apply. A rule such as *.example.com covers subdomains at any depth, but not example.com itself; add the root separately when needed.
- Sign in as a team administrator and open System settings → Network restrictions → Edit test scope. Personal-workspace administrator status alone is insufficient.
- Enter one authorized CIDR per line, for example 10.20.0.0/16. Keep the internal ranges you still need; this form replaces the saved list.
- Enter one domain per line, for example app.example.com or *.example.com. URLs and wildcards in other positions are rejected. Use 0.0.0.0/0 in the CIDR field when all IPv4 targets are authorized; special-purpose exclusions remain active.
- Enter your current administrator password and save. All current DNS addresses are confirmed on save. If validation fails, the previous scope remains unchanged.
- Start a task for an in-scope asset and inspect its progress and logs. Out-of-scope tasks and MCP calls are rejected. Subprocess tools also require a ready Linux host guard.
- If DNS addresses move outside the saved scope, review and save the domain again. Scope changes can interrupt active tasks without deleting results. Restore internal restrictions resets the allowed list.
[email protected] — Replies within 24 hours.
Business cooperation and sponsorship: contact [email protected]. Sponsorship helps support continued development and maintenance.
Sponsors
This project is supported by GooAnn (谷安天下).
| Sponsor | Services |
|---|---|
![]() |
GooAnn (谷安天下) is a professional training provider with offices in mainland China and Hong Kong, China. gooann.com Its IT and cybersecurity certification training includes courses for OffSec certifications such as OSCP and OSWE, ISC2 certifications such as CISSP and CCSP, and ISACA certifications such as CISA and CISM. It also offers professional and online training, security awareness education, cybersecurity and digital risk consulting, and IT audit services. Explore training |
⚖️ Responsible use and license
Obtain target-owner authorization before testing, stay within its scope and comply with local laws. Unlawful use is prohibited; users are responsible for the consequences of their use. AgenticPenTest displays an authorization acknowledgement and legal footer.
Project-owned code is licensed under MIT. Third-party tools retain their own licenses.
☁️ Codespaces experience
Create a Codespace, wait for environment checks, dependency installation and initialization, then open port 8765 in the Ports panel. Read the authorization notice and create your own administrator; no default credentials are provided. Restarting preserves the database and installation identity.
This is a development experience, not permanent hosting. Keep the forwarded port Private. No maintainer network, credentials or proxy is required. Tools and cloud SDKs are not downloaded automatically. Without the trusted host guard, guarded tool and remote execution remain blocked; a license does not bypass this requirement. UI, asset management, manual threat modeling and report workflows are available; LLM/cloud operations need your own configuration. Verified in a real GitHub Codespace: automatic installation/build/initialization, private HTTPS forwarding, the 10-second authorization reader, administrator creation, asset import, refresh persistence, task/MCP public-target rejection, loopback HTTP and fail-closed tool execution. The optional GitHub port-trust screen appears before the application. Cloud accounts and external LLM providers remain unverified. Stop/delete the Codespace when finished; deletion removes its local data. GitHub quotas and billing apply.
python3 .devcontainer/lifecycle.py setup
python3 .devcontainer/lifecycle.py start
Execution support in the default Codespace
| Execution path | Status |
|---|---|
| Agent scheduling and built-in HTTP / DNS / TLS | Supported for reachable internal targets; requires your LLM configuration |
| Subprocess tools, including Nmap and uploaded executables | Blocked: trusted host guard unavailable |
| Remote commands, SSH terminals, listeners and WebShell execution | Blocked: equivalent remote policy enforcement unavailable |
The tested container has no systemd system service manager, read-only cgroups and denied namespace creation. Installing a systemd package alone cannot enable the guard. Environment checks record these prerequisites in reports/codespaces/environment.json; System settings → Network restrictions shows the supported transports and blocked execution paths. Internal means networks reachable from the Codespace; 127.0.0.1 is the Codespace itself. Full tool execution requires a Linux deployment with a registered, kernel-verified guard. Do not expose the Docker socket or disable the policy as a workaround.
⭐ Star History
💜 Sponsorship
Support continued development and maintenance of AgenticPenTest on Afdian.
MCP Verified
Explore projetos relacionados
Carregando…






