One machine, many rooms
Everything runs on one Docker host. What keeps it safe is not one big wall, but many small rooms.
RedAmon is split by how much each part must be trusted, so the parts that face danger never hold the keys.
Why a pentest platform is hard to protect
Model providers, OSINT services, GitHub, and the logins of the apps you test.
Every probe and exploit lands on a machine someone else controls.
Page titles, headers, error messages, package code. Some of it is written to trick an AI.
The answer: four rules
- The parts that hold the keys never touch a target.The web app, the orchestrator and Docker itself stay away from the targets.
- The parts that touch the targets hold no master key.The Kali sandboxes and the scanners carry only narrow, short-lived credentials.
- The parts that open untrusted input get a network of their own.No other RedAmon service is on it, so there is nothing next door to reach.
- Code written by other people runs in a locked room with one door.Plugins reach RedAmon only through a gateway that checks every call.
The eight kinds of box on the map
Networks: walls between rooms
Docker networks are the walls between the rooms. RedAmon uses twelve kinds of them.
A container can only reach containers on a network it shares. Each network is a wall around one kind of work.
What to notice on the map
- The main room. The web app, the agent and the two databases share
redamon-network. - The orchestrator's own room. It can start containers, so it sits apart, and only the web app holds the key to call it.
- One small network per person. Each person's Kali sandbox gets its own, shared only with the agent that drives it and the capture proxy.
- Boxes across a border are on both networks, on purpose. The web app is on three; the plugin gateway, the capture proxy and Neo4j are on two.
- Scans use the host network. Some scanners need raw packets and the machine's own view of the network.
- Untrusted input gets a network made for it. TruffleHog, the package analyzer and the CodeFix sandbox each run with no RedAmon neighbour.
The plugin networks are refused, not weakened. They are internal, with Docker's isolated gateway mode, so they have no internet and no address on the host. That needs Docker Engine 28 or newer; on an older engine redamon.sh refuses to install or start RedAmon rather than run plugins with weaker isolation.
Every call carries a key
Twelve keys, each carried by one kind of caller and checked by one receiver.
Sharing a network only lets a box knock. The key it presents decides what it may do, and every key opens as little as possible.
Four families of key
A sign-in cookie in your browser, or a personal token for your own AI agent.
A ticket that dies after 60 seconds and opens one socket.
The master key and the orchestrator key, never given to anything that touches a target.
Credentials made for one scan or one terminal, bound to one project and its owner, with short lives.
Pick a key below to see who carries it, what it opens and what it never reaches.
Two identities on every request
The tenant
The project's owner: whose data, keys and budget the request touches.
The actor
The person acting: whose permissions are checked, and who is written to the audit log.
So a collaborator's scan spends the owner's keys only with the owner's consent, and the audit says who pressed the button.
Who trusts whom
Eight levels of trust, from the boxes that hold the keys to code nobody vouches for.
The closer a box is to the targets, the less it is trusted, and the less it holds.
If a target took over a Kali sandbox
What it would not find
- A database password
- A model provider key
- The master key or the orchestrator key
- Anyone else's projects: every person has their own sandbox
- Secrets in its shells: they start with every secret stripped
All it would find
- Its own two tokens, made when it started
- The folders of its own person's projects
- A short-lived, read-only way to query the graph through the agent
The scanners follow the same rule: each carries only a credential for its own scan. The ladder below runs from the most trusted box to the least.
Honest about what is not yet split. The agent loads every secret of the install, so it is trusted more than its job strictly needs. That is recorded, with the reason, in RedAmon's threat model.
The front door
What can reach RedAmon depends on where it runs: your own computer, or a server on the internet.
On your own computer RedAmon trusts your network. On a server, one HTTPS door faces the internet and everything else is closed.
On your computer
- No proxy and no TLS.
- The web app (3000) and the agent's live connection (8090) listen on your network.
- Every other service listens on 127.0.0.1, the machine itself, or on no port.
- Reverse shells reach your Kali sandbox through your own tunnel.
- Right for a laptop, or a lab on a network you trust.
On a public server
- nginx with TLS is the single public door.
- It forwards only the web app and the agent's four live-connection paths.
- It strips forged headers, allows five sign-ins a minute, and answers 404 for every internal route.
- Ports 3000 and 8090 are re-bound to 127.0.0.1.
- A firewall in the cloud and on the host stands in front of nginx.
Three gates, and the firewall comes first
Configured in your provider's console. A refusal looks like a timeout.
Filters by port and address; it cannot see a URL. Also a timeout.
Sees the path: rate limits, the optional gate, and 403 or 404 for what is not allowed.
The MCP endpoint for outside AI agents is off on a server until you switch it on. Then it has its own address list, its own rate limit and a 64 KiB body cap, and it is refused outright on a server without TLS.
People and permissions
Root, admins, members and collaborators, and the AI agents and plugins that act for them.
One policy, in one place, decides who may do what on which project, and every request is checked against it again.
- Checked on every request. Your role, status and session version are read from the database each time, so a change counts from your next click.
- Spending someone's keys needs their consent. A collaborator's scans and agent chats run on the project owner's keys, and only once the owner agrees.
Who can act
One per install. Manages admins and the security policy; break-glass reads are Root-only, time-boxed, audited, and the owner is told.
Narrowed by an admin profile. Full admins and security auditors can open any project read-only, without raw data, files or anyone's conversations, and the owner sees it.
Hold a permission set: default member, read-only analyst, recon operator, red-team operator, automation, or no access.
Reach someone else's project at a level, from Read to Owner. Pick a level below.
A personal token, scoped, expiring, revocable, and never more powerful than you are right now.
Act only through call tokens, on behalf of the person who started the action.
Where your data lives
Two databases and a set of Docker volumes, all on the machine you control.
Everything is stored on your own machine. Six kinds of traffic leave it, each for a reason you chose.
Stays on your machine
- PostgreSQL: accounts, permissions and the audit trail; projects and Rules of Engagement; your API and model keys (always masked when the browser reads them); conversations and the agent's memory; captured traffic (kept 14 days by default).
- Neo4j: the attack-surface graph of every project, each node stamped with its project.
- Docker volumes: workspace files, scan outputs and reports, plugin code, vulnerability feeds, model weights.
Leaves your machine, and why
- Prompts, with target context, to the AI provider the project uses, on the owner's key. With Agent in the Loop, to your own MCP client instead.
- Recon queries to the OSINT services you configured, with your keys.
- Probes and attacks, only to the targets in scope.
- Knowledge-site fetches for your Tradecraft library.
- Target details for the Jev decision model, only if a project switches an AI hook to it.
- Your stored keys, to each provider's own usage page, only when you run the API-usage check.
Born, run, removed
When each box starts, and when it goes away.
A handful of boxes run all the time. Most are created for one job and removed when it ends.
- Fresh containers for every scan. Whatever a target did to one scan's tools is gone before the next scan starts.
- A Kali sandbox when you need one. Each person's sandbox starts with their first task and stops after 20 idle minutes.
- A queue that protects the machine. At most four jobs run at once, and only while 10 GiB of disk is free.
- Nothing left behind. Due scans are checked every minute, and a reaper removes leftover helpers.
Web app · AI agent · PostgreSQL · Neo4j · orchestrator · Docker broker · plugin runner and gateway
Recon and partial recon · tool containers · vulnerability scan · GitHub hunt · TruffleHog · AI surface scan · supply-chain scan · BadDNS
Capture proxy · traffic ingest, while traffic capture is switched on
Kali sandbox (one per person, stopped after 20 idle minutes) · AI judge (while an AI surface scan needs it) · package analyzer · CodeFix sandbox (one hour at most) · feed sync
GVM / OpenVAS (--gvm) · knowledge base (--kbase) · nginx and the firewall, on a public server
Plugins: a locked room
How third-party code runs inside RedAmon without being trusted.
Plugins are the first code in RedAmon that RedAmon did not write, so they run as if they were hostile.
With the permissions an admin granted, a plugin can
- Read the transcript of the session it was started in, with credentials masked
- Keep its own data, inside its own space and quotas
- Ask an AI model, through the agent, on the owner's key
- Propose new text for one of the agent's skills
A plugin cannot
- Reach the internet or the machine
- Hold a database password or a model key
- Call anything but the Gateway, which checks every call
- Change the agent until a person approves its proposal
Six rules that make it safe
A plugin installs only from a catalog with a valid signature and a matching checksum, and the catalog can never roll back.
One worker per plugin version, under its own user ID, with 512 MB of memory, 64 processes and at most 15 minutes per action.
The plugin networks are internal: no route out, no address on the machine.
The gateway forwards two routes only, and the web app re-authorizes every call against the call token.
Model calls go through the agent, on the owner's key, under a daily cap per plugin and person.
A plugin can propose new instructions for the agent; they do nothing until a person approves them, and can be reset at any time.
Be the architect
Twelve situations. You know the map now: where does the request go, and who says yes?
Where to go next
Go inside one of the rooms, or put RedAmon on a server of your own.
The brain, interactively: how it thinks, acts, remembers and asks for approval.
Inside the Recon Pipeline →What happens inside one scan, group by group, from Start to exit code.
Deploying to a server →The public-server setup: nginx, TLS, the firewall and the gates.
Identity and access →Root, admins, members, sharing, oversight and the audit trail.
Plugins →What a plugin can do, how it is installed, and what a person approves.
MCP server →Connect your own AI agent with a personal token.