ISSTA 2026 Paper #151_TrapHunter: Exposing Covert Pathways in Trap Token Contracts
Year: 2026
Type: dataset
Abstract: TrapHunter_Appendix.pdfStandardized token contracts (e.g., ERC-20) are foundational to digital assets but are increasingly exploited by attackers to create malicious "trap tokens" that appear compliant. To address this, we first conduct an empirical study of real-world incidents, formally defining six categories of token traps. TrapHunter DescriptionsWe then propose TrapHunter, a novel detection framework that identifies these traps via semantic inconsistency analysis. Specifically, TrapHunter constructs Abstract Behavior Trees (ABTs) to model intra-procedural logic within individual functions and Augmented Path Graphs (APGs) to capture inter-procedural interactions. By comparing target contracts against standard ones, TrapHunter pinpoints subtle logic manipulations by identifying semantically unmatched paths. Experiment DescriptionsExperimental evaluations on 269 contracts with three LLMs (DeepSeek, GPT-5, and Gemini) demonstrate that TrapHunter effectively detects all six categories of token traps, achieving an average precision of 81.8% and recall of 85.4%. Beyond detection, TrapHunter validates suspicious behaviors through path analysis, revealing covert pathways in sophisticated token-level attacks and providing greater reliability and interpretability. Dataset and ResultsSource Smart Contracts: Raw dataset of smart contracts, including ETH-BSC and Backdoor_list.TrapHunter-deepseek / GPT5 / Gmini: Intermediate outputs from different model settings. Ablation Result: Outputs from ablation experiments, including without-ABT and without-APG.Statistical Results: Final aggregated metrics (precision, recall, F1). Code DescriptionsABT (Abstract Behavior Tree): Core implementation in ABT_crate.py; runnable via main.py.APG (Augmented Path Graph): Core implementation in path.py; runnable via main.py.PIA (Path-Level Inconsistency Analysis): Comparison logic in combine.py, executable with main.py; LLM-based classification in runchat.py, executable with main-GPT.py.Fork-Based Validation: Core implementation in validator.zip.
Source: Figshare
Author: yin wu
Language: English
Subfield: Information Systems
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7169659367
