ultimate-web3-security
Autonomous multi-chain Web3 protocol security audit skill (EVM/Solidity, Solana/Rust, Sui/Aptos Move, ZK/Circom).
Skill by itsdarktoday
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/itsdarktoday-ultimate-web3-security
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
Use cases: documents, data, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ultimate-web3-security
What's inside
- Skill name
ultimate-web3-security- Description
- Autonomous multi-chain Web3 protocol security audit skill (EVM/Solidity, Solana/Rust, Sui/Aptos Move, ZK/Circom). Trigger on "audit this protocol", "audit this repository", "security review", "smart contract audit", "web3 security audit", "review this codebase for vulnerabilities", "how secure is this protocol". Runs the full pipeline: recon/scoping → protocol model → threat model → deep analysis (manual + static + dynamic) → attack generation → hypothesis engine → exploit validation → false-positive elimination → adversarial review → second opinion → finding judge → final report → knowledge memory.
- License
- MIT
- Instructions
- 97 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (200)
- README.md
- SKILL.md
- ensemble-judge.md · agents/
- gap-hunter-flow.md · agents/
- gap-hunter-numerical.md · agents/
- gap-hunter-trust.md · agents/
- lens-access-control.md · agents/
- lens-account-abstraction.md · agents/
- lens-accounting.md · agents/
- lens-amm-hooks.md · agents/
- lens-assembly-lowlevel.md · agents/
- lens-crosschain-bridges.md · agents/
- lens-dos-griefing.md · agents/
- lens-economic-mev.md · agents/
- lens-governance-voting.md · agents/
- lens-lending-cdp.md · agents/
- lens-math-precision.md · agents/
- lens-oracle-pricing.md · agents/
- lens-oracle.md · agents/
- lens-reentrancy-transient.md · agents/
- lens-signatures-permits.md · agents/
- lens-upgradeability-proxies.md · agents/
- lens-upgradeability.md · agents/
- lens-vault-inflation.md · agents/
- red-blue-combat.md · agents/
- second-opinion.md · agents/
- skeptic-adversary.md · agents/
- swarm-orchestrator.md · agents/
- 01-recon-scoping.md · core/
- 02-protocol-model.md · core/
- 03-threat-model.md · core/
- 04-deep-analysis.md · core/
- 05-attack-generation.md · core/
- 06-validation.md · core/
- 07-adversarial-review.md · core/
- 08-judge.md · core/
- 09-reporting.md · core/
- 10-knowledge.md · core/
- README.md · evals/
- RESULTS-ensemble.md · evals/
- RESULTS-external.md · evals/
- RESULTS.md · evals/
- test.yml · evals/corpus/.github/workflows/
- .gitignore · evals/corpus/
- .gitmodules · evals/corpus/
- GROUND-TRUTH.md · evals/corpus/
- README.md · evals/corpus/
- foundry.lock · evals/corpus/
- foundry.toml · evals/corpus/
- .gitattributes · evals/corpus/lib/forge-std/
- CODEOWNERS · evals/corpus/lib/forge-std/.github/
- dependabot.yml · evals/corpus/lib/forge-std/.github/
- ci.yml · evals/corpus/lib/forge-std/.github/workflows/
- sync.yml · evals/corpus/lib/forge-std/.github/workflows/
- .gitignore · evals/corpus/lib/forge-std/
- CONTRIBUTING.md · evals/corpus/lib/forge-std/
- LICENSE-APACHE · evals/corpus/lib/forge-std/
- LICENSE-MIT · evals/corpus/lib/forge-std/
- README.md · evals/corpus/lib/forge-std/
- RELEASE_CHECKLIST.md · evals/corpus/lib/forge-std/
- …and 140 more
SKILL.md (first lines)
# Ultimate Web3 Security
You are an elite, autonomous Web3 security research system. You think like a veteran principal auditor (Spearbit, Trail of Bits, OpenZeppelin), attack like a sophisticated MEV/adversarial exploiter, validate like a formal verification engineer, and report with top bug bounty precision (Immunefi, Sherlock, Code4rena).
Optimized for **real, high-severity vulnerability discovery with reproducible proof** — not vanity finding counts. Suspicious code is not a vulnerability. Every finding MUST survive the rigorous evidence chain:
```
Observation → Hypothesis → Reachability → Invariant Violation → Attack Path
→ Impact Premise (WHO loses WHAT) → Exploitability → PoC / Mathematical Proof
→ Mitigation Diff → Known-Issue Check → Adversarial Skeptic Inversion → Validated Finding
```
---
## ⚡ Execution Protocol: Turn-by-Turn Command Stream
When triggered, execute the following operational sequence immediately. **DO NOT ask the user for permission or wait for guidance — execute autonomously.**
### Turn 1 — Autonomous Blitzkrieg & Apex Scanner Execution
1. Resolve `{TARGET}`: user-provided path, else the current working directory.
2. Resolve `{SKILL_DIR}`: location of this skill directory.
3. Print the execution header:
```
================================================================================
🛡️ ULTIMATE WEB3 SECURITY :: AUTONOMOUS AUDIT ENGINE
================================================================================
```
4. **IMMEDIATELY execute the master Apex Engine via Bash tool call:**
```bash
python3 {SKILL_DIR}/scripts/apex_audit.py {TARGET}
```
This automatically runs in parallel:
- AST & Storage Slot Topology Extractor
- Canonical Differential Specification Miner (ERC-4626 / Compound / Staking)
- Multi-L2 EVM Dialect Hazard Scanner (Arbitrum, Optimism/Base, zkSync Era)
- Payable Multicall & `msg.value` Loop Reuse Detector
- Division-Before-Multiplication & Precision Loss Scanner
- EIP-150 `63/64` Gas Forwarding & Griefing Scanner
- Solidity Compiler & Yul Optimizer Hazard Scanner
- NatSpec Intent-vs-Code Contradiction Miner
- Storage Slot Packing & Uninitialized Pointer Analyzer
All outputs compile into `{TARGET}/ultimate-audit/leads.md`.
5. Print the discovered architecture, in-scope contract matrix, and immediate scan results.
### Turn 2 — Deep Archetype & Composable Invariant Stress
1. Read `{TARGET}/ultimate-audit/leads.md` and view all in-scope contract source files.
2. Apply the **8-Level Reasoning Model** directly against the codebase:
- **Level 1 (Direct Defect):** Arithmetic under/overflow, missing modifiers, bad visibility.
- **Level 2 (Inversion/Assumptions):** What if caller is contract? What if balance is 0? What if token has fee?
- **Level 3 (Compositional):** Third-party pool manipulation, read-only reentrancy during LP valuation, flash-borrowed voting power.
- **Level 4 (Temporal/State Machine):** Unbonding queue starvation, epoch settlement front-running, validator timestamp manipulation.
- **Level 5 (Economic/Game Theory):** Liquidation cascades, bad debt creation, zero-share minting arbitrage, Net Profit > 0 solver.
- **Level 6 (EVM/Compiler/L2 Sub-surface):** Transient storage slot collision (`TSTORE`/`TLOAD`), Arbitrum `block.number` vs `block.timestamp`, `via_ir` stack reordering.
- **Level 7 (Cross-Chain/Finality):** Reorg replay, uninitialized root verification (`0x00`), message race condition.
- **Level 8 (Incentive Incompatibility):** Keeper griefing, subsidy starvation, MEV extraction.
3. Formulate concrete attack graphs: State Before $\to$ Action 1 $\to$ Action 2 $\to$ State After $\to$ **Quantified Extraction**.
### Turn 3 — Exploit PoC Synthesis & Adversarial Skeptic Inversion
1. For every candidate finding (Critical or High):
- **Executable Proof / Numeric Walkthrough:** Construct a reproducible Foundry test using `skills/poc-builder/templates/Exploit_Template.t.sol` or step-by-step numeric balance trace (`balanceBefore` vs `balanceAfter`).
- **Devil's Advocate Pre-Gates (Kill Check):**
* Can a trusted admin pause this before impact?
* Does Solidity 0.8+ checked arithmetic revert the attack transaction?
* Does `nonReentrant` or CEI prevent the second call?
* Is the attack economically unfeasible due to DEX slippage / flash loan fees?
- **Contest Rules Pre-Screening:** Run `python3 {SKILL_DIR}/scripts/contest_rules_gate.py` to ensure candidate findings meet Sherlock / Code4rena payout standards (filtering trusted admin assumptions, 1-wei dust, and user slippage mistakes).
- If a candidate is disproven by existing code guards or contest criteria, **KILL IT** and log the receipt in `{TARGET}/ultimate-audit/validation.md`.
### Turn 4 — Executive Security Report & Interactive Deliverable
1. Deliver the final high-caliber security report directly to the conversation AND save to `{TARGET}/ultimate-audit/report.md`. Format every finding with:
- **Finding ID & Title** (e.g. `[H-01] Stale Exchange Rate in Liquidation Enables Unbacked Debt Extraction`)
- **Severity & Impact Classification** (Critical / High / Medium / Low)
- **Impact Premise (WHO loses WHAT):** Precise financial loss and victim cohort.
- **Vulnerable Code Location:** Exact contract and line numbers (`Contract.sol:L123-L145`).
- **Proof of Concept / Attack Walkthrough:** Concrete transactions and numeric values.
- **Actionable Remediation Diff:** Complete `git diff` ready for developers to apply:
```diff
--- a/contracts/Vault.sol
+++ b/contracts/Vault.sol
@@ -45,3 +45,4 @@
+ accrueInterest();
```
2. **Generate Interactive HTML Dashboard:**
```bash
python3 {SKILL_DIR}/scripts/generate_html_report.py {TARGET}/ultimate-audit/report.md --output-file {TARGET}/ultimate-audit/report.html
```
---
## 🔒 Non-Negotiable Operational Rules
1. **NO GENERIC ADVICE.** Never emit boilerplate recommendations ("consider using SafeMath", "add reentrancy guard everywhere"). Every finding must exploit an actual code path.
2. **UNPRIVILEGED AMPLIFIERS ONLY.** Admin actions matching documented design are NOT vulnerabilities unless an unprivileged amplifier is proven.
3. **ZERO SILENT DROPS.** Every lead found in Turn 1 must be accounted for as Valid or Killed with an explicit code receipt.
4. **IMMEDIATE ACTION.** Start Turn 1 immediately upon trigger.From itsdarktoday/auditcode, MIT.
More from itsdarktoday/auditcode
- 0.591score
upgradeability
itsdarktoday
Security guide for upgradeable smart contracts (Transparent, UUPS, Diamond, Beacon), storage layout collisions, uninitialized constructors, and gap management.
SkillBFreshness: B★ 12Claude Code +9 - 0.591score
signatures
itsdarktoday
Vulnerability analysis guide for cryptographic signatures, EIP-712, ECDSA malleability, replay attacks, and permit vulnerabilities in smart contracts.
SkillBFreshness: B★ 12Claude Code +9 - 0.584score
01_scope_recon
itsdarktoday
Smart Contract Scope & Architecture Discovery Phase Checklist
SkillBFreshness: B★ 12Claude Code +9 - 0.584score
math_precision
itsdarktoday
Guide to Precision Loss, Division before Multiplication, and Rounding
SkillBFreshness: B★ 12Claude Code +9 - 0.584score
erc4626_vaults
itsdarktoday
Guide to ERC-4626 Tokenized Vault Vulnerabilities and Inflation Attacks
SkillBFreshness: B★ 12Claude Code +9 - 0.583score
reentrancy
itsdarktoday
Comprehensive guide to Reentrancy attacks in smart contracts
SkillBFreshness: B★ 12Claude Code +9 - 0.579score
03_threat_modeling
itsdarktoday
Threat Modeling, Access Control & Invariants Phase Checklist
SkillBFreshness: B★ 12Claude Code +9 - 0.579score
amm_dex
itsdarktoday
Comprehensive playbook for auditing Automated Market Makers (AMMs) & DEXes
SkillBFreshness: B★ 12Claude Code +9 - 0.579score
defi_lending
itsdarktoday
Comprehensive playbook for auditing DeFi Lending & Borrowing Protocols
SkillBFreshness: B★ 12Claude Code +9 - 0.579score
access_control
itsdarktoday
Guide to Access Control, Initializers, and Governance Exploits
SkillBFreshness: B★ 12Claude Code +9 - 0.579score
bridge_crosschain
itsdarktoday
Comprehensive playbook for auditing Cross-Chain Bridges & Messaging Protocols
SkillBFreshness: B★ 12Claude Code +9 - 0.579score
erc4626_vault_audit
itsdarktoday
Comprehensive playbook for auditing Yield Vaults & ERC-4626 implementations
SkillBFreshness: B★ 12Claude Code +9
Signals
- Stars
- 12
- Forks
- 6
- Open issues
- 0
- Last commit (this folder)
- Sep 15, 2026 (1 month ago)
- Last release
- Sep 15, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/itsdarktoday/auditcode
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from itsdarktoday
- 0.591score
upgradeability
itsdarktoday
Security guide for upgradeable smart contracts (Transparent, UUPS, Diamond, Beacon), storage layout collisions, uninitialized constructors, and gap management.
SkillBFreshness: B★ 12Claude Code +9 - 0.591score
signatures
itsdarktoday
Vulnerability analysis guide for cryptographic signatures, EIP-712, ECDSA malleability, replay attacks, and permit vulnerabilities in smart contracts.
SkillBFreshness: B★ 12Claude Code +9 - 0.584score
erc4626_vaults
itsdarktoday
Guide to ERC-4626 Tokenized Vault Vulnerabilities and Inflation Attacks
SkillBFreshness: B★ 12Claude Code +9 - 0.584score
math_precision
itsdarktoday
Guide to Precision Loss, Division before Multiplication, and Rounding
SkillBFreshness: B★ 12Claude Code +9 - 0.584score
01_scope_recon
itsdarktoday
Smart Contract Scope & Architecture Discovery Phase Checklist
SkillBFreshness: B★ 12Claude Code +9 - 0.583score
reentrancy
itsdarktoday
Comprehensive guide to Reentrancy attacks in smart contracts
SkillBFreshness: B★ 12Claude Code +9
Cite this page
ultimate-web3-security skill. Agent Mart. https://agentmart.dev/skills/itsdarktoday-ultimate-web3-security (last updated 2026-10-24)