JANUS: A Difference-Oriented Analyzer For Financial Centralization Risks in Smart Contracts

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Wang, Wansen, Zhang, Pu, Ji, Renjie, Huang, Wenchao, Meng, Zhaoyi, Xiong, Yan
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912830388699136
author Wang, Wansen
Zhang, Pu
Ji, Renjie
Huang, Wenchao
Meng, Zhaoyi
Xiong, Yan
author_facet Wang, Wansen
Zhang, Pu
Ji, Renjie
Huang, Wenchao
Meng, Zhaoyi
Xiong, Yan
contents Some smart contracts violate decentralization principles by defining privileged accounts that manage other users' assets without permission, introducing centralization risks that have caused financial losses. Existing methods, however, face challenges in accurately detecting diverse centralization risks due to their dependence on predefined behavior patterns. In this paper, we propose JANUS, an automated analyzer for Solidity smart contracts that detects financial centralization risks independently of their specific behaviors. JANUS identifies differences between states reached by privileged and ordinary accounts, and analyzes whether these differences are finance-related. Focusing on the impact of risks rather than behaviors, JANUS achieves improved accuracy compared to existing tools and can uncover centralization risks with unknown patterns. To evaluate JANUS's performance, we compare it with other tools using a dataset of 540 contracts. Our evaluation demonstrates that JANUS outperforms representative tools in terms of detection accuracy for financial centralization risks . Additionally, we evaluate JANUS on a real-world dataset of 33,151 contracts, successfully identifying two types of risks that other tools fail to detect. We also prove that the state traversal method and variable summaries, which are used in JANUS to reduce the number of states to be compared, do not introduce false alarms or omissions in detection.
format Preprint
id arxiv_https___arxiv_org_abs_2412_03938
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle JANUS: A Difference-Oriented Analyzer For Financial Centralization Risks in Smart Contracts
Wang, Wansen
Zhang, Pu
Ji, Renjie
Huang, Wenchao
Meng, Zhaoyi
Xiong, Yan
Machine Learning
Cryptography and Security
Some smart contracts violate decentralization principles by defining privileged accounts that manage other users' assets without permission, introducing centralization risks that have caused financial losses. Existing methods, however, face challenges in accurately detecting diverse centralization risks due to their dependence on predefined behavior patterns. In this paper, we propose JANUS, an automated analyzer for Solidity smart contracts that detects financial centralization risks independently of their specific behaviors. JANUS identifies differences between states reached by privileged and ordinary accounts, and analyzes whether these differences are finance-related. Focusing on the impact of risks rather than behaviors, JANUS achieves improved accuracy compared to existing tools and can uncover centralization risks with unknown patterns. To evaluate JANUS's performance, we compare it with other tools using a dataset of 540 contracts. Our evaluation demonstrates that JANUS outperforms representative tools in terms of detection accuracy for financial centralization risks . Additionally, we evaluate JANUS on a real-world dataset of 33,151 contracts, successfully identifying two types of risks that other tools fail to detect. We also prove that the state traversal method and variable summaries, which are used in JANUS to reduce the number of states to be compared, do not introduce false alarms or omissions in detection.
title JANUS: A Difference-Oriented Analyzer For Financial Centralization Risks in Smart Contracts
topic Machine Learning
Cryptography and Security
url https://arxiv.org/abs/2412.03938