HOL Guard: Open-Source Antivirus for AI Agents

HOL Guard reviews agent actions before they run: shell commands, file access, package installs, and MCP tool calls. It detects secret exposure, destructive operations, prompt injection, and supply-chain risks, then allows, blocks, or requests approval according to your policy. It sees only the events each agent exposes to it: the support matrix lists, for each agent, the event surfaces Guard hooks and the actions it does not cover.
Run it locally without an account. Use the CLI and local dashboard to manage protection, resolve approvals, and inspect decision history. Optional Guard Cloud adds shared history, team policy, and fleet management.
Get started · Supported agents · Plugin scanner · Documentation · Contribute an extension · Contribute an adapter · Development
Sponsors
Gold sponsors
Bronze sponsors
Install HOL Guard
Requires Python 3.10 or newer, pipx, and a matching native runtime. Check the platform support and Windows ARM64 setup notes before installing.
pipx install hol-guard
hol-guard init
The first-run wizard discovers supported agents and walks you through protection setup. It asks before each setup change, including opening the dashboard, installing agent integrations, and connecting optional cloud services.
Python recommendation: Use Python 3.11 or newer for the pipx installation shown above, in line with pipx's current installation guide. HOL Guard itself supports Python 3.10+, so this is a setup recommendation, not a change to the package's minimum supported Python version.
Check your installation:
hol-guard --version
hol-guard status
To update an existing installation:
hol-guard update
For manual setup, see the installation guide. Annotated release notes with upgrade context live at hol.org/guard/releases; raw releases and prereleases are on the GitHub releases page.
What HOL Guard Protects
| Surface |
Protection |
| Shell commands and file access |
Reviews destructive operations, sensitive file access, credential exposure, and suspicious outbound commands. |
| Package installs |
Evaluates supported package-manager operations against supply-chain intelligence before installation. |
| Plugins, skills, and agent configuration |
Inventories local artifacts and reviews new or changed tools before launch. |
| MCP servers and tools |
Inspects server configuration and reviews tool calls through supported hooks and managed proxies. |
| Prompts and tool results |
Screens supported events for prompt injection and sensitive content. |
| Approvals and evidence |
Routes decisions to native prompts or the approval center, and records local receipts for review. |
Guard connects through native agent hooks, managed MCP proxies, and launch integrations. Coverage depends on the events each agent exposes; the support matrix documents enforcement, approval delivery, and failure behavior per integration.
Supported AI Agents
Codex, Claude Code, GitHub Copilot CLI, Cursor, Cline, Gemini CLI, Grok, Hermes, Kimi Code, Pi, oh-my-pi, OpenClaw, OpenCode, Antigravity, ZCode, and Devin. Paseo is supported through these native provider integrations, with per-provider coverage.
For example, to set up Codex explicitly:
hol-guard install codex
hol-guard run codex --dry-run
hol-guard run codex
The dry run records the current artifact state before launch. For Codex, Guard installs native pre-tool hooks and refuses a managed launch if those hooks are missing or disabled.
Agent support matrix · Troubleshooting
Everyday Use
| Task |
Command |
| Check protection status |
hol-guard status |
| Diagnose an agent integration |
hol-guard doctor codex |
| Inspect changes before launch |
hol-guard diff codex |
| Review pending approvals |
hol-guard approvals |
| Approve or deny a request |
hol-guard approvals approve <request-id> / hol-guard approvals deny <request-id> |
| Read decision history |
hol-guard receipts |
| List tracked artifacts |
hol-guard inventory |
| Export an AI bill of materials |
hol-guard abom --format json |
| Scan workspace dependencies |
hol-guard supply-chain scan |
| Connect optional cloud sync |
hol-guard connect |
Understand a paused command
Inspect the command's classification and matching rules:
hol-guard command test 'rm -rf ./build'
hol-guard command explain 'git clean -ndx'
hol-guard command extensions command.git --json
command test and command explain inspect the command without executing it or creating an approval. Use hol-guard approvals to resolve a pending request and hol-guard receipts to review the recorded decision.
The Extension directory lists command coverage generated from the Rust-compiled catalog. External contributions require explicit opt-in; required core protections remain enabled. To add coverage, follow the Extension contribution guide.
Check a package
hol-guard supply-chain sync
hol-guard supply-chain scan
hol-guard supply-chain explain minimist@1.2.5 --ecosystem npm
The package verdict includes the available advisory evidence and ecosystem coverage. See the get-started guide for package-manager interception and the remediation guide for handling false positives.
Plugin Scanner
This repository also ships plugin-scanner, a CLI for maintainers who want security and quality checks before publishing agent plugins, skills, and MCP integrations.
pipx install plugin-scanner
plugin-scanner scan .
plugin-scanner lint .
plugin-scanner verify .
| Command |
Purpose |
scan |
Security findings and a quality report across detected package surfaces. |
lint |
Rule-level authoring feedback. |
verify |
Install-surface and runtime readiness checks. |
submit |
A submission artifact for one plugin package. |
doctor |
Component diagnostics and troubleshooting bundles. |
The scanner detects Codex, Claude Code, DeepSeek Harness, Gemini CLI, Kimi Code, and OpenCode package formats. Use plugin-scanner --list-ecosystems to list them or --ecosystem to select one. At a Codex marketplace root, it discovers local plugin entries automatically.
Checks cover manifests, secrets, MCP transport and command configuration, approval defaults, skills, dependency lockfiles, and GitHub Actions permissions. Optional Cisco integrations add skill and MCP analysis. Reports support text, JSON, Markdown, and SARIF.
When the scanner detects a runtime-bearing surface such as a skill, command, hook, or MCP server, text, Markdown, JSON, and GitHub Action summaries include a report-only Guard coverage context section. It links the detected surface to the checked-in Guard harness claims and explains that static scanning does not prove a local Guard install or a live enforcement result. The section is omitted when no mapped runtime surface is present, and it does not make a network request. See the coverage context contract for the JSON shape and boundary.
plugin-scanner scan . --format sarif --output plugin-scanner.sarif
plugin-scanner scan . --fail-on-severity high
Quality grades use the checks applicable to each package. Trust scoring has separate provenance and weights; see the skill, MCP, and plugin scoring references.
Package a plugin for every runtime
hol-guard plugin is the Plugin Kit. Point it at one plugin source, such as a Claude Code plugin, Codex plugin, Gemini CLI extension, MCP Registry server.json or a folder of skills, and it checks the source and writes a ready-to-load copy for each agent runtime that can use it. It runs locally, reads only the folder you name and makes no network calls.
hol-guard plugin check # what marketplaces and runtime loaders would reject
hol-guard plugin package # writes dist/hol-plugin/<runtime>/ for each runtime
hol-guard plugin convert --to agent-plugins # Agent Plugins 1.0 package, checked against the spec
hol-guard plugin links # install commands per runtime, plus listing links
hol-guard plugin card # draft .well-known plugin card as JSON
hol-guard plugin init --name my-plugin # scaffold a new plugin in an empty folder
Runtimes: claude-code, codex, gemini-cli, cursor, vscode, opencode, mcp-registry, agent-skills and agent-plugins. See the Plugin Kit guide.
GitHub Actions
Add the scanner to a plugin repository:
name: Plugin security
on: [push, pull_request]
permissions:
contents: read
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: hashgraph-online/ai-plugin-scanner-action@fdb49f9d85321a2ced2933301b395dd3c1ce9c8f # v1.2.631
with:
plugin_dir: "."
min_score: 80
fail_on_severity: high
See the action documentation for SARIF uploads, submission workflows, and machine-readable outputs. The action source is maintained in action/.
Optional Cisco analysis
The baseline packages work without Cisco dependencies. To add Cisco skill scanning, use Python 3.11 through 3.14 and install the extra in an isolated environment:
pipx install 'plugin-scanner[cisco]'
For Cisco MCP analysis, use the repository's Docker image or the cisco-mcp dependency group:
uv sync --extra dev --extra cisco --group cisco-mcp --python 3.13
uv run plugin-scanner scan . --cisco-skill-scan on --cisco-mcp-scan on
The published cisco extra provides skill scanning; the separate cisco-mcp group supplies the MCP scanner. Dependency versions and Python constraints are maintained in pyproject.toml.
Ecosystem Support