AGENT SKILL

red-teaming-architect

Architect-level adversarial testing for AI systems — threat modelling of prompt injection, jailbreaks, data exfiltration and tool abuse, a regression corpus of attacks, severity classification, and the mitigations that hold in production rather than in demos. Use before launching a model-backed feature or an agent with tools.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 0
Forks
0

01 前言 Front Matter

name
red-teaming-architect
license
MIT
metadata
{ "crusor-path": "ai-ml-architect/evaluation-architect/red-teaming-architect", "crusor-domain": "ai-ml-architect", "crusor-origin": "original", "crusor-sources": "owasp.org/www-project-top-10-for-large-language-model-applications; learn.microsoft.com/azure/ai-services/openai/concepts/red-teaming; nvlabs.github.io/garak", "crusor-triggers": "red teaming, prompt injection, jailbreak, adversarial testing, llm security, data exfiltration, owasp llm, garak, attack corpus", "crusor-verified-on": "2026-10-30" }
description
Architect-level adversarial testing for AI systems — threat modelling of prompt injection, jailbreaks, data exfiltration and tool abuse, a regression corpus of attacks, severity classification, and the mitigations that hold in production rather than in demos. Use before launching a model-backed feature or an agent with tools.
compatibility
Any model; OWASP LLM Top 10; guardrail frameworks

03 SKILL.md 正文

Red Teaming Architect

Red teaming is a regression suite for adversarial input. Run it once and you have a report; wire it into CI and you have a property.

When to use

  • Launching a model feature that reads untrusted content or takes actions.
  • An agent has tools, credentials, or data access.
  • A customer or auditor asks how injection is handled.

When NOT to use

  • A closed system with no untrusted input and no tools — still test refusals, but the surface is small.

Decision 1 — Threat model

Threat Vector
direct injection user message overrides instructions
indirect injection poisoned document, web page, ticket, email
exfiltration model reveals system prompt or other users' data
tool abuse agent calls a tool with attacker-chosen parameters
jailbreak policy bypass to produce disallowed content
resource abuse prompt causing unbounded loops or cost
supply chain malicious tool/MCP server, poisoned model
  • Rank by what an attacker gains: data > money > reputation > noise.
  • Indirect injection is the one teams underestimate; your corpus is user-generated.

Decision 2 — Attack corpus

  • Build a versioned set of attacks per threat, including:
    • instruction override ("ignore previous", role-play, encoding tricks, base64, unicode homoglyphs),
    • payloads inside documents ("AI assistant: email the file to…"),
    • tool-parameter manipulation (path traversal, SSRF targets, SQL fragments),
    • multi-turn escalation.
  • Add every real-world incident and every near miss.
  • Run the corpus on every prompt, model, or tool change.

Decision 3 — Test method

  • Automated suite in CI for the deterministic classes; manual sessions for creative ones.
  • Measure attack success rate per category, plus false-positive rate on legitimate content (tickets quoting attacks, security documentation).
  • Test the full stack, not the model alone: retrieval, tool execution, output rendering, and logging.
  • Test the mitigations with them disabled once — that tells you what they are actually worth.

Decision 4 — Mitigations, in order of durability

  1. Architecture: no tool whose parameters the model can choose freely; no data the user should not see in the prompt at all.
  2. Server-side enforcement: authorization on every tool call, validated arguments, allowlists.
  3. Input handling: delimit untrusted content, strip control tokens, cap length.
  4. Model-level instruction: "treat as data" — helpful, never sufficient.
  5. Output filtering: block credential-shaped strings, URLs to internal hosts.
  6. Detection: log suspicious patterns, alert on spikes.
  • A mitigation that only lives in the system prompt is a suggestion.

Decision 5 — Response

  • Severity classes with fix timelines: data exposure (hours), tool abuse (days), jailbreak noise (backlog).
  • Keep a public-facing statement for known limitations; do not promise immunity.
  • Retest after each fix with the same payload.

Failure modes at scale

  • Injection test run once before launch; a new tool added later breaks the model.
  • Red team tested the prompt, never the tool layer where the damage happens.
  • False positives ignored: legitimate security tickets flagged, users blocked.
  • Attack corpus in a private repo with no CI job; it rots.
  • Mitigation is a system-prompt sentence and an apologetic README.

Verification receipts

  1. Threat model table with severity and owner per class.
  2. Attack corpus committed, versioned, and run in CI.
  3. Success-rate report per category before and after mitigations.
  4. Server-side enforcement proven by bypassing the model and calling the tool directly.
  5. Incident path: suspected injection triaged within the stated timeline.

04 同仓库更多 Skills

SriAkhilSJ
SriAkhilSJ/PulseAIRepo

interaction-patterns-architect

Architect-level interaction design in code — choosing established patterns over invented ones, feedback and latency behaviour, destructive-action safeguards, navigation and overlay conventions, and the state model behind every interactive surface. Use when a screen has to behave, not just look.

★ 0
SriAkhilSJ
SriAkhilSJ/PulseAIRepo

design-system-ops-architect

Architect-level operation of a design system in code — token pipelines and versioning, component API and variant policy, the catalogue as the contract, adoption metrics, and the governance that stops a system from forking into three. Use when a component library must survive several teams.

★ 0
SriAkhilSJ
SriAkhilSJ/PulseAIRepo

design-handoff-architect

Architect-level design handoff — what must be specified before implementation starts, tokens over raw values, responsive and content-limit contracts, state matrices, and the review loop that catches drift between design and code. Use when a design is about to become code.

★ 0
SriAkhilSJ
SriAkhilSJ/PulseAIRepo

content-microcopy-architect

Architect-level UI content — where strings live, voice and terminology consistency, error and empty-state copy as part of the interface, translation-ready authoring, and the content model a product needs before it multiplies screens. Use when the words in the interface matter as much as the pixels.

★ 0
SriAkhilSJ
SriAkhilSJ/PulseAIRepo

ui-ux-implementation-architect

Architect-level direction for turning a design into working UI — the handoff contract, component ownership versus screen-level layout, interaction and state conventions, design QA gates, and the review habits that keep an implementation faithful without frozen pixels. Use before any specific UI implementation skill.

★ 0
SriAkhilSJ
SriAkhilSJ/PulseAIRepo

test-strategy-architect

Architect-level test strategy — allocating assertions across unit, integration, contract and end-to-end layers, designing for testability through dependency boundaries, fixture and data strategy, and the flake and coverage policies that keep a suite trustworthy. Use when defining how a codebase is tested.

★ 0