Introducing a new way to review your PRs.

Read the announcement

hashgraph-online / hol-guard

Open-source antivirus and firewall for AI agents: block risky tools, secret access, prompt injection, malicious packages, MCP servers, plugins, and skills at runtime.

View on GitHub

44 documents · Updated Nov 23, 2026

overview

Knowledge Base updated: 2026-11-22

HOL Guard knowledge base

HOL Guard is a multi-language security system for AI-agent and developer-tool workflows. Its Rust runtime owns enforcement, policy, persistence, daemon services, and native execution; Python and plugin surfaces provide scanner and integration capabilities; the dashboard exposes operator workflows.

Critical local state is primarily held in the runtime's SQLite-backed Guard store, including approvals, policy activation, cloud review delivery, command queues, receipts, and recovery markers. Signed or synchronized policy and managed-control inputs feed the runtime's authoritative decision paths.

The main reader routes are scanner analysis, enforcement and interception, policy and cloud operations, daemon persistence, dashboard operations, integrations, native runtime authority, deployment, and context assistance.

flowchart TD
  Agents[AI agents and developer tools] --> Adapters[Adapters, hooks, proxies, and shims]
  Adapters --> Runtime[Rust Guard runtime]
  Runtime --> Decisions[Policy and approval decisions]
  Runtime --> Native[Native command authority]
  Native --> Queue[Managed command queue]
  Runtime --> Store[(SQLite Guard store)]
  Runtime --> Daemon[Local daemon]
  Daemon --> Cloud[Cloud policy and review services]
  Cloud --> Policy[Signed policy bundles and exceptions]
  Policy --> Decisions
  Runtime --> Contained[Contained execution]
  Runtime --> Evidence[Receipts and evidence]
  Evidence --> Dashboard[Dashboard operator workspaces]
  Dashboard --> Cloud
  Scanner[Scanner and plugin analysis] --> Evidence
  Context[Context assistance and CIGAR] --> Runtime

Glossary

  • Guard store — the runtime-managed local SQLite state used for operational records, recovery, and projections.
  • Native runtime — the Rust authority boundary that evaluates and admits commands across direct and hook-facing paths.
  • Contained execution — supervised execution with process, filesystem, and evidence boundaries.
  • Cloud review — remote review delivery and feedback for Guard actions.
  • CIGAR — the context-assistance artifact and managed-environment subsystem.

Codebase-wide invariants

  • Enforcement decisions must be produced at an interception boundary rather than only rendered to clients; evidence is represented across rust/…/hook_*.rs and rust/…/native_*.rs.
  • Durable runtime workflows preserve recoverable state in the Guard store; storage operations are concentrated under rust/…/guard_store_*.rs.
  • Policy activation and command admission consume authoritative policy state, with integrity and authority logic under rust/…/policy_*.rs.
  • Cloud-facing delivery must retain enough identity and state to retry or recover; cloud event and review persistence are represented by rust/…/cloud_event_command.rs and rust/…/guard_store_cloud_*.rs.
  • Dashboard controls remain clients of runtime and service contracts, with feature workflows grouped under dashboard/src/**.

Routing table