
Analysis of the Curio Exploit
Learn how Curio was exploited, which resulted in a loss of approximately $16 million.
Youtube Video
Playing the video that you've selected below in an iframe
After much deliberation and careful thought Neptune Mutual decided to close the cover marketplaces.
After much deliberation and careful thought Neptune Mutual decided to close the cover marketplaces. Below the reasons for the decision as well as what it means for the community.
The marketplaces will be closed using an emergency withdrawal process whereby the liquidity provided to cover pools by LPs will be returned to the wallet addresses from which the liquidity was supplied. In addition to protecting cover pool LPs, there will also be refunds to all cover policy purchasers with an existing and valid policy who have paid over 10 USD in policy fees in one transaction.
For veNPM holders, please fill out this form to receive a refund for your veNPM to NPM conversion penalty.
From the end of June there will no longer be NPM emission incentives for LPs i.e. Epoch 3 of the liquidity gauge emissions will be canceled.
Unused funds raised from financial backers will be returned to those backers; this includes DEX liquidity that has now been removed from SushiSwap and Uniswap. A small amount of liquidity on SushiSwap Arbitrum has been left to enable a minimum amount of NPM trading.
The protocol will be open sourced, and become a true public good. Enabling the community to fork the code developed by the Neptune Mutual team such that others might use the existing resources to further our mission to make the blockchain space better protected against smart contracts and other risks.
There are numerous factors that have led to this difficult decision, some of which are external factors which are uncontrollable or unforeseeable. A few factors summarized below:
“Given Neptune Mutual’s Tier 1 backers, why have you not listed on a top CEX?”
This is perhaps one of the most frequently asked questions. In short, the answer is that for a variety of reasons Neptune Mutual was not able to achieve the diverse set of performance metrics (community size and engagement, marketplace user activity, DEX 24 hour trading volume, TVL growth etc.) required to list on top tier CEX. The CEXs that are prepared to list NPM token do not have the depth of liquidity or breadth of user-base to offer good prospects for NPM tokenholders.
The above point invariably leads to the question
“Why has Neptune Mutual not achieved strong growth?”
It is tempting to take a shortcut to answer this question by pointing a finger at one specific factor, but the reality is that there are many contributing factors. A few summarized below:
Since the outset of engaging with the community we have endeavored to highlight the need for DeFiInsurance; Neptune Mutual built a comprehensive dataset of on-chain hacks available, anywhere, and each week we highlight the many millions of dollars that are stolen as a result of smart contract hacks. Despite this, we have consistently been confronted by projects unwilling to spin up cover pools in our marketplace because of the sentiment that audits of their code are sufficient to persuade their community that their protocol is safe. Less than 0.3% of all digital assets are protected with some form of DeFiInsurance, and yet despite all the media reports of hacks, the conference discussions about the importance of governance or CEX proof-of-reserves, it continues to be the case that it is extremely difficult to get media attention to focus on the need for a fast and efficient means of mitigating smart contract risk.
A variety of approaches have been taken by different DeFiInsurance protocols to address this, from attending multiple conferences throughout the year and significant marketing spend, to the leaner approach that Neptune Mutual took (in part as a result of the bear market in 2023). What can be said is that no DeFiInsurance protocol has managed to achieve significant growth over the last 18 months, sadly the overall TVL of the sector has shrunk a lot.
For all the reasons above, at this moment the best course of action is no longer to double-down on investing in growth, but rather to refund unused capital and close the marketplaces.
The consequences are very tough for the Neptune Mutual team who have spent the past 3 years of their time on the mission to facilitate safer environments within DeFi. The team has delivered products according to the roadmap and the fact that the protocol was never hacked, despite attempts being made on the darkweb, is testament to the expertise, passion and absolute focus on security. The team survived the FTX and UST crisis unscathed, and believed that the continued growth in hacks would lead to growth in the demand for a good solution to mitigate these risks, but sadly, as can be seen right across the DeFiInsurance category, this is not yet in sight. So we would like to thank the team for all the dedication, skill and passion invested into the Neptune Mutual project since the outset.
The team will open source the protocol, including blockchain indexing protocol (subgraph alternative), frontend, middleware, database, and backend code, to make it a true public good. This will allow anyone to fork the code and create covers by defining parameters and premium ranges, potentially leading to innovative covers and organic usage.
The Discord channel will be closed to reduce the risk of phishing and other types of cyber attack, any questions / queries will be responded to in the Telegram channel.
We want to take this final opportunity to thank you all for your support.
Neptune Mutual will contact only its financial backers, with whom a signed agreement exists, in relation to next steps (i.e. holding NPM tokens does not qualify you for any form of refund). Contact will be made only from a neptunemutual.com domain email address so please check the source of any email you may receive very carefully. Please ignore any messages from any other email or social media accounts in relation to token/cash refunds.
Learn how the Onyx Protocol was exploited, leading to a 1,164 ETH loss worth $2.1 million.
On November 1, 2023, the Onyx Protocol was exploited on the Ethereum Mainnet due to a smart contract vulnerability, which resulted in a loss of 1,164 ETH, worth approximately $2,100,794.
Onyx Protocol is an algorithmic money market designed to bring secure and trustless credit and lending to users on the Ethereum Network.
The root cause of the exploit is a precision loss vulnerability. The attack vector is a known issue on all of the CompoundV2 forks.
The attack is similar to the earlier exploit on Hundred Finance, which suffered a loss of approximately $7 million. Midas Capital was also exploited due to the same issue, resulting in a loss of $600,000. Essentially, the exploiter targeted empty pools that lacked lending activity, thereby gaining control over the liquidity.
Step 1:
We attempt to analyze one of the attack transactions executed by the exploiter.
Step 2:
The exploited oPEPE market was deployed five days ago, prior to the attack, without any liquidity.
Step 3:
The attacker took a flash loan of 4,000 ETH, converted it to PEPE tokens, and then contributed PEPE tokens to this empty pool.
Step 4:
This empty market and a substantial donation caused the market to be biased, allowing the attacker to borrow funds from other markets with liquidity.
Step 5:
The rounding error was then exploited to redeem the donated PEPE tokens. The borrowed flash loan was repaid, and the attacker took the remaining funds as profit.
Step 6:
The exploiter has since laundered the stolen assets worth 1,130 ETH to Tornado Cash.
The community leader of Onyx acknowledged the occurrence of the exploit and stated that the total loss due to this incident is 1,163.53 ETH, worth approximately $2.1 million. The team has isolated the vulnerability and is working on the consequences with their partners.
The exploit didn't affect the XCN token and its contract, the XCN staking pool, or the Uniswap trading pools.
In light of the recent exploit on the Onyx Protocol, several security considerations have been brought to the fore, especially concerning the CompoundV2 fork. These considerations will significantly mitigate the risk of such vulnerabilities and secure the ecosystem.
One of the critical aspects to be vigilant about is extreme situations. For instance, during market initialization and periods of market illiquidity, there's an increased vulnerability. This is because empty pools or those with minimal activity are prime targets for attackers. To counteract this, it is recommended that markets reserve a small amount of shares upon their initialization. This simple action can act as a buffer, preventing manipulation by malicious actors who might seek to take advantage of an otherwise empty pool.
Furthermore, the importance of conducting strict audits of proposals cannot be overstated. With the decentralized nature of these protocols, it's essential to ensure that every proposal undergoes thorough scrutiny to prevent any malicious proposals from being approved. This requires not only an advanced understanding of the underlying smart contracts but also foresight into potential attack vectors.
To add another layer of security, setting up robust monitoring systems and pausing or blocking contracts for potential attacks is crucial. A real-time monitoring system can alert the team to any unusual or suspicious activities. By having such a system in place, immediate action can be taken to halt any activities that resemble known attack patterns or any other anomalies.
Lastly, for those operating a Compound V2 fork, it's imperative to ensure there are no pools without liquidity on any chain. These liquidity-less pools are simple to manipulate, which can result in sizable losses, as the most recent exploit demonstrated. By ensuring every pool has sufficient liquidity, this particular attack vector is neutralized.
However, even with the most rigorous security measures, there's always a risk of unforeseen vulnerabilities. This inherent unpredictability highlights the need for robust protective measures, akin to what we offer at Neptune Mutual. Had the team associated with Onyx Protocol collaborated with us in setting up a dedicated cover pool in advance, the financial aftermath of the exploit might have been considerably mitigated. Our cover pools act as financial lifelines, offering users a mechanism to rebound from potential financial downturns due to smart contract vulnerabilities.
By partnering with Neptune Mutual, users are relieved from the often intricate task of furnishing exhaustive evidence of their financial losses. As soon as an incident is verified and resolved through our incident management framework, our foremost priority shifts to the swift disbursement of claims. This ensures timely financial assistance for the impacted parties.
With our operations spanning across multiple blockchain networks, including Ethereum, Arbitrum, and the BNB chain, we're devoted to providing our protective services to a broad spectrum of DeFi enthusiasts. Our steadfast commitment to user safety instills trust in the DeFi sector, particularly following significant security lapses like the Onyx exploit.
Reference Source BlockSec