/guardx:red-team — Agentic Red Team Attack
Conduct adversarial red team tests on system prompts to identify vulnerabilities.
Trigger
User invokes /guardx:red-team or asks to run an adversarial / red team test on a system prompt.
Steps
-
Ask the user: "Please provide the system prompt to attack — paste it directly or give me a file path."
-
If a file path is provided, use the
Readtool to load the file contents. -
Ask: "Which attack strategy would you like?
- blitz — single pass, all attack categories, fast (~1 min)
- thorough (default) — 3 adaptive phases, deeper analysis (~5 min)
- stealth — slow, low-sophistication probes first, mimics a real patient attacker
- goal-hijack — 5 objective manipulation techniques: objective substitution, priority inversion, scope expansion, authority override, consequentialist framing"
If
goal-hijackis selected, also ask: "What capability is the attacker trying to get the agent to perform? (e.g. 'exfiltrate user data', 'bypass access controls')" -
Warn the user: "Red team scans take 3–8 minutes and use significant tokens. Proceed?"
-
Call the
run_red_teamMCP tool:Tool: run_red_team Arguments: systemPrompt: <the prompt text> strategy: <blitz | thorough | stealth> -
When the result returns, automatically invoke
/guardx:interpreton the result to present structured findings. -
Offer to generate a report: "Generate a detailed report? Run
/guardx:reportor say 'generate HTML report'."
Notes
- Red teaming is more aggressive than a standard scan — it adapts strategy based on what works.
- The
thoroughstrategy runs 3 phases: broad recon → targeted escalation → deep extraction. - Results are auto-saved to scan history with a
scanIdfor later retrieval.