Home Back

A deep look into burgeoning blockchain audit

scmp.com 4 days ago

Decentralised finance or DeFi emerged more than a decade ago alongside the rapid growth of cryptocurrencies as alternative investments. With no central authority, DeFi disrupts traditional financial systems and is a conduit to innovation. At the core of its disruptive power lies smart contracts on self-executing blockchains.  

Similar to other financial products, DeFi is not immune to theft, which is caused by programming errors and incomplete contracts. In April 2023, for example, blockchain-based lending protocol 0VIX lost approximately US$2 million after hackers exploited technical faults to manipulate its token prices. To mitigate this risk, smart contract audits became popular.  

Unlike standard financial audits for public firms, smart contract audits focus on the integrity and completeness of a piece of computer code as opposed to financial statements. A new study by Janja Brendel, Assistant Professor of the School of Accountancy at the Chinese University of Hong Kong (CUHK) Business School, found that the smart contract audit market is thriving.  

The study titled Decentralised finance (DeFi) asssurance: Early evidence, which was conducted in collaboration with Professor Thomas Bourveau at Columbia University and Professor Jordan Schoenfeld at the University of Utah, provides valuable insights into the smart contract audit market and the role of auditors in ensuring the security and reliability of DeFi ecosystems.  

“We provide some of the first evidence showing that these audits are pervasive, with the audit firm market composed of new technical audit firms. The scope of these audits can span a variety of contract features, and the audit inputs and outputs differ substantively from those of conventional financial audits,” says Professor Brendel. “The market reacts positively to the release of these audit reports, suggesting that these reports are value-relevant”. 

DeFi making deft inroads  

For this seminal study, Professor Brendel and the team gathered a comprehensive sample of smart contract reports from January 2017 to the end of June 2023 from a smart contract scanner De.Fi. The data showed that new blockchain assurance services have become a force to reckon with in the market in the past few years, as can be seen in the table. The “full sample” consists of 8,531 unique audit reports that delve into the specific details. The “market sample” comprises 303 audit-venture events focusing on each DeFi project. 

The audit market for smart contracts is composed of many new entrants. TechRate, the largest audit firm established in 2017, accounts for around 20 per cent of the market share, followed by InterFi, founded in 2021, with more than 11 per cent and Certik, which was set up in 2018, with six per cent.  

In terms of cost, the audit fee mostly depends on the length and complexity of the code. Audit firms with more expertise and experience can also charge more. TechRate and InterFi are widely considered to be low-cost, charging from US$250 and US$300 respectively for a standard audit. As a comparison, Quantstamp, OpenZeppelin, and Trail of Bits label their services from US$5,000, and Hacken starts its fee at US$9,000.  

These prices are justified for various reasons. The largest audit firms have conducted audits for more than thousands of projects with household names in the crypto world. Top-quality audit firms are found to provide more detailed reports, comprising team size, methods used, and days spent on the audit. These firms are also more likely to deploy audit teams of five or fewer, use a combination of manual and automatic processes about 88 per cent of the time, and conduct longer audits, as measured in days.  

While these audits can identify vulnerabilities, programming errors, and deviations, audit firms do not provide a guarantee against data breaches, thefts, and hacks. Many smart contract audit firms even  

put legal disclaimers in their reports and advise clients to obtain third-party opinions, leaving some space for insurance to grow. For instance, Certik introduced a plan in 2023 to compensate its clients for any hack-related losses incurred after one of its audits up to US$2 million.  

Users can look at several factors to assess how good an audit firm’s reputation is. This includes checking portfolios and track records. If they have worked on large and high-profile projects that have not been compromised, it is a sign of reliability. Those seeking a smart contract audit should look at if the firm has worked on the relevant blockchain as they may be more relevant to the project they are currently pursuing. The smart contract audit firm’s previous reports can also be examined for their level of detail or comprehensiveness. 

Keeping on the right track  

“Smart contracts play an increasingly important role in structuring and executing common DeFi financial transactions, such as loans and venture capital funding, with more than US$200 billion now locked in such contracts,” Professor Brendel explains. “Smart contract audit reports are used by DeFi service providers primarily to build trust with existing and prospective users of and investors in their services.”  

Such assurance is important, perhaps due to its decentralised nature, which means smart contract audits are not mandated by legislation. Besides, blockchain projects have a chequered history so it is inevitable that investors need reassurance that the security protocols are up to scratch and that the underlying code works. This allows investors to assess the overall trustworthiness of blockchain projects while mitigating the risks that cause loss of income and irreversible damage.  

Smart contracts that are audited are often audited again when there is a significant update to the contract, not periodically every fiscal year like financial audits. There is no formal education or certification required to be an auditor, and the audits also do not need to follow a universal standard or guideline, which means that the audit process and output can differ significantly based on the auditors’ approach and methodologies in ways that financial auditors typically cannot.  

In general, smart contract auditors normally apply automated bug detection software to scan smart contracts for potential vulnerabilities, then augment the procedures with line-by-line manual code review to ensure a thorough assessment. Furthermore, stress testing is also conducted to emulate different attacks that could threaten the system.  

Blockchain and crypto companies can decide whether to release the audit result after weighing the costs and benefits. However, the release of a smart contract audit report is found to result in a positive and statistically significant market-adjusted return of about a 10 per cent increase within the two days after the release. This is consistent with the longstanding proposition in accounting that audits serve as a mechanism to reduce information asymmetry and improve the functioning of capital markets.  

With the proliferation of DeFi, assurance services within these new fields are becoming crucial to all fields of business for a number of reasons. Auditing is essential for adding credibility to information that is disclosed, which in turn helps increase trust with users and investors and ultimately helps to raise the number of transactions. 

Want even more insights? Enjoy the best and most relevant articles monthly with a free subscription to China Business Knowledge @ CUHK's digest. 

About the researcher 
Professor Janja Brendel  

Professor Janja Brendel is an Assistant Professor of the School of Accountancy at CUHK Business School. She received her PhD in accounting from the Humboldt University of Berlin (a member of the German Universities Excellence Initiative) and obtained a master’s and a bachelor’s of science in accounting and finance from the London School of Economics and Political Science. Professor Brendel has experience teaching financial accounting, valuation, and auditing. She is particularly interested in firms’ financial reporting, disclosure choices, and the role of information in capital markets. Her work has been published in top journals, such as the Journal of Accounting Research.  

People are also reading