NEAR Intents recently experienced a security breach that resulted in the loss of nearly $3.8 million due to a smart contract bug. The incident, which occurred between September 29 and October 1, was attributed to a flaw in the contract’s handling of third-party contract calls during deposits. This allowed the attacker to create “ghost funds” by exploiting failed transactions, resulting in an imbalance between recorded and actual token balances.
The team at NEAR Intents quickly identified the issue and halted swaps on October 1, recovering all funds within 36 hours of detection. The attacker was identified and the stolen funds were returned before the deadline set by the team. The incident highlighted the importance of robust monitoring systems and the need for continuous improvement in contract security.
A monitoring gap in NEAR Intents’ system allowed the exploit to go undetected for nearly 40 hours, emphasizing the importance of comprehensive balance monitoring. The team has since implemented automatic pausing in the monitoring system to prevent similar incidents in the future.
Previous bug reports had identified similar issues with the deposit notification feature, leading to its removal on October 7. The team has also pledged to prioritize formal verification of smart contracts to enhance security measures.
In conclusion, NEAR Intents has taken proactive steps to address the security breach and recover the stolen funds. The incident serves as a reminder of the risks associated with crypto assets and the importance of thorough security measures in blockchain protocols. Investors are advised to conduct their own research and seek professional advice before making any investment decisions in the volatile crypto market.
