HUB
Sign inSign up

johncoke/agenticpentest

By johncoke

•Updated 1 day ago

AI red-team workbench: assets, threat modeling, Agent tasks, cloud assessment, reports and MCP.

Image
0

10K+

johncoke/agenticpentest repository overview

AgenticPenTest

⁠🛡️ AgenticPenTest

English⁠ | 简体中文⁠ | 繁體中文⁠ | Русский⁠ | Français⁠ | 日本語⁠ | Deutsch⁠

⁠Community and contact
ChannelHow to join
WeChatWeChat QR code
For users in China: scan this WeChat QR code to add me; I will invite you to the discussion group.
TelegramPlanned
DiscordJoin the community⁠
⁠🌐 Read-only demo

https://apt.aqniukt.com/⁠

Username apt · Password apt1234567

Browse synthetic assets, reports, and Agent workflows. The demo blocks task execution and data changes.

Platform tour

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 environmentContainer architectureValidation
Linux x86-64 · Docker Enginelinux/amd64Verified on Ubuntu
Linux ARM64 · Docker Enginelinux/arm64Image verified; a native Linux ARM64 host has not been tested
macOS · Apple Silicon · Docker Desktoplinux/arm64Initialization and five core tool version checks verified
macOS · Intel · Docker Desktoplinux/amd64Compatible image; Intel Mac not tested
Windows 11 x64 · Docker Desktop / WSL 2linux/amd64Use 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

Use AP_LAN_ACCESS=true, LAN binding and the configured port. Validated private IPv4 origins serve browser/OAuth/MCP without editing PUBLIC_ORIGIN. AP_LAN_HOSTNAME accepts one exact Bonjour/Avahi name for stable desktop URLs. Authentication and permissions remain enforced; multicast reachability is required.

LAN setup and discovery limits⁠

⁠🔄 Upgrading

Back up the database with its matching key and configuration. Keep existing ports, environment and data/tool volumes; never use down -v.

With the restricted host channel registered, administrators can update from System settings → Version updates, with backup, progress and rollback. Older installations need an initial manual upgrade. Docker daemon proxy is configured on the host. Full setup is in the upgrade guide.

Docker Compose: docker compose pull then docker compose up -d --no-build. Standalone Docker: pull the new version and recreate using the original parameters and volumes. Source: stop the service, run git pull --ff-only, npm ci, npm run build, then restart. Preserve local changes and do not force-reset divergent history.

Full upgrade and backup steps⁠

⁠✨ Features

Docker includes MCP. Client setup and permissions⁠.

ModuleAvailable capabilities
Workspaces and teamsLocal login and first-admin setup; administrator/operator/viewer roles, invitations, welcome messages and password management; isolated personal data and shared team workspaces.
DashboardAsset, task, Agent and finding statistics; P0–P4 severity groups, candidate/confirmed states and filtered links into the corresponding records.
Asset managementCSV/TXT/JSON import templates, source uploads, canonical target grouping; network, identity/credential, data, channel and personnel categories with task/evidence references.
Asset mappingSaved 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 tasksAgent/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 canvasTyped DAG workflows with immutable snapshots, Leader review before dependents, capability and tool-binding checks, resumable runs and a reusable node library.
Agent managementOne Leader and eleven specialists, plus custom Agents; editable/resettable prompts, LLM translation, batch model assignment and explicit tool/workflow bindings.
LLM configurationOpenAI 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 managementCategories, 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 assetsAWS, 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 egressSOCKS5, 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 orchestrationFifteen 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 importNuclei/Nessus/Greenbone/Qualys/Rapid7; 50 MB/file; batch LLM retesting → threat modeling → PoC/Exploit drafts.
Security assessmentEvidence-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 modelingEditable 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 serversSSH/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 sessionsServer/OS/port selection, start/stop/cancel, live state/logs and a service overview; supported reverse-connection presets and configured forward WebShell adapters.
EngagementsTarget scope, time windows, allowed/denied techniques and stop conditions; timeline execution details, result filtering and conversion of recorded events into findings.
Controlled execution chainsPolicy 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 reviewFinding-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 reportsFinding 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 interfaceTask/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 MCPstdio 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.

⁠Feature comparison

View the maintained feature comparison⁠

⁠🖼️ Interface preview

📸 Static screenshots
DashboardAsset management
DashboardAsset management
Threat modelingTasks and evidence
Threat modelingTasks and evidence

⁠🧭 First engagement

  1. Select personal or team mode, configure/test an LLM profile, and assign models to Agents.
  2. Install the tools you need, manually check readiness, then add/import assets or upload source material.
  3. Create a plan or task, select its Agent, workflow and depth; configure an engagement/policy when controlled actions require it, then start execution.
  4. 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.

MCP setup and usage⁠

⁠🏗️ Architecture

View diagram on GitHub⁠

⁠🔄 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.

View diagram on GitHub⁠

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

Architecture details⁠.

⁠🤝 Documentation and contributions

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

WeChat official account: Aaron与安全的那些事

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.

  1. Sign in as a team administrator and open System settings → Network restrictions → Edit test scope. Personal-workspace administrator status alone is insufficient.
  2. 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.
  3. 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.
  4. Enter your current administrator password and save. All current DNS addresses are confirmed on save. If validation fails, the previous scope remains unchanged.
  5. 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.
  6. 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 (谷安天下).

SponsorServices
GooAnn (谷安天下)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

The default Codespace blocks subprocess and remote execution without the required host guard. Read setup and execution limits⁠

⁠⭐ Star History

View star history⁠

⁠💜 Sponsorship

Support continued development and maintenance of AgenticPenTest on Afdian.

💜 Support on Afdian⁠

⁠MCP Verified

M8ven Verified

Tag summary

Content type

Image

Digest

sha256:dc617330f…

Size

321.2 MB

Last updated

1 day ago

docker pull johncoke/agenticpentest