Red-team strategy
Few-Shot Injection
few-shot-injectionCreates a few-shot pattern with escalating examples that lead to the actual payload
YAML config
evalguard.config.yaml
redteam:
strategies:
- few-shot-injectionCLI
bash
# "few-shot-injection" is layered onto attacks during red-team scans.
# List every available encoding/obfuscation strategy:
evalguard list strategiesThreat-model fit
The Few-Shot Injection strategy effectively probes threat models focused on prompt injection and manipulation of AI systems. By providing a series of escalating examples, it tests the model's ability to discern between benign and malicious instructions, revealing vulnerabilities in its response generation.
LLM-generated (llm-gpt-4o) · 2026-05-23