Methodology
How guardrails work and how we score them
Runtime guardrails are automatic checks placed before and after an AI model runs. This page shows exactly how our free score and latency estimates are worked out, so you can judge the results yourself.
1. The readiness score
Yes = full weight, Partly = half, No = none. Score = earned ÷ 100 total weight × 100.
| Risk | Question | Weight |
|---|---|---|
| LLM01 Prompt Injection | Do you screen user input for injection before it reaches the model? | 15 |
| LLM02 Sensitive Information Disclosure | Do you redact PII and secrets from prompts and responses? | 14 |
| LLM03 Supply Chain | Are model, plugin and dataset sources pinned and reviewed? | 8 |
| LLM04 Data & Model Poisoning | Is training / RAG content validated before ingestion? | 8 |
| LLM05 Improper Output Handling | Is model output sanitized before rendering or executing it? | 12 |
| LLM06 Excessive Agency | Are agent tool calls restricted to an allowlist with least privilege? | 13 |
| LLM07 System Prompt Leakage | Is your system prompt free of secrets and protected from extraction? | 8 |
| LLM08 Vector & Embedding Weaknesses | Is retrieval scoped per user / tenant with access control? | 9 |
| LLM09 Misinformation | Do you ground or verify factual answers against trusted sources? | 5 |
| LLM10 Unbounded Consumption | Do you rate-limit and cap tokens per user? | 8 |
Grades: A ≥ 90 · B ≥ 70 · C ≥ 50 · D ≥ 30 · F < 30.
2. The latency estimate
Typical delay each guardrail adds. In sequence they add up; in parallel the slowest input check plus slowest output check sets the delay.
- Regex / denylist filter~2 ms
Pattern-based blocking of known payloads.
- PII redaction~15 ms
Detects and masks emails, keys, SSNs.
- Injection classifier (small model)~45 ms
Fine-tuned prompt-injection detector.
- LLM-as-judge input check~380 ms
Second model reviews intent before execution.
- Output moderation~60 ms
Scans responses for leaks and toxicity.
- Tool-call allowlist~3 ms
Restricts which actions agents may take.
- Grounding / hallucination check~220 ms
Verifies claims against retrieved context.
3. Limits you should know
This is a modelled self-assessment, not a scan or certification. Weights and timings are our editorial estimates, and humans and AI can both make mistakes — verify every result before relying on it.
Frequently asked questions
How do runtime guardrails work?
Runtime guardrails are checks that run around every model call. Input checks (filters, PII redaction, injection classifiers, tool allowlists) inspect a request before the model acts on it; output checks (moderation, grounding) inspect the answer before it reaches a user or another system. Each check can allow, modify or block the request.
How is the security score calculated?
Each of the 10 OWASP LLM risks has a severity weight. A Yes answer earns the full weight, Partly earns half and No or unanswered earns nothing. The score is the earned weight divided by the total weight, rounded to a number out of 100.
What do the letter grades mean?
A is 90 or more, B is 70–89, C is 50–69, D is 30–49 and F is below 30. Gaps are listed highest severity first so you know what to fix next.
How is guardrail latency estimated?
Each guardrail type has a typical added delay in milliseconds. Run in sequence, the delays add up. Run in parallel, the slowest input check plus the slowest output check sets the delay. Estimates are illustrative, not measurements of your app.
Does RuntimeGuardrails.ai scan my application?
No. Scores come from your own answers — a modelled self-assessment. We never connect to your app, so results depend on honest answers and need human verification.
Why is prompt injection weighted highest?
Prompt injection (LLM01) can lead to data leaks or unwanted actions in a single request, so it carries the largest weight. Misinformation (LLM09) carries the lowest because its impact is usually narrower.