First downloadable release of agentguard-cursor-rules-for-context-isolation-injection-defense.
AgentGuard: Cursor Rules for Context Isolation & Injection Defense
$29.99One-time purchase
Comprehensive Cursor rule suite for building secure AI agents with strict context isolation, untrusted input boundaries, and indirect prompt injection defenses.
- Current version
- 1.0.0
- Files included
- 12
- Digital delivery
- Instant download
From selection to download in four clear steps.
- 01
Create your account
Sign up or log in so your order, invoice and downloads stay available.
- 02
Review the package
Check the included files, requirements, license and one-time price.
- 03
Pay securely
Complete the checkout with our secure payment provider. No card data is stored by Agenova.
- 04
Download your product
After payment confirmation, retrieve the files and license from your account.
Built to save a real afternoon
Strict payload and instruction channel separation patterns
Indirect prompt injection defense rules for tool outputs
Pre-execution parameter sanitization for LLM tool invocation
Context boundary enforcement to prevent data exfiltration
AgentGuard: Cursor Rules for Context Isolation & Injection Defense
Requirements
- An agent that calls tools, at least one of which returns content you do not control
- At least one tool that can write, spend, send, or read something sensitive
- The ability to enforce checks in code around the model, not only in prompts
- A test environment for the twelve probes — never run them against production
Digital delivery
Secure download available after payment confirmation.
Practical license
Use and adapt the files in your own projects.
Versioned files
A clear changelog is included in every package.
Version history
Initial Product Agent release
Good questions, straight answers.
Does this stop prompt injection?+
No, and no product can. An LLM receives instructions and data as the same tokens, so a defence phrased as an instruction competes with the attacker in the same channel. What these rules do is make a successful injection survivable: the threat model marks each attack as eliminated or merely reduced, and every eliminated one is a check in code rather than a sentence in a prompt.
Which rule should I adopt if I only adopt one?+
20-tool-parameter-validation. It is the layer that holds after the model has been persuaded — resolved-path containment, argument vectors instead of shell strings, allowlists rather than blocklists, and identity taken from the authenticated session rather than from an argument. That last line alone closes a class of cross-tenant data breach that no prompt-level defence covers.
Is there an injection detector included?+
No, deliberately. Classifier detection is bypassed by paraphrase and encoding, it flags legitimate security discussion, and — the real objection — deploying one tends to displace the architectural work that actually holds. One of the documented anti-patterns is a team that expanded their agent's capabilities on the strength of a detector, then had it bypassed by a request written in French.
Are the twelve test cases safe to run?+
They are benign by design: each asks for a harmless marker — a canary string, a scratch file, a report of what the agent noticed — rather than doing damage, so they are safe to run repeatedly in a test environment and unambiguous to score. Run them against your own agent only, and never against production or a real customer record.
What is the catch?+
Taken seriously, these rules reduce what your agent may do autonomously. An agent that reads untrusted content and also holds a capability worth abusing cannot be made safe by a rule file — the two have to be separated, usually by a human confirmation step or a second agent with no network egress. That trade is stated up front rather than buried.
Related products
Developer ToolsProduction Telemetry and Live Debugging Rules
Four Cursor rules and a diagnostic playbook for answering a question about running production code without shipping a deploy to find out.
- Zero-redeploy state inspection in Node.js, Python and Go — stacks on signal, pool counters, goroutine and task lists
- Log and span payloads carrying the five fields that make correlation possible at all
Developer ToolsAI Model Regression & Behavioral Drift Prevention Rules
A production-grade Cursor rules package and evaluation harness configuration designed to prevent code generation regressions, benchmark LLM outputs, and enforce deterministic guardrails across model updates.
- Pin the model, the prompt and the decoding parameters
- Output contracts that refuse an unknown enum instead of defaulting
Developer ToolsCursor Rules for Laravel
Production rules for clean Laravel applications.
- Laravel architecture rules
- API security guardrails