For a toolkit for detecting prompt injection attacks, the first results are nvidia/nemo-guardrails (NeMo-Guardrails is a security middleware toolkit that intercepts LLM inputs and outputs to block prompt injections, jailbreaks, and data leaks, making it a direct and comprehensive answer for defending LLM-powered applications), protectai/llm-guard and 0x4m4/hexstrike-ai. nearai/ironclaw and nirdiamant/prompt_engineering round out the shortlist. Compare the match explanations and check the project documentation against your requirements.
Security frameworks and scanning utilities designed to detect and mitigate prompt injection attacks in LLM applications.
NeMo-Guardrails is a toolkit for adding programmable safety constraints and dialogue boundaries to large language model conversational systems. It functions as security middleware that intercepts inputs and outputs to block prompt injections, jailbreaks, and sensitive data leaks, while providing a conversational dialogue manager to define structured interaction flows through configuration files. The framework includes a hallucination filter to screen model outputs for factual accuracy and a specialized modeling language for defining conversational flows and constraints. It provides capabiliti
NeMo-Guardrails is a security middleware toolkit that intercepts LLM inputs and outputs to block prompt injections, jailbreaks, and data leaks, making it a direct and comprehensive answer for defending LLM-powered applications.
LLM Guard is a security firewall and guardrail framework designed to scan and sanitize inputs and outputs for large language models. It functions as a proxy gateway and security layer to block prompt injections, toxicity, and sensitive data leakage while ensuring that model interactions remain compliant with organizational policies. The system distinguishes itself through a modular scanner pipeline that utilizes local model orchestration to eliminate external network dependencies. It supports real-time security filtering via streaming chunk analysis and implements a fail-fast execution model
LLM Guard is a security firewall and guardrail framework that explicitly blocks prompt injections and sanitizes both inputs and outputs, matching the core need for defending LLM applications, and its modular scanner pipeline covers injection detection, output filtering, input sanitization, and rate limiting.
This project is a comprehensive security platform providing an LLM security orchestration framework, an AI agent firewall, and tools for vulnerability remediation, compliance automation, and endpoint protection. It functions as a centralized system to protect AI models from adversarial exploits while managing the identification and patching of software flaws. The platform distinguishes itself through the coordination of specialized AI agents to automate complex security workflows, including reconnaissance, bug hunting, and exploit development. It implements dedicated guardrails to block promp
This platform provides dedicated guardrails and an AI agent firewall specifically designed to block prompt injection attacks, aligning directly with the need for LLM defense; its comprehensive feature set covers input filtering, pattern detection, and output controls, making it a strong choice for protecting AI applications.
Ironclaw is an LLM orchestration framework and AI agent gateway designed to connect large language models with external tools, messaging interfaces, and persistent memory systems. It functions as a communication layer that routes interactions between users and AI models via HTTP webhooks and various messaging channels. The system focuses on secure tool execution through a WebAssembly sandbox and isolated containers, which allows the framework to run untrusted code and dynamically generate new tools from natural language descriptions. Security middleware provides prompt injection defense and s
Ironclaw is an LLM orchestration framework with built-in security middleware that provides prompt injection defense, input validation, and sandboxed execution, making it a good fit for protecting LLM-powered applications against prompt injection attacks.
This project is a comprehensive guide and framework for designing, optimizing, and securing inputs to improve the accuracy and reasoning of large language model outputs. It provides core methodologies for implementing logical reasoning steps, example-based learning, and reusable template systems. The framework distinguishes itself through a focus on security guardrails and ethical auditing, implementing primitives to prevent adversarial prompt injection attacks and identify biases. It also emphasizes structured generation, using persona assignment and negative constraints to control the tone,
This is a prompt engineering guide with sections on security guardrails and injection prevention, but it is primarily educational material (Jupyter Notebooks and tutorials) rather than a ready-to-integrate library for defending LLM applications.
Nexent is an enterprise AI control plane and LLM agent orchestration platform. It provides a zero-code environment for designing, deploying, and managing production AI agents through a multi-agent collaboration framework that coordinates specialized autonomous agents using standardized messaging protocols. The platform integrates the Model Context Protocol to connect agents with external tools, plugins, and services via a universal communication interface. It further distinguishes itself with a dedicated RAG knowledge base manager that imports unstructured documents and utilizes hybrid search
Nexent is an enterprise AI agent orchestration platform focused on multi-agent collaboration and RAG, not a dedicated security library for defending against prompt injection attacks—it lacks the core injection detection and sanitization features this search targets.
CL4R1T4S is a framework designed to orchestrate generative AI workflows and optimize language model outputs. It functions as a centralized utility for managing, versioning, and deploying structured system prompts and behavioral parameters to ensure consistent performance across complex tasks. The project distinguishes itself by implementing a structured pipeline that wraps model interactions to enforce behavioral constraints and sanitize inputs. This orchestration layer incorporates heuristic-based validation and stateful context management to maintain coherence and quality throughout multi-s
CL4R1T4S is an AI workflow orchestration framework that includes input sanitization and injection detection as part of its pipeline, but its primary focus is on managing and optimizing LLM interactions rather than being a dedicated security library, so it fits the adjacent space of tools that can help with defense but are not specialized for it.
Giskard is an AI quality assurance suite and evaluation framework designed to measure the performance, bias, and security risks of large language models and AI agents. It functions as a vulnerability scanner to detect security flaws and performance regressions. The project provides automated red-teaming and adversarial testing workflows. These tools generate prompt-injection probes and adversarial attacks based on system descriptions to identify security gaps and vulnerabilities. The platform covers AI agent auditing and RAG quality validation, using knowledge-base grounding and synthetic da
Giskard is a quality assurance and red-teaming framework for detecting prompt injection vulnerabilities through adversarial testing, not a runtime defense library that provides input sanitization, output guardrails, or access control for live LLM applications.
Casibase is an open-source platform that orchestrates multi-turn conversations with large language models and manages retrieval-augmented knowledge bases from a single interface. It provides a unified system for connecting to over 30 AI model providers, ingesting documents into vector embeddings for semantic search, and running autonomous agent loops that can drive a browser, search the web, execute commands, and integrate with external tools. The platform distinguishes itself by combining AI conversation management with infrastructure and application orchestration capabilities. It includes a
Casibase is a platform for orchestrating LLM conversations and RAG pipelines rather than a dedicated prompt injection defense library—while it includes role-based access control and audit logging, it does not provide the input sanitization, injection pattern detection, or output guardrails this search is specifically after.
OmniRoute is a unified LLM API gateway that connects multiple AI providers to a single endpoint. Its primary purpose is to simplify the integration of various AI models into tools and agents by translating different provider formats into a standardized API. The project distinguishes itself through a multi-strategy request routing system that optimizes for cost, speed, and availability, including automatic model fallbacks and a circuit-breaker resilience model to isolate provider failures. It employs a local-first security posture, using AES-256-GCM encryption to store API keys and conversatio
OmniRoute is an LLM API gateway focused on multi-provider routing and cost optimization, not a dedicated security library for detecting or preventing prompt injections — while it includes encryption and a circuit breaker, the core capability of injection pattern detection and content guardrails is absent from its described purpose.
Mastra is an orchestration framework designed for building, deploying, and managing autonomous AI agents and multi-agent systems. It provides a comprehensive suite of primitives for creating resilient AI applications, including durable workflow orchestration, event-driven agent loops, and semantic memory management. By integrating these core components, the platform enables developers to build complex, multi-step processes that can reason about goals and execute tasks without manual intervention. The framework distinguishes itself through its focus on observability and secure, isolated execut
Mastra is an orchestration framework for building AI agents and multi-agent systems, not a dedicated security library for defending against prompt injection attacks—so while it touches the AI application space, it lacks the input sanitization, injection detection, and access control features this search targets.
This project is a comprehensive framework for developing, orchestrating, and deploying autonomous agents. It provides a structured environment for building agents that utilize reasoning loops to perform multi-step tasks, manage state through graph-based workflows, and interact with external tools. By mapping unstructured model outputs into typed schemas, the framework ensures reliable integration with downstream application logic. The platform distinguishes itself through a focus on production-grade reliability and security. It incorporates hybrid memory systems that combine vector embeddings
This is an autonomous agent development framework, not a specialized library for prompt injection defense; its security focus is on production reliability rather than on detecting or preventing injection attacks.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| nvidia/nemo-guardrails | 6.5K | Python | NOASSERTION | |
| protectai/llm-guard | 2.6K | Python | mit | |
| 9.6K |
| Python |
| MIT |
| nearai/ironclaw | 12.5K | Rust | Apache-2.0 |
| nirdiamant/prompt_engineering | 7.9K | Jupyter Notebook | NOASSERTION |
| modelengine-group/nexent | 6.2K | Python | MIT |
| elder-plinius/cl4r1t4s | 51.8K | — | AGPL-3.0 |
| giskard-ai/giskard-oss | 5.9K | Python | Apache-2.0 |
| casibase/casibase | 4.4K | Go | apache-2.0 |
| diegosouzapw/omniroute | 6.4K | TypeScript | MIT |