evaluating-model-guardrails

Solid

Systematically test whether a model's safety and policy guardrails hold under adversarial pressure, as a repeatable evaluation rather than a one-off trick. Covers building a policy-grounded probe set, multi-turn escalation, encoding and obfuscation bypasses, role and context reframing, instruction-hierarchy conflicts, and measuring bypass rate with reproducible graded outcomes. Use when reviewing a model deployment, a system prompt, or a content-safety layer, or before shipping an assistant that must refuse a defined set of requests. A rate, not an anecdote.

AI & Automation 4 stars 1 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 80/100

Stars 20%
23
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Evaluating model guardrails: measure the boundary, don't collect one jailbreak A guardrail is a claim: "the model will refuse this class of request." A single successful jailbreak is an anecdote; what you need is a measurement, the rate at which the boundary holds across a structured battery of attacks. Evaluating guardrails means grounding probes in the actual policy, attacking each along known bypass axes, and scoring outcomes reproducibly, so you can state how strong the boundary is, not just that someone once beat it. ## When to use - You are reviewing a model deployment, a system prompt, or a content-safety layer. - Before shipping an assistant that must refuse or constrain a defined set of requests. - You need a defensible bypass rate, not a single proof-of-concept transcript. ## Scope check Evaluate models and deployments you own or are authorized to test. Use benign, clearly-scoped probes against a defined policy; do not generate real harmful output against systems you do not control. If you can't name the authorization, stop. ## The loop 1. **Ground the probes in the stated policy.** Get the actual list of what this deployment must refuse or constrain (its safety policy, its system prompt's rules, its allowed scope). Every probe targets a specific rule, so a result maps to a policy line, not a vibe. An undefined policy is the first finding: you cannot evaluate a boundary no one has drawn. 2. **Build a baseline probe set.** For each rule, write...

Details

Author
UnboundCompute
Repository
UnboundCompute/security-agent-skills
Created
5 days ago
Last Updated
yesterday
Language
N/A
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

rag-eval-guardrails

Build a verified eval harness for a RAG/LLM feature plus PII/PHI-leakage guardrails, gated by checks that actually run. Scores a precomputed predictions file (so it runs with ZERO API access) on groundedness, citation validity, retrieval hit@k, answer F1/exact-match, refusal rate, and latency; compares to config thresholds and a baseline to catch regressions; and fails the build on PII/PHI leakage. Use when the user wants to evaluate or regression-test an AI/RAG feature, measure hallucination/groundedness, add an eval gate to CI, or scan prompts/answers/logs for leaked identifiers. Triggers: "RAG evaluation", "LLM eval", "eval harness", "hallucination", "groundedness", "PII/PHI leakage", "guardrails", "regression testing for AI features".

0 Updated 1 months ago
NeuralMedic-DE
AI & Automation Listed

add-llm-guardrails

Use this to add safety and security guardrails to an LLM/agent app - blocking prompt injection, PII leakage, jailbreaks, toxic output, off-topic responses, or invalid structured output. Trigger on "add guardrails", "prevent prompt injection", "stop PII leaks", "validate the model's output", "make this safe for production", especially for regulated/finance/enterprise use.

29 Updated 4 days ago
ContextJet-ai
AI & Automation Listed

model-eval

Deep security evaluation of an AI model artifact — a public HuggingFace model (especially custom-code / trust_remote_code models) OR a model folder already on disk. Runs a deterministic collector, authors a dual-pass behavioral claim and checks it against the code's actual call graph, traces generation-to-sink paths, and produces a plain-English report (decision on top, evidence below) with an audit-opinion verdict. Use when asked to evaluate, audit, vet, or decide whether to adopt a model that ships custom code, or after model-scorecard returns tier C or D. EXECUTES NOTHING from the artifact and NEVER issues a clearance; a code-execution artifact seen static-only receives a "disclaimer of opinion".

1 Updated 1 weeks ago
fastedd27