entry-point-analyzer
Qué hace
Enumera las funciones de un contrato inteligente que pueden cambiar su estado, ordenadas por quién tiene permiso para llamarlas, como el público, los administradores o solo otros contratos. Es para auditores que empiezan a trabajar en un contrato.
Cuándo usarla
- ✓Cuando un auditor inicia una auditoría de seguridad y necesita mapear la superficie de ataque del contrato.
- ✓Cuando un equipo quiere ver qué funciones de administrador o restringidas por rol tiene un contrato.
- ✓Cuando alguien quiere saber qué funciones de un contrato pueden cambiar su estado.
Link de la skill
https://github.com/trailofbits/skills/blob/main/plugins/entry-point-analyzer/skills/entry-point-analyzer/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Mapea cada función de mi contrato inteligente que cambia el estado, agrupada por quién puede llamarla.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill busca en el código las funciones de llamada externa que pueden cambiar el estado, y omite las de solo lectura. Las ordena por nivel de acceso y escribe un informe estructurado.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Entry Point Analyzer
Systematically identify all state-changing entry points in a smart contract codebase to guide security audits.
Execution in Codex
Use the available file-reading, search, and shell tools. Resolve bundled reference links relative to this SKILL.md, not the audited repository. Slither is optional; use manual inspection if it is unavailable or fails. Report unreadable source or reference files as coverage gaps. Runtime permissions come from the workspace.
When to Use
Use this skill when:
- Starting a smart contract security audit to map the attack surface
- Asked to find entry points, external functions, or audit flows
- Analyzing access control patterns across a codebase
- Identifying privileged operations and role-restricted functions
- Building an understanding of which functions can modify contract state
When NOT to Use
Do NOT use this skill for:
- Vulnerability detection (use audit-context-building or domain-specific-audits)
- Writing exploit POCs (use solidity-poc-builder)
- Code quality or gas optimization analysis
- Non-smart-contract codebases
- Analyzing read-only functions (this skill excludes them)
Scope: State-Changing Functions Only
This skill focuses exclusively on functions that can modify state. Excluded:
| Language | Excluded Patterns |
|---|---|
| Solidity | view, pure functions |
| Vyper | @view, @pure functions |
| Solana | Functions without mut account references |
| Move | Read-only function bodies; visibility alone does not establish mutability |
| TON | get methods (FunC), read-only receivers (Tact) |
| CosmWasm | query entry point and its handlers |
Include state-changing Move public fun even without entry: Aptos transaction
scripts and Sui programmable transaction blocks can reach them. Trace callees when
needed to determine state effects, and record signer, capability, and object
ownership requirements separately from visibility.
Why exclude read-only functions? They cannot directly cause loss of funds or state corruption. While they may leak information, the primary audit focus is on functions that can change state.
Workflow
- Detect Language - Identify contract language(s) from file extensions and syntax
- Use Tooling (if available) - For Solidity, check if Slither is available and use it
- Locate Contracts - Find all contract/module files (apply directory filter if specified)
- Extract Entry Points - Parse each file for externally callable, state-changing functions
- Classify Access - Categorize each function by access level
- Generate Report - Output structured markdown report
Slither Integration (Solidity)
For Solidity codebases, Slither can automatically extract entry points. Before manual analysis:
1. Check if Slither is Available
which slither
2. If Slither is Detected, Run Entry Points Printer
slither . --print entry-points
This outputs a table of all state-changing entry points with:
- Contract name
- Function name
- Visibility
- Modifiers applied
3. Use Slither Output as Foundation
- Parse the Slither output table to populate your analysis
- Cross-reference with manual inspection for access control classification
- Slither may miss some patterns (callbacks, dynamic access control)—supplement with manual review
- If Slither fails (compilation errors, unsupported features), fall back to manual analysis
4. When Slither is NOT Available
If which slither returns nothing, proceed with manual analysis using the language-specific reference files.
Language Detection
| Extension | Language | Reference |
|---|---|---|
.sol |
Solidity | references/solidity.md |
.vy |
Vyper | references/vyper.md |
.rs + Cargo.toml with solana-program |
Solana (Rust) | references/solana.md |
.move + Move.toml with edition |
Move (Sui) | references/move-sui.md |
.move + Move.toml with Aptos |
Move (Aptos) | references/move-aptos.md |
.fc, .func, .tact |
TON (FunC/Tact) | references/ton.md |
.rs + Cargo.toml with cosmwasm-std |
CosmWasm | references/cosmwasm.md |
Load the appropriate reference file(s) based on detected language before analysis.
Access Classification
Classify ea
Preguntas frecuentes
¿Busca errores?
No. Mapea la superficie de ataque. La detección de vulnerabilidades pertenece a otra skill de auditoría.
¿Qué lenguajes soporta?
La descripción enumera Solidity, Vyper, Solana con Rust, Move, TON y CosmWasm, entre otros.
¿Es necesario Slither?
No. Slither es opcional, y la skill puede leer el código manualmente si no está disponible.
Detalles
Descripción original del autor
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 (public, admin, role-restricted, contract-only), and generates structured audit reports. Excludes view/pure/read-only functions. Use when auditing smart contracts (Solidity, Vyper, Solana/Rust, Move, TON, CosmWasm) or when asked to find entry points, audit flows, external functions, access control patterns, or privileged operations.
repo: trailofbits/skills
Popularidad
- Estrellas en GitHub
- 8,0 mil
- Posición en el ranking
- #12677
- Licencia
- CC-BY-SA-4.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
audit-context-building
8,0 milAyuda a tu agente a conocer un código desconocido antes de una revisión de seguridad, mapeando qué supone, garantiza y necesita cada función.
algorand-vulnerability-scanner
8,0 milAyuda a tu agente a revisar contratos de Algorand en TEAL o PyTeal en busca de 11 problemas de seguridad comunes, como el rekeying o las tarifas sin control.
audit-prep-assistant
8,0 milAyuda a tu agente a preparar tu código para una auditoría de seguridad externa, con análisis estático, pruebas, limpieza de código muerto y buena documentación.
cairo-vulnerability-scanner
8,0 milAyuda a tu agente a revisar contratos de Cairo en StarkNet en busca de 6 problemas graves, como desbordamientos, mensajes arriesgados entre capas y firmas repetidas.
Skills parecidas
reverse-engineer-anything
422 milAyuda a tu agente a revisar apps y paquetes ya publicados para explicar sus funciones, comparar versiones o guiar una reconstrucción, usando la herramienta REA.
1password
394 milAyuda a tu agente a instalar la CLI de 1Password, iniciar sesión y leer o inyectar secretos sin imprimir sus valores en el chat.
healthcheck
394 milAyuda a tu agente a auditar el ordenador o servidor que ejecuta OpenClaw en busca de riesgos de seguridad, como SSH, cortafuegos, actualizaciones y copias de seguridad, y después sugerir arreglos seguros.