awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com

LLM Prompt Injection Defense Tools

Ranking updated Jun 30, 2026

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.

LLM Prompt Injection Defense Tools

Find the best repos with AI.We'll search the best matching repositories with AI.
  • nvidia/nemo-guardrailsNVIDIA avatar

    NVIDIA/NeMo-Guardrails

    6,453View on GitHub↗

    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.

    PythonOutput GuardrailsInput and Output Guardrails
    View on GitHub↗6,453
  • protectai/llm-guardprotectai avatar

    protectai/llm-guard

    2,561View on GitHub↗

    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.

    PythonLLM Prompt Injection PreventionOutput Guardrails
    View on GitHub↗2,561
  • 0x4m4/hexstrike-ai0x4m4 avatar

    0x4m4/hexstrike-ai

    9,617View on GitHub↗

    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.

    PythonLLM Prompt Injection Prevention
    View on GitHub↗9,617
  • nearai/ironclawnearai avatar

    nearai/ironclaw

    12,456View on GitHub↗

    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.

    RustLLM Prompt Injection Prevention
    View on GitHub↗12,456
  • nirdiamant/prompt_engineeringNirDiamant avatar

    NirDiamant/Prompt_Engineering

    7,924View on GitHub↗

    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.

    Jupyter NotebookLLM Prompt Injection Prevention
    View on GitHub↗7,924
  • modelengine-group/nexentModelEngine-Group avatar

    ModelEngine-Group/nexent

    6,157View on GitHub↗

    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.

    PythonRole-Based Access ControlRole-Based Access Controls
    View on GitHub↗6,157
  • elder-plinius/cl4r1t4selder-plinius avatar

    elder-plinius/CL4R1T4S

    51,822View on GitHub↗

    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.

    LLM Prompt Injection Prevention
    View on GitHub↗51,822
  • giskard-ai/giskard-ossGiskard-AI avatar

    Giskard-AI/giskard-oss

    5,947View on GitHub↗

    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.

    PythonPrompt Injection Testing
    View on GitHub↗5,947
  • casibase/casibasecasibase avatar

    casibase/casibase

    4,443View on GitHub↗

    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.

    GoRole-Based Access ControlRole-Based Access Controls
    View on GitHub↗4,443
  • diegosouzapw/omniroutediegosouzapw avatar

    diegosouzapw/OmniRoute

    6,391View on GitHub↗

    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.

    TypeScriptLLM Prompt Injection Prevention
    View on GitHub↗6,391
  • mastra-ai/mastramastra-ai avatar

    mastra-ai/mastra

    21,221View on GitHub↗

    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.

    TypeScriptRole-Based Access ControlRole-Based Access ControlsPrompt Injection Testing
    View on GitHub↗21,221
  • nirdiamant/agents-towards-productionNirDiamant avatar

    NirDiamant/agents-towards-production

    17,375View on GitHub↗

    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.

    Jupyter NotebookPrompt Injection Testing
    View on GitHub↗17,375
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
nvidia/nemo-guardrails6.5KPythonNOASSERTIONJun 17, 2026
protectai/llm-guard2.6KPythonmitDec 15, 2025
0x4m4/hexstrike-ai
9.6K
Python
MIT
Apr 27, 2026
nearai/ironclaw12.5KRustApache-2.0Jun 16, 2026
nirdiamant/prompt_engineering7.9KJupyter NotebookNOASSERTIONOct 31, 2026
modelengine-group/nexent6.2KPythonMITNov 6, 2026
elder-plinius/cl4r1t4s51.8K—AGPL-3.0Sep 22, 2026
giskard-ai/giskard-oss5.9KPythonApache-2.0Nov 2, 2026
casibase/casibase4.4KGoapache-2.0Feb 20, 2026
diegosouzapw/omniroute6.4KTypeScriptMITJun 17, 2026

Related searches

  • a toolkit for red-teaming language models
  • a framework for automatic prompt optimization
  • a tool for detecting LLM hallucinations
  • a platform for experimenting with prompts in production
  • a library for guardrails on LLM outputs
  • an observability platform for LLM applications
  • a framework for evaluating LLM apps
  • a framework for evaluating LLM output quality