reentrancy

Detect reentrancy vulnerabilities in Solidity smart contracts and generate State Timeline maps.

60|18|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/PurpleAILAB/Vigilo --skill reentrancy-purpleailab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reentrancy
Source: https://github.com/PurpleAILAB/Vigilo/tree/main/packages/claude/skills/vulnerability-patterns/reentrancy
Command: npx skills add https://github.com/PurpleAILAB/Vigilo --skill reentrancy-purpleailab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill identifies and analyzes reentrancy vulnerabilities in smart contracts, a critical security flaw that has led to significant financial losses in the Web3 space.

Core Features & Use Cases

  • Reentrancy Pattern Detection: Identifies various reentrancy attack vectors including CEI violations, cross-function/cross-contract reentrancy, read-only reentrancy, and token callback exploits.
  • State Timeline Analysis: Provides a core artifact for understanding the sequence of events and state changes during a reentrancy attack.
  • Use Case: An auditor can use this Skill to quickly scan a smart contract codebase for common reentrancy pitfalls, significantly speeding up the security audit process.

Quick Start

Analyze the provided Solidity code for reentrancy vulnerabilities.

Frequently Asked Questions about reentrancy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect reentrancy vulnerabilities in Solidity smart contracts?

To detect reentrancy vulnerabilities in Solidity smart contracts, you can analyze the code for CEI violations, cross-function and cross-contract reentrancy, read-only reentrancy, and token callback exploits. This process generates a State Timeline map showing state changes during an attack.

What is a State Timeline map in smart contract security auditing?

A State Timeline map in smart contract security auditing is an artifact that visualizes the sequence of events and state changes occurring during a reentrancy attack. It helps auditors understand how vulnerabilities like CEI violations and token callback exploits are exploited step by step.

Can cross-function and cross-contract reentrancy be detected automatically in Web3 security?

Yes, cross-function and cross-contract reentrancy can be detected automatically in Web3 security by scanning the Solidity codebase for common reentrancy patterns. The analysis identifies attack vectors across different functions and contracts to speed up the security audit process.

Does read-only reentrancy detection require special prerequisites for smart contract codebases?

Read-only reentrancy detection requires providing the Solidity smart contract codebase for analysis. The Skill operates without external dependencies to identify read-only reentrancy and token callback exploits, outputting a State Timeline map for each vulnerability finding.

What is the best way to identify CEI violations during a smart contract audit?

The best way to identify CEI (Checks-Effects-Interactions) violations during a smart contract audit is by analyzing the Solidity code specifically for reentrancy patterns. This approach pinpoints CEI violations and generates a State Timeline map to track state changes during the vulnerability.

What types of token callback exploits can be identified in smart contract security?

Token callback exploits identifiable in smart contract security include those interacting with external contracts to trigger reentrancy. The analysis detects these token callback exploits alongside CEI violations and read-only reentrancy, providing a State Timeline map for each vulnerability found.