Skip to content

Red-team strategy

JSON/Code Wrapping

json-wrap

Wraps payload in JSON or code block to bypass text filters

YAML config

evalguard.config.yaml
redteam:
  strategies:
    - json-wrap

CLI

bash
# "json-wrap" is layered onto attacks during red-team scans.
# List every available encoding/obfuscation strategy:
evalguard list strategies
Combine with attack plugins to generate adversarial payloads. The strategy wraps each base payload before it's sent to your target, testing whether the model decodes / unwraps the transform and follows the embedded instruction.

Threat-model fit

The JSON/Code Wrapping strategy effectively probes threat models focused on input validation and content filtering mechanisms. By encapsulating malicious payloads in JSON or code blocks, it seeks to evade detection by security systems that may not parse these formats correctly.

LLM-generated (llm-gpt-4o) · 2026-05-23