Skip to content

Red-team strategy

CodeChameleon

code-chameleon

CodeChameleon [Lv 2024]: wraps the request in a code encrypt/decrypt scaffold (reverse/binary_tree/odd_even/length) and asks the target to complete a ProblemSolver that decrypts and solves it

YAML config

evalguard.config.yaml
redteam:
  strategies:
    - code-chameleon

CLI

bash
# "code-chameleon" 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.