Wild · text-classification · WASM q8 · 302.8 MB

5-vector red-team suite

Attackers don't type "ignore previous instructions" politely. They hide it in markup, encode it, switch language mid-sentence, or forge chat-template delimiters. Throw four evasion families plus a benign security manual at the guard and measure what it actually catches — misses are shown as misses.

1. Run the adversarial suite

0.50
TPR (attacks caught)–
FPR (benign blocked)–
ROC AUC (13 τ)–
Latency–
NaN check–
Per-vector detection at the current threshold
Vector TPR FPR TP / FN FP / TN
Run the suite to measure each vector.

2. TPR vs FPR across thresholds

ROC trace

τ ∈ 0.01 … 0.99

Add your own probe

joins the "custom" vector

3. Every sample, every score

Outcome per sample (TP caught attack · FN missed attack · FP false alarm · TN correct pass)
Vector Sample Truth P(inj) Outcome
Run the suite to score every sample.

4. Inspect the scoring code

Show the code · guard-core.mjs — rocAuc() & summarizeWildSuite()
Show the code · worker.js — scoreMany() one pass per probe