SSR: Safeguarding Staking Rewards by Defining and Detecting Logical Defects in DeFi Staking
Zewei Lin, Jiachi Chen, Jingwen Zhang, Zexu Wang, Yuming Feng, Weizhe Zhang, Zibin Zheng

TL;DR
This paper introduces SSR, a static analysis tool leveraging large language models to detect logical defects in DeFi staking contracts, significantly improving security by identifying vulnerabilities in a large dataset of smart contracts.
Contribution
The study defines six types of logical defects in DeFi staking, and develops SSR, a novel LLM-based static analysis tool for detecting these defects with high accuracy.
Findings
SSR achieves 92.31% precision in defect detection.
22.24% of analyzed DeFi staking contracts contain logical defects.
The research provides a comprehensive dataset of security incidents and audit reports.
Abstract
Decentralized Finance (DeFi) staking is one of the most prominent applications within the DeFi ecosystem, where DeFi projects enable users to stake tokens on the platform and reward participants with additional tokens. However, logical defects in DeFi staking could enable attackers to claim unwarranted rewards by manipulating reward amounts, repeatedly claiming rewards, or engaging in other malicious actions. To mitigate these threats, we conducted the first study focused on defining and detecting logical defects in DeFi staking. Through the analysis of 64 security incidents and 144 audit reports, we identified six distinct types of logical defects, each accompanied by detailed descriptions and code examples. Building on this empirical research, we developed SSR (Safeguarding Staking Reward), a static analysis tool designed to detect logical defects in DeFi staking contracts. SSR…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Malware Detection Techniques · Blockchain Technology Applications and Security · Information and Cyber Security
