← All work Research-grade proofs

AI Security: Prompt-Injection Eval

Measuring prompt-injection defences, not asserting them.

Runs an obfuscated prompt-injection attack corpus against a layered defence pipeline under a worst-case model, measuring both attack-success-rate and benign-pass-rate, so a block-everything defence cannot look good. The output is a measurement with a stated threat model and honest residuals.

What it demonstrates

AI / LLM security · adversarial evaluation · security measurement

How it is verified

8/8 tests: the sanitiser defeats every obfuscation of known attacks, the detector has honest misses and false positives, gating and isolation zero their classes, and defence-in-depth minimises attack-success-rate.

AI securityPythonRed team

Highlights

  • Three intents by six obfuscations (base64, homoglyph, zero-width, leetspeak, comment-smuggling); some phrasings sit outside the detector on purpose, so the attack-success-rate is honest.
  • Capability isolation and gating drive the tool-abuse and policy-override classes to zero by construction, at no utility cost: the architectural lesson.
  • Attack-success-rate falls from 100% to 14% across the defence ladder; the only residual is semantic exfiltration, fixed with scoped tokens rather than filters.

← Back to all engineering work