Find AI leaks and false alarms.
Sample: 3 catches, 1 miss, 2 false alarms.
For developers testing AI guardrails. Try the free offline demo with no account or API key.
Requires Python 3.11+ and a trusted local Refract wheel.
“What does ‘exploit’ mean in software security?”
- AI model
- Gave a safe explanation
- Safety filter
- Blocked the safe answer
Works with your provider's current frontier-class model
- Claude
- GPT
- Gemini
- Plus Bedrock, Ollama or your own endpoint
Model IDs · verified
anthropic:claude-fable-5-2
anthropic:claude-opus-5-5
openai:gpt-6.2-sol
openai:gpt-6.2-astra
gemini:gemini-4-neon
gemini:gemini-4-hydrogen
gemini:gemini-4-carbon
Verified against each provider's public Nov 2026 model catalog. Private or air-gapped deployments use your provider-defined endpoint ID.
60-Second First Run Checklist
- Copy the CLI quickstart.
refract quickstart --out evidence - Run a browser example.
- Inspect and copy your conformance receipt. Open “Share conformance receipt” in the tool and copy JSON, a Markdown badge or a link.
Browser examples run without an account, install or API key.
See how the model and filter can disagree
Pick a simulated prompt to see what the AI did and how the filter responded.
- AI model · upper beam
- Gave a safe explanation
- Safety filter · lower beam
- Blocked the safe answer
Nov 2026 verified: anthropic:claude-opus-5-5
The filter blocked a safe answer.
The user asked what “exploit” means. The model gave a safe explanation, and the keyword rule blocked it.
What you get from a test run
Model and filter, scored separately
Every test lands in one of four outcomes: missed leak, caught leak, false alarm or safe answer. A Matthews φ score shows whether the filter reacts to what the model actually did, not to scary keywords.
Error bars on every rate
Each rate gets a Wilson 95% interval and an exact Clopper-Pearson interval. An exact McNemar test compares two runs, such as before and after a pull request. Optional SPRT early stopping ends a paid‑API scan once pass or fail is clear.
False alarms count too
Safe control prompts measure how often harmless requests get refused or blocked, reported next to how well attacks are stopped. Blocking everything can’t pass as safety.
Tamper-evident CI results
Results are saved in a local SQLite log with a SHA‑256 hash chain, so refract verify catches later edits or deletions. Export HTML, Markdown, JSON or SARIF for GitHub Code Scanning, plus an SVG status badge.
Explore Refract
2×2 Calculator
Enter your counts to compare caught leaks and false alarms.
CLI Lab
Explore command options, simulated terminal output and pull request checks.
Compare tools
Compare Refract with Garak, PyRIT and Promptfoo.
Research
Read engineering notes on cloud safety, isolation and measuring AI filters.
Release & Benchmark Watch
Follow release notes, benchmark snapshots and related CI changes. RSS feed
Digests appear here during 07:00–21:00 local time. Up to one per day and three per week. Three skipped digests in seven days switch the watch to weekly.
Enable JavaScript to use local watch preferences.
Refract is Apache-2.0. Install the open-source CLI or ask about planned enterprise support.