Prompt injection is no longer a theoretical risk. It is an active attack vector in production systems. Two open-source detection projects are shipping with the metrics, integrations, and packaging that make them real production tools. Prompt Shield and Prompt Armor are not research demos. They are Docker-ready packages with framework integrations and latency numbers that fit inside a request pipeline.

This matters because the gap between research detection and deployable defense has been the choke point in LLM security. Papers show detection is possible. Production teams need detection that ships in 27 milliseconds. These two projects cross that threshold.


Prompt Shield: 96.0% F1 With Zero False Positives

Prompt Shield is a multi-detector prompt injection detection system. It runs 25 individual detectors across 10 languages. The headline metric is a 96.0% F1 score with 0% false positives on its evaluation set.

The 0% false positive claim is the critical detail. Most detection systems trade recall against precision. A high-recall detector catches real attacks but also flags benign user inputs as malicious. In a production chatbot or agent, false positives mean angry users and broken workflows. A 0% false positive rate means Prompt Shield can be set to block automatically without a human review loop.

The 25 detectors cover multiple attack families. Direct injection, indirect injection through retrieved content, multi-turn jailbreaks, and encoding-based obfuscation each get dedicated detection logic. Running them in parallel rather than as a single model means the system can specialize per attack type. One detector does not need to handle every edge case.

The 10-language coverage is also notable. Prompt injection payloads often use multilingual encoding or translation tricks to bypass English-only classifiers. Prompt Shield's language breadth removes that evasion path.


Prompt Armor: 91.7% F1 in 27 Milliseconds

Prompt Armor takes a different approach. It uses a 5-layer offline detection stack that runs in approximately 27 milliseconds per request. The F1 score is 91.7%.

The offline architecture is what enables the speed. Instead of calling an external API or loading a large model on every request, Prompt Armor runs its detection layers locally. The 5 layers include lexical analysis, semantic embedding comparison, pattern matching against known attack templates, structural analysis of prompt nesting, and a final consensus layer that combines scores.

The 27ms latency figure is production-relevant. A typical LLM API call takes 500ms to 3 seconds. Adding 27ms of overhead at the edge is negligible. Security teams can insert Prompt Armor as a middleware layer without redesigning their latency budgets.

Prompt Armor also scores high on the adversarial robustness tests published in its evaluation. The 5-layer stack means an attacker would need to evade multiple detection mechanisms simultaneously, not just fool a single classifier.


Production Packaging: Docker, GitHub Actions, and Framework Integrations

Both projects ship with the packaging that separates research code from production tools.

Docker images are available for each detector. Teams can run Prompt Shield or Prompt Armor as sidecar containers, separate microservices, or embedded processes. This fits standard Kubernetes and container orchestration patterns.

GitHub Actions integrations mean detection can run in CI/CD pipelines. Teams can scan prompts and system prompt files at build time, catching injection risks before deployment. This is the shift-left model applied to LLM security.

Framework integrations cover the major agent stacks. LangChain, CrewAI, and Dify each have documented integration paths. This means developers using these frameworks do not need to write custom middleware. They add a configuration line and get detection inline.

The framework integrations are significant because they signal adoption by the ecosystems where prompt injection is a real risk. LangChain agents routinely call tools that return untrusted content. CrewAI orchestrates multi-agent workflows where one agent's output becomes another agent's input. Dify builds conversational applications exposed to end users. Detection built into these frameworks protects the actual attack surface.


What the Metrics Mean in Practice

A 96.0% F1 score with 0% false positives means Prompt Shield can be deployed as an automatic gate. In a customer-facing chatbot, this means malicious prompts get blocked without human escalation. The 25 detectors provide coverage breadth that reduces the chance of a novel attack slipping through.

A 91.7% F1 score in 27ms means Prompt Armor fits latency-sensitive pipelines. Real-time streaming responses, agent tool calls, and interactive applications can add detection without perceptible delay.

Together, the two projects cover different trade-off points. Prompt Shield prioritizes accuracy and breadth. Prompt Armor prioritizes speed and local deployment. Teams can choose based on their constraints or run both in layered defense.


The Broader Shift: From Research to Infrastructure

These two projects represent a maturation in LLM security. For the past two years, prompt injection detection has been a research topic with scattered open-source implementations. The detection quality was hard to compare because each project used different benchmarks, different attack datasets, and different evaluation protocols.

Prompt Shield and Prompt Armor are changing that by shipping with standard packaging, reproducible benchmarks, and integration into the tools developers already use. They are treating prompt injection detection as infrastructure, not an experiment.

This shift mirrors what happened in web application security a decade ago. XSS and SQL injection filters moved from research prototypes to production middleware like mod_security and cloud WAFs. The same transition is now happening for LLM inputs.

The metric that matters most is not the F1 score alone. It is the F1 score combined with the deployment path. A 99% detector that requires a dedicated GPU cluster and a custom integration is not production-ready. A 96% detector that runs in a sidecar container with a one-line framework integration is.


Practical Steps for Teams

If you are running LLM-powered applications in production, both projects are worth evaluating now.

Start with your attack surface. Customer-facing chatbots need high precision to avoid blocking legitimate users. Agent systems with tool calls need detection on both input and tool output paths. Internal tools may tolerate lower precision in exchange for higher recall.

Deploy in monitor-only mode first. Route real traffic through the detector and log results without blocking. This gives you baseline metrics on your actual inputs before you set blocking thresholds.

Integrate with your CI/CD pipeline. Scan system prompts, tool schemas, and prompt templates at build time. Injection risks in static assets are easier to fix before deployment than in production.

Test against your own adversarial examples. Published benchmarks are useful for comparison. Your specific application may have unique injection patterns that the general benchmarks do not cover.


Bottom Line

Prompt Shield and Prompt Armor are the first open-source prompt injection detectors that feel like production tools rather than research projects. The metrics are strong, the packaging is practical, and the framework integrations mean they fit into existing stacks without custom engineering.

For teams running LLM applications, this is the point where prompt injection detection becomes a standard layer in the security stack, not a future concern.