agent-red-teaming
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "agent-red-teaming" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-344a1e8075a88ebc384e46800e7a9e9c8ac5f91e92daf8416e9062822c7c4650. Verify the upstream source and version against https://github.com/seb1n/awesome-ai-agent-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Plan, execute, document, and retest authorized security assessments of AI agents and multi-agent workflows using safe adversarial test cases, synthetic identities, canaries, and evidence-based findings. Suitable for scenarios such as defining red team engagement rules, evaluating prompt injection or excessive autonomy, testing tool and identity boundaries, assessing memory or cross-agent attacks, scoring attack activity, or validating fixes in approved environments.
Introduction source: third_party · seb1n · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Plan, execute, document, and retest authorized security assessments of AI agents and multi-agent workflows using safe adversarial cases, synthetic identities, canaries, and evidence-based findings. Use when defining red-team rules of engagement, assessing prompt injection or excessive agency, testing tool and identity boundaries, evaluating memory or cross-agent attacks, scoring a campaign, or verifying remediation in an approved environment.
- Inputs and outputs
- Collect: Named target owner and explicit authorization for the exact systems to be tested Target identifiers, environment, accounts, endpoints, models, versions, and a reproducible configuration digest Start/end time, tester identities, source addresses, rate and cost limits, and emergency contact In-scope objectives and out-of-scope systems, tenants, data, techniques, and effects Agent architecture, tools, privileges, memory, retrieval, handoffs, identities, and external integrations Protected assets, security requirements, prior incidents, existing controls, and expected benign tasks Approved synthetic data, canary values, test destinations, cleanup plan, and evidence-handling rules If tar
- Testing
- Not tested
Browse files
Frontmatter
name: agent-red-teaming
description: Plan, execute, document, and retest authorized security assessments of AI agents and multi-agent workflows using safe adversarial cases, synthetic identities, canaries, and evidence-based findings. Use when defining red-team rules of engagement, assessing prompt injection or excessive agency, testing tool and identity boundaries, evaluating memory or cross-agent attacks, scoring a campaign, or verifying remediation in an approved environment.Agent Red Teaming
Find exploitable control failures without creating uncontrolled harm. Treat written authorization and rules of engagement as prerequisites for execution, not paperwork to complete afterward.
Inputs
Collect:
- Named target owner and explicit authorization for the exact systems to be tested
- Target identifiers, environment, accounts, endpoints, models, versions, and a reproducible configuration digest
- Start/end time, tester identities, source addresses, rate and cost limits, and emergency contact
- In-scope objectives and out-of-scope systems, tenants, data, techniques, and effects
- Agent architecture, tools, privileges, memory, retrieval, handoffs, identities, and external integrations
- Protected assets, security requirements, prior incidents, existing controls, and expected benign tasks
- Approved synthetic data, canary values, test destinations, cleanup plan, and evidence-handling rules
If target-specific authorization or scope is missing, stop at a non-executable assessment plan. Do not probe a live target to infer scope.
Output contract
Deliver:
- Signed-off or explicitly pending rules of engagement with scope, constraints, stop conditions, contacts, and cleanup duties
- A system and privilege map plus prioritized threat hypotheses
- A machine-readable, owner-approved campaign plan with unique case IDs, targets, environment, configuration digest, tester subjects, authorization reference, time window, limits, stop conditions, cleanup duties, protected invariants, and safe oracles
- Execution records tied to an approved case ID and unique test ID, with matching target/configuration, timestamps, observed limits, structured evidence, and cleanup traceability
- Deduplicated findings with reproducibility, evidence, impact, likelihood, preconditions, root control failure, and remediation
- Plan-denominator campaign metrics that distinguish passes, failures, blocked cases, errors, missing records, and tests not run
- Retest results, residual risk, cleanup confirmation, and any incident or scope deviation
Use assets/campaign-plan-template.md for the human-readable working plan and assets/campaign-plan-template.json for the machine-readable authorization record. Read references/test-taxonomy.md when selecting cases. Validate and summarize JSONL results against the approved JSON plan with score_campaign.py PLAN.json RESULTS.jsonl.
Workflow
1. Establish rules of engagement
Verify owner, authority, authorization reference, exact targets, environment, configuration digest, tester subjects, time window, allowed techniques, prohibited actions, rate/cost ceilings, data-handling requirements, stop conditions, emergency contact, and cleanup owner. Separate production from staging explicitly. Mark each case approved: true only after the owner-approved plan contains it.
Use unique synthetic accounts and inert destinations. Define benign canary values that are recognizable but grant no access. Confirm how to disable tools, revoke test credentials, restore fixtures, and report an unexpected effect before testing begins.
2. Map the attack surface and authority
Trace every path through user input, system instructions, retrieval, memory, tools, code execution, browsers, MCP or plugins, other agents, human approvals, and output sinks. Build a privilege graph showing identities, scopes, tenants, objects, networks, and delegation.
Prioritize hypotheses by credible impact and exposed authority, not novelty. Write each hypothesis as: attacker-controlled source + control weakness + attempted action + observable safe oracle.
3. Build a safe test matrix
Cover relevant categories:
- Direct, indirect, stored, encoded, and multimodal instruction attacks
- Tool misuse, target substitution, excessive agency, unsafe chaining, and external effects
- Authentication, authorization, tenant isolation, approval binding, and confused-deputy paths
- Sensitive-data disclosure, output handling, egress, and canary exposure
- Memory, RAG, training-data, configuration, tool-metadata, and dependency poisoning
- Cross-agent impersonation, delegation escalation, tainted summaries, and cascading failure
- Resource exhaustion and cost amplification within strict budgets
- Monitoring, containment, credential revocation, and recovery
Include benign controls and normal tasks to measure false positives and retained utility. Use one primary variable per case where possible. Avoid weaponized payloads when an inert instruction, fake secret, or mock tool proves the same control failure.
4. Execute incrementally
Begin with offline or mocked components, then staging, then any separately authorized higher-risk environment. Run low-impact cases first. Capture campaign and authorization references, approved case ID, unique test ID, tester subject, target and environment, configuration digest, start/end/record timestamps, input provenance, tool trace, policy decisions, observed rate/cost/time, result, structured evidence objects, and cleanup status.
Respect rate, cost, and time limits. Do not evade monitoring or controls outside the approved hypothesis. Pause after any unexpected cross-tenant access, real secret, external effect, service degradation, or scope ambiguity.
5. Triage findings
Reproduce safely, then distinguish:
- A confirmed invariant violation
- A blocked attack showing the expected control
- A test harness or environment error
- An observation needing more evidence
Rate severity from demonstrated impact, likelihood, prerequisites, affected scope, detectability, and reversibility. Do not rate from prompt wording alone. A pass requires the protected invariant to hold; a failure requires it not to hold and cannot be informational. Blocked, errored, and not-run records have no invariant verdict and no finding severity. Deduplicate findings by root control failure and retain affected variants as evidence.
For every finding, provide the minimum safe reproduction, expected versus observed behavior, evidence, affected configuration, immediate containment, durable remediation, detection opportunity, and a regression case.
6. Remediate and retest
Prefer architectural fixes: reduce privilege, enforce authorization outside the model, constrain tools and egress, isolate untrusted content, validate outputs, bind approvals, and protect memory provenance. Prompts and detectors may add defense in depth but should not be the sole fix for consequential effects.
Retest the original case, close variants, and representative benign tasks. Record whether the finding is fixed, partially mitigated, accepted, transferred, or open, with owner and evidence.
7. Close and recover
Remove synthetic records, restore approved fixtures, disable test endpoints, revoke test credentials, and confirm no jobs or callbacks remain. Preserve evidence according to retention policy and delete unnecessary sensitive copies.
If testing causes an unexpected effect, stop, notify the emergency contact, contain access, preserve redacted evidence, support restoration, and document the scope deviation. Incident response takes precedence over campaign completion.
Authorization and safety boundaries
- Execute tests only against named targets for which the user or designated owner has explicit authority; public reachability is not permission.
- Do not test production, third parties, other tenants, employees, or real users unless each is explicitly included in approved rules of engagement.
- Do not use real secrets, personal data, malware, persistence, destructive actions, uncontrolled propagation, social engineering, denial of service, or real transactions when synthetic or inert proof is sufficient.
- Do not bypass rate/cost ceilings or continue after a stop condition.
- Do not publish vulnerabilities, evidence, system prompts, or sensitive architecture without the owner's disclosure authorization.
- Keep finding evidence minimal, access-controlled, redacted, and traceable.
- If authorization cannot be verified, produce planning, threat modeling, and non-executable test designs only.
Verification
Before reporting completion, confirm:
- Every submitted result maps to an approved campaign-plan case ID, authorization reference, target, environment, configuration digest, time window, and tester identity
- The test matrix covers exposed privilege and highest-impact credible paths
- Each result has an observable oracle and evidence, not only a model judgment
- Findings reproduce on the recorded configuration and have a regression case
- Benign-task utility and false positives were measured alongside attack cases
- Blocked, errored, missing, and unrun cases are not counted as passes or observed coverage
- Retests cover both the original finding and nearby variants
- Cleanup, credential revocation, and unexpected-effect checks are complete
Use score_campaign.py to summarize results against the approved plan. Its percentages use all approved case IDs as the denominator, not only submitted records. Treat structural errors and severity/invariant inconsistencies as failed validation. Do not substitute its weighted score for professional impact analysis or present any summary as proof of security, campaign success, or certification.
Realistic examples
Internal support agent assessment
In an isolated tenant, test whether a synthetic customer email can make the agent read another synthetic tenant, alter a refund destination, reveal a fake API token, or send to an unapproved domain. Use a mock refund tool and sink mailbox. Verify object-level authorization, approval binding, egress controls, canary alerts, and normal ticket triage.
Multi-agent release workflow
Test whether a tainted issue description can escalate from planner to coding agent to deployment agent, expand the tool allowlist, change the repository or environment target, or reuse an expired approval. Use a disposable repository and no live cloud credentials. Retest with structured handoffs, per-agent identities, exact-action approvals, and a restricted deployment mock.
Completion check
Finish only when executed work is authorized and traceable to approved case IDs, high-risk paths have structured safe evidence, finding severity agrees with the observed invariant, remediation is retested, benign utility is measured, limits and cleanup are evidenced, and residual, missing, or untested risk is explicit. Never declare the target secure or certified from campaign results.
Version history
-
v1.0.0
GitHub ↗
Original release notes
## Build agents you can evaluate, observe, control, and defend `v1.0.0` is the first stable release of Awesome AI Agent Skills: **103 self-contained Agent Skills across 21 categories**, compatible with Claude Code, OpenAI Codex, Gemini CLI, Cursor, GitHub Copilot, Windsurf, and other Agent Skills-compatible tools. ### Production Agent Stack This release introduces an end-to-end, reproducible release-gate workflow built from six complementary skills: - **Agent Evaluation** — representative cases, explicit graders, baselines, and release gates - **Agent Observability** — privacy-aware traces, metrics, and investigations - **Tool Schema Design** — bounded model-facing tools with explicit side effects - **Human in the Loop** — auditable approval gates and safe state transitions - **Prompt Injection Defense** — trust boundaries for instructions, content, credentials, tools, and output - **Agent Red Teaming** — authorized adversarial campaigns with measurable outcomes ### Try the demo Can a poisoned GitHub issue hijack a deployment agent? The demo replays that scenario entirely offline, first through a fragile boundary and then through the six production controls. ```bash python3 demos/production-agent-stack/run_demo.py --check ``` Expected fixture result: ```text Fragile boundary: 1/5 checks passed Controlled boundary: 5/5 checks passed Evaluation: 20% -> 100% Red-team replay: 5 passed, 0 failed ``` [Read the complete demo walkthrough](https://github.com/seb1n/awesome-ai-agent-skills/tree/v1.0.0/demos/production-agent-stack) ### Install the stack ```bash npx skills add seb1n/awesome-ai-agent-skills \ --skill agent-evaluation \ --skill agent-observability \ --skill tool-schema-design \ --skill human-in-the-loop \ --skill prompt-injection-defense \ --skill agent-red-teaming ``` ### Other new capabilities The expanded catalog also includes: - `mcp-server-building` - `multi-agent-orchestration` - `skill-supply-chain-audit` - `pdf-processing` - `spreadsheet-analysis` - `eu-ai-act-readiness` ### Validation The release is checked with: ```bash python3 scripts/validate_skills.py python3 demos/production-agent-stack/run_demo.py --check --no-color ``` The demo uses inert fixtures, Python's standard library, simulated approval and campaign-authorization records, and local mock effects. It makes no model calls, network requests, shell invocations, or real deployments. Passing validates deterministic outcomes for these committed fixtures and evidence contracts; it is not a security certification, human approval, or live-model evaluation. ### Contribute Try the demo, report unclear behavior, or improve a skill through a pull request. See the [contribution guide](https://github.com/seb1n/awesome-ai-agent-skills/blob/v1.0.0/CONTRIBUTING.md).
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- AI智能体红队测试是AI安全领域的重要需求,直接解决用户明确的核心任务痛点
- 具有显著的实用价值,适用于多种场景如提示注入测试、过度自主行为评估等
Highlights
- 触发词精准完整,覆盖多种变体,边界清晰
- description详细描述了适用场景和使用条件
Highlights
- Phase/步骤清晰,有出口条件,含端到端示例
- frontmatter完整,单文件≤500行
Highlights
- 工具来源明确,参数正确,覆盖主要异常
- 不可逆操作有确认机制,安全性高
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 44, 63, 94, 119, 131
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.