HomeNewsDeFi urged to adopt invariant 'spec is law' checks to curb hacks...

DeFi urged to adopt invariant ‘spec is law’ checks to curb hacks as AI aids attackers now.

-

On January 11, Daejun Park of a16z Crypto argued that DeFi protocols must hard-code safety guarantees to reduce hacks. He said standardized specifications should automatically revert transactions that violate protocol assumptions.

Park wrote that many attacks would have been stopped by such checks. “Almost every exploit to date would have tripped one of these checks during execution, potentially halting the hack,” he added and argued that “So the once-popular idea of ‘code is law’ evolves into ‘spec is law.’” (See the full post here.)

Interest in runtime enforcement has risen as exploits continue. A report by Slowmist reported hackers swiped over $649 million through code exploits last year (Ed. note: the total highlights recurring security gaps).

Even established projects proved vulnerable. The protocol Balancer lost about $128 million in November despite code running on Ethereum since 2021.

Security experts note trade-offs. Gonçalo Magalhães of Immunefi said, “It’s not the silver bullet.” He warned that extra checks raise gas costs and may hurt competitiveness.

Researchers also stress limits to invariants. Felix Wilhelm of Asymmetric Research said, “For many vulnerabilities and real-life hacks, it is difficult or even impossible to write an invariant that detects the hack without also triggering under normal circumstances.”

Some projects already use invariant checks. Kamino began such checks with Certora Prover (details), and the XRP Ledger implemented invariant checking with safeguards described here.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

LATEST POSTS

Ripple CEO Eyes $1 Trillion Valuation, Says XRP Is Its “North Star”

Ripple CEO Brad Garlinghouse believes a cryptocurrency company will reach a $1 trillion valuation and sees his firm as a potential candidate. He stated Ripple's...

Decred’s 16% price drop may be temporary, analysis suggests a potential rebound is forming.

Decred (DCR) recently experienced a sharp 16% price decline alongside increasingly negative market sentiment. However, technical indicators suggest the downtrend may be temporary, as falling...

XRP Eyes $1.65 Rebound as Ripple’s Aviva Tokenization Deal Boosts Sentiment

XRP is trading near $1.38 following a recent correction. Analysts note a key technical resistance at $1.65, with support established between $1.20 and $1.30. Sentiment...

Bitcoin Risk Grows as $60k Liquidity Gap Widens

Bitcoin's price declined to $65,800, raising concerns that last week's low near $60,000 may not be the market bottom. Analysts cite a growing liquidity gap...

Most Popular

spot_img