Why self-host your pentesting
- Data residency: findings describe how to break into your systems. Some organisations cannot let that leave their environment.
- Reaching internal targets: staging environments, internal APIs and private network ranges are often unreachable from a vendor's cloud.
- Predictable source IPs: you can allowlist your own scanner host in a WAF or rate limiter instead of a vendor's changing ranges.
- Model choice: use the model your organisation has approved, including a fully local one.
- Credential handling: test accounts and API keys stay in your vault rather than a third-party form.
What a working setup needs
- A host: a Linux VM, a workstation or a CI runner with enough CPU and memory for the tools, plus a GPU if you serve a local model.
- The tool binaries: either installed directly or via a container image.
- Docker, if you want to run vulnerable practice labs.
- A model endpoint: a commercial API key or a local server such as Ollama or LM Studio.
- Somewhere to keep reports and logs with access control, because they are sensitive.
Where to place the tester
Put the tester where an attacker you care about would be. For external exposure, run it from outside your perimeter, such as a separate cloud account. For internal APIs and staging, run it inside the relevant network segment. Avoid running it on a host with broad production credentials; give it only test accounts. Restrict its outbound access to the in-scope targets and the model endpoint.
The operational work you take on
Self-hosting means patching the tester itself, updating tool templates, rotating test credentials, reviewing audit logs, and making sure reports are stored and deleted according to your data policy. None of it is difficult, but it needs an owner. If nobody on the team has the time, a managed service may cost less overall.
Self-hosting Pentest-Swarm
Pentest-Swarm is built to be self-hosted: a single Go CLI with a TUI launcher and a local web dashboard, no account required, and no data sent to Armur.
- Install via npm (
npm install -g @armurai/pentestswarm), Homebrew, the curl install script,go installor the Docker imageghcr.io/armur-ai/pentestswarm. - Run
pentestswarm runfor the guided launcher; the web dashboard serves on localhost:7777. - Pick any supported model, or keep everything on the box with Ollama or LM Studio.
- Scope enforcement is fail-closed and backed by an egress guard and full audit trail.
- Prefer not to run it yourself? Armur's managed platform runs the same engine with continuous scheduled tests and human-reviewed reports.
Where it falls short
Self-hosting Pentest-Swarm puts upkeep on you: updating the binary and toolchain, securing the host and handling reports. The project is alpha, there is no SLA on the open-source edition, and the free edition deliberately limits its most powerful capabilities. If you need compliance-ready reports, retests after fixes and someone else to run the infrastructure, the managed Armur service or a traditional firm fits better.
Questions
Is self-hosted pentesting more secure than SaaS?
It removes one third party from your data flow, which helps. It also makes you responsible for securing the tester and its reports, so the net effect depends on how well you run it.
Can a self-hosted tester reach my internal APIs?
Yes, if you deploy it inside the relevant network segment. That is one of the main reasons teams self-host.
Do I need a GPU?
Only if you serve a local model. With a cloud model API, an ordinary VM or workstation is enough.