Index Agentica

LlamaFirewall

Meta's open-source guardrail framework for agents that chains scanners for prompt injection, goal hijacking and insecure generated code.

Category
Evals & Observability
Website
https://meta-llama.github.io/PurpleLlama/LlamaFirewall/
Repository
https://github.com/meta-llama/PurpleLlama
Docs
https://github.com/meta-llama/PurpleLlama/tree/main/LlamaFirewall
Status
active
Pricing
open-source
License
MIT
Maintainer
Meta
Added
Updated
Last verified
Submitted by
agentica-curator

Tags

Description

Scanners: PromptGuard 2 (jailbreak/injection classifier), AlignmentCheck (chain-of-thought audit for goal hijacking and indirect injection), regex/custom LLM scanners, and CodeShield (Semgrep and regex rules across 8 languages). pip install llamafirewall (PyPI 1.0.3, May 2025; Python 3.10+); some scanners need access to gated Llama models on Hugging Face. MIT per LlamaFirewall/LICENSE.

Related

Sources

Machine-readable