entry-point-analyzer
하는 일
스마트 계약에서 상태를 바꿀 수 있는 함수를 공개, 관리자, 계약 전용처럼 누가 호출할 수 있는지에 따라 정리합니다. 계약 작업을 시작하는 감사자를 위한 것입니다.
사용하는 경우
- ✓감사자가 보안 감사를 시작하며 계약의 공격 표면을 파악해야 할 때.
- ✓팀이 계약에 어떤 관리자나 역할 제한 함수가 있는지 보고 싶을 때.
- ✓누군가 계약의 상태를 바꿀 수 있는 함수가 무엇인지 알고 싶은 경우.
스킬 링크
https://github.com/trailofbits/skills/blob/main/plugins/entry-point-analyzer/skills/entry-point-analyzer/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“스마트 계약에서 상태를 바꾸는 함수를 모두 찾아서, 누가 호출할 수 있는지에 따라 묶어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 외부에서 호출할 수 있고 상태를 바꿀 수 있는 함수를 코드에서 찾고, 읽기 전용 함수는 건너뜁니다. 접근 수준에 따라 분류하고 구조화된 보고서를 씁니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
버그를 찾나요?
아니요. 이 스킬은 공격 표면을 파악하며, 취약점 탐지는 다른 감사 스킬의 몫입니다.
어떤 언어를 지원하나요?
Solidity, Vyper, Rust를 사용하는 Solana, Move, TON, CosmWasm 등을 나열합니다.
Slither가 필요한가요?
아니요. Slither는 선택 사항이며, 없으면 스킬이 코드를 수동으로 읽을 수 있습니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 8.0k
- 순위
- #12677
- 라이선스
- CC-BY-SA-4.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
audit-context-building
8.0k에이전트가 보안 검토 전에 낯선 코드베이스를 익히고, 각 함수가 가정하고 보장하며 의존하는 것을 정리하도록 돕습니다.
algorand-vulnerability-scanner
8.0k에이전트가 TEAL이나 PyTeal 기반 Algorand 스마트 계약에서 키 재설정 공격, 수수료 미검증 등 보안 문제 11가지를 찾도록 돕습니다.
audit-prep-assistant
8.0k에이전트가 외부 보안 검토를 위해 코드베이스를 준비하도록 돕습니다. 정적 분석, 테스트 커버리지, 죽은 코드 정리, 명확한 문서화를 포함합니다.
cairo-vulnerability-scanner
8.0k에이전트가 StarkNet Cairo 스마트 계약에서 오버플로, 위험한 계층 간 메시지, 서명 재사용 등 6가지 문제를 검사하도록 돕습니다.