solidity-adversarial-analysis

Installation
SKILL.md

Solidity Adversarial Scenario Analysis

When to Apply

  • Red-team security reviews and penetration testing
  • Pre-deployment threat modeling for DeFi protocols
  • Analyzing contracts that handle significant TVL
  • Investigating suspicious behavior or incident response
  • Extending a standard security audit with attacker-perspective analysis

Adversarial Thinking Framework

Step Action Key Question
1. Identify Assets Map valuable targets What can be stolen, locked, or manipulated?
2. Enumerate Entry Points List all external/public functions Which functions change state or move value?
3. Model Adversary Define attacker capabilities What resources (flash loans, MEV, tokens) does the attacker have?
4. Construct Sequences Build multi-step attack paths What sequence of calls achieves the attack goal?
5. Verify Invariants Check contract assumptions Which mathematical or state invariants can be violated?
Installs
15
First Seen
Feb 15, 2026
solidity-adversarial-analysis — whackur/solidity-agent-toolkit