Publication | Open Access
Towards Automated Safety Vetting of Smart Contracts in Decentralized Applications
21
Citations
14
References
2022
Year
Software MaintenanceEngineeringInformation SecurityVerificationLawSoftware EngineeringSmart ContractsModel Checking TechniqueSoftware AnalysisFormal VerificationSmart Contract LanguageDecentralized SecurityData ScienceAutonomous Safety VettingRuntime VerificationSoftware System SafetyComputer ScienceSmart ContractLanguage-based SecuritySoftware DesignData SecuritySoftware SecurityProgram AnalysisSoftware TestingFormal MethodsBlockchainReal-world DappsModel-driven Security
We propose VetSC, a novel UI-driven, program analysis guided model checking technique that can automatically extract contract semantics in DApps so as to enable targeted safety vetting. To facilitate model checking, we extract business model graphs from contract code that capture its intrinsic business and safety logic. To automatically determine what safety specifications to check, we retrieve textual semantics from DApp user interfaces. To exclude untrusted UI text, we also validate the UI-logic consistency and detect any discrepancies. We have implemented VetSC and applied it to 34 real-world DApps. Experiments have demonstrated that VetSC can accurately interpret smart contract code, enable autonomous safety vetting, and discover safety risks in real-world Dapps. Using our tool, we have successfully discovered 19 new safety risks in the wild, such as expired lottery tickets and double voting.
| Year | Citations | |
|---|---|---|
Page 1
Page 1