一句话:提出 RiskScope,用收益形成图静态恢复合约激励与控制风险,并用 LLM 辅助审计前分诊。
智能合约完整审计前,安全团队需判断项目是否升级、扩大范围或拒绝,但该分诊主要依赖人工。现有工具侧重底层可利用漏洞或仅枚举特权函数,缺少收益级语义,难以评估参与依赖逻辑或集中管理权。RiskScope 识别两类风险信号:用户可见收益依赖非局部参与时的激励风险,以及特权角色可更改或关闭该收益的控制风险。它引入收益形成图(BFG),统一连接收益面、治理谓词、更新路径与控制面;静态分析从源码恢复这些结构,LLM 引导阶段将证据解释为面向审计者的结构化发现。在三个公开语料、超过 2500 个解析合约上评估:激励密集型语料合约级分诊达到 92.1% 召回率和 79.5% 精确率,常用库合约语料上零分诊发现。
Before a full smart contract audit begins, security teams must decide whether a project should be escalated, scoped more care- fully, or declined, yet these triage decisions are still made largely through manual inspection. Existing tools provide limited sup- port for this stage: vulnerability analyzers focus on low-level ex- ploitability, while access-control analyses enumerate privileged functions without recovering the benefit-level semantics needed to assess participation-dependent logic or concentrated administrative power. We present RiskScope, a pre-audit triage framework that identifies two classes of risk signals in smart contracts: incentive risk, when a user-facing benefit depends on non-local participation, and control risk, when privileged roles can later alter or disable that benefit. RiskScope introduces Benefit Formation Graphs (BFGs), which connect benefit surfaces, governing predicates, update paths, and privileged control surfaces into a unified structure that ex- plains how user-visible outcomes are formed and who can reshape them. A static analysis stage recovers these structures from contract source code, and an LLM-guided triage stage interprets the recov- ered evidence into structured, auditor-facing findings. We evaluate RiskScope on three public corpora totaling over 2,500 parsed con- tracts. On an incentive-heavy corpus, RiskScope achieves 92.1% recall at 79.5% precision for contract-level triage, while producing zero triage findings on a corpus of widely used library contracts. RiskScope provides compact, interpretable evidence for early audit prioritization.