Skip to content
Back to skills

Adversarial Review

ASecurity

Complete the primary implementation, then switch roles: become an attacker whose goal is to break your own work. Write adversarial test cases, probe edge cases, attempt common exploit patterns, and challenge architectural decisions. Fix everything found. Repeat up to 3 attack-fix cycles. ---

  • 8 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
code-qualitygo

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add SeongwoongCho/adaptive-harness --skill adversarial-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Adversarial Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Adversarial Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/seongwoongcho-adversarial-review/badge)](https://www.skillsdirectory.com/skills/seongwoongcho-adversarial-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Adversarial-Review Skill

Complete the primary implementation, then switch roles: become an attacker whose goal is to break your own work. Write adversarial test cases, probe edge cases, attempt common exploit patterns, and challenge architectural decisions. Fix everything found. Repeat up to 3 attack-fix cycles.

---

## Steps

1. **Implement — complete the primary solution**
   - Build the full implementation as you normally would
   - Write standard tests for the happy path and documented edge cases
   - Run the full test suite — confirm all pass before starting the attack phase
   - Note the implementation boundaries: what it accepts, what it rejects, what it assumes

2. **Attack round 1 — break it with adversarial inputs**
   - Write adversarial test cases targeting:
     - Boundary values (zero, negative, max int, empty string, null, very large input)
     - Malformed input (unexpected types, missing fields, extra fields)
     - Common exploit patterns for the domain (injection, overflow, race conditions if concurrent)
     - Unicode, special characters, encoding edge cases
   - Run adversarial tests — record all failures
   - Challenge architectural decisions: "What if the upstream contract changes?", "What if this is called twice?"
   - List every issue found with severity: CRITICAL / HIGH / MEDIUM / LOW

3. **Fix — address all issues found in round 1**
   - Fix CRITICAL and HIGH issues first — do not proceed if any CRITICAL remains unfixed
   - For each fix: state the root cause, the fix applied, and which adversarial test now passes
   - Run the full test suite after all fixes — confirm no regressions

4. **Attack round 2 — re-attack with fresh adversarial tests**
   - Write new adversarial tests targeting the areas that were just fixed
   - Probe for fix regressions: does the fix introduce a new vulnerability?
   - Expand attack surface: what was not tested in round 1?
   - If no new issues found: proceed to step 6
   - If new issues found: record and continue to step 5

5. **Fix round 2 — address remaining issues**
   - Apply fixes for all round 2 findings
   - Run the full test suite — confirm green
   - If this is attack round 3 and issues remain: document them as known limitations, not silent failures

6. **Attack round 3 (final) — confirm stability**
   - One final adversarial pass focusing on any remaining weak areas
   - If issues are found and this is round 3: document them clearly, do not silently ignore
   - Run the full test suite — all tests must pass including adversarial ones

7. **Final verification**
   - Run the complete test suite — all tests (standard + adversarial) must pass
   - Run the build command — no errors
   - Grep modified files for debug artifacts: `console.log`, `debugger`, `TODO`, `HACK`, `FIXME` — remove any found

8. **Report**
   - List all adversarial test cases written and their outcomes
   - State each issue found by severity and whether it was fixed or deferred
   - Note any architectural concerns raised that could not be fixed within scope
   - State how many attack rounds were completed

Files in this skill

  • contract.yaml2.9 KB
  • skill.md3.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.