TechFlow Logo
Login/ Sign up
ETH Gas
Gwei
Fear
gas
Shima Capital CTO's Reflection on Curve: Why We Need Runtime Protection and Aspect?

Shima Capital CTO's Reflection on Curve: Why We Need Runtime Protection and Aspect?

2023.08.23
Share

TechFlow Selected TechFlow Selected

techFlow

Shima Capital CTO's Reflection on Curve: Why We Need Runtime Protection and Aspect?

How to provide runtime protection?

2023.08.23 - 08:13:16
CurveAspectRuntimeProctection
How to provide runtime protection?

Author: Carl Hua, Partner & CTO at Shima Capital

Translation: BlockBeats

Following the recent Curve reentrancy exploit, I reflected on my experience at JPL NASA, where I learned the core principles for developing reliable and resilient software. These insights are more critical than ever for the crypto industry, for the following reasons:

At the end of the day, people truly care about only two types of software: software that can kill you, and software that can make you lose money.

For any aerospace vehicle, the majority of the budget (over 80%) for critical software is not allocated to development itself, but rather to integration and testing. If the software fails, the vehicle falls out of the sky—fighters, drones, spacecraft, etc.

Most code in aerospace software—especially when classified as mission-critical—is subject to extremely rigorous testing and development standards such as DO-178B Level A. It's not enough to test every line of code; each logical condition within nested logic must also be individually tested.

At JPL NASA, the philosophy behind writing advanced aerospace software isn't about crafting the most elegant or clean code, but about writing code that's easy to unit test. Why? Simple: when you launch a spacecraft into space, you only get one chance. No one wants to take risks with a high probability of failure. This parallels blockchain logic—immutable code is a core feature, and we likewise have only one chance to correctly handle our funds in every transaction. So why aren't we taking dApp development more seriously?

Despite strict development, testing, and code auditing processes, these measures alone are clearly insufficient to prevent all errors and attacks. Eliminating all runtime bugs through testing and audits is nearly impossible in practice. So how do we protect our software from failure?

Runtime Protection

Runtime protection is a security technique that safeguards software applications during execution against malicious attacks. It works by performing real-time monitoring while the code runs, analyzing the program’s actual behavior to defend against malicious inputs and exploits.

Implementing runtime protection in high-reliability software requires significant investment and architectural planning, as it serves as the final safeguard preventing software from entering unknown or faulty states. This isn’t just theoretical—it’s a proven practice refined over decades.

In today’s Web3 landscape, I believe DeFi applications demand the same level of reliability and should adopt similar approaches. However, due to inherent limitations, the EVM wasn’t designed to handle complex tasks like runtime protection. So how can we deliver runtime protection in this environment?

One solution lies in Aspect programming—Aspects designed by the Artela blockchain network—which enables switching execution contexts at any point within a smart contract transaction lifecycle, allowing advanced checks on the program’s real-time state. By combining Aspects with EVM compatibility, Artela offers a unique architecture for runtime protection, positioning itself as a potential foundational layer for secure smart contracts in crypto.

Artela has published an article demonstrating exactly how Aspects could have prevented the Curve reentrancy attack. We welcome discussion and collaboration!

“Unsolvable Compiler Vulnerabilities? Runtime Protection Enables On-chain Risk Control for DeFi”

Join TechFlow official community to stay tuned

Add to Favorites
Share to Social Media

Related Articles

2025.04.11

IRS DeFi Broker Rule Repealed, CRV Surges 54% in One Week

CRV's rebound comes amid whale position cost restructuring, derivatives market short covering, and an expanding divergence between protocol revenue and TVL.

IRS DeFi Broker Rule Repealed, CRV Surges 54% in One Week
2024.07.02

What motivates crypto heavyweights to "bail out" Curve?

It turns out the Ve model's top-heavy effect has led to poor liquidity.

What motivates crypto heavyweights to "bail out" Curve?
2023.08.04

Bitget Research Weekly Highlights: Curve Stablecoin Pool Hacked, HashKey Approved as Hong Kong's First Retail-Facing Trading Platform

Focusing on on-chain data, weekly news roundup.

Bitget Research Weekly Highlights: Curve Stablecoin Pool Hacked, HashKey Approved as Hong Kong's First Retail-Facing Trading Platform
2023.08.04

Reflecting on the Curve Incident: How DeFi Recovered from the Brink of Collapse?

Those who say "DeFi is dead" are wrong—in fact, it's stronger than ever.

Reflecting on the Curve Incident: How DeFi Recovered from the Brink of Collapse?
2023.08.02

Is There No Way Out in the Face of the Curve Crisis? Response Strategies from the Perspective of DeFi Mining

How to prevent similar potential risks during daily DeFi mining?

Is There No Way Out in the Face of the Curve Crisis? Response Strategies from the Perspective of DeFi Mining
2023.07.31

DeFi Dead? Chainlink Saves Curve Founder's Australian Mansion?

You say DeFi is gone, which isn't sad enough; what's sadder is if blockchain itself no longer exists.

DeFi Dead? Chainlink Saves Curve Founder's Australian Mansion?
2023.06.09

"Embezzling" VC's tokens to buy mansions? Curve founder sued by ParaFi and three other major crypto VCs

Three prominent crypto VCs—ParaFi, Framework Ventures, and 1kx—have sued Curve founder Michael Egorov for business fraud in San Francisco.

"Embezzling" VC's tokens to buy mansions? Curve founder sued by ParaFi and three other major crypto VCs
2023.05.08

Analyzing May's Crypto Market Hot Narratives: Meme Season, Sui, and Curve Upgrade

The meme-driven market resembles the 2019 altcoin season pattern: a few people profit, some hop on and get rekt, while most remain spectators.

Analyzing May's Crypto Market Hot Narratives: Meme Season, Sui, and Curve Upgrade
2022.12.22

Curve Liquidity "Wrapping" Battle Overview: Could Yearn Emerge as the Ultimate Winner?

For holders, locking CRV for 4 years is not a particularly attractive option.

Curve Liquidity "Wrapping" Battle Overview: Could Yearn Emerge as the Ultimate Winner?
2022.11.23

Curve Stablecoin Design Whitepaper: Continuous Liquidation / No-Liquidation AMM

Hope the proposed mechanism can address the risks associated with liquidations for stablecoin and lending purposes.

Curve Stablecoin Design Whitepaper: Continuous Liquidation / No-Liquidation AMM
TechFlow Logo

Navigating Web3 tides with focused insights

Contribute An Articleemail
Media Requestsmsg

Risk Disclosure: This website's content is not investment advice and offers no trading guidance or related services. Per regulations from the PBOC and other authorities, users must be aware of virtual currency risks. Contact us / [email protected] ICP License: 琼ICP备2022009338号