AgentCapture

A deception-layer honeypot that fingerprints, blocks and reverse-recruits AI pentest agents through decoys, an MCP honeypot and a conversational C2 console.

Stars
★ 191
Last updated
3d ago
FARS reviewed
Dec 01, 2026
License
AGPL-3.0
Primary language
Python

At a glance

How it runs
Self-hosted serviceWeb app
Works with
Universal · cross-platform
Cost
Free, no paid service needed
Setup effort
Medium · a few setup steps
You'll need
Docker 24.0+ / Docker Compose 2.20+ (recommended deployment path)Python 3.11+ (native install and local development)Shell / CLINetwork accessLocal filesystemMCP Server
Typical use
A blue team adding deception coverage to several live web apps without touching business code: mount the middleware behind the existing Nginx, drop the JS probe, and route decoy paths through the same proxy.
Not a fit if
  • Teams that want a purely passive honeypot with no blocking or counter-recruitment.
  • Windows-server deployments — only Linux and macOS are documented.
  • Operators without written authorization for deception, credential capture and counter-offense.
Maintenance
Commits in the last 30 dayslast commit 2026-11-28

What does this agent do, and when should you use it?

AgentCapture is a self-hosted FastAPI deception platform that embeds itself in front of existing web systems and protocol services instead of replacing them. It runs a dual-plane design: a management plane (default port 4877, console under /agentcapture/) serving only the UI and APIs, and a web honeypot plane (default 48777) impersonating a vulnerable ThinkPHP site and carrying the bait faces — /AGENTS.md, /CLAUDE.md, /.cursorrules, a JSON-RPC MCP tool service at /mcp, a Developer-API portal at /portal/api/content, cloud-metadata bait at /latest/meta-data/, and file/credential traps under /d/*, /_bait/* and /_trap/*. Three decoy types (API-route, credential, file) work alone or bind into a download → API hit → login chain, while optional protocol honeypots emulate SSH (paramiko, ~40 commands, SFTP, per-command replay), MySQL, Redis, FTP, ElasticSearch and nginx-admin. A risk engine turns captured events into allow / observe / JS-challenge / persistent-isolation / block decisions, and a conversational C2 console holds recruited agents in a roster with natural-language tasking, listeners and task leases. It deploys via Docker (amd64/arm64 auto-detected) or a native venv + systemd install, stores data in SQLite WAL or PostgreSQL, and is licensed AGPL-3.0.

An end-to-end run looks like this: a visitor or automated client reaches an onboarded system, and the middleware plus reverse proxy inject hidden cues, canaries and session markers into pages, JS bundles, configs and manuals. Evidence is then recorded per surface — API-route decoy hits, file-decoy downloads, credential-decoy logins, beacon.js / recon.js telemetry, JSONP profiling and prompt canaries on the web side; on the protocol side the SSH honeypot accepts any password, transcribes exec, SFTP and interactive shell commands one by one, plants internal-host leads in the fake filesystem, and watermarked credentials (Bk2026!<session>) raise a lateral_credential_reuse alert the moment they reappear on another surface. The risk engine enforces allow / observe / JS challenge / persistent isolation / block, with an isolation list the console can extend and revoke. On the counter-offense side the platform exposes a Developer-API portal as functional camouflage, instruction-file baits (AGENTS.md / CLAUDE.md / .cursorrules) that agents read automatically, an MCP JSON-RPC tool service (query_customer_db, run_diagnostic …) where invocation equals enrollment, a paginated and row-watermarked poisoned dataset, canary cloud credentials behind /latest/meta-data/, and an HMAC-derived session canary token spanning page → API → registration → heartbeat. Every registration and heartbeat lands as a c2_recruit_hit event in the conversational C2 console at /admin/c2/console, where operators issue tasks through 8 natural-language presets and 9 operation primitives, gated by high-risk approval, task leases, multi-language beacon generation, listener tokens and an MSF panel. Outputs include an open /api/v1/* API, AI-SOC syslog (RFC5424/3164), multi-channel alerting, and a scripts/verify_decoy_chain.py smoke check of the three-decoy chain.

  1. A blue team adding deception coverage to several live web apps without touching business code: mount the middleware behind the existing Nginx, drop the JS probe, and route decoy paths through the same proxy.
  2. A SOC analyst who needs to know which scanner or AI pentest framework is probing the estate: fingerprint pages, /AGENTS.md and the /mcp bait identify Claude Code, Codex, Strix, HexStrike AI and peers by product.
  3. An incident responder suspecting a leaked database dump or config file: plant watermarked credential decoys and get an alert with session attribution the instant one is used.
  4. A red team running an authorized exercise that needs a contained target: the SSH honeypot absorbs lateral movement and replays every command for the after-action report.
  5. A threat-intel researcher collecting agent behaviour: the paginated poisoned dataset and cloud-metadata bait capture enumeration and SSRF attempts with per-row watermarking.
  6. An on-duty team that wants a wall display: the FUI situational big screen with a 3D attack globe, source pressure, hot-path load and auto-rotation.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • curl -fsSL https://raw.githubusercontent.com/Tcotl/AgentCapture/main/scripts/install.sh | bash
  • pip install -r requirements-dev.lock -r requirements-full.lock
Ports
8080 · 4877
Environment variables
SECRET_KEY HOST_PORT BOOTSTRAP_ADMIN_PASSWORD
Config files
.env.example .env.docker
Runtime
Python 3.11+
Install notes cover
macOS · Linux · Docker

How do you install or deploy this agent?

The fastest path is the official installer, which detects Linux / macOS and x86_64 / aarch64, prefers Docker, and falls back to a native venv + uvicorn deployment (registering a systemd service on Linux):

curl -fsSL https://raw.githubusercontent.com/Tcotl/AgentCapture/main/scripts/install.sh | bash

Installer flags include --docker, --native, --port, --dir, --admin-password, --no-start and --dry-run. The Docker quickstart is equivalent:

git clone https://github.com/Tcotl/AgentCapture.git
cd AgentCapture
chmod +x scripts/deploy.sh
./scripts/deploy.sh

Common deploy flags:

./scripts/deploy.sh --port 8080
./scripts/deploy.sh --admin-password 'admin'
./scripts/deploy.sh --platform linux/arm64 --pull
./scripts/deploy.sh --reset-data --yes
./scripts/deploy.sh --logs

Manual Docker Compose deployment requires a SECRET_KEY first — compose refuses to start without one and the app refuses the shipped example value outside dev mode:

cp .env.example .env.docker
openssl rand -hex 32   # paste the output into SECRET_KEY in .env.docker
HOST_PORT=4877 docker compose --env-file .env.docker up -d --build

Local development uses the hash-pinned lock files:

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.lock -r requirements-full.lock
uvicorn app.main:app --reload --host 0.0.0.0 --port 4877

Requirements as documented: Linux or macOS (Ubuntu 22.04+, Debian 12+, Kali 2023+ recommended), amd64/x86_64 or arm64/aarch64, 2 GB RAM minimum (4 GB+ recommended), 5 GB free disk, Docker 24.0+ with Compose 2.20+ for the container path, or Python 3.11+ for a native run.

How do you use this agent?

Default credentials are admin / admin; the first login forces you to change the console access path, and in production you should override BOOTSTRAP_ADMIN_USERNAME, BOOTSTRAP_ADMIN_PASSWORD, BOOTSTRAP_ADMIN_EMAIL and SECRET_KEY via .env.docker or deploy flags. The entry points are (management plane 4877, honeypot plane 48777 by default):

# Management plane
http://127.0.0.1:4877/agentcapture/                          # console login (default security path)
http://127.0.0.1:4877/agentcapture/admin/big-screen          # situational big screen
http://127.0.0.1:4877/agentcapture/admin/honeypot-sessions   # SSH session replay
http://127.0.0.1:4877/healthz

# Web honeypot plane
http://127.0.0.1:48777/              # ThinkPHP facade
http://127.0.0.1:48777/mcp           # MCP tool-service honeypot
http://127.0.0.1:48777/AGENTS.md     # instruction-file bait (plus /CLAUDE.md, /.cursorrules)
http://127.0.0.1:48777/portal/api/content  # Developer-API camouflage portal
http://127.0.0.1:48777/latest/meta-data/   # cloud-metadata bait

Note that outside dev mode the root of the management plane returns 404; the console lives under the security path (/agentcapture/ by default) while /admin answers 404 so scanners cannot discover it. After deployment, run the chain self-check to verify admin login, API-route decoy creation, credential decoy creation, file decoy binding, deployment/download, the API hit and the credential login in one pass:

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

What are this agent's strengths and limitations?

Pros
  • Agent-centric detection: product-level fingerprints for 23 mainstream agents plus prompt canaries, browser beacons and headless/WebDriver signals, where most honeypots stop at exploit signatures.
  • Functionality-camouflaged recruitment: the visible Developer-API portal, AGENTS.md baits and the /mcp JSON-RPC tool service enroll automated clients through documented API usage rather than instruction-following, which alignment training cannot filter out.
  • High-fidelity SSH honeypot with per-command terminal replay and session-watermarked credentials (Bk2026!<session>) that attribute a reused secret to the exact honeypot session.
  • Dual-plane architecture: when the management console (4877) is down or being upgraded, the honeypot plane (48777) keeps serving baits, so the deception chain never breaks.
  • Cheap to stand up: one-command Docker deployment with amd64/arm64 auto-detection and SHA-256-pinned lock files for reproducible installs.
Limitations
  • Documented OS support is Linux and macOS only; no Windows deployment path is described.
  • Ships with admin/admin defaults and a publicly documented demo login, so hardening SECRET_KEY, console path and admin password is mandatory — and easy to skip.
  • Counter-offense features (conversational C2 console, MSF panel, credential capture, prompt injection) carry legal and compliance exposure; the README offers only a general authorization notice.
  • The headline benchmark is self-reported: 13 agents and 49 registrations from the maintainer's own run, with no third-party reproduction, and the fingerprint count is stated as 23 in one section and 30+ in another.
  • AGPL-3.0 copyleft: embedding it in a proprietary product or offering it as a SaaS requires releasing the source under the same terms.
  • The Vercel demo cannot persist SQLite across cold starts and cannot run protocol honeypots, so it does not represent a self-hosted deployment.

How does this agent compare with similar options?

Against the traditional honeypots the README sets it beside: classic honeypots are passive deception — disguise a target, wait for a hit, record and analyze, with detection as the end point, often banner-level SSH, enforcement delegated to external devices, and attribution limited to source IP plus timestamp. AgentCapture layers enforcement and counter-control on top: five-tier decisions are enforced natively (challenge / isolate / block), it fingerprints AI agent products, it attributes page → API → registration → heartbeat through a session canary token, and it recruits automated clients into a C2 roster through functional camouflage. The trade-off is heavier onboarding and much higher legal/compliance overhead.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
AgentCapture This agent 41 · Major gaps Self-hosted serviceFree ★ 191 3d ago Python —
Orca AI Incident Archive 60 · Some gaps — ★ 632 4d ago HTML —
laya-guard 77 · Good — ★ 41 9d ago Python Codex · Claude Code
Argus Agent Red Team 74 · Some gaps CLIFree + model costs ★ 219 today Python OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
41/ 100 5-point scale 2.1 / 5
Trust 11/29
Reliability 6/14
Adaptability 9/18
Convention 8/18
Effectiveness 4/13
Verifiability 3/8
Why each dimension lost points
Trust11 / 29 · 1.9/5

Least privilege: main.py disables openapi/docs/redoc, blocks sensitive static suffixes (.py/.key/.env), and sandboxes cloned previews with CSP, showing some hardening; however high-risk capabilities (C2 console, MSF panel, SSH/MySQL honeypots) ship enabled by default with no evidence of default-off or tiered authorization, deducted. User confirmation: README mentions high-risk task approval and task leases, but the sampled code does not show the approval implementation, so it is asserted only, deducted. Data-flow transparency: README has an architecture diagram and mermaid data flow, but does not detail where captured data (credentials, session transcripts, fingerprints) is stored, retained, or access-controlled, deducted. Sensitive data: day-based retention and alert channels exist, but no encryption, redaction, or access-audit implementation is visible in the sample, deducted. Dependency security: pyproject gives bounded ranges and claims requirements.lock pins exact versions, which is reasonable, but the lock file is not in the sample and cannot be verified, scored 2. External effects: the product actively recruits/counter-controls AI agents and issues natural-language directives, a strong external side effect, with no visible boundary constraints or impact assessment for third-party systems, deducted. Rollback: README says rollback equals removing config, but no concrete rollback script or data-cleanup procedure is shown, deducted. Source attribution: session canary tokens and credential watermarks support attribution, but publisher identity is unverified and no copyright/maintainer attribution appears in the repo, deducted.

Reliability6 / 14 · 2.1/5

Self-consistency: README says 30+ fingerprints in one place and 23 product-level fingerprints in another, an inconsistency; the 'all 13 captured' claim also sits in tension with the later note that three previously never registered and converted later, deducted. Dependency availability: dependencies are mainstream PyPI packages with ranges and optional extras cleanly separated, scored 2; but the missing lock file prevents verifying reproducible installs. Failure messages: main.py comments explain a Starlette 1.x form-parser limitation, but overall error handling and user-facing failure messaging are sparse in the sample, deducted.

Adaptability9 / 18 · 2.5/5

Audience and scenarios: README clearly targets security monitoring, red/blue teaming, and internet-system onboarding, with a concrete use-case list, scored 2. Capability boundaries: it claims strong capabilities (counter-offense/recruiting AI agents) but does not clearly define lawful-authorization prerequisites, prohibited uses, or collateral-damage risk, deducted. Trigger precision: fingerprinting, canaries, and headless signals are described, but thresholds, false-positive rates, and tuning methods are absent, deducted. Environment fit: supports Docker, amd64/arm64, SQLite/PostgreSQL, and Vercel serverless, a good environment spread, scored 2.

Convention8 / 18 · 2.2/5

Information architecture: README is well structured (intro, features, architecture, use cases, quick start, capability matrix), scored 2. Install notes: deploy.sh and Docker Compose are mentioned, but the sample lacks a complete quick-start command list and environment-variable inventory, deducted. Naming stability: package name agent-capture-honeypot differs from repo name AgentCapture, and version 0.7.0 is early-stage, deducted. Examples and FAQ: screenshots and a live-test matrix exist, but there is no FAQ or copy-paste minimal example, deducted. Known limitations: only scattered mentions (Starlette 1.x limitation, 'identification is not immunity'), no systematic limitations section, deducted. License: LICENSE is the full AGPL-3.0 text and pyproject declares AGPL-3.0-or-later, consistent and explicit, scored 3. Versioning/changelog: a version number exists but no CHANGELOG, deducted. Maintenance responsibility: no maintainer, contact, or governance statement, and the publisher is unverified, deducted.

Effectiveness4 / 13 · 1.5/5

Output usability: console, big screen, session replay, and C2 roster outputs exist, but the sampled code does not show export formats or API contract details, deducted. Marginal value: differentiation versus traditional honeypots (functional-camouflage recruitment, session-canary attribution) is argued, but lacks independent reproduction and relies on self-report, deducted. Cost-benefit: deployment looks lightweight, but running multi-protocol honeypots and a C2 control plane carries operational and legal-compliance cost that README does not quantify, deducted.

Verifiability3 / 8 · 1.9/5

Claim traceability: extensive performance and recruitment figures (49 registrations, 6-second heartbeat) appear only in README and screenshots, with no raw logs or reproducible scripts, deducted. Cross-source corroboration: screenshots, architecture diagrams, and code snippets partially align, but key benchmarks have no third-party or independent corroboration, deducted. Fact/inference separation: README mixes 'live test results' with inferential conclusions (e.g., 'the model factor drops to zero') without labeling evidence levels, deducted.

Risks and how to mitigate them
  • The product includes active counter-offense, AI-agent 'recruitment', and a C2 console issuing natural-language directives; confirm lawful authorization and applicable law before deployment to avoid unauthorized impact on third-party systems.
  • Benchmark figures (recruitment rates, registration counts) come only from self-report and screenshots, not independent reproduction, and should not be the sole basis for procurement or security decisions.
  • Publisher identity is unverified and no maintainer or security-disclosure channel is visible in the repo; audit the source and pin dependency versions before production use.
  • The C2 console, MSF panel, and multi-protocol honeypots ship enabled by default; assess the exposure and collateral-damage risk of default-on behavior.
  • README statements are inconsistent (e.g., 30+ vs 23 fingerprints); treat its capability metrics with caution.
Evidence confidence: Low Reviewed Dec 01, 2026 Reviewed revision afb6f8349e0d
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/agentcapture.svg)](https://followagents.com/en/agents/agentcapture)
<a href="https://followagents.com/en/agents/agentcapture"><img src="https://followagents.com/badge/agentcapture.svg" alt="FARS review"></a>

FAQ

Does the platform itself need an LLM API key or a model subscription?
No. AgentCapture is a self-hosted honeypot and counter-offense platform that does not call any model at runtime; the GLM-5.3-Flash backend mentioned in the README was used by the maintainer only to drive the agents under test. The software is free under AGPL-3.0; your costs are servers and operations.
Can I run it on Windows?
The README lists Linux and macOS only (Ubuntu 22.04+, Debian 12+, Kali 2023+ recommended) on amd64/x86_64 or arm64/aarch64. Windows is neither supported nor documented, so treat it as unvalidated.
What happens to the baits if the admin console goes down?
They keep working. Only the management plane (default 4877) hosts the console and APIs; the honeypot plane (default 48777) is a separate process serving every bait face. The honeypot plane is observe-only end to end — scoring, events and alerts still fire, but nothing is blocked, which keeps the deception chain intact.
What evidence shows an agent was actually recruited?
Recruitment is chained by an HMAC-derived session canary token across page → structured API call → documented client registration → periodic heartbeat. Each registration emits a c2_recruit_hit event into the C2 roster with canary attribution, after which operator tasks can be delivered over the documented heartbeat channel with task leases and approvals.
How much should I trust the published live-test numbers?
The README documents a 2026-11-02/03 rerun with 13 deployed subjects, 49 registrations and matching c2_recruit_hit events, illustrated with screenshots — but it is maintainer-reported data with no independent reproduction, and the fingerprint count appears as both 23 and 30+ in different sections. Treat the direction as credible and the exact figures as unverified.
Was this page helpful?
View on GitHub ↗ Install ↓

Related concepts