See what your AI agent does when the content it reads is hostile.
RedRange plants known prompt-injection and tool-misuse attacks in a sandbox, records every tool call your agent makes, and shows the chain from untrusted text to a harmful action.
From a registered agent to a CI decision
Four steps, the same in the console, the command line and the GitHub Action.
Register the agent
Give RedRange a system prompt, a model and the tools the agent may use, or pick a built-in reference agent.
Run an attack suite
Each case plants a known technique in an email, file, web page, database row or MCP tool, and runs k times.
Read the evidence
Every tool call is recorded. Oracles decide the verdict and a five-step chain shows how untrusted text became an action.
Gate the build
Turn on defence layers, compare runs with intervals, and fail CI when success rate or severity crosses your limit.
Attacks that are known, measured and explained
Every finding comes with the trace that proves it, and every rate with the number of trials behind it.
Versioned attack library
Direct and indirect prompt injection, tool misuse, cross-tenant reads, secret extraction, loops and MCP attacks. Each case has a negative twin.
Six defence layers
Spotlighting, least privilege, policy rules, human approval, an egress filter and a loop guard. Switch them per target and measure each one.
Deterministic oracles
Canary leaks in several encodings, unauthorised tools, policy violations, unapproved writes and runaway cost are checked in code, not by a model.
Evidence chain per finding
Untrusted instruction, tool selected, sensitive data included, policy decision, outcome. Each link points at the trace event that shows it.
Honest comparisons
Attack success and attempt rate are kept apart. Differences come with Newcombe intervals and Fisher's exact test, and say when they are not significant.
Reports and a CI gate
HTML, Markdown, JSON and SARIF for GitHub code scanning, plus a composite GitHub Action with interval-aware thresholds.
How the full system is designed
The public demo runs on simulated data in your browser. The product behind it is a Docker Compose stack.
- Attack case: YAML and a template
- Sandboxed world: fake tools, canary secrets
- Target agent: reference, config, scripted
- Tool gateway: policy, approvals, guards
- Append-only trace: every call and its source
- Oracles: deterministic checks
- Verdict and evidence: severity, five-step chain
- Reports and CI gate: HTML, Markdown, JSON, SARIF
Oracles before judges
Whether an attack worked is decided by code that reads the trace. A model judge is used only where no oracle exists and never overrides one.
Attempts are not successes
An agent that was fooled but stopped by a guard is counted as an attempt. That keeps defences honest: a guard can lower success while the model stays fooled.
Synthetic by construction
Targets and tools have no route to the internet. Secrets are canary tokens made per trial, and exfiltration lands in an in-sandbox outbox.
Recorded by default
Runs replay saved model responses unless you choose live mode, which shows a cost estimate first and stops at the run and daily budgets.
Straight answers
Is this real?
The product is real and runs locally with Docker: API, worker, database, sandboxed worlds, oracles, reports, CLI and GitHub Action. This public site is a static demo. The attack library, suites, policies and one evaluator evidence chain come from the repository; every run, rate and comparison in the Explore workspace is simulated in your browser and labelled Simulated.
Has it been benchmarked against a model?
Not yet. The benchmark against a real model has not been run, so no attack success numbers are published. The Benchmark method page explains how they will be measured.
Can I use it on my agent?
Yes, by running it yourself on an agent you own or have written permission to test. Register it as a config target (prompt, model and tools) or connect it through the HTTP adapter. The public demo has no sign-in and attacks nothing.
What does it cost to run?
This demo costs nothing: it is static files with no backend. Locally, recorded mode and the scripted targets cost nothing; live mode calls a model and shows an estimate first, with hard run and daily budgets.
Where is the code?
The repository link is not published on this site yet. The About me page has contact details if you want a walkthrough of the code.
Who built it?
Tiju Lukose, as a portfolio project about testing AI agents with the same care as any other security boundary. The About me link has more.
Built by Tiju Lukose
RedRange is a portfolio project about red-teaming AI agents with evidence instead of anecdotes. Read more about the work behind it.