# Prompt Injection & Jailbreak Guard for AI Agents

> Scans prompts for injection, jailbreak, and exfiltration before they reach your agent. Deterministic regex rules — no LLM, no latency, fully auditable

Prompt Injection & Jailbreak Guard for AI Agents is a paid AI agent skill on Agensi by Christopher Escamilla, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $19 (one-time purchase)
- Creator: [Christopher Escamilla](https://www.agensi.io/creators/christopher-escamilla)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-27
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/prompt-injection-jailbreak-guard-for-ai-agents
- Tags: security, prompt-engineering, mcp-server, python, prompt-injection, ai-security, mcp, jailbreak

## About this skill

Every AI agent accepts untrusted input — pasted text, emails, documents, web pages. Any of it can carry a prompt
injection ("ignore previous instructions"), a jailbreak, or an exfiltration attempt. By the time the prompt reaches
your model, the injection has already won.
Prompt Injection Guard is an MCP server that scans prompts BEFORE they reach the agent. Rule-based and deterministic —
no second LLM, no API cost, no added latency. 12 default rules across injection, jailbreak, exfiltration, malicious
commands, and obfuscation, each with a severity score and a BLOCK/PASS verdict.
Why rules instead of an LLM guard? An LLM guard is vulnerable to the same attacks it's meant to catch (circular trust),
adds 500ms–2s of latency, and burns tokens. Regex catches known patterns in microseconds, for free, with zero false
negatives — and every block is auditable.
7 tools: scan_prompt, add_rule, list_rules, guard_stats, toggle_rule, delete_rule, cleanup_logs. Zero dependencies, MIT
license, SQLite-backed.

## Requires

- Python
- Git

Runs locally — standard library only, no pip install. Register as an MCP server in your agent's config.

## Known limitations

Requires Python 3 standard library. High-threshold blocking (0.85) may cause false negatives for subtle semantic attacks that don't match defined regex patterns.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Prompt Injection & Jailbreak Guard for AI Agents skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this deterministic guard differ from just asking my LLM to be safe?

Unlike LLM-based moderation which can be bypassed by the same techniques it tries to stop, this server uses a deterministic engine that provides consistent results without additional API costs or "hallucinated" safety approvals.

### Which AI agents and IDEs are compatible with this skill?

It is a standard Model Context Protocol (MCP) server compatible with any tool-using agent environment, including Claude Code, Cursor, GitHub Copilot, and custom Python-based agent frameworks.

### Are there any heavy dependencies or external APIs required to run the scan?

The skill is built using the Python 3 standard library with zero external dependencies, making it extremely lightweight and easy to audit for your own security compliance.

### Can I customize the detection rules or add my own blacklisted patterns?

Yes, while the core engine is pre-configured for common attacks, you can use the `add_rule` and `toggle_rule` tools to customize detection patterns for your specific domain or application needs.

### What exactly is included in the purchase of this skill?

You receive the complete MCP server script, a comprehensive README with setup instructions for major IDEs, and a library of pre-configured detection patterns for immediate use.

### Will adding this guard significantly slow down my agent's response time?

Because it runs as a local Python script, the latency is negligible (typically sub-millisecond), ensuring your agent remains responsive while staying protected.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
