National Cyber Warfare Foundation (NCWF)login

guardana for verifying AI model artifacts, live endpoints, and agent traces


0 user ratings
2026-11-08 07:31:59
milo
Red Team (CNA)
"guardana

guardana is an open-source verification tool that statically scans model artifacts and actively probes deployed LLM systems, MCP servers, and recorded traces for security and platform engineers.








Toolguardana/guardana — open-source AI security verification for model artifacts, live endpoints, MCP servers, and recorded traces
CategoryAI/LLM security testing and verification (Python, Apache-2.0, 269 stars)
Primary UseRunning static guardana scan, active guardana probe, and offline guardana analyze-trace checks against AI systems you own, mapping findings to OWASP LLM, OWASP MCP, MITRE ATLAS, and NIST AI frameworks
Safe UseAuthorized security assessment of your own models, agents, and MCP infrastructure; CI gating and internal red-team verification in lab or owned environments; the tool sends no telemetry and phones nothing home
Telemetry NoteNo automatic telemetry or phone-home by design; active checks contact only the target you specify, and findings can be shipped to a collector via --reporter server://, which defenders can monitor as their own audit trail

guardana positions itself carefully in a crowded AI-security landscape: it is not an inline guardrail, not a general SAST or CVE scanner, and not a compliance certification. What it does is verify — statically and actively — code artifacts, model files, live AI endpoints, MCP servers, and recorded execution traces, then report three things separately: what it found, what it could not verify, and what it could not check. That tripartite honesty is the core architectural idea, and it shows up again in the exit-code design, where missing evidence is never reported as success. For security and platform engineers who need to gate CI on AI risk without lying to themselves about coverage, that discipline is the sell.


The distribution is guardana-cli on PyPI, with the command being guardana, a distinction the README makes explicitly. A zero-install run is uvx --from guardana-cli guardana scan ., or you can pip install guardana-cli. Python 3.11 through 3.13 are supported, the license is Apache-2.0, the repo carries an OpenSSF Best Practices badge and Scorecard, and every published distribution ships signed keyless build provenance verifiable with gh attestation verify plus a PEP 740 attestation on PyPI. For a tool whose first rule family is supply-chain integrity, provenance on its own packages is a consistent choice worth noting.


The rule engine counts 58 built-in checks — 19 static artifact rules and 39 runtime rules — with the count generated into the repo rather than hand-maintained. Static checks need no model, no network, and no account, which makes them trivially CI-friendly. Rules map to both editions of the OWASP LLM Top 10, the OWASP Top 10 for Agentic Applications, the OWASP MCP Top 10, the OWASP ML Top 10, MITRE ATLAS v5.6.0, and NIST AI 100-2e2025, with editions cited in the references — a level of mapping hygiene most competitors skip. guardana rules lists rules admitted in the current install, including trusted third-party packs, and the generated rule catalog exposes ids, severities, surfaces, and framework mappings.


The rule families divide labor sensibly. guardana.supply_chain.* (16 rules) covers unsafe loading, remote code in model configs, model formats, dependencies, transport, secrets, and provenance. guardana.prompt.* (7) handles hidden instructions, tool poisoning, injection, jailbreaks, and prompt leakage across build and runtime. guardana.agent.* (7) targets tool-result injection, credential exfiltration, broad arguments, excessive use, memory poisoning, and tool schemas. guardana.mcp.* (10) is one of the deeper sets — authentication, discovery, audience, session, scope, issuer, cache handling, task listings, and registry entries — reflecting how under-specified MCP deployments currently are. Smaller families cover A2A agent cards and cross-caller task visibility (guardana.a2a.*), recorded boundary violations (guardana.trace.*), multi-turn scenario testing (guardana.scenario.*), cross-tenant data leakage through the application's own index (guardana.tenancy.*), planted instructions in seeded documents (guardana.retrieval.*), secrets in output, and training-data integrity.


The bundled examples/vulnerable-model directory demonstrates the static engine well. In the README's sample run, guardana.supply_chain.pickle_opcode flags a dangerous pickle opcode in model.pt where unpickling imports posix.system; guardana.supply_chain.dependency_risk flags torch.load without weights_only=True; and guardana.supply_chain.remote_code_config catches a config field naming a Hub kernel repository that transformers would download and import on load — a private field, the README notes, that trust_remote_code=False does not stop, referencing CVE-2026-4372. There is also a hallucinated_package check that flags imports of unknown packages as a possible slopsquat lead — a genuinely modern detection targeting the typo-squatting niche created by LLM-generated dependency names.


Results gate runs through four deliberately separated outcomes: findings (negative verdict reached), unverified (ran but could not decide), errors (could not run), and coverage shortfalls (required evidence unavailable, or a model file no running rule examined). Judgment-requiring results carry an outcome, confidence, rationale, and evaluator identity, and guardana calibrate measures evaluator confidence against labelled samples — a rare admission that probabilistic checks need calibration evidence. Exit codes have nine documented meanings from 0 to 8: a failing scan exits 1 for CI gating, an exhausted budget exits 6 while preserving results, and a comparison that cannot be made exits 2. CI integrations never need to parse console text.


The command surface is verb-structured around what you are verifying. guardana scan does static, offline checks on code and model artifacts. guardana probe --url … --model … runs active checks against a live model, agent, or MCP server — for example guardana probe --url http://localhost:11434 --model llama3 --preset ci --format json --output run.json against a local Ollama instance. guardana analyze-trace trace.jsonl inspects recorded executions in OpenTelemetry GenAI span format or the native trace format, entirely offline. guardana grade answers.jsonl scores answers your application already produced, guardana monitor re-runs active checks on a schedule comparing each cycle to the first cycle, guardana diff a.json b.json reports whether a later run is worse, and guardana import-observations ingests garak or promptfoo results — as unverified, with provenance, never exiting 0 because guardana verified nothing itself.


Policy configuration is explicit rather than implicit: guardana init writes a guardana.yaml policy file, and guardana scan . --profile guardana.yaml --format sarif emits SARIF 2.1.0 for GitHub code scanning. A first-run starter walks through a failing scan, the fix, a saved run, and adding a check of your own — a sensible onboarding path that teaches the verification model rather than just the CLI. The same rules, policy, redaction, and gate logic work inside Python tests via adapters such as guardana.adapters.langchain, meaning findings semantics stay identical whether you run them in CI or in unit tests.


CI integration is first-class. The published GitHub Action is guardana/[email protected], used with actions/checkout@v7 and a security-events: write permission for SARIF upload. The README is refreshingly precise about supply-chain caveats: both references are moving tags, and the published Action pins its own dependencies by SHA but does not pin those two references in your workflow — you are told to replace them with full commit SHAs if pinning matters. A pre-commit hook and templates for GitLab, Jenkins, and Azure DevOps ship in docs/integrations.md.


Operationally, the telemetry posture is defensible by design: no account, no key, no model, and no network are needed after install; static checks are fully offline; and the only outbound communication is either the target you explicitly choose for active checks or an optional collector via --reporter server://. For defenders monitoring an environment where guardana runs, that means predictable, self-declared network behavior — active probes touch only the named endpoint, and findings flow only to the configured reporter. Defanged, that reporter would look like --reporter server://collector[.]example[.]internal.


Where guardana fits in an authorized workflow is as the verification layer between ad-hoc prompt testing and formal certification. A red team uses probe and monitor against systems it is contracted to assess; a platform team gates merges with scan and SARIF; an app owner audits production behavior post-hoc with analyze-trace against OpenTelemetry spans. The tool's own documented detection limits — what each finding actually establishes — are generated into the repo, which is the kind of epistemic humility that separates serious verification tooling from check-box scanners. With 269 stars, stable status, and active CI, it is an early but credible entrant in the MLSecOps verification niche.



Official project repository for guardana/guardana.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/11/guardana-for-verifying-ai-model.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.