Skip to content
Interactive demo, simulated data

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.

Designed around
FastAPIPostgreSQLRedisarqLangGraphMCP Python SDKNext.jsTypeScriptTailwind CSSCaddyOpenTelemetryDocker ComposeGitHub ActionsSARIF 2.1.0FastAPIPostgreSQLRedisarqLangGraphMCP Python SDKNext.jsTypeScriptTailwind CSSCaddyOpenTelemetryDocker ComposeGitHub ActionsSARIF 2.1.0
How it works

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.

What it does

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.

49 cases

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.

L1 to L6

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.

7 oracles

Deterministic oracles

Canary leaks in several encodings, unauthorised tools, policy violations, unapproved writes and runaway cost are checked in code, not by a model.

Trace

Evidence chain per finding

Untrusted instruction, tool selected, sensitive data included, policy decision, outcome. Each link points at the trace event that shows it.

Statistics

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.

SARIF

Reports and a CI gate

HTML, Markdown, JSON and SARIF for GitHub code scanning, plus a composite GitHub Action with interval-aware thresholds.

Under the hood

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.

RedRange architectureAn attack case is planted in a sandboxed world. The target agent works on the task and every tool call passes the tool gateway. The trace feeds deterministic oracles, which produce a verdict with an evidence chain, then reports and a CI gate. It runs on Caddy, a Next.js console, a FastAPI API, an arq worker, PostgreSQL, Redis, an LLM proxy and OpenTelemetry.ONE TRIALAttack caseYAML and a templateSandboxed worldfake tools, canary secretsTarget agentreference, config, scriptedTool gatewaypolicy, approvals, guardsAppend-only traceevery call and its sourceOraclesdeterministic checksVerdict and evidenceseverity, five-step chainReports and CI gateHTML, Markdown, JSON, SARIFRUNS ON (DOCKER COMPOSE)CaddyNext.js consoleFastAPI APIarq workerPostgreSQLRedisLLM proxyOpenTelemetry
One trial, left to right and back: the gateway sits between the agent and every tool, and the verdict is read from the trace alone.
  1. Attack case: YAML and a template
  2. Sandboxed world: fake tools, canary secrets
  3. Target agent: reference, config, scripted
  4. Tool gateway: policy, approvals, guards
  5. Append-only trace: every call and its source
  6. Oracles: deterministic checks
  7. Verdict and evidence: severity, five-step chain
  8. 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.

FAQ

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.