Skip to content

Latest commit

 

History

History
137 lines (85 loc) · 5.19 KB

File metadata and controls

137 lines (85 loc) · 5.19 KB

FAQ

General

How is g0 different from Semgrep, Snyk, or other SAST tools?

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.

How is g0 different from Garak or Promptfoo?

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.

What languages does g0 support?

Python, TypeScript, JavaScript, Java, and Go. g0 has framework-specific parsers for 10 AI agent frameworks across these languages.

Does g0 need access to my AI provider API keys?

No — not for static scanning. API keys are only needed for:

  • g0 scan --ai — AI-powered analysis of findings
  • g0 test --ai — LLM-as-judge for dynamic testing
  • g0 test --provider — Direct model testing

Scanning

How long does a scan take?

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.

Can I scan private repositories?

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.

Can I scan monorepos?

Yes. g0 walks the entire directory tree and detects multiple frameworks. Use exclude_paths in .g0.yaml to skip irrelevant directories.

Why is my score low?

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.

False Positives

How do I suppress a false positive?

Three options:

  1. Inline: Add // g0-ignore: AA-XX-NNN on the line
  2. Config: Add the rule ID to exclude_rules in .g0.yaml
  3. Path: Add the file/directory to exclude_paths in .g0.yaml

See Understanding Findings for details.

Does g0 have a high false positive rate?

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.

CI/CD

How do I add g0 to my CI pipeline?

npx @guard0/g0 gate .

See CI/CD Integration for GitHub Actions, GitLab CI, Jenkins, and pre-commit examples.

What exit codes does g0 gate return?

  • 0 — All thresholds passed
  • 1 — One or more thresholds failed
  • 2 — Scan error

g0 gate supports configurable thresholds: --min-score, --min-grade, --no-critical, --no-high, and config-based fail_on.

Can I use g0 with GitHub Code Scanning?

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.sarif

Use with github/codeql-action/upload-sarif@v3 to see findings in the Security tab.

Custom Rules

Can I write custom rules?

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.

Can I disable built-in rules?

Yes, via exclude_rules in .g0.yaml or --exclude-rules on the CLI.

Standards

Which standards does g0 map to?

All 1,180+ rules are mapped to 10 industry standards:

  1. OWASP Agentic Top 10 (ASI01-ASI10)
  2. NIST AI Risk Management Framework
  3. ISO/IEC 42001:2023
  4. ISO/IEC 23894:2023
  5. OWASP AI Vulnerability Scoring System
  6. OWASP Agentic AI Top 10 (AAT-1 to AAT-10)
  7. AI Use Case Standard (AIUC-1)
  8. EU AI Act
  9. MITRE ATLAS
  10. OWASP LLM Top 10

See Compliance Mapping for the full matrix.

Can I generate compliance reports?

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.

Guard0 Platform

What is 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.