g0 is purpose-built for AI agent security. Traditional SAST tools analyze general code patterns but don't understand AI-specific constructs like agent graphs, tool bindings, prompt templates, or model configurations. g0 builds a semantic graph of your AI agent architecture and evaluates it against 1,180+ rules across 12 AI-specific security domains.
Garak and Promptfoo focus on dynamic testing (sending payloads to running models). g0 does both: static analysis of source code and dynamic adversarial testing. The static analysis catches architectural issues (missing guardrails, unsafe tool bindings, supply chain risks) that dynamic testing alone can't find. When you use g0 test --auto, static findings inform which dynamic payloads to prioritize.
Python, TypeScript, JavaScript, Java, and Go. g0 has framework-specific parsers for 10 AI agent frameworks across these languages.
No — not for static scanning. API keys are only needed for:
g0 scan --ai— AI-powered analysis of findingsg0 test --ai— LLM-as-judge for dynamic testingg0 test --provider— Direct model testing
Most scans complete in 2-10 seconds. Larger monorepos may take 15-30 seconds. g0 uses regex-based parsing by default and optionally Tree-sitter AST analysis when native modules are available.
Yes. For local repos, just point g0 at the directory. For remote repos, g0 uses git clone — if your git credentials have access, g0 can clone it.
Yes. g0 walks the entire directory tree and detects multiple frameworks. Use exclude_paths in .g0.yaml to skip irrelevant directories.
Common reasons:
- Missing system prompt guardrails (no refusal instructions, no boundary tokens)
- Tools without input validation or sandboxing
- No rate limiting or error handling
- Unsandboxed code execution
- Exposed secrets or API keys
Use g0 scan . --show-all to see all findings including suppressed ones.
Three options:
- Inline: Add
// g0-ignore: AA-XX-NNNon the line - Config: Add the rule ID to
exclude_rulesin.g0.yaml - Path: Add the file/directory to
exclude_pathsin.g0.yaml
See Understanding Findings for details.
g0 uses multiple FP reduction mechanisms:
- Block comment awareness (skips commented-out code)
- Compensating control detection (suppresses findings when mitigations exist)
- Reachability analysis (deprioritizes utility code)
- Confidence levels (each finding has a confidence rating)
For rules that run against prompts (e.g., "system prompt missing refusal instruction"), FP rates depend on your prompting style. Use --min-confidence high to see only high-confidence findings.
npx @guard0/g0 gate .See CI/CD Integration for GitHub Actions, GitLab CI, Jenkins, and pre-commit examples.
0— All thresholds passed1— One or more thresholds failed2— Scan error
g0 gate supports configurable thresholds: --min-score, --min-grade, --no-critical, --no-high, and config-based fail_on.
Yes. g0 outputs SARIF 2.1.0 natively:
g0 scan . --sarif results.sarif
g0 gate . --sarif results.sarif
g0 test --target http://localhost:3000 --sarif results.sarifUse with github/codeql-action/upload-sarif@v3 to see findings in the Security tab.
Yes. Place YAML rules in a directory and set rules_dir in .g0.yaml. See Custom Rules for the full schema and all 13 check types.
Yes, via exclude_rules in .g0.yaml or --exclude-rules on the CLI.
All 1,180+ rules are mapped to 10 industry standards:
- OWASP Agentic Top 10 (ASI01-ASI10)
- NIST AI Risk Management Framework
- ISO/IEC 42001:2023
- ISO/IEC 23894:2023
- OWASP AI Vulnerability Scoring System
- OWASP Agentic AI Top 10 (AAT-1 to AAT-10)
- AI Use Case Standard (AIUC-1)
- EU AI Act
- MITRE ATLAS
- OWASP LLM Top 10
See Compliance Mapping for the full matrix.
g0 shows standards mapping inline on every finding (Standards: OWASP:ASI01 | NIST:GV-1.1). For formal compliance reports (OWASP, NIST AI RMF, ISO 42001, EU AI Act) → Guard0 Platform.
g0 is the background check — it runs once and tells you what you have, what's wrong, and how to fix it. Guard0 Platform provides complete accountability — HTML dashboards, compliance reporting, team collaboration, fleet monitoring, adaptive red teaming, and governance workflows on top of g0's scanning capabilities.