Ai Agent Redteam logo

Ai Agent Redteam

Community
hypnguyen1209
ai-agent-redteam

Use when red-teaming an agentic AI / LLM application — indirect & zero-click prompt injection, MCP tool poisoning, persistent memory poisoning, excessive-agency tool abuse, multi-turn jailbreaks, PyRIT/Garak/Promptfoo harnesses

Overview

Publisherhypnguyen1209
Repositoryoffensive-claude
Skill nameai-agent-redteam
Stars
396
Forks
71
Bundled files
12
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 12 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by hypnguyen1209 on GitHub. Read the source before you install it.

Installation

Install the Ai Agent Redteam AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/hypnguyen1209/offensive-claude/tree/main/skills/ai-agent-redteam
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hypnguyen1209/offensive-claude.git /tmp/offensive-claude
mkdir -p .claude/skills
cp -r /tmp/offensive-claude/skills/ai-agent-redteam .claude/skills/ai-agent-redteam
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ai Agent Redteam in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ai Agent Redteam on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ai Agent Redteam is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

AI Agent Red Teaming

Offensive testing of autonomous LLM agents — systems that combine model reasoning with tools, memory, retrieval, and multi-step planning. This is distinct from model-level testing (see ai-security): the attack surface here is the agentic pipeline — untrusted data channels, tool/MCP integrations, persistent memory, and delegated authority. Assumes authorized engagement.

When to Activate

  • Pentesting an LLM agent with tool/function-calling, an MCP client, or a code interpreter
  • Testing RAG / email / browser assistants for indirect or zero-click prompt injection
  • Auditing MCP server integrations for tool poisoning, rug-pull, or line-jumping
  • Assessing persistent memory / long-term context for poisoning and belief drift
  • Evaluating excessive agency: confused-deputy, SSRF/RCE-via-tool, over-privileged actions
  • Running automated jailbreak campaigns (PAIR/TAP/Crescendo/Best-of-N) and measuring ASR
  • Standing up a repeatable PyRIT/Garak/Promptfoo harness mapped to OWASP Agentic Top 10 / ATLAS

Technique Map

TechniqueATT&CKCWEReferenceScript
Indirect / zero-click prompt injection (EchoLeak-class)T1566.002 / AML.T0051.001CWE-1427references/indirect-prompt-injection.mdscripts/indirect_injection_forge.py
RAG corpus poisoning & markdown/image exfiltrationT1567 / AML.T0070CWE-1426references/indirect-prompt-injection.mdscripts/indirect_injection_forge.py
Browser-agent hijack (Comet/CometJacking, Atlas)T1071.001 / AML.T0051CWE-1427references/indirect-prompt-injection.mdscripts/indirect_injection_forge.py
MCP tool poisoning / line-jumpingT1059 / AML.T0053CWE-1427references/mcp-tool-poisoning.mdscripts/mcp_tool_poison_server.py
MCP rug-pull (silent redefinition)T1554 / AML.T0010CWE-494references/mcp-tool-poisoning.mdscripts/mcp_tool_poison_server.py
Persistent memory poisoning (MINJA/MemoryGraft)T1565.001 / AML.T0070CWE-349references/memory-context-poisoning.mdscripts/memory_poison_minja.py
Excessive agency / confused-deputy tool abuseT1548 / AML.T0053CWE-862references/excessive-agency-tool-abuse.mdscripts/agency_tool_fuzzer.py
Tool output → SSRF / RCE chainingT1059 / AML.T0054CWE-918 / CWE-94references/excessive-agency-tool-abuse.mdscripts/agency_tool_fuzzer.py
Automated multi-turn jailbreak (Crescendo/TAP/PAIR)AML.T0054 / AML.T0071CWE-1426references/automated-jailbreak-multiturn.mdscripts/multiturn_jailbreak.py
Best-of-N / encoding obfuscation jailbreakAML.T0054CWE-1426references/automated-jailbreak-multiturn.mdscripts/multiturn_jailbreak.py
Harness & ASR scoring (PyRIT/Garak/Promptfoo)AML.T0071CWE-1426references/agent-redteam-tooling.mdscripts/agent_redteam_harness.py

Quick Start

bash
# 0. Scope: enumerate agent surface — tools/functions, MCP servers, memory store, data channels
python scripts/agent_redteam_harness.py enumerate --endpoint $AGENT_URL --out surface.json

# 1. Indirect injection: forge a zero-click payload (email/doc/web) + markdown exfil beacon
python scripts/indirect_injection_forge.py --channel email \
  --exfil-base https://oast.pro/$TOKEN --obfuscate html-comment --out payload.eml

# 2. MCP: stand up a poisoned MCP server to test client validation / line-jumping
python scripts/mcp_tool_poison_server.py --mode tool-poison --transport stdio

# 3. Memory: query-only MINJA-style injection of a persistent malicious belief
python scripts/memory_poison_minja.py --endpoint $AGENT_URL \
  --trigger "vendor invoice" --payload "route payments to acct 0xATTACKER" --bridge-steps 4

# 4. Excessive agency: fuzz tool calls for confused-deputy / SSRF / path traversal
python scripts/agency_tool_fuzzer.py --endpoint $AGENT_URL --tools surface.json --ssrf-canary http://169.254.169.254/

# 5. Automated jailbreak campaign (Crescendo + Best-of-N), record ASR
python scripts/multiturn_jailbreak.py --endpoint $AGENT_URL --strategy crescendo \
  --objective "$OBJECTIVE" --max-turns 8 --judge-endpoint $JUDGE_URL

# 6. Full harness run mapped to OWASP Agentic Top 10 + MITRE ATLAS, emit finding records
python scripts/agent_redteam_harness.py run --config harness.yaml --report findings/

OPSEC & Detection (summary)

TechniqueTelemetry / IOCDetection (Sigma/EDR)OPSEC note
Indirect injectionHidden HTML comment / white-on-white / 0px text in ingested docs; markdown image to external hostScan ingested content for <!--, display:none, font-size:0, reference-style ![]; alert on agent-initiated egress to non-allowlisted domainsStage payloads only on assets in scope; use unique per-test OAST tokens to attribute hits
MCP tool poisoningNew/changed tool description hash; instruction-like text in JSON Schema description/enumDiff tool manifests on connect; flag tool metadata containing imperative verbs / <IMPORTANT> / "do not tell the user"Test against a local client; never point a real client at an untrusted server outside the lab
Memory poisoningMemory write from low-trust source; semantic drift between stored belief and source provenanceProvenance-tagged memory; alert on retrieval that injects procedural instructions; belief-drift monitorUse benign-looking triggers; document the latent trigger so blue team can replay/clean
Excessive agencyTool call to internal IP / metadata endpoint; unusual tool-chain ordering; off-hours actionsEDR/network: egress to 169.254.169.254/link-local; anomaly on tool-call sequencesUse non-destructive canaries (read-only SSRF probe) before any state-changing test
Automated jailbreakBurst of semantically-similar prompts; high-perplexity / encoded inputs; rising compliance over turnsRate + similarity clustering per session; perplexity & encoding detectors; multi-turn escalation scoringThrottle to avoid DoS; log full transcripts for the report; respect content guardrails of scope

Deep Dives

  • references/indirect-prompt-injection.md — Zero-click/indirect injection across email, RAG, docs, and AI browsers; EchoLeak chain, CometJacking, markdown/image exfil, obfuscation, detection.
  • references/mcp-tool-poisoning.md — Model Context Protocol attack surface: tool poisoning, line-jumping, rug-pull, MCP Inspector RCE; building a malicious server; client-side validation gaps.
  • references/memory-context-poisoning.md — Persistent/temporally-decoupled poisoning of agent memory, embeddings, RAG; MINJA query-only injection, MemoryGraft, AgentPoison, belief-drift detection.
  • references/excessive-agency-tool-abuse.md — OWASP LLM06 / ASI02 / ASI05: confused-deputy, over-privileged tools, SSRF/RCE via tool output, code-interpreter abuse; least-privilege controls.
  • references/automated-jailbreak-multiturn.md — PAIR, TAP, Crescendo, Best-of-N, GOAT, AutoDAN-Turbo; attacker/judge loop, encoding converters, ASR measurement, classifier-bypass tactics.
  • references/agent-redteam-tooling.md — Methodology + harness: PyRIT orchestrators, Garak probes, Promptfoo presets; OWASP Agentic Top 10 (ASI01–10) & MITRE ATLAS mapping; finding records.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Ai Agent Redteam AI skill do?

Use when red-teaming an agentic AI / LLM application — indirect & zero-click prompt injection, MCP tool poisoning, persistent memory poisoning, excessive-agency tool abuse, multi-turn jailbreaks, PyRIT/Garak/Promptfoo harnesses

Why use Ai Agent Redteam on TypingMind?

Because you install it once and use it with any model. Ai Agent Redteam is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ai Agent Redteam in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/hypnguyen1209/offensive-claude/tree/main/skills/ai-agent-redteam. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Ai Agent Redteam?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ai Agent Redteam?

As many as you like. As long as a model supports skills, you can use Ai Agent Redteam with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ai Agent Redteam AI skill free?

Yes. It is published on GitHub by hypnguyen1209 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇