entry-point-analyzer
Analyzes smart contract codebases to identify state-changing entry points for security auditing. Detects externally callable functions that modify state, categorizes them by access level, and generates structured audit reports.
Imported description, not reviewed yet
This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.
Download
Install
Plugins are installed from a plugin marketplace in Claude Code, not by copying files. Download the package to read its content and its license.
Instructions
Entry Point Analyzer
A Claude Code plugin and Codex skill for systematically identifying state-changing entry points in smart contract codebases to guide security audits.
Purpose
When auditing smart contracts, examining each file or function individually is inefficient. What auditors need is to start from entry points—the externally callable functions that represent the attack surface. This skill automates the identification and classification of state-changing entry points, excluding view/pure/read-only functions that cannot directly cause loss of funds or state corruption.
Supported Languages
| Language | File Extensions | Framework Support |
|---|---|---|
| Solidity | .sol | OpenZeppelin, custom modifiers |
| Vyper | .vy | Native patterns |
| Solana | .rs | Anchor, Native |
| Move | .move | Aptos, Sui |
| TON | .fc, .func, .tact | FunC, Tact |
| CosmWasm | .rs | cw-ownable, cw-controllers |
Access Classifications
The skill categorizes entry points into four levels:
- Public (Unrestricted) — Callable by anyone; highest audit priority
- Role-Restricted — Limited to specific roles (admin, governance, guardian, etc.)
- Review Required — Ambiguous access patterns needing manual verification
- Contract-Only — Functions with enforced caller checks tied to integration contracts
Output
Generates a structured markdown report with:
- Summary table of entry point counts by category
- Detailed tables for each access level
- Function signatures with file:line references
- Restriction patterns and role assignments
- List of analyzed files
Usage
Trigger the skill with requests like:
- "Analyze the entry points in this codebase"
- "Find all external functions and access levels"
- "List audit flows for src/core/"
- "What privileged operations exist in this project?"
In Claude Code, invoke the skill or pass a directory to the slash command:
/entry-point-analyzer:entry-point-analyzer
/entry-point-analyzer:entry-points src/core/
In Codex, invoke the skill directly:
Use $entry-point-analyzer to analyze src/core/.
Directory Filtering
Specify a subdirectory to limit scope:
- "Analyze only
src/core/" - "Find entry points in
contracts/protocol/"
Role Detection
The skill infers roles from common patterns:
| Pattern | Detected Role |
|---|---|
onlyOwner, msg.sender == owner | Owner |
onlyAdmin, ADMIN_ROLE | Admin |
onlyGovernance, governance | Governance |
onlyGuardian, onlyPauser | Guardian |
onlyKeeper, onlyRelayer | Keeper/Relayer |
onlyStrategy, strategist | Strategist |
Dynamic checks (authorized[msg.sender]) | Review Required |
Installation
Claude Code
/plugin marketplace add trailofbits/skills
/plugin install entry-point-analyzer@trailofbits
Codex
codex plugin marketplace add trailofbits/skills
codex plugin add entry-point-analyzer@trailofbits
Start a new session after installation. The skill includes its language references and can run without Slither; if Slither is installed, it uses the entry-points printer before manual access-control classification.
License
See LICENSE.txt for terms.
Files
- folder.claude-plugin444 B
- plugin.json444 B
- foldercommands377 B
- entry-points.md377 B
- folderskills46 KB
- folderentry-point-analyzer46 KB
- folderagents238 B
- openai.yaml238 B
- folderassets3 KB
- trail-of-bits-mark.svg3 KB
- folderreferences32 KB
- cosmwasm.md5.3 KB
- move-aptos.md3.9 KB
- move-sui.md3.4 KB
- solana.md4.7 KB
- solidity.md5.6 KB
- ton.md4.9 KB
- vyper.md4.2 KB
- SKILL.md10 KB
- foldertests4.4 KB
- README.md2 KB
- scenario.md2.4 KB
- LICENSE20 KB
- README.md3.2 KB
Comments (0)
No comments yet. Be the first.
Sign in to comment. Commenting comes at level 1 (Member).