AI pentesting guides / Free, open-source and AI pentesting

Open by design

Open-source pentesting: auditability, control and the trade-offs

Open-source pentesting means doing offensive security testing with tools whose source code you can read, run on your own infrastructure and modify, which gives you control over what the tool does to your systems and where your findings go. Much of the profession already runs on open-source tools; what is new is open-source autonomous pentesting, where the agent itself is open.

For a tool that sends attack traffic at your applications, being able to read the code is not an abstract virtue. It is how you confirm the scope checks are real, the payloads are non-destructive and nothing is being sent to a vendor. This page covers the reasons teams choose open source, the obligations licences bring, and the costs that do not show up on an invoice.

Why teams choose open-source pentesting

  • Auditability: you can inspect exactly what a test will send, how scope is enforced and what data is logged.
  • Data control: run it on your hardware so targets, traffic and findings never leave your environment.
  • No lock-in: you are not tied to one vendor's pricing, model choice or roadmap, and you can fork if the project changes direction.
  • Extensibility: add your own checks, playbooks or integrations instead of filing a feature request.
  • Cost structure: no licence fee, so spend goes on people, hardware or model usage instead.

Licences matter more than people expect

Permissive licences such as MIT and Apache-2.0 let you modify and redistribute with few conditions. Copyleft licences such as GPL require you to share source when you distribute modified versions. The AGPL-3.0 goes a step further: if you modify the software and let others use it over a network, you must offer them the modified source. Running an AGPL tool internally for your own testing is straightforward; building a commercial hosted service on a modified copy is where legal review is needed.

The costs that do not appear on an invoice

  • Maintenance: keeping tool binaries, templates and dependencies current is ongoing work.
  • Expertise: open-source tools assume you can interpret their output and tell a real finding from noise.
  • Support: help comes from documentation, issues and community chat, not a contractual SLA.
  • Maturity: many open-source AI pentesting projects are early-stage. Read the project's own status labels before relying on a feature.

Open source and the AI layer

An open-source AI pentester has two parts: the harness (the code that runs tools, tracks state, enforces scope and writes reports) and the model that makes decisions. The harness can be fully open while the model is a commercial API. If you want the whole stack open and local, pair an open harness with an open-weight model served through Ollama or LM Studio, accepting that smaller local models are usually less capable.

With Pentest-Swarm

Pentest-Swarm as an open-source pentester

Pentest-Swarm is an open-source autonomous pentester, licensed AGPL-3.0, written in Go and developed in public on GitHub. It is positioned as the open-source XBOW alternative: the same problem of finding and proving web and API vulnerabilities, but software you run yourself.

  • Source, issues and releases are public at github.com/Armur-Ai/Pentest-Swarm-AI; the project marks features as stable, beta or alpha.
  • Recon, classify, exploit and report agents coordinate through a shared, pheromone-weighted blackboard.
  • Model-agnostic: Claude, Gemini, OpenAI-compatible APIs, Together AI, or fully local Ollama and LM Studio.
  • Scope is enforced in code and fails closed, with an egress guard and full audit trail, all of which you can read.
  • Playbooks are YAML files you can fork by dropping an edited copy into ./playbooks.

Where it falls short

Pentest-Swarm is alpha overall, and its concurrent swarm scheduler is alpha (the sequential runner is the stable default). The free edition deliberately limits its most powerful capabilities. Under AGPL-3.0, if you modify it and offer it to others as a network service, you must publish your changes. Teams that want a supported product with SLAs, or a hosted service with human-reviewed reports, should look at Armur's managed platform or a commercial vendor instead.

Questions

Is open-source pentesting software safe to run?

It is as safe as the controls you can verify. The advantage of open source is that you can read the scope enforcement and payloads yourself rather than trusting a vendor's description.

Can I use an AGPL pentesting tool at work?

Running it internally for your own testing is generally fine. If you modify it and provide it to others over a network, the AGPL requires you to offer them the modified source. Get legal advice for commercial redistribution.

Are open-source AI pentesters as good as commercial ones?

It varies by project and by model. Several open projects are capable on web and API targets, but most are early-stage; test them on a lab and on your own staging environment before deciding.

Sources

  1. AGPL-3.0 summary (choosealicense.com)
  2. Pentest-Swarm on GitHub