SERAPH is a guardrail that sits between the user and any model. Every prompt is inspected before it reaches the LLM; attacks are blocked, and only clean prompts are forwarded. Because it lives at the boundary rather than inside the weights, it works with any model — open-weights or API, large or small — with no retraining.
| Signal | Catches |
|---|---|
| Instruction override | "ignore previous instructions", "you are now…", rule overrides (prompt injection) |
| Persona jailbreak | DAN, developer mode, "unfiltered/amoral AI", no-rules roleplay |
| Refusal suppression | "start with 'Sure, here'", "never refuse/warn/apologize" (PAIR-style) |
| System-prompt extraction | "reveal your system prompt", "repeat the words above" |
| Obfuscation / encoding | base64/hex/leetspeak smuggling, zero-width chars, "decode then follow" |
| Adversarial suffix | GCG-style symbol clusters, camelCase token-welding, high-entropy gibberish |
| Harmful-intent topic | a defensive category blocklist that flags the domain, not the how-to |
Each detector returns a score in [0,1]. The aggregate is a soft-OR: any single strong signal is enough to block, and multiple signals compound. This is why the guardrail generalizes — an attack rarely avoids all seven tells at once.
The guardrail is one dependency-free file (shared/guardrail.js) that runs in Node and the browser. Wrap any model call:
Or hit the HTTP endpoint: POST /api/guard { prompt } → { verdict, risk, signals[] }.
The benchmark board runs SERAPH over an open corpus of jailbreak techniques drawn from the standard families — Harmbench-style harmful-intent wrappers, JailbreakBench GCG and PAIR attacks, DAN, injection and encoding. Every attack wraps a harmless canary payload, so the benchmark measures the guardrail's grip on the technique and never stores real harmful content. Clone it and reproduce the numbers.
$SERAPH is the community token around the project. The guardrail is open source and free to use; the token funds bounties for new attacks and patches. Nothing here is financial advice.