agent-redteam-lab

Evaluate agent boundary protection against prompt injection and tool misuse.

5|Updated May 15, 2026
One-click install
npx skills add https://github.com/Heyu2002/Safety-Protection-Agent --skill agent-redteam-lab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-redteam-lab
Source: https://github.com/Heyu2002/Safety-Protection-Agent/tree/main/skills/agent-redteam-lab
Command: npx skills add https://github.com/Heyu2002/Safety-Protection-Agent --skill agent-redteam-lab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps validate whether an authorized agent can resist hostile instructions, protect sensitive boundaries, and avoid unsafe tool use during defensive red-team testing.

Core Features & Use Cases

  • Prompt Injection Testing: Checks whether hostile document text can override higher-priority instructions.
  • Tool Boundary Validation: Verifies that sensitive reads, shell actions, network egress, and other high-impact tools remain gated.
  • Canary and Disclosure Checks: Tests for synthetic secret leakage, memory poisoning, and hidden prompt or policy disclosure.
  • Use Case: A security analyst can run structured scenarios against SPA or another MCP-compatible agent and then produce an evidence-based Markdown report with severity labels and remediation guidance.

Quick Start

Use the agent-redteam-lab skill to assess an authorized agent's resistance to prompt injection, sensitive-tool misuse, canary leakage, and boundary disclosure.

Frequently Asked Questions about agent-redteam-lab

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test an agent for prompt injection vulnerabilities?

To test an agent for prompt injection, you run structured red-team scenarios that inject hostile document text to see if it can override higher-priority instructions and bypass boundary protection. The Skill then generates an evidence-based report.

What is canary testing for agent safety and when do I need it?

Canary testing for agent safety checks for synthetic secret leakage, memory poisoning, and hidden prompt or policy disclosure. You need it during defensive red-team validation to ensure sensitive boundaries remain intact against hostile instructions.

Can I validate tool boundaries for an MCP-connected agent?

Yes, you can validate tool boundaries for a local MCP-connected agent. The Skill verifies that sensitive reads, shell actions, network egress, and other high-impact tools remain properly gated against misuse.

What is the best way to perform red-team validation on a published agent API?

The best way to perform red-team validation on a published agent API is to apply structured scenarios with strict scenario isolation and benign controls. This approach preserves tool, secret, memory, and network boundaries while producing severity-labeled reports.

Why does my agent fail sensitive tool boundary checks during hostile document review?

An agent fails sensitive tool boundary checks during hostile document review when it improperly executes sensitive reads, shell actions, or network egress in response to injected text. Evidence-based severity labeling identifies these exact boundary protection failures.

Does agent red-team testing require scenario isolation?

Yes, agent red-team testing requires scenario isolation along with benign controls. This strict isolation preserves tool, secret, memory, and network boundaries, ensuring evidence-based severity labeling and accurate remediation guidance.