AXguard is a free, open source ai security & privacy project written in Python and released under MIT. It has 978 GitHub stars, 130 forks and 5 open issues, and was last pushed 1 months ago. On this registry it ranks #42 of 60 tracked projects in AI Security & Privacy, with 5 head-to-head comparisons available.

What is AXguard?

AXguard is an MIT-licensed, Python-based open-source security tool from AwareXone that scans source code for vulnerabilities in AI-generated, "vibe-coded" applications, triages the findings, and gates releases before you ship — built for developers who build with coding agents and want a security check inside that same workflow.

What it is

AXguard is a pre-ship security gate distributed in four pieces: a command-line tool called axguard with 22 commands, zero runtime dependencies and no account requirement; an agent plugin offering 31 slash commands and 38 skills for Claude Code, Cursor, OpenCode and Codex; an MCP server exposing 31 tools that an agent can call directly, with approvals gated; and an optional local FastAPI service bound to 127.0.0.1 for your own tooling. Everything runs on the machine where it is installed. Detection is deterministic, built from 47 rules spread across 16 JSON packs plus five dedicated hunters for the vulnerability classes that need dataflow analysis rather than pattern matching. Everything after detection — triage, verification, attack-path chaining and confidence scoring — is post-processing layered over those findings.

The problem it targets is concrete: AI tools can build an application in minutes, and they can ship security bugs in minutes as well. AXguard reads the source before publication and reports what an attacker would reach for, replacing the ad-hoc manual review that otherwise sits between an agent finishing a build and the code going public. Rather than asking developers to leave their editor for a separate scanning product, it installs into the agent itself and is invoked through slash commands such as /axguard-audit, /axguard-scan and /axguard-fix. The project places itself explicitly as a pre-ship security gate rather than a full penetration-testing platform.

Key capabilities

  • A axguard CLI with 22 commands, zero runtime dependencies and no account, invoked for example as axguard audit ..
  • A 31-command, 38-skill agent plugin installed via ./install.sh with --agent claude, --agent cursor, --agent opencode, --agent codex, --agent agents or --agent all.
  • An MCP server exposing 31 tools that a coding agent calls directly, with approvals gated.
  • Deterministic detection using 47 rules across 16 JSON packs, supplemented by five dedicated hunters for classes requiring dataflow analysis.
  • Vulnerability-class commands covering secrets, authentication, injection, SQL, SSTI, path traversal, SSRF, XSS, file upload, crypto, supply chain, GraphQL and cloud configuration.
  • Post-processing over raw findings for triage, verification, attack-path chaining and confidence scoring, surfaced through /axguard-triage, /axguard-verify, /axguard-paths and /axguard-report.
  • An HTML report written to .findings/axguard/axguard-report.html, plus an optional local FastAPI service on 127.0.0.1.

Who uses it and how

  • Developers working inside Claude Code, Cursor, OpenCode or Codex who want a security pass reachable without leaving the agent session.
  • Teams that scope the gate to a repository with ./install.sh --agent claude --project, which writes into ./.claude (or ./.cursor, ./.opencode, ./.codex, ./.agents), so the check travels with the codebase.
  • Individuals installing globally into ~/.claude or the equivalent per-agent global directory, covering every repository on the machine.
  • CI pipelines, indicated by the cicd and devsecops topics and the /axguard-ci command.
  • Environments where source cannot leave the developer's machine, since all analysis runs locally.

Getting started

Clone the repository and run ./install.sh for the agent plugin, then create a virtual environment and pip install -e . for the CLI, which requires Python 3.10+ and no other runtime dependencies; the first scan is axguard audit ., or /axguard-audit from inside a supported agent.

How it compares

No comparable tools and no list of paid products are named in the available facts, so AXguard stands alone in this registry's AI security and privacy category. Any comparison against commercial application-security platforms would have to be made on the project's own terms rather than inferred here.

When to use it — and when not

Choose AXguard when the goal is a repeatable, local pre-ship check on agent-written code and the team is content to manage its own Python virtual environment and an editable install. It is explicitly not a full penetration-testing platform, so teams that need engagement-grade testing, manual adversary simulation as a service, or coverage beyond the 47 deterministic rules should not treat it as a substitute. Detection quality is bounded by those rule packs, which is the trade-off for deterministic, dependency-free, fully local execution.

project readme (upstream, from github) — read inline

AXguard

Open-source AI security tool to scan and fix vulnerabilities in your vibe-coded apps before you ship.

CLI + AI agent plugin for Claude Code, Cursor, OpenCode, Codex, and shared Agent Skills.

Pre-ship security gate — not a full pentest platform. Scan source, triage noise, fix what matters, and gate releases before you publish.

Website · GitHub · Dev Docs · Commands · Contributing

Talk to us — general questions hello@awarexone.com · sponsorship & partnerships b2b@awarexone.com · founder shuvon@awarexone.com


What it is

AI tools can build an app in minutes. They can also ship security bugs in minutes.

AXguard reads your source before you publish it and tells you what an attacker would reach for. It runs as a plain CLI, as slash commands inside your coding agent, and as an MCP server your agent can call directly. Everything runs on your machine.

It ships in four pieces:

Piece What it is
CLI axguard — 22 commands, zero runtime dependencies, no account
Agent plugin 31 slash commands + 38 skills for Claude Code, Cursor, OpenCode, Codex
MCP server 31 tools your agent calls directly, approval-gated
Local API Optional FastAPI service on 127.0.0.1 for your own tooling

Detection is deterministic: 47 rules across 16 JSON packs, plus five dedicated hunters for the classes that need dataflow rather than pattern matching. Everything after that — triage, verification, attack-path chaining, confidence scoring — is post-processing over those findings.


Quick start

Open Claude Code and paste this. Claude does the rest.

Install AXguard: run git clone https://github.com/Awarexone/AXguard.git ~/AXguard && cd ~/AXguard && chmod +x install.sh uninstall.sh && ./install.sh then create a Python virtualenv in ~/AXguard and pip install -e . so the axguard CLI works. Then add an "AXguard" section to CLAUDE.md that says to run an AXguard security pass before shipping, and lists the available commands: /axguard-audit, /axguard-scan, /axguard-threat-model, /axguard-triage, /axguard-fix, /axguard-report, /axguard-ci, /axguard-surface, /axguard-flow, /axguard-verify, /axguard-adversary, /axguard-evidence, /axguard-paths, /axguard-secrets, /axguard-auth, /axguard-inject, /axguard-sql, /axguard-ssti, /axguard-path, /axguard-ssrf, /axguard-xss, /axguard-upload, /axguard-crypto, /axguard-supply, /axguard-graphql, /axguard-cloud, /axguard-debug, /axguard-agent, /axguard-data, /axguard-contribute, /axguard-privacy. Then ask me whether to install it for my other agents too with ./install.sh --agent all.

Then run /axguard-audit on any repo.

Or do it by hand

git clone https://github.com/Awarexone/AXguard.git
cd AXguard

chmod +x install.sh uninstall.sh
./install.sh                      # 1. agent skills + slash commands

python3 -m venv .venv             # 2. the CLI
source .venv/bin/activate
pip install -e .

axguard audit .                   # 3. scan this repo
open .findings/axguard/axguard-report.html

Four steps. Under two minutes on a warm machine.


Install

1. Agent plugin

./install.sh                            # Claude Code, globally (~/.claude)
./install.sh --agent cursor             # Cursor
./install.sh --agent all                # every supported agent
./install.sh --agent claude --project   # this repo only (./.claude)
--agent Global destination --project destination
claude (default) ~/.claude .claude
cursor ~/.cursor .cursor
opencode $OPENCODE_CONFIG_DIR or ~/.config/opencode .opencode
codex $CODEX_HOME or ~/.codex .codex
agents ~/.agents .agents
all all of the above all of the above

--global is the default. The agents target installs skills only — shared Agent Skills have no slash-command concept.

2. CLI

Requires Python 3.10+. No other runtime dependencies.

python3 -m venv .venv
source .venv/bin/activate         # Windows: .venv\Scripts\activate
pip install -e .

Optional extras:

pip install -e ".[mcp]"           # MCP server for AI agents
pip install -e ".[api]"           # local Security Intelligence API
pip install -e ".[dev]"           # pytest, for contributing

3. Verify it worked

axguard version                   # axguard 0.2.0
axguard help                      # the workflow table
axguard scan fixtures/vuln_app    # 28 findings in the bundled vulnerable app

If the last command prints findings, both halves are working.


See it work

Against fixtures/vuln_app, the deliberately vulnerable app bundled with this repo:

$ axguard scan fixtures/vuln_app --no-banner
AXguard scan — /path/to/AXguard/fixtures/vuln_app
Findings: 28

[CRITICAL] injection.python-pickle-loads — pickle.loads deserialization
  app.py:11
  return pickle.loads(blob)
  pickle.loads on untrusted data enables arbitrary object construction and RCE.
  Fix: Use json/msgpack for untrusted payloads; never unpickle attacker input.

[CRITICAL] sql.python-format-query — SQL built with string formatting
  app.py:29
  return cursor.execute(f"SELECT * FROM users WHERE id = {user_id}")
  Dynamic SQL via f-strings/format/concat is a classic SQLi sink.
  Fix: Use parameterized queries / bind variables only.

[CRITICAL] ssti.jinja-render-string — Jinja2 template string from variable
  app.py:33
  return render_template_string(user_tpl)
  Rendering attacker-influenced templates enables SSTI → RCE.
  Fix: Never render user-controlled template source; use fixed templates + autoescape.

[MEDIUM] crypto.math-random-token — Math.random used for security token
  client.js:25
  export const token = "sess-" + Math.random().toString(36);
  Math.random is not cryptographically secure.
  Fix: Use crypto.randomBytes / crypto.getRandomValues.

Every finding carries a rule id, a severity, the exact line, the reason it matters, and the fix.

A full audit runs the diagnostic chain on top and writes the reports:

$ axguard audit fixtures/vuln_app --no-banner
audit complete — 28 finding(s)
  json  .findings/axguard/axguard-report.json
  md    .findings/axguard/axguard-report.md
  html  .findings/axguard/axguard-report.html
  model .findings/axguard/application-model.json
  flow  .findings/axguard/dataflow.json
  verify counts: candidates=12 VERIFIED=0 LIKELY=0 UNVERIFIED=12 FALSE_POSITIVE=0
  adversary counts: findings=12 CONFIRMED=0 LIKELY=0 UNVERIFIED=12 FALSE_POSITIVE=0
  evidence counts: findings=12 unique=51 reused=27 conflicts=0 UNKNOWN=12
  paths counts: paths=1 CONFIRMED=0 LIKELY=0 UNVERIFIED=1 BLOCKED=0 dead_ends=11

The generated Markdown report opens with the severity breakdown:

# AXguard Audit Report

**Findings:** 28
**Mode:** audit

> **Analysis mode: READ-ONLY.** No source files were modified and no external
> requests were made.

## Severity summary

| Severity | Count |
|---|---:|
| critical | 7 |
| high | 14 |
| medium | 6 |
| low | 1 |

Note what the diagnostic counters say: VERIFIED=0 UNVERIFIED=12. AXguard reports what it can support with evidence and refuses to claim more. Verification status is information, not decoration.


What it finds

Detections come from rules/*.json — deterministic pattern and heuristic rules.

Area Examples (from shipped rules)
Secrets AWS access keys, hard-coded API key assignments, PEM private keys, GitHub PATs, Slack tokens
Auth Missing ownership heuristics (IDOR-style), JWT none, JWT decode-without-verify, CSRF disabled
Injection / RCE eval / exec, pickle.loads, subprocess(shell=True), os.system / popen, JS child_process.exec, PHP unserialize, Java ObjectInputStream
SQL / NoSQL String-built SQL (Python/JS/PHP), ORM raw SQL, Mongo $where / operator injection
SSTI Jinja2 / Flask render_template_string, dynamic Pug compile
Path / LFI User paths in open / send_file / PHP include
SSRF Variable URLs in Python HTTP clients / JS fetch concatenation
XSS innerHTML, document.write, React dangerouslySetInnerHTML
Upload Original client filenames saved, Multer .any()
Crypto Hard-coded keys/IVs, MD5/SHA1 near passwords, Math.random tokens, TLS verify off
Supply chain Risky npm install scripts, pip extra indexes, curl|sh
GraphQL Introspection left on, CSRF prevention off
Debug Django/Flask debug, Express stack handlers, Spring Actuator hints
Cloud AWS metadata URLs, wildcard CORS + credentials, public S3 ACL
AI agents Executing model/agent output, unrestricted shell tools, prompt/tool-arg shell execution

Adding a rule means dropping a JSON file into rules/ — see docs/adding-rules.md. Point at your own pack with --rules DIR.

Supported languages

Rule coverage is deepest where AI code generation is most common.

Tier Languages
Primary Python, JavaScript / TypeScript (including JSX, TSX, ESM, CJS)
Secondary PHP, Java, Ruby, Go, Rust, Vue
Config & IaC .env, YAML, JSON, Terraform / HCL, HTML

Around 45 file extensions are read in total. Rules declare which languages they apply to, so a Python rule never fires on a .js file.


Commands

Every slash command maps to a CLI command. Use whichever fits what you are doing.

Core workflow

Slash command CLI What it does
/axguard-audit axguard audit . Full A→Z audit. Writes JSON + Markdown + HTML
/axguard-scan axguard scan . Fast pass while coding. No report suite
/axguard-triage — Kill false positives, promote real bugs
/axguard-fix — Patch confirmed findings
/axguard-report — Regenerate or tighten the reports
/axguard-ci axguard audit . --fail-on high Wire up a release gate
/axguard-threat-model — STRIDE-lite pass on an unfamiliar codebase

Diagnostics

These explain why a finding is or is not real. They are not vulnerability reports, and they always exit 0 — they cannot gate CI.

Slash command CLI What it does
/axguard-surface axguard surface . Routes, sinks, stack, AI components
/axguard-flow axguard flow . Taint and dataflow paths
/axguard-verify axguard verify . Hunter → Judge verification
/axguard-adversary axguard adversary . Argues against your findings
/axguard-evidence axguard evidence . Evidence chains and confidence
/axguard-paths axguard paths . Attack graph and vulnerability chaining

By vulnerability class

/axguard-secrets · /axguard-auth · /axguard-inject · /axguard-sql · /axguard-ssti · /axguard-path · /axguard-ssrf · /axguard-xss · /axguard-upload · /axguard-crypto · /axguard-supply · /axguard-graphql · /axguard-cloud · /axguard-debug · /axguard-agent

Deeper analysis

CLI What it does
axguard twin build . Symbolic security model — blast radius, counterfactuals, regression → docs
axguard memory record . Longitudinal history — what changed, what regressed → docs
axguard investigate . Evidence-driven investigation loop → docs
axguard predict . Risk signals from observable change — not confirmed findings → docs

Local and operational

Slash command CLI What it does
/axguard-data axguard data discover Training-data registry and license gate. No model training
/axguard-contribute axguard contribute suggest Prepare a contribution locally. Never auto-pushes
/axguard-privacy axguard privacy status Local privacy preferences
— axguard mcp serve MCP server for AI agents
— axguard api start Local Security Intelligence API
— axguard github setup . GitHub Security Bot adapter config

Full cheat sheet: COMMANDS-QUICK-REF.md.

Flags worth knowing

--fail-on {critical,high,medium,low,none} — exit 1 when a finding meets the threshold. Available on scan and audit only.

--rules DIR — use your own rule pack. --no-banner, --no-engage — quiet output, for CI.

--format {text,json,md,html} with -o FILE — scan only. audit always writes all three formats.

Which workflow?

Situation Start here
About to ship /axguard-audit
Quick check while coding /axguard-scan
New or unknown codebase /axguard-threat-model then /axguard-surface
Too many findings /axguard-triage
Findings confirmed, need patches /axguard-fix
Want a security-lead pass skill axguard-cso
Short release checklist skill axguard-preship
Blocking bad merges /axguard-ci

Reports

Every full audit writes the primary vulnerability reports:

.findings/axguard/
├── axguard-report.html   # easy to read
├── axguard-report.md     # for PRs and docs
└── axguard-report.json   # for CI and tools

Plus diagnostic artifacts, which explain the findings rather than adding to them:

.findings/axguard/
├── application-model.{json,md}   # surface / app model
├── dataflow.{json,md}            # taint / dataflow paths
├── verification.{json,md}        # Hunter → Judge
├── adversary.{json,md}           # false-positive adversary
├── final-findings.json           # post-adversary statuses
├── evidence.{json,md}            # evidence & confidence
├── attack-paths.{json,md}        # attack graph / chaining
├── memory/                       # Security Memory snapshot (best-effort)
└── investigation/                # Investigation Agent pass (best-effort)

The diagnostic stages are deliberately best-effort: if one fails, the audit records the error and continues rather than losing the whole run. A completed audit with a missing diagnostic section is a stage that did not finish, not a clean result.

The HTML report is interactive and approval-gated. High-risk actions — applying a fix, active verification, external sharing — are never executed by the report.


CI / release gate

Code → AXguard → High/Critical?
                 ├── Yes → Fix → Re-scan
                 └── No  → Ship
axguard audit . --fail-on high --no-banner

Exit 1 when anything at or above the threshold is found, exit 0 otherwise.

What this repository runs

.github/workflows/axguard.yml dogfoods runtime code only (engines/ and cli/). Fixtures, skills, commands and rules contain deliberately vulnerable examples for regression tests, and are excluded:

axguard audit engines --fail-on high --no-banner
axguard audit cli --fail-on high --no-banner

To make it a required status check, see docs/github/required-checks.md.


AI agent integration

AXguard is built to be called by coding agents, not just by you.

Layer How the agent uses it
Slash commands 31 commands — /axguard-audit, /axguard-triage, …
Skills 38 skills: 8 orchestration + 30 security domain skills
MCP 31 typed tools the agent calls directly

The three tools an agent reaches for first are axguard_security_review, axguard_investigate and axguard_verify_fix.

pip install -e ".[mcp]"
axguard mcp doctor          # check the host connection
axguard mcp tools           # list the 31 tools
axguard mcp serve           # stdio MCP server

Six tools are approval-gated (axguard_audit, axguard_verify_finding, axguard_verify_fix, axguard_what_if, axguard_investigate, and axguard_security_review in DEEP/MAX mode). Unknown tools default to requiring approval.

Setup: docs/mcp.md · config · tools · security · threat model


GitHub Security Bot

Optional GitHub App that reviews pull requests with Check Runs and one updatable summary comment. It runs AXguard behind a thin webhook adapter (engines/github/). Local CLI scanning does not require it.

export AXGUARD_GITHUB_APP_ID=…
export AXGUARD_GITHUB_WEBHOOK_SECRET=…
export AXGUARD_GITHUB_PRIVATE_KEY_PATH=/path/to/app.pem

axguard github setup .        # writes .axguard.yml (never secrets)
axguard github validate .
axguard github test .         # webhook HMAC self-check
axguard github status .

The CLI configures and validates the adapter; it does not run the webhook listener. Serving it is a self-hosting step — see docs/github/self-hosting.md.

If you have no webhook host, the Actions-only path in the CI section above gives you the gate without the App.

Install & permissions: install · permissions · config · PR output · security · privacy · AI providers · troubleshooting · uninstall


Privacy

AXguard sends nothing anywhere by default.

  • No telemetry, no analytics, no phone-home.
  • No AwareXone account. No hosted service.
  • No LLM calls in the analysis path. The default AI provider is none / no-llm.
  • Findings, reports and history stay in .findings/ in your repo; preferences stay in ~/.axguard/.

The only outbound request anywhere in the non-optional code is to the GitHub API, and only if you configure the GitHub bot. The optional local API binds 127.0.0.1 and is yours.

Contribution packaging is opt-in, local, and never auto-pushes:

axguard privacy status
axguard privacy opt-in
axguard contribute prepare

Details: docs/contributors · docs/github/privacy.md


Troubleshooting

axguard: command not found — the venv is not active. Run source .venv/bin/activate (Windows: .venv\Scripts\activate). Confirm with which axguard.

Slash commands do not appear in your agent — re-run ./install.sh --agent and restart the agent. Skills load at startup.

Zero findings on a real project — check you are scanning source, not a build directory. Confirm the toolchain works with axguard scan fixtures/vuln_app, which should report 28 findings.

Too many findings — that is what triage is for. Run /axguard-triage, or axguard adversary . to have AXguard argue against its own output.

MCP tools missing in your agent — the MCP extra is not installed. Run pip install -e ".[mcp]", then axguard mcp doctor for a connection report. The mcp command is hidden entirely when the dependency is absent.

An audit finished but a diagnostic section is empty — that stage failed and the audit continued by design. Run the stage directly (axguard flow ., axguard verify .) to see the error.


Uninstall

./uninstall.sh                          # Claude Code, global
./uninstall.sh --agent cursor
./uninstall.sh --agent all
./uninstall.sh --agent claude --project

Same --agent and --global / --project options as install.sh. To remove the CLI, delete the virtualenv, or pip uninstall axguard.


Project structure

Each skill is its own top-level directory containing a SKILL.md, so the whole catalogue is visible from the repo root.

AXguard/
├── axguard-audit/       # 8 orchestration skills, named axguard-*
├── axguard-cso/
├── …
├── sql-injection/       # 30 security domain skills
├── prompt-injection/
├── jwt-security/
├── …
├── skills-index.yaml    # skill registry — name, domain, path
├── commands/            # 31 slash commands
├── cli/                 # axguard CLI entrypoint
├── engines/             # scanners, diagnostics, adapters
├── rules/               # detection rule packs (*.json)
├── fixtures/            # deliberately vulnerable test apps
├── tests/               # 438 tests
├── scripts/             # skill validation
└── docs/                # developer and feature documentation

Domain grouping (ai, application, discovery, identity, infrastructure, operations) lives in the domain: field of skills-index.yaml rather than in the directory tree.

Docs

Developer setup lives in DEV.md.


Contributing

Contributions are welcome — detection rules, scanners, test fixtures, agent skills, reports, documentation, bug fixes.

pip install -e ".[dev]"
pytest -q
python scripts/validate_skills.py
axguard audit fixtures/vuln_app --no-banner

See CONTRIBUTING.md. Artifact and bytecode scanners are on the roadmap there — not claimed as current features.

Responsible use

AXguard is for authorized security testing and defense.

Only scan systems, applications, repositories, and infrastructure that you own or have permission to test.

Support

AXguard is free and open source.

If it helps you build safer software, a star on GitHub helps more builders find it. You can also support the project directly and help fund more open-source security tools.

Get in touch

Pick the address that matches what you need — it reaches the right person faster.

You want to Email
Ask a question, report a bug, or say hello hello@awarexone.com
Sponsor AXguard, partner with us, or talk commercial and B2B b2b@awarexone.com
Reach the founder directly shuvon@awarexone.com

Security vulnerabilities in AXguard itself go to SECURITY.md, not to a public issue.

Website: awarexone.com

Fund the work

Sponsorship keeps AXguard free and open source. If your company ships AI-generated code and AXguard saves you a bad release, b2b@awarexone.com is the conversation.

Buy Me a Coffee: buymeacoffee.com/shuvonsec

Bitcoin 1GXwGqmLcnbZWgVNskUAZyw2cmqenkUFNY
Solana 4ArkPu1E7tkrt3d5X84grWzF1xjuLpScgGEy12Bp2cmE

Credits

AXguard is built by Shuvonsec — ethical hacker and security researcher, ranked #1 worldwide on the TryHackMe monthly leaderboard in 2025. He works on AI security and cybersecurity agents, and builds open-source tools to make AI-built applications safer.

shuvonsec on GitHub shuvonsec.com AwareXone

AwareXone

We build open-source security tools for the AI era — for people who build and people who hunt.

BUILD                         HUNT
  │                             │
AXguard                 Agentic Bug Hunter
  │                             │
Secure what you create   Find bugs that are live

Same security DNA. Different job.

Tool What it is
Agentic Bug Hunter AI bug bounty toolkit — recon, find, validate, report
Public Skills Builder Turn public security research into reusable skills
Web3 Bug Bounty AI Skills Smart-contract and DeFi security skills

Beyond open-source tools, AwareXone builds AI-driven defenses against scams, fraud and social engineering, and provides human-risk security services for organizations.

awarexone.com · GitHub · X @AwareXone


License

MIT. See LICENSE.

Frequently asked questions

Is AXguard free to use?

AXguard is open source under the MIT licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does AXguard do?

Open-source AI security tool to scan and fix vulnerabilities in your vibe-coded projects before you ship. AXguard by AwareXone.

What is AXguard written in?

AXguard is primarily written in Python. Its source is publicly available at https://github.com/awarexone/AXguard, and it has 978 GitHub stars.