entry-point-analyzer

Identify state-changing entry points in smart contracts and classify access levels.

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/amano--/call-center --skill entry-point-analyzer-amano
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: entry-point-analyzer
Source: https://github.com/amano--/call-center/tree/main/.gemini/antigravity/skills/trailofbits-security/entry-point-analyzer
Command: npx skills add https://github.com/amano--/call-center --skill entry-point-analyzer-amano

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps security auditors by automatically identifying all functions within a smart contract that can change the contract's state, providing a clear map of the potential attack surface.

Core Features & Use Cases

  • State-Changing Function Identification: Detects and lists functions that modify contract data, excluding read-only operations.
  • Access Control Classification: Categorizes identified functions by their access level (public, role-restricted, contract-only).
  • Use Case: When starting a security audit for a new DeFi protocol, use this Skill to quickly understand which functions are critical for state modification and require the most scrutiny for access control vulnerabilities.

Quick Start

Use the entry-point-analyzer skill to find all state-changing functions in the 'contracts/' directory.

Frequently Asked Questions about entry-point-analyzer

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

FAQPage Schema
How do I find all state-changing functions in a smart contract for a security audit?

State-changing entry points are externally callable functions that modify contract data and represent the potential attack surface. They are categorized by access level—public, admin, role-restricted, or contract-only—to prioritize scrutiny for access control vulnerabilities during security audits.

Does the entry point analyzer work with Vyper and Solana Rust smart contracts?

Yes, the entry point analyzer works with Vyper and Solana/Rust smart contracts, alongside Solidity, Move, TON, and CosmWasm. It detects externally callable functions modifying state across these languages to generate structured audit reports.

How do I map the attack surface of a DeFi protocol before auditing?

Map the attack surface of a DeFi protocol by scanning the codebase to identify externally callable functions that modify state. This excludes view and pure functions, categorizing remaining state-changing operations by access level to highlight privileged operations requiring scrutiny.

Are read-only view and pure functions included in smart contract entry point analysis?

Read-only view and pure functions are excluded from smart contract entry point analysis. The focus is strictly on detecting state-changing functions that modify contract data, ensuring audit reports only highlight operations capable of altering the contract's state.

What is the best way to identify privileged operations and access control patterns in Solidity?

The best way to identify privileged operations in Solidity is to analyze the codebase for state-changing functions and categorize them by access level. This classifies functions as public, admin, role-restricted, or contract-only, isolating privileged operations for targeted access control review.