Model or dataset
zakirkun/guardian-cli avatar
zakirkun/guardian-cli

Guardian wraps fifty security tools in an agent loop, and its scope is a model

Guardian is a production-ready AI-powered penetration testing automation CLI tool that leverages Google Gemini and LangChain to orchestrate intelligent, step-by-step penetration testing workflows while maintaining ethical hacking standards.

1,950 stars377 forksPythonNOASSERTION

At a glance

What is it?
An AI penetration testing framework that plugs an LLM planner into nmap, nuclei, ffuf, crackmapexec and forty five others, with a confirmation gate for intrusive tools and a scope validator that blacklists private address space. The counts in the documentation do not agree with each other, and the effective target list is decided at run time.
Who is it for?
Guardian fits a consultant or engineer with a written scope document and a habit of watching what an agent does, who wants reconnaissance, scanning and reporting in one workbench instead of fifty command lines. Five things to check before a first run.
Can I use it commercially?
Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
Is it still maintained?
Yes. The repository last received commits 150 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • zakirkun/guardian-cli1,950 ★ · +73
Star history
Repository2026-09-112026-11-24
zakirkun/guardian-cli1.9k2k

73 Stars in the last 74 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Release tags say v2.1, the manifest says 0.1.0, the image label says 1.0.0

The project carries three unrelated version numbers, and picking the wrong one is the first mistake available to you.

The two GitHub releases are named v2 and v2.1, published on 3 February 2026 and 27 February. The Python manifest says something else entirely:

toml
[project]
name = "guardian-cli"
version = "0.1.0"
requires-python = ">=3.11"

The container image declares a third:

text
LABEL maintainer="Guardian Security Team"
LABEL description="AI-Powered Penetration Testing Automation Platform"
LABEL version="1.0.0"

And the compose file builds that image as guardian-cli:latest, so a docker compose up pulls whatever was built last rather than a numbered release.

None of this is fatal, and all of it matters when you are pinning a tool that holds network credentials and shell access. A version number that says 2.1 and a manifest that says 0.1.0 tell you nothing about which is newer, and the Development Status classifier in the manifest says 4 - Beta, which is at least an honest label. The classifiers also list only Python 3.11 and 3.12 while the floor is declared as 3.11 or higher, so a 3.13 interpreter is permitted by the constraint and unclaimed by the classifiers.

The commit history gives the current state more precisely than any of the numbers: the last push on the default branch is dated 27 June 2026, and the newest release is from February. So there are four months of commits after the newest tag, and the release notes you would read describe February's code.

One more piece of housekeeping belongs here. The entry point is a single console script, guardian = "cli.main:app", the packaging list is cli, core, ai, tools, reports, utils and workflows, and the repository carries a Windows batch launcher, a Makefile, a pre-commit configuration and both a QUICKSTART.md and a full documentation directory.

Scope is enforced by address range and a prompt gate, not by a scope file

The guard rails are real and worth taking seriously, so they come before any criticism of them.

Scope validation works at DNS resolution time. The page describes it as closing an SSRF class bypass, with private RFC1918 ranges blacklisted. That matters more than it first appears: it means the tool cannot be walked into scanning your own internal network by naming an address, which is the failure mode that turns an assessment tool into an incident.

Intrusive and destructive tools are gated. Anything classified Active or higher requires explicit user approval before it runs, and safe mode prevents destructive actions by default. Tool output is wrapped in UNTRUSTED_TOOL_OUTPUT delimiters with ANSI escape sequences stripped before it reaches the model, which is the standard defence against a web page or a tool banner injecting instructions into the agent's context. Secrets are redacted at write time, so they never reach a log or a report. Every AI decision and action is recorded in rotating audit logs.

Now the part that is missing, and it is structural rather than a bug. There is no scope file. Nothing in the documentation describes a per target authorisation record, a list of hosts you signed off on, or a dry run mode that executes the plan without touching anything. The legal disclaimer puts the entire burden on the operator, naming written permission and pointing at the CFAA and GDPR.

More importantly, the target set is not static. The features describe adaptive testing, where the agent adjusts tactics based on discovered vulnerabilities and on what earlier tools yielded, and a learned tool selection ranker trained on session telemetry that abstains when it is unsure and hands the choice back to the model. So the sequence of hosts, ports and directories that get touched is decided at run time by a model reacting to results. A scope document that you did not encode into the tool is a document the agent never reads.

Fifty tools registered, fifteen in the image, ten categories claimed and sixteen listed

The arsenal table does not add up, and the discrepancies are informative about how the project grew.

It is headed as fifty integrated security tools across ten categories. The table itself has sixteen rows. Counting the tools in those rows gives exactly fifty, so the total is right and the category count is wrong, by six.

Some rows also carry internal identifiers that were never cleaned up: SAST and secrets is marked B11, API fuzzers B10, the Burp and ZAP bridge B13, LLM red team B12, mobile Android B9, Active Directory B8, and vision evidence A3. Whoever reads the table can see which internal work items produced which rows.

The row contents are where the scope question comes back. Network discovery is nmap and masscan. Web and subdomain work is httpx, whatweb, wafw00f, cmseek, subfinder, amass and dnsrecon. Scanning is nuclei, nikto, sqlmap and wpscan. Content discovery is gobuster, ffuf and arjun. Cloud and supply chain work is trivy, grype, syft, scoutsuite, prowler and kube-bench. OSINT is shodan and theharvester among others. Then there are LLM red team tools, Android tools, and an Active Directory row with crackmapexec, bloodhound, kerbrute and impacket-secretsdump.

That last row is the one to think about before enabling adaptive testing. A row containing credential tooling against directory services sits in the same registry as web reconnaissance, and a model that starts on a web target can plausibly reason its way toward the domain controller. Nothing about the registry stops it. The confirmation gate may stop the individual command, and the RFC1918 blacklist does not help when the target is a public domain controller.

Now the build side, because the image does not contain all fifty. The Dockerfile header says it installs all 15 security tools, and the visible stages pull six official images, build ffuf from Go source, and install nmap plus a Ruby runtime for WhatWeb and WPScan and a Perl runtime for Nikto. So the remaining tools are expected on the host PATH, which means a pip install without the container gives you a tool that registers fifty tools and can run the subset you happen to have.

Two accuracy claims arrive without an evaluation set

The feature list makes two quantitative performance claims, and neither has the material to back it up.

The first is multi agent debate triage. On ambiguous findings, three roles argue it out, a Red Advocate, a Blue Advocate and a Judge, and the claim is F1 at or above the single agent baseline plus 5 percentage points. The second is judge model routing, where a think_deeply option swaps in a bigger model to reason and then restores the small one to judge, described as roughly a tenfold cost reduction.

Both are plausible engineering results and neither is verifiable from the page. There is no dataset, no definition of ambiguous, no baseline configuration, no token or dollar accounting beyond the word tenfold, and no link to a results table. An evals directory does exist in the repository, which is the right place for such a thing, but its contents are not described.

The same section is where the provider story gets interesting, because the counts disagree across the project. The repository description says it leverages Google Gemini and LangChain, and names five providers in prose: OpenAI GPT-4, Claude, Gemini, OpenRouter and Requesty. The feature list says seven providers and adds two: Ollama running locally, and anything OpenAI compatible such as vLLM, LM Studio, Together and Groq.

The dependency list explains how some of that works and what it costs you. There are LangChain integrations for Google, OpenAI and Anthropic, and nothing for OpenRouter or Requesty. Those two are reachable through a litellm extra, which is optional and capped at a version range, or through the plugin contract: third party providers register under the guardian.providers entry point group, so no fork is needed.

The sample environment file is the most misleading artefact on the page. It contains one key, GOOGLE_API_KEY, plus commented options for LangSmith tracing, a custom config path and a reports directory. A project claiming seven providers ships an example with exactly one.

Findings carry an execution_id, and sessions are checkpointed to JSON

The evidence model is the part that makes this usable as an assessment record rather than a demo.

Every finding is linked to the tool execution that produced it through an execution_id. Full tool output is preserved with the finding, raw output snippets are bound to it, and screenshots captured per URL are attached to web findings. That chain is what lets someone months later ask why a finding exists and get an answer that is not the model's recollection.

The execution_id also does double duty. It is the deduplication fingerprint in the SARIF output, so the same finding seen by two tools becomes one entry rather than two.

Sessions are reconstructed from an atomically checkpointed file named session_<id>.json, and a resume flag picks up after the last completed step. Atomic checkpointing is the important word: a pentest run is long, and a half written state file after a crash or a kill is the difference between resuming and starting over.

The workflow layer is a DAG, version two of the DSL. Steps declare depends_on and run in parallel up to a max_parallel_tools limit. Parameters are Jinja2 templates, and the templates are described as sandboxed, resolving references like {{ <id>.parsed.alive_hosts }} against the parsed output of an earlier step. Conditional steps gate on prior output through when: clauses. Parameter precedence is explicit: workflow YAML beats a config block, which beats tool defaults.

Analysis steps can name their own agent with agent: debate, visual or analyst, so the expensive triage is spent on the steps that need it rather than on the whole run. Reports come out as Markdown, HTML or JSON, and the output integrations are selected on the report subcommand with --export sarif, --export defectdojo or --export slack.

SARIF, DefectDojo and Slack come from one report command

Three integrations are documented, and they are triggered together rather than one at a time:

bash
guardian report --export sarif --export defectdojo --export slack

SARIF 2.1.0 is the interesting one because it is the format code scanning tools already speak. It is described as GitHub friendly, carrying a security-severity field, with deduplication fingerprints derived from the execution_id. If you already have a code scanning pipeline that ingests SARIF from other tools, this output lands in the same place rather than needing a new integration.

DefectDozo is a direct REST upload, which matters for teams that already track findings there and would otherwise retype them. Slack is a webhook that colour codes posts by severity, so a channel sees the shape of an assessment without opening anything.

The report content itself has one feature that stands out as engineering rather than packaging: CVSS v3.1 recomputation. The tool validates claimed scores against the vector maths and flags drift, which means a model that writes 9.8 into a finding while supplying a vector that computes to 6.5 gets caught. Scores produced by a language model are the softest number in any finding, and recomputing them from the vector is the cheapest possible correction.

Two other report elements round it out. Findings carry evidence, CVSS, CWE, CVE and the MITRE technique, with an executive summary above the technical detail for the people who will not read the detail. And each agent keeps a decision trace with token usage, cost and a thinking chain ledger, which is both a cost accounting mechanism and the audit trail the security section promises.

Underneath the reporting sits a retrieval layer: a SQLite database with FTS5 full text search over CVE, CWE and MITRE ATT&CK feeds, described as the fix for hallucinated CVE references. Grounding a model in a local index it can quote is the right approach to the specific failure where a plausible identifier attaches itself to a real vulnerability number that has nothing to do with the finding.

The container has no restart policy, no resource cap and bridge networking

The compose file is where the operational defaults live, and it is worth reading as configuration rather than as a sample.

It builds from the Dockerfile, tags the result guardian-cli:latest, names the container guardian-pentest, and reads its environment from a .env file. Four host directories are mounted into the container: reports, logs, config and workflows, so your output, your audit trail, your configuration and your own workflow definitions all survive a rebuild. stdin_open and tty are both set, which is what makes the confirmation gate usable: the container is built for a human at a terminal to approve a command.

Three defaults are commented out or set conservatively. The CPU and memory block is present but commented, offering two CPUs and 4 GB of memory as a limit with one CPU and 2 GB reserved. The named volumes section at the bottom is commented. And the restart policy is set to no, which for a tool whose runs take minutes to hours means an interrupted scan stays interrupted.

The network setting is network_mode: bridge, so the container has ordinary outbound connectivity and can reach whatever it is pointed at. For a framework whose whole job is connecting to hosts, that is not a criticism so much as a reminder that containment comes from the scope controls, not from the network.

The image itself is python:3.11-alpine with a set of build and runtime packages: gcc, musl-dev, libffi and openssl headers, nmap with its scripts, git and curl, gcompat for running Go binaries on musl, a Ruby stack for WhatWeb and WPScan, and Perl modules for Nikto. GUARDIAN_HOME is set to /guardian and the working directory matches it.

Finally, the one setting on the page that sends your assessment data outward: LangSmith tracing. Three commented lines enable it with a project name of guardian-pentest. Left off, nothing leaves the machine except the model calls you configured. Turned on, every agent step is traced to a third party, and for this particular tool that means the targets, the commands and the findings.

Editorial conclusion

Guardian fits a consultant or engineer with a written scope document and a habit of watching what an agent does, who wants reconnaissance, scanning and reporting in one workbench instead of fifty command lines. Five things to check before a first run. Your own scope discipline, because the tool has guards against aiming at private address space and against destructive commands, but no scope file, no per target authorisation record and no dry run mode, and the agent is described as adjusting tactics based on what it finds. Which tools it considers Active, since only intrusive or destructive ones hit the confirmation gate and everything else runs without asking. Whether you want the debate triage and the vision triage, since both add model calls and both are pitched with accuracy figures that carry no evaluation data. What telemetry leaves the machine, because LangSmith tracing is the one setting that ships agent traces to a third party, which for an assessment means shipping findings. And which version you are running, since the release tags, the manifest and the image labels are three different numbering systems.

Frequently asked questions

What safety controls does guardian-cli have?

Scope is validated at DNS resolution time with private RFC1918 ranges blacklisted, which closes an SSRF class bypass. Intrusive and destructive tools classified Active or above require explicit approval, and safe mode prevents destructive actions by default. Tool output is wrapped in UNTRUSTED_TOOL_OUTPUT delimiters with ANSI escapes stripped, secrets are redacted at write time, and every AI decision is written to rotating audit logs.

Which AI providers can guardian-cli use?

Seven are named: OpenAI, Anthropic, Google Gemini, OpenRouter, Requesty, a local Ollama, and any OpenAI compatible endpoint such as vLLM, LM Studio, Together or Groq. LangChain integrations ship for Google, OpenAI and Anthropic; the others go through an optional litellm extra or through the guardian.providers entry point contract. The sample environment file only sets a Google key.

Can guardian-cli run long assessments and pick up where it stopped?

Yes. Session state is checkpointed atomically to a file named session_<id>.json, and the resume flag continues after the last completed step. Workflows are DAGs where steps declare depends_on and run in parallel up to a max_parallel_tools limit, with when: clauses for conditional steps and Jinja2 templates, described as sandboxed, resolving values from earlier steps.

What output formats does guardian-cli produce?

Markdown, HTML and JSON reports, plus integrations selected on the report subcommand with --export sarif, --export defectdojo and --export slack. The SARIF export is version 2.1.0 with a security-severity field and deduplication fingerprints derived from the execution_id. Findings also carry CVSS recomputed from the vector, with drift flagged.

Does guardian-cli send data to a third party?

Only if you turn it on. LangSmith tracing is the setting to watch: three commented lines in the sample environment file enable agent tracing to a LangSmith project named guardian-pentest, which would carry commands, targets and findings off the machine. It is off by default, and the only other outbound traffic is the model calls you configured with your own API keys.

Official sources

  1. Issues
  2. README
  3. Releases
  4. zakirkun/guardian-cli on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/zakirkun-guardian-cli.svg)](https://hysenlabs.com/projects/zakirkun-guardian-cli)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/zakirkun-guardian-cli.svg)](https://hysenlabs.com/projects/zakirkun-guardian-cli)

Was this useful?