Detecting Defects in TON Smart Contracts: A Study on Security Vulnerabilities

Thursday 06 March 2025


Researchers have made significant progress in identifying and detecting defects in smart contracts on the Open Network (TON), a decentralized application platform. In a recent study, scientists analyzed official blogs and audit reports to define eight specific defects that can compromise the security of TON smart contracts.


Smart contracts are self-executing programs that automate the enforcement of agreements between parties. They have become increasingly popular for managing digital assets and facilitating transactions on blockchain networks like TON. However, as their use has grown, so too have concerns about their security vulnerabilities.


The researchers identified eight defects in TON smart contracts that can lead to issues such as unauthorized access, data corruption, or financial losses. These defects include bad randomness, precision loss, unchecked return, global var redefined, improper function modifier, unchecked bounced message, inconsistent data, and lack of end parse.


To detect these defects, the scientists developed a tool called TONScanner, which uses static analysis techniques to transform source code into a structured format, making it easier to identify potential issues. The tool is designed to be modular, allowing developers to customize analyzers and detectors for specific types of defects.


The researchers evaluated the effectiveness of TONScanner by applying it to 1,640 smart contracts and found a total of 14,995 defects across both datasets. The tool achieved an overall precision rate of 97.49% on manually labeled FunC and Tact datasets.


The study highlights the importance of robust security measures in smart contract development. It also demonstrates the potential of tools like TONScanner in helping developers identify and fix vulnerabilities before they can be exploited by malicious actors.


The findings have significant implications for the development and deployment of secure smart contracts on TON and other blockchain platforms. As the use of smart contracts continues to grow, it is essential that developers prioritize security and employ effective detection tools to ensure the integrity of these digital agreements.


In recent years, the Open Network has gained popularity as a platform for decentralized applications. Its ability to handle millions of transactions per second makes it an attractive option for developers looking to create scalable and efficient blockchain-based systems. However, the proliferation of smart contracts on TON also increases the risk of security breaches and vulnerabilities.


The researchers’ work serves as a reminder that security is a critical concern in smart contract development. By identifying and addressing defects early on, developers can ensure the reliability and trustworthiness of these digital agreements.


Cite this article: “Detecting Defects in TON Smart Contracts: A Study on Security Vulnerabilities”, The Science Archive, 2025.


Smart Contracts, Ton, Blockchain, Security, Vulnerabilities, Defects, Detection, Tool, Precision, Analysis


Reference: Hao Song, Teng Li, Jiachi Chen, Ting Chen, Beibei Li, Zhangyan Lin, Yi Lu, Pan Li, Xihan Zhou, “Enhancing The Open Network: Definition and Automated Detection of Smart Contract Defects” (2025).


Leave a Reply