Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/dammianmiller-adversarial
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
adversarial- Description
- None
- License
- MIT
- Compatibility
- CLAUDE.md v2.3.0+
- Instructions
- 153 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- description: missing
Files (1)
- SKILL.md
SKILL.md (first lines)
# Adversarial Thinking
> **Integration**: Load via `@Skill:adversarial.md` in DECISION LOOP step 5
## Overview
Adversarial thinking for security research, vulnerability assessment, and bypass testing. Requires attacker mindset while maintaining defensive best practices.
## When to Activate
Use this skill when tasks involve:
- Security testing or penetration testing
- Bypassing filters, validators, or rate limiters
- Vulnerability research (ethical/security contexts only)
- Understanding attack vectors for defense planning
- Testing input sanitization and validation
## Detection Keywords
"bypass", "break", "exploit", "circumvent", "evade", "filter", "XSS", "injection", "sanitize", "vulnerability", "penetration", "audit"
## Protocol Integration
### DECISION LOOP Position
This skill applies at **step 5** of the DECISION LOOP:
```
1. CLASSIFY -> complexity? backup needed? tools?
2. PROTECT -> cp file file.bak (for configs, DBs)
3. MEMORY -> query relevant context + past failures
4. AGENTS -> check overlaps (if multi-agent)
5. SKILLS -> @Skill:adversarial.md for domain-specific guidance
6. WORK -> implement (ALWAYS use worktree for ANY file changes)
7. REVIEW -> self-review diff before testing
8. TEST -> completion gates pass
9. LEARN -> store outcome in memory
```
### Required Pre-Checks
Before applying adversarial patterns:
- [ ] **MANDATORY**: Worktree created (`uap worktree create <slug>`)
- [ ] Schema diff gate completed (if tests involved)
- [ ] Environment check performed
- [ ] Memory queried for relevant past failures
- [ ] Ethical guidelines confirmed (security research only)
## Attack Vector Enumeration
### Systematic Checklist
1. **Case variation**: `<ScRiPt>`, `SELECT` vs `select`
2. **Encoding**: URL encode (`%3C`), HTML entities (`<`), Unicode (`\u003c`)
3. **Null bytes**: `%00` to truncate strings
4. **Double encoding**: `%253C` -> `%3C` -> `<`
5. **Context breaking**: Close existing tag/string before injecting
6. **Event handlers**: `onerror=`, `onload=`, `onfocus=`
7. **Alternative syntax**: Template literals, `eval()`, `Function()`
8. **Whitespace tricks**: Tabs, newlines, zero-width characters
9. **Protocol handlers**: `javascript:`, `data:`, `vbscript:`
10. **Mutation XSS**: HTML parser normalization differences
### Testing Protocol
- Test EACH vector until one works -- do not stop at first failure
- Document all vectors tried and results
- Use established libraries when building defenses (DOMPurify, bleach)
## Defensive Patterns
**CRITICAL: When building defense, ALWAYS use allow-list approach**
```python
# ❌ NEVER use blacklist/regex to filter malicious patterns
if re.search(r'<script|javascript:', user_input): # WRONG
# ✅ Use established security libraries
import bleach
clean = bleach.clean(user_input, tags=[], attributes={})
# ✅ Or parameterized queries for SQL
cursor.execute("SELECT * FROM users WHERE id = ?", (user_id,))
```
## UAP Protocol Compliance
### Completion Gates Checklist
Before reporting task complete:
```
[x] Schema diffed against test expectations
[x] Tests: X/Y (must be 100%, run 3+ times)
[x] Outputs verified: ls -la
[x] Worktree created and PR prepared
[x] MANDATORY cleanup after PR merge
```
### Verifier-First Integration
If tests are involved:
1. **Schema Diff Gate**: Compare output schema against test expectations BEFORE running verifier
2. **Environment Check**: `python3 --version; which pip3 gcc make node npm`
3. **Run Verifier**: After each change, minimum 3 runs with TESTS output format
## Memory Integration
### Store Lessons Learned
```bash
uap memory store "Adversarial pattern: <pattern_name> bypassed <defense_type>" \
--tags adversarial,<category> --importance 8
```
### Query Relevant ContextFrom DammianMiller/universal-agent-protocol, MIT.
More from DammianMiller/universal-agent-protocol
- 0.598score
design-system
DammianMiller
Keep a project's UI/UX on its DESIGN.md design system.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
agent-collaboration-board
DammianMiller
Use the shared collaboration board to coordinate with other agents — post findings, dead-ends, integrity flags, and handoffs, and read peers' posts before…
SkillAFreshness: A★ 2Claude Code +9 - 0.595score
hooks-session-start
DammianMiller
Session initialization hook that cleans stale agents, injects recent memory context, and ensures 100% CLAUDE.md adherence
SkillAFreshness: A★ 2Claude Code +9 - 0.592score
scripts-tool-router
DammianMiller
Intelligent tool routing and pattern matching for automated tasks
SkillAFreshness: A★ 2Claude Code +9 - 0.592score
hooks-pre-compact
DammianMiller
Pre-compact hook for database optimization, cleanup, and CLAUDE.md compliance preservation
SkillAFreshness: A★ 2Claude Code +9 - 0.589score
scripts-preload-memory
DammianMiller
Memory system preloading and context initialization
SkillAFreshness: A★ 2Claude Code +9 - 0.588score
infra-worker
DammianMiller
Infrastructure worker for systemd services, env files, and process management
SkillAFreshness: A★ 2Claude Code +9 - 0.588score
llama-cpp-worker
DammianMiller
C++ development worker for llama.cpp speculative decoding fixes, CUDA builds, and server validation
SkillAFreshness: A★ 2Claude Code +9 - 0.586score
cli-design-expert
DammianMiller
Expert CLI/TUI designer for building intuitive, user-friendly, and professional command-line interfaces.
SkillAFreshness: A★ 2Claude Code +9 - 0.568score
session-context-preservation-droid
DammianMiller
This droid specializes in maintaining project knowledge continuity across session boundaries by intelligently capturing, synthesizing, and retrieving context…
SkillAFreshness: A★ 2Claude Code +9 - 0.329score
parallel-expert-review
DammianMiller
No description from the publisher yet.
SkillAFreshness: A★ 2Claude Code +9 - 0.329score
batch-review
DammianMiller
No description from the publisher yet.
SkillAFreshness: A★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 23, 2026 (1 month ago)
- Last release
- Oct 9, 2026 (21 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from DammianMiller
- 0.598score
agent-collaboration-board
DammianMiller
Use the shared collaboration board to coordinate with other agents — post findings, dead-ends, integrity flags, and handoffs, and read peers' posts before…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
design-system
DammianMiller
Keep a project's UI/UX on its DESIGN.md design system.
SkillAFreshness: A★ 2Claude Code +9 - 0.595score
hooks-session-start
DammianMiller
Session initialization hook that cleans stale agents, injects recent memory context, and ensures 100% CLAUDE.md adherence
SkillAFreshness: A★ 2Claude Code +9 - 0.592score
hooks-pre-compact
DammianMiller
Pre-compact hook for database optimization, cleanup, and CLAUDE.md compliance preservation
SkillAFreshness: A★ 2Claude Code +9 - 0.592score
scripts-tool-router
DammianMiller
Intelligent tool routing and pattern matching for automated tasks
SkillAFreshness: A★ 2Claude Code +9 - 0.589score
scripts-preload-memory
DammianMiller
Memory system preloading and context initialization
SkillAFreshness: A★ 2Claude Code +9
Cite this page
adversarial skill. Agent Mart. https://agentmart.dev/skills/dammianmiller-adversarial (last updated 2026-10-24)