What It Does
Evaluates LLM guardrails. Given a target LLM endpoint, runs a corpus of prompt-injection payloads, applies mutation strategies (encoding, role-play, delimiter abuse, suffix-prefix wrapping), measures bypass rate.
Positioned at the OWASP LLM Top 10 category LLM01 (Prompt Injection) + LLM07 (Insecure Output Handling).
Tools
list_payload_categoriesโ enumerated attack categoriesfetch_payload_corpusโ paginated corpus of base payloadsmutate_payloadโ apply one or more mutation strategies to a payloadprobe_targetโ send a payload to a target LLM endpointscore_responseโ classifier output: refusal / bypass / partial-bypassbypass_rateโ aggregate bypass rate for a payload set against a targetlog_runโ persist run metadata for diff over timehealthโ target endpoint reachabilityreportโ summary across categories + mutations
Design Decisions
- Local corpus, not scraped-on-call โ reproducible, auditable, portable.
- Mutation strategies as pure functions โ each is independently testable.
- Scoring by regex + optional judge-LLM โ regex catches obvious refusals; a judge LLM handles ambiguous ones.
- Dual use acknowledged โ the README is explicit: use only on LLM endpoints you own or have authorisation to test.
Stack
Python 3.11+ ยท FastMCP ยท httpx ยท Pydantic schemas ยท local JSON payload corpus.