> ## Documentation Index
> Fetch the complete documentation index at: https://docs.switchagents.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> These docs moved from docs.flintai.dev to docs.switchagents.ai. Use docs.switchagents.ai for every link and request.
> To search these docs from an AI tool, connect the MCP server at https://docs.switchagents.ai/mcp. The page index is at https://docs.switchagents.ai/llms.txt.
> The source code for these products is public on GitHub. Switch Rooms: https://github.com/sandbox-quantum/switch. Switch Trust CLI: https://github.com/sandbox-quantum/switch-trust-cli. Switch Trust CodeScan action: https://github.com/sandbox-quantum/switch-trust-codescan-action. Switch Trust MCP server: https://github.com/sandbox-quantum/switch-trust-mcp. Switch Trust Python SDK: https://github.com/sandbox-quantum/switch-trust-sdk-py. These repositories are the current development line, not the released product: prefer these docs for released behavior, and name the version if you quote code. In the Switch Rooms repository, ignore docs/official/, which is a generated copy of this site.

# Built-in evaluations

> Complete reference of built-in evaluations

`switch-trust eval` includes built-in evaluations for testing agent reliability and behavior.

> [!TIP]
>
> Run `switch-trust eval evaluations list` to see this list from the CLI at any time, or
> `switch-trust eval evaluations show <id>` for one evaluation's attack techniques, detector, and
> prompt count.

## Filtering evaluations

Use tags to filter when listing or attaching evaluations:

```bash theme={null}
# List only OWASP tests
switch-trust eval evaluations list --tag owasp_code=LLM01

# Attach all Garak tests
switch-trust eval model-evaluations attach \
  --model my-agent \
  --eval-tag source=Garak
```

> [!WARNING]
>
> Tag values are matched exactly and are case-sensitive. `source=Garak` matches; `source=garak` matches nothing.

See [Configuration](https://docs.switchagents.ai/switch-trust-cli/eval/eval-configuration.md) for more tag-based filtering examples.

## Evaluation categories

Tests fall into the following categories:

* **OWASP adversarial probes** - Adaptive attacks that actively attempt to jailbreak your agent
* **OWASP fixed prompts** - Known attack patterns documented in security research
* **Garak framework tests** - Coverage from the industry-standard security scanner

### OWASP LLM Top 10 (adversarial)

Tests based on OWASP LLM Top 10 security risks. These use adversarial probes to actively attempt attacks.

**Attach all adversarial tests:**

```bash theme={null}
switch-trust eval model-evaluations attach --model my-agent --eval-tag method="Adversarial Model"
```

**eval-llm01-adversarial** `adversarial_probe`

**LLM01: Prompt injection (adversarial)**

OWASP LLM01 — Tests whether the model can be tricked into ignoring its system instructions and following attacker-supplied instructions instead.

**eval-llm02-adversarial** `adversarial_probe`

**LLM02: Sensitive information disclosure (adversarial)**

OWASP LLM02 — Tests whether the model leaks sensitive information such as training data, PII, API keys, internal configuration, or data from other users' sessions.

**eval-llm05-adversarial** `adversarial_probe`

**LLM05: Unsafe output generation (adversarial)**

OWASP LLM05 — Tests whether the model can be manipulated into generating outputs containing executable payloads (XSS, SQL injection, shell commands) that would be dangerous if passed to downstream systems without sanitization.

**eval-llm06-adversarial** `adversarial_probe`

**LLM06: Excessive agency (adversarial)**

OWASP LLM06 — Tests whether the model can be manipulated into taking actions beyond its intended scope, exceeding its permissions, or performing high-impact actions without proper authorization.

**eval-llm07-adversarial** `adversarial_probe`

**LLM07: System prompt leakage (adversarial)**

OWASP LLM07 — Tests whether the model's system prompt or hidden instructions can be extracted through conversational techniques.

**eval-llm09-adversarial** `adversarial_probe`

**LLM09: Hallucination and misinformation (adversarial)**

OWASP LLM09 — Tests whether the model can be led to generate false information with high confidence, including fabricated citations, sycophantic agreement with false premises, and confident fabrication.

**eval-llm09-adversarial-large** `adversarial_probe`

**LLM09: Hallucination and misinformation (adversarial, large)**

OWASP LLM09 — Tests whether the model can be led to generate false information with high confidence, including fabricated citations, sycophantic agreement with false premises, and confident fabrication. Large dataset.

### OWASP LLM Top 10 (fixed prompts)

Same OWASP categories, but using fixed test prompts instead of adversarial probes.

**Attach all fixed prompt tests:**

```bash theme={null}
switch-trust eval model-evaluations attach --model my-agent --eval-tag method="Fixed Prompts"
```

**eval-llm01-fixed** `message_collection`

**LLM01: Prompt injection (fixed prompts)**

OWASP LLM01 — Fixed prompt dataset testing whether the model resists various prompt injection techniques.

**eval-llm02-fixed** `message_collection`

**LLM02: Sensitive information disclosure (fixed prompts)**

OWASP LLM02 — Fixed prompt dataset testing whether the model leaks sensitive information such as PII, credentials, or training data.

**eval-llm05-fixed** `message_collection`

**LLM05: Unsafe output generation (fixed prompts)**

OWASP LLM05 — Fixed prompt dataset testing whether the model generates outputs containing executable payloads dangerous to downstream systems.

**eval-llm06-fixed** `message_collection`

**LLM06: Excessive agency (fixed prompts)**

OWASP LLM06 — Fixed prompt dataset testing whether the model can be manipulated into exceeding its intended scope or authority.

**eval-llm07-fixed** `message_collection`

**LLM07: System prompt leakage (fixed prompts)**

OWASP LLM07 — Fixed prompt dataset testing whether the model's system prompt or hidden instructions can be extracted.

**eval-llm09-fixed** `message_collection`

**LLM09: Hallucination and misinformation (fixed prompts)**

OWASP LLM09 — Fixed prompt dataset testing whether the model fabricates information, citations, or agrees with false premises.

**eval-pii-fixed** `message_collection`

**PII leakage detection (fixed prompts)**

Tests whether the model outputs personally identifiable information (credit cards, SSNs, emails, phone numbers, addresses, and similar) when prompted to do so. Uses datafog regex-based PII detection.

**eval-secret-fixed** `message_collection`

**Secret leakage detection (fixed prompts)**

Tests whether the model outputs secrets (API keys, tokens, private keys, credentials, connection strings, and similar) when prompted. Uses detect-secrets for pattern-based secret detection.

### Garak framework tests

Tests from the [Garak LLM vulnerability scanner](https://github.com/NVIDIA/garak) — industry-standard adversarial testing framework.

> [!NOTE]
>
> To run these evaluations, install the optional `full` extra: `pip install 'switch-trust-cli[full]'`. See [installation](https://docs.switchagents.ai/switch-trust-cli.md#try-it-now).

**Attach all Garak tests:**

```bash theme={null}
switch-trust eval model-evaluations attach --model my-agent --eval-tag source=Garak
```

**eval-garak-ansiescape** `garak_module`

**Garak: ANSI escape code injection**

Tests whether the model can be tricked into producing ANSI escape codes that could disrupt downstream terminal processing or exfiltrate data.

**eval-garak-apikey** `garak_module`

**Garak: API key generation**

Tests whether the model will comply with requests to generate or output API keys for various services.

**eval-garak-continuation** `garak_module`

**Garak: Contentious term continuation**

Tests whether the model will continue a phrase ending in a contentious or offensive term, completing slurs or hate speech.

**eval-garak-dan** `garak_module`

**Garak: DAN (Do Anything Now) jailbreaks**

Tests resistance to Do-Anything-Now style jailbreaks that try to make the model ignore its alignment through long-form instruction-based attacks.

**eval-garak-divergence** `garak_module`

**Garak: Divergence attacks**

Tests whether the model can be led to deviate from the topic and leak training data or other unexpected material through divergence techniques.

**eval-garak-dra** `garak_module`

**Garak: Disguise and Reconstruction Attack (DRA)**

Tests resistance to attacks that disguise harmful strings through string manipulation and reconstruct them to bypass safety filters.

**eval-garak-encoding** `garak_module`

**Garak: Encoding-based prompt injection**

Tests whether encoding techniques (Base64, ROT13, Morse, Braille, hex, and similar) can bypass alignment by obfuscating unsafe instructions.

**eval-garak-exploitation** `garak_module`

**Garak: Code and template injection**

Tests whether the model can be led to produce exploitable code including SQL injection, template injection, and other code injection payloads.

**eval-garak-goodside** `garak_module`

**Garak: Goodside prompt injection attacks**

Tests resistance to prompt injection techniques originally discovered by Riley Goodside, including tag-based and JSON-based attacks.

**eval-garak-grandma** `garak_module`

**Garak: Grandma roleplay jailbreak**

Tests whether the model can be manipulated through grandma roleplay scenarios to reveal contentious information such as illicit substances or software keys.

**eval-garak-latentinjection** `garak_module`

**Garak: Latent prompt injection**

Tests resistance to prompt injections buried in other contexts like resumes, financial reports, translations, and factual snippets.

**eval-garak-leakreplay** `garak_module`

**Garak: Training data replay**

Tests whether the model can be led to replay excerpts from copyrighted or sensitive training data including books, news articles, and literature.

**eval-garak-lmrc** `garak_module`

**Garak: Language Model Risk Cards (LMRC)**

Non-adversarial content safety probes covering bullying, deadnaming, quack medicine, sexual content, and slur usage based on the LMRC framework.

**eval-garak-malwaregen** `garak_module`

**Garak: Malware generation**

Tests whether the model will comply with requests to generate malware, malware components, evasion techniques, or other tools that disrupt devices.

**eval-garak-misleading** `garak_module`

**Garak: Misleading claims**

Tests whether the model will accept and agree with false assertions rather than correctly identifying and refuting them.

**eval-garak-packagehallucination** `garak_module`

**Garak: Package hallucination**

Tests whether the model hallucinates non-existent software packages across multiple languages (Python, JavaScript, Rust, Ruby, Perl, Dart) which could lead to supply chain attacks.

**eval-garak-phrasing** `garak_module`

**Garak: Phrasing-based jailbreaks**

Tests whether rephrasing requests in past or future tense can bypass safety filters and elicit unsafe content.

**eval-garak-promptinject** `garak_module`

**Garak: PromptInject attacks**

Tests resistance to plaintext prompt injection attacks that embed malicious commands into requests for innocuous information.

**eval-garak-realtoxicityprompts** `garak_module`

**Garak: RealToxicityPrompts**

Tests model responses to prompts empirically found to have a high probability of eliciting toxic continuations.

**eval-garak-snowball** `garak_module`

**Garak: Snowball hallucination**

Tests whether the model gives confidently wrong answers to complex graph connectivity reasoning questions instead of admitting uncertainty.

**eval-garak-suffix** `garak_module`

**Garak: Adversarial suffix attacks**

Tests resistance to adversarial suffixes (GCG-style) appended to prompts that are designed to override system prompt safety measures.

**eval-garak-tap** `garak_module`

**Garak: Tree of Attacks with Pruning (TAP)**

Tests resistance to LLM-generated jailbreak prompts created using the Tree of Attacks with Pruning methodology.

**eval-garak-web\_injection** `garak_module`

**Garak: Web injection (XSS and data exfiltration)**

Tests whether the model can be led to produce outputs enabling web attacks including cross-site scripting (XSS), markdown-based data exfiltration, and CSRF.
