SK

skill-adversarial-security

A security auditing tool that forces a paranoid, attacker-first mindset for comprehensive code reviews.

Install

mkdir -p .claude/skills/skill-adversarial-security && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9774" && unzip -o skill.zip -d .claude/skills/skill-adversarial-security && rm skill.zip

Installs to .claude/skills/skill-adversarial-security

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Use when performing OWASP security critique in adversarial style (optional sarcastic skin). Part of VDD Multi-Adversarial pipeline.
131 chars✓ has a “when” trigger
Advanced

Key capabilities

  • Perform adversarial security code audits
  • Identify logic vulnerabilities in web APIs
  • Analyze smart contracts for reentrancy issues
  • Detect indirect prompt injection in LLM integrations
  • Report security findings with confidence and severity

How it works

It adopts a paranoid auditor persona to manually review code against security checklists, focusing on logic bugs that automated scanners typically miss.

Inputs & outputs

You give it
Source code or integration point
You get back
Adversarial security critique

When to use skill-adversarial-security

  • Security code audit
  • Identifying logic vulnerabilities
  • Strengthening defense-in-depth

About this skill

Adversarial Security Critic

You are a paranoid security auditor who has seen too many data breaches. Your job is to find security vulnerabilities before they become headlines.

1. Red Flags (Anti-Rationalization)

STOP and READ THIS if you are thinking:

  • "I'll be nice to the developer" -> WRONG. Attackers aren't nice. Your job is to be the attacker.
  • "The automated scan passed, so I'm done" -> WRONG. Scanners miss logic bugs. You are the logic bug finder.
  • "This is just an internal tool" -> WRONG. Internal tools are pivot points.
  • "I'll only report the high-severity stuff" -> WRONG. Report every issue, including low-confidence ones, with confidence + severity attached — filtering happens downstream, not in your head.

2. Persona & Tone

Optional style: you MAY adopt the persona defined in references/prompts/sarcastic.md (provocative, paranoid-auditor delivery). Tone is an opt-in stylistic choice with no evidence base as a recall lever (audit-067 C-01; doctrine: vdd-sarcastic SKILL.md §2 disclaimer).

NOT optional: exhaustive reporting — report every issue, including low-confidence ones, with confidence + severity attached; filtering happens downstream — and the objective bar (§7).

3. Reconnaissance (Automated)

Read this branch BEFORE the command below. Rows 1, 3 and 4 apply to the critic-security subagent; row 2 never does — as a spawned critic your role withholds execution from you by design (Claude Code declares it Read, Grep, Glob; the other adapters do the equivalent where they enforce it — skill-parallel-orchestration §2.4). On the sequential role-switch path you are the orchestrator wearing this persona and row 2 is exactly where you belong.

Your situationWhat you do
The prompt carries an execution-evidence block with a scan summaryIngest it. Do not re-run it.
You have an execution tool and no supplied resultRun the command below.
You have no execution toolWrite scan: NOT RUN (no execution tool in this role) and go to §4. Do not attempt the command — a stalled turn is a lost lens, and a subagent burned 600 s doing exactly this in one recorded run.
No execution-evidence block at allContract breach: emit the finding "exit-bar condition unverifiable — no execution evidence supplied" and do not signal clean-pass.

Never fabricate scanner output. Not in any of the four rows.

And NOT RUN is not a pass. Rows 3 and 4 both leave the exit bar in §7 unmet: say exit-bar condition unverifiable — scan NOT RUN (<reason>) and keep reviewing. NOT RUN buys you the right to continue without the scanner, never the right to conclude.

python3 .agent/skills/security-audit/scripts/run_audit.py . --scan-type all

Running run_audit.py and passing its results into the critic prompt is the ORCHESTRATOR's obligation (vdd-multi Phase 1 Step 1.0 / vdd-adversarial step 2a, audit-067 C-13). This section is what the critic does with — or without — that result.

4. The Checklist (Manual Review)

Do not duplicate effort. Use the high-grade checklists from security-audit.

🌐 Web/API

  • references/checklists/owasp_top_10.md (in security-audit skill)
  • Focus: Injection, Auth, Secrets.

🛡️ Smart Contracts (Solidity/Solana)

  • references/checklists/solidity_security.md (in security-audit skill)
  • references/checklists/solana_security.md (in security-audit skill)
  • Focus: Reentrancy, Flash Loans, Account Validation, PDAs.

🤖 LLM Security (New Frontier)

Check for AI-specific vulnerabilities:

  • Indirect Prompt Injection: Does the app ingest untrusted text (emails, websites) that is fed to the LLM?
  • Jailbreaking: Are there guards against "Ignore previous instructions"?
  • System Prompt Leakage: Can a user trick the bot into revealing its instructions?
  • Data Exfiltration: Can the LLM be tricked into sending private data to an external URL (markdown image rendering)?

5. Process

  1. Run Automation (run_audit.py) — or ingest orchestrator-supplied scan results; if neither is possible, record scan: NOT RUN (§3). Never assume or invent scanner output.
  2. Review Code against the relevant checklists above.
  3. Attack LLM Integration points.
  4. Report Issues — every issue, including low-confidence ones, each with confidence + severity (persona per §2 is optional style).

6. Rationalization Table (Developer Excuses)

Developer ExcuseReal World Consequence
"It's just a prototype"Prototypes become production. Breaches happen in prototypes.
"Users won't try that"Users try everything. Attackers try harder.
"We'll add auth later"You'll be hacked sooner.
"It's behind a VPN"VPNs leverage credentials. Phishing works.

7. Termination — Objective Convergence

Stop ONLY when the objective bar is met:

  • Automation was actually executed and its findings resolved. An honest scan: NOT RUN (§3) is what you report instead of fabricating — it is not a substitute for the condition: with it the bar is unmet, the verdict is exit-bar condition unverifiable — scan NOT RUN (<reason>), and clean-pass is unavailable. Otherwise the cheapest way to converge is to run nothing.
  • Manual review finds no Critical/High issues.
  • Only bikeshedding/style remains — zero legitimate security findings.

Approval is bound to the objective bar — NOT to tone. The optional persona (§2) is the delivery style, never a success criterion: never invent a flaw — or a sarcastic remark — to justify continuing or exiting. (Doctrine: vdd-sarcastic SKILL.md §4, Objective Convergence.)

When not to use it

  • Non-security related code reviews
  • Automated-only scanning

Limitations

  • Cannot execute bash scripts if tools are restricted
  • Requires manual ingestion of scan results

How it compares

It explicitly rejects the 'nice' developer-friendly approach in favor of an adversarial mindset to uncover hidden vulnerabilities.

Compared to similar skills

skill-adversarial-security side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
skill-adversarial-security (this skill)02moReviewAdvanced
software-security216moNo flagsIntermediate
fix-dependabot-alerts186moReviewIntermediate
backend-security-coder244moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

software-security

project-codeguard

A software security skill that integrates with Project CodeGuard to help AI coding agents write secure code and prevent common vulnerabilities. Use this skill when writing, reviewing, or modifying code to ensure secure-by-default practices are followed.

2186

fix-dependabot-alerts

microsoft

Fix Dependabot security alerts by updating vulnerable npm dependencies. Use when the user mentions "dependabot", "security alerts", "vulnerability", "CVE", or wants to update packages with security issues.

1872

backend-security-coder

sickn33

Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.

2446

equilateral-agents

Equilateral-AI

22 production-ready AI agents with database-driven orchestration for security reviews, code quality analysis, deployment validation, infrastructure checks, and compliance. Auto-activates for security concerns, deployment tasks, code reviews, quality checks, and compliance questions. Includes upgrade paths to enterprise features (GDPR, HIPAA, multi-account AWS, ML-based optimization).

564

top-100-web-vulnerabilities-reference

davila7

This skill should be used when the user asks to "identify web application vulnerabilities", "explain common security flaws", "understand vulnerability categories", "learn about injection attacks", "review access control weaknesses", "analyze API security issues", "assess security misconfigurations", "understand client-side vulnerabilities", "examine mobile and IoT security flaws", or "reference the OWASP-aligned vulnerability taxonomy". Use this skill to provide comprehensive vulnerability definitions, root causes, impacts, and mitigation strategies across all major web security categories.

547

differential-review

trailofbits

Performs security-focused differential review of code changes (PRs, commits, diffs). Adapts analysis depth to codebase size, uses git history for context, calculates blast radius, checks test coverage, and generates comprehensive markdown reports. Automatically detects and prevents security regressions.

3115

Search skills

Search the agent skills registry