asserting-contract-from-code-size

Community

Secure EOA checks in Solidity

AuthorApegurus
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses a common security vulnerability in Solidity smart contracts where checks for Externally Owned Accounts (EOAs) based on code size can be bypassed, leading to unauthorized access or actions.

Core Features & Use Cases

  • Vulnerability Identification: Detects the use of extcodesize or address.code.length for EOA checks.
  • Security Risk Assessment: Flags instances where this check gates critical operations like minting or access control.
  • Use Case: An auditor can use this Skill to quickly identify and flag contracts that incorrectly assume code size is a reliable indicator of an EOA, potentially exposing minting functions to contract callers.

Quick Start

Analyze the provided Solidity code for insecure EOA checks.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: asserting-contract-from-code-size
Download link: https://github.com/Apegurus/solidity-argus/archive/main.zip#asserting-contract-from-code-size

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.