R154 · Agent principles and patterns › Formal constraints on agent actions

20 open-source tools for AI agent security, checked

Read the original

Authors Maryam Miradi

securityagent-authsandboxingappseclearning-resourceslibrary-catalogs

TL;DR

A sound five-layer map for agent security (guardrails, red teaming, authorization, isolation, data and supply chain), but treat it as a category map, not a shopping list. Checked against GitHub on 2026-11-19: 16 of the 20 are healthy, widely used projects. LLM Guard is archived (Protect AI stopped maintaining it and its Hugging Face models), two names (AgentGuard, Guardian) are ambiguous low-traction projects with several unrelated repos sharing each name, and Trivy, Semgrep and ModelScan protect the code and model supply chain rather than the running agent.

The post's own closing point is the one to keep: assume the model will be manipulated, and make the outer layers (authorization and sandbox) hold anyway. Guardrail classifiers are probabilistic and belong inside that envelope, not in place of it.

Source: Maryam Miradi's LinkedIn post, posted 2026-11-06 (about 300 reactions, 46 reposts).

What the post lists

Five groups of four, each with a one-line "best when" rule:

  1. Prompt injection and guardrails (LLM Guard, NeMo Guardrails, AgentGuard, Guardian): when untrusted text can steer the agent.

  2. Red teaming and security testing (PyRIT, garak, Promptfoo, Giskard): break the agent before an attacker does.

  3. Identity and permissions (Open Policy Agent, OpenFGA, Casbin, Cedar): control which users, agents and tools can do what.

  4. Sandboxing and runtime security (E2B, gVisor, Firecracker, Kata Containers): when agents run code or cause real side effects.

  5. Data and secrets protection (Presidio, Trivy, Semgrep, ModelScan): when agents touch sensitive data, credentials, code or dependencies.

The post gives no links per tool, no versions and no evaluation; it promises a benchmark later. It ends with a link to the author's free course guide. The best comment thread adds the failure the list misses: the policy service goes down at 3 AM and the agent treats a missing approval as a yes. Authorization has to fail closed.

Repo check

Stars, last push and license from GitHub search on 2026-11-19. Sorted by group, then stars.

ToolGroupRepo (current home)StarsLast pushLicenseVerdict
NeMo GuardrailsGuardrailsNVIDIA-NeMo/Guardrails7.5k2026-11-18not classified by GitHubActive; moved from NVIDIA/NeMo-Guardrails
LLM GuardGuardrailsprotectai/llm-guard3.2k2026-07-08MITArchived; README says repo and HF models are unmaintained
AgentGuardGuardrailsambiguous: numbergroup/AgentGuard matches the description1032026-03-06n/aLow traction; at least 6 unrelated repos share the name
GuardianGuardrailsambiguous: LegionForge/guardian is the closest match22026-11-16n/aNot identifiable; don't adopt by name
PromptfooRed teamingpromptfoo/promptfoo27.4k2026-11-18MITActive; evals plus red-team plugins in CI
garakRed teamingNVIDIA/garak10.1k2026-11-18Apache-2.0Active; probe-based LLM scanner
GiskardRed teamingGiskard-AI/giskard-oss6.0k2026-11-18Apache-2.0Active; renamed repo
PyRITRed teamingmicrosoft/PyRIT4.9k2026-11-19MITActive; the old Azure/PyRIT repo is archived
CasbinPermissionsapache/casbin20.5k2026-11-15Apache-2.0Active; now under Apache
Open Policy AgentPermissionsopen-policy-agent/opa12.5k2026-11-19Apache-2.0Active; CNCF graduated
OpenFGAPermissionsopenfga/openfga6.2k2026-11-16Apache-2.0Active; Zanzibar-style relationships
CedarPermissionscedar-policy/cedar1.9k2026-11-18Apache-2.0Active; analyzable policy language
FirecrackerSandboxingfirecracker-microvm/firecracker38.1k2026-11-18Apache-2.0Active; microVMs
E2BSandboxinge2b-dev/E2B14.9k2026-11-18Apache-2.0Active; hosted Firecracker sandboxes plus SDK
Kata ContainersSandboxingkata-containers/kata-containers9.2k2026-11-19Apache-2.0Active; VM-backed pods
gVisorSandboxinggoogle/gvisornot returnednot checkedApache-2.0Long-lived; user-space kernel
TrivyData and supply chainaquasecurity/trivy39.5k2026-11-18Apache-2.0Active; a build-time scanner
SemgrepData and supply chainsemgrep/semgrep17.8k2026-11-19LGPL-2.1Active; build-time SAST
PresidioData and supply chaindata-privacy-stack/presidio12.0k2026-11-19MITActive; GitHub now lists it outside the microsoft org
ModelScanData and supply chainprotectai/modelscan0.8k2026-09-28Apache-2.0Quiet since September; same vendor as LLM Guard, so watch it

Where each layer sits

The five groups are not peers. They sit at different points on one tool call's path, and only some are deterministic. Read from the outside in:

  1. Build time (Semgrep, Trivy, ModelScan). Scan the agent's own code, images, dependencies and model files before deploy. These guard the supply chain, not the running agent.

  2. Input and output filters (NeMo Guardrails, LLM Guard, Presidio). Classify or rewrite text entering and leaving the model. Probabilistic: they lower the hit rate of injection and leakage but can be evaded, so they never stand alone.

  3. Authorization at the tool boundary (OPA, OpenFGA, Cedar, Casbin). A policy decision point checks each proposed call against who the user is, which agent is acting and what resource it touches. Deterministic, and the layer that still holds when the model is fully compromised. It must fail closed when the policy service is down.

  4. Isolation (gVisor, Kata, Firecracker, E2B). Contains whatever an allowed call does: file system, network egress, credentials. Stronger isolation costs startup latency and density (gVisor syscall overhead; Firecracker and Kata need KVM).

  5. Pre-deploy and continuous testing (Promptfoo, garak, PyRIT, Giskard). Attack the whole stack, in CI and on a schedule. They measure the layers above; they enforce nothing.

The design rule that follows: put decisions you must be able to audit in layers 3 and 4, and treat layer 2 as noise reduction. Most of the 20 tools are general infrastructure (OPA, Firecracker, Trivy) rather than agent-specific, which is a strength: they are mature and already run in production.

Gaps and corrections

Corrections:

Missing layers a staff review would ask about:

Review checklist

Sources

Connections

See R154 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.