मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी8.0k · #12677

entry-point-analyzer

यह क्या करती है

स्मार्ट कॉन्ट्रैक्ट के वे फ़ंक्शन सूचीबद्ध करती है जो उसकी स्टेट बदल सकते हैं, और उन्हें कौन कॉल कर सकता है उसके अनुसार बाँटती है, जैसे सार्वजनिक, एडमिन या सिर्फ़ कॉन्ट्रैक्ट। यह उन ऑडिटर्स के लिए है जो कॉन्ट्रैक्ट पर काम शुरू कर रहे हैं।

कब इस्तेमाल करें

  • ✓जब कोई ऑडिटर सुरक्षा ऑडिट शुरू करता है और कॉन्ट्रैक्ट की अटैक सरफ़ेस का नक्शा चाहिए।
  • ✓जब कोई टीम देखना चाहती है कि कॉन्ट्रैक्ट में एडमिन या रोल-प्रतिबंधित कौन-से फ़ंक्शन हैं।
  • ✓जब कोई जानना चाहता है कि कॉन्ट्रैक्ट में कौन-से फ़ंक्शन उसकी स्टेट बदल सकते हैं।

Skill का लिंक

https://github.com/trailofbits/skills/blob/main/plugins/entry-point-analyzer/skills/entry-point-analyzer/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/trailofbits/skills/blob/main/plugins/entry-point-analyzer/skills/entry-point-analyzer/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे स्मार्ट कॉन्ट्रैक्ट के हर उस फ़ंक्शन को दिखाइए जो स्टेट बदलता है, और बताइए कौन उसे कॉल कर सकता है।”

हर हफ़्ते 5 नई skills, 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

  1. Detect Language - Identify contract language(s) from file extensions and syntax
  2. Use Tooling (if available) - For Solidity, check if Slither is available and use it
  3. Locate Contracts - Find all contract/module files (apply directory filter if specified)
  4. Extract Entry Points - Parse each file for externally callable, state-changing functions
  5. Classify Access - Categorize each function by access level
  6. 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
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

audit-context-building

8.0k

यह आपके एजेंट को सुरक्षा जाँच से पहले किसी अनजान कोड को समझने में मदद करती है, हर फ़ंक्शन की मान्यताएँ और निर्भरताएँ नक्शे में दिखाकर।

कोडिंगसिक्योरिटी

algorand-vulnerability-scanner

8.0k

यह आपके एजेंट को Algorand कॉन्ट्रैक्ट्स में 11 आम सुरक्षा समस्याएँ जाँचने में मदद करती है, जैसे रीकीइंग हमले और बिना जाँची फ़ीस।

कोडिंगसिक्योरिटी

audit-prep-assistant

8.0k

यह आपके एजेंट को बाहरी सुरक्षा समीक्षा के लिए कोड तैयार करने में मदद करती है, जैसे स्टैटिक एनालिसिस, टेस्ट कवरेज और दस्तावेज़ीकरण।

कोडिंगसिक्योरिटी

cairo-vulnerability-scanner

8.0k

यह आपके एजेंट को StarkNet के Cairo कॉन्ट्रैक्ट्स में 6 गंभीर समस्याएँ जाँचने में मदद करती है, जैसे ओवरफ़्लो और सिग्नेचर रीप्ले।

कोडिंगसिक्योरिटी

मिलती-जुलती skills