adversary

adversary is a skill for Claude Code, Codex from Tyox-all/Weave_Protocol. It costs 0 tokens per session (803 once invoked), scanned A, original, Apache-2.0.

An offensive testing tool for AI agents that generates documented and new attacks, then creates standardized scorecards.

In plain words
What is it for?
Use it to test prompt-injection and jailbreak resistance, check WARD.md policies, run safety regression checks, and prepare security or vendor-review scorecards.
Why use it?
It helps reveal whether an agent can be tricked, forced to misuse tools, or made to ignore its rules before release.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/tyox-all/weave_protocol/adversary
Any agent
npx skills add Tyox-all/Weave_Protocol --skill adversary
Clone the repo
git clone --depth 1 https://github.com/Tyox-all/Weave_Protocol

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for adversary

README.md
[![agentmods](https://agentmods.dev/badge/skills/tyox-all/weave_protocol/adversary.svg)](https://agentmods.dev/skills/tyox-all/weave_protocol/adversary)
Your own site
<a href="https://agentmods.dev/skills/tyox-all/weave_protocol/adversary"><img src="https://agentmods.dev/badge/skills/tyox-all/weave_protocol/adversary.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 803 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00803
Opus 5 $0.00000 $0.00402
Sonnet 5 $0.00000 $0.00161
Haiku 4.5 $0.00000 $0.00080

Measured 4d ago against content hash a4bc5a1bad5c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

adversary scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 20 executable files (src/agent.ts, src/anthropic.ts, src/attacks/extraction/index.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

adversary/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

⚔️ Adversary skill — offensive testing for AI agents

You have access to @weave_protocol/adversary v0.2 — a package that generates 68 documented and novel attacks against AI agents and produces standardized scorecards.

When to invoke

Use Adversary when the user:

  • Wants to test an AI agent's security posture
  • Is reviewing/auditing a WARD.md policy and wants to verify it holds
  • Is preparing for a release and wants a regression check on safety
  • Asks about agent red-teaming, prompt injection testing, or jailbreak resistance
  • Wants to generate a scorecard for compliance / vendor review
  • Has a real running agent (HTTP endpoint, CLI executable, or browser-driving code) — use the attack command for real-world testing

What's in the corpus

  • 33 IPI (indirect prompt injection) — Atlan, EchoLeak, Brave/Comet
  • 15 tool-use coercion — direct attempts to call dangerous tools
  • 10 jailbreak templates — DAN, AIM, developer mode, grandma
  • 5 prompt/policy extraction — system prompt leakage, WARD enumeration
  • 5 goal corruption — mid-task pivots, fake authority, temporal manipulation

All severity-graded (critical/high/medium/low). All mapped to WARD policy domains.

Key commands

# Run the full corpus against the built-in demo
weave-adversary demo

# NEW v0.2: attack a real agent via HTTP endpoint
weave-adversary attack --url=https://my-agent.example.com/run

# NEW v0.2: attack a CLI agent (spawned as subprocess)
weave-adversary attack --executable=./my-agent-cli

# Filter scope
weave-adversary attack --url=... --category=ipi --per-category=10

# Save outputs
weave-adversary attack --url=... --json=./scorecard.json --md=./scorecard.md

The attack command requires Playwright (npm install playwright && npx playwright install chromium). The CLI prints a red callout with the exact install commands if it's missing.

Four breach signal channels (v0.2 PlaywrightTarget)

When running attack, Adversary observes the real browser session for:

Read the full file on GitHub · 85 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 85 lines · 0 tokens per session scan A a4bc5a1bad5c

Subscribe to this mod's changes

adversary is a skill published in the GitHub repository Tyox-all/Weave_Protocol (0 stars, last pushed 11d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 803 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

rtc-balance

Check RustChain wallet balance, epoch info, and network status via the public RPC.

Scottcjn/Rustchain · 20 tokens

panguard

AI agent security platform — audit skills, scan for threats, and run 24/7 protection with 9,700+ detection rules.

panguard-ai/panguard-ai · 30 tokens

blockchain-solana

Use this skill when asked about Solana blockchain, Solana architecture, Proof of History, Solana programming, Anchor framework, Solana runtime, Solana CLI tools, Solana DeFi, Jupiter, Raydium, Metaplex, SPL tokens, and the Solana ecosystem. Covers Solana protocol architecture (PoH, Tower BFT, Turbine, Gulf Stream…

j4flmao/agent-skills · 142 tokens

lictor-security-check

Pre-release security audit for ANY project — AI-built or hand-written, web or mobile. Scans the codebase for the full range of real-world risks that get apps breached: leaked API & AI-provider keys, exposed configs/secrets, broken auth & access control (IDOR), injection (SQL/XSS/command), SSRF, open databases & cloud…

Raffa-jarrl/Lictor-AI · 135 tokens

lictor-rotate

Walks the user through rotating a leaked API key — step by step, provider-specific. Knows the exact URL to visit, the exact button to click, and how to verify the rotation worked. Supports Stripe, OpenAI, Anthropic, Google Cloud / AI Studio, GitHub, AWS, Slack, Supabase, Firebase, Postmark, and generic OAuth providers.

Raffa-jarrl/Lictor-AI · 80 tokens

alchemy-agentic-gateway

Use when accessing Alchemy APIs for RPC calls, token balances, NFT metadata, asset transfers, transaction simulation, or Alchemy-specific features. Also use when the user mentions "SIWE", "SIWS", "x402", "MPP", "mppx", or "agentic gateway" — this skill covers wallet-based auth flows for Alchemy's x402 and MPP…

moonpay/skills · 101 tokens