Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Smart Contract Reentrancy Fuzzer

    1

    Audit Solidity smart contracts for reentrancy, CEI violations, and integer overflows through static analysis.

    Free

    Security scanned
    Smart Contract Reentrancy Fuzzer

    Smart Contract Reentrancy Fuzzer

    Example session with this skill installed

    Audit the Vault.sol contract for reentrancy vulnerabilities and check if the withdraw function follows the CEI pattern.

    • Read your context and instructions
    • Compiled the smart contract reentrancy

    I have completed a static security audit of Vault.sol focusing on reentrancy and Checks-Effects-Interactions (CEI) compliance.

    Smart Contract Security Audit: Vault.sol

    FunctionVulnerabilityTypeStatusRecommendation
    withdraw(uint256)ReentrancyHighCRITICALState update happens after call.value(). Move balances[msg.sender] = 0 before the transfer.
    emergencyExit()Missing ModifierMediumWARNINGFunction lacks nonReentrant modifier despite interacting with external addresses.
    deposit()Integer OverflowLowSAFEUses Solidity 0.8.x built-in overflow checks.
    getBalance()Read-only ReentrancyMediumPOTENTIALExternal contracts may rely on this state during a mid-transaction callback.

    Analysis Details

    CEI Violation: The withdraw function sends Ether to msg.sender before resetting their balance. An attacker can trigger a fallback function to re-enter the withdraw call and drain the vault.

    • Guardrail Check: OpenZeppelin ReentrancyGuard is imported but not inherited by the main contract.

    Next steps

    1. Update Vault.sol to inherit from ReentrancyGuard.
    2. Refactor the withdraw function to follow the Checks-Effects-Interactions pattern by updating state before the external call.
    3. Apply the nonReentrant modifier to all external-facing functions that transfer value.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Smart contracts with reentrancy bugs lead to catastrophic fund drainage and protocol failure. This skill performs static source code inspection to identify state-altering vulnerabilities before you deploy to mainnet.

    What it does

    • State Mutation Analysis verifies that variables are updated before any external Ether transfers or call.value() invocations occur.
    • Pattern Validation checks for the correct implementation of OpenZeppelin ReentrancyGuard and the application of nonReentrant modifiers.
    • Attack Vector Identification flags potential flash loan exploits and complex read-only reentrancy vulnerabilities.
    • CEI Enforcement audits code against the Checks-Effects-Interactions pattern to prevent mid-execution state manipulation.

    How it works

    1. Source Scanning parses Solidity (.sol) files within the active project workspace to map out external calls.
    2. Logic Mapping traces state variable mutations relative to external call triggers.
    3. Vulnerability Assessment compares findings against known reentrancy and overflow/underflow patterns.
    4. Mitigation Reporting generates a structured audit report detailing the flaw locations and recommended fixes.

    Frameworks & tools

    This skill is designed for Solidity development environments using the Ethereum Virtual Machine (EVM) architecture. It specifically supports OpenZeppelin security libraries and standard static analysis patterns.

    Why this beats prompting it yourself

    Generic prompts often miss the nuances of state mutation order and read-only reentrancy which are hard to detect without a dedicated security workflow. This skill uses a deterministic audit path focused on CEI violations that standard LLM coding assistants frequently overlook.

    Use cases

    • Auditing new DeFi protocol contracts for external call safety.
    • Verifying nonReentrant modifier coverage across complex inheritance trees.
    • Detecting integer overflow risks in legacy Solidity versions.
    • Reviewing cross-contract state dependencies for read-only reentrancy.

    Known limitations

    Limited to static source code inspection only. It does not perform dynamic analysis, symbolic execution, or live blockchain node interactions.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Web3 & Crypto.

    Static analysis only. No blockchain node interaction or dynamic fuzzing. Restricted to workspace files.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 4 days ago

    • Free with an Agensi account

    Software
    Zero global installation
    orelevated privileges required.

    File System Read/Write (strictly scoped to current project workspace `./`).

    Permissions

    Read Files

    Target Use Cases: - Audit this Solidity contract for reentrancy vulnerabilities. - Check my smart contract for checks-effects-interactions violations. - Review token vault code for flash loan reentrancy.

    Listed4 days ago

    What's inside

    Frequently Asked Questions

    It performs targeted static analysis on Solidity files to detect Check-Effects-Interactions (CEI) violations, missing ReentrancyGuard modifiers, and risks associated with state-altering external calls.

    The skill is optimized for any AI agent that can browse your local workspace files, including popular IDE-based agents like Cursor, Windsurf, or GitHub Copilot.

    Yes, the skill specifically scans for read-only reentrancy vectors where a contract's state is queried by an external protocol while in an inconsistent, mid-execution state.

    No, this is a static analysis tool that inspects logic patterns in your .sol files; it does not require a local node or testnet deployment to function.

    Because it uses static inspection, it cannot catch vulnerabilities that only emerge during complex runtime interactions or state changes involving external, unverified contract bytecodes.

    Your purchase includes the specialized security logic pattern, the structured audit report template, and lifetime access to any updates as new Solidity vulnerability patterns are discovered.

    New in Web3 & Crypto

    Free