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.

LATEST POSTS

Eric Trump Slams Banks’ “Anti-American” Opposition to Stablecoin Yields

Eric Trump criticized major banks for opposing stablecoin yield offerings, calling their stance "anti-retail, anti-consumer, and anti-American." This comes as the crypto industry's rift with...

Solana Reclaims Then Dips From $94; 24-Hour Gain Holds at 6%

Solana (SOL) reclaimed the $93.71 level before retreating to $90.61 as the broader crypto market rallied. According to CoinGecko data, SOL's price rose 6% in...

Anthropic in Last-Minute Talks With Pentagon to Avoid ‘Supply Chain Risk’ Label

Anthropic CEO Dario Amodei is in last-minute negotiations with the U.S. Department of Defense to secure continued Pentagon contracts and avoid a potential "supply chain...

Pi Network’s PI Token Jumps 13% as BTC Hits $74K, Ethereum Reclaims $2,100

Bitcoin surged to $74,000, its highest level in a month, as the market recovered from recent geopolitical volatility. Ethereum reclaimed $2,100, while the Pi Network's...

Most Popular

spot_img