In a shocking cybersecurity breach, a malicious Visual Studio Code (VSCode) extension posing as a legitimate Ethereum smart contract syntax highlighter managed to infiltrate Cursor AI’s Open VSX registry, leading to the theft of over $500,000 in cryptocurrency.
A Trojan Horse in Plain Sight
The extension, which appeared to be a useful developer tool for highlighting Solidity code in smart contracts, was carefully disguised to avoid suspicion. It made its way into Cursor AI’s trusted Open VSX marketplace—an open-source extension hub popular with developers using AI-powered IDEs like Cursor.
Once installed, the extension acted like spyware, stealing sensitive data such as private keys, wallet addresses, and seed phrases from unsuspecting users involved in blockchain development.
How the Exploit Worked
The malicious extension executed a background script that quietly scanned for files containing cryptocurrency wallet credentials or keys. It then exfiltrated that data to a remote server, allowing the attackers to gain full control over users’ wallets. From there, they siphoned off funds, primarily in Ethereum and other ERC-20 tokens, resulting in half a million dollars in losses.
Who’s Affected?
The breach primarily targeted developers in the Web3 and DeFi space who frequently work with Ethereum-based smart contracts. Those who use Cursor AI’s IDE and downloaded extensions from the Open VSX registry are most at risk.
Cursor AI has since removed the rogue extension and issued a warning to all users. An investigation is ongoing, and cybersecurity experts are analyzing how the malicious code evaded detection in the first place.
Security Lessons for Developers
This incident serves as a stark reminder of the vulnerabilities in open extension marketplaces and the importance of:
- Manually verifying extension sources
- Using trusted, verified tools only
- Keeping crypto credentials in secure environments, away from development folders
- Using hardware wallets or secure vaults for sensitive keys
Bottom Line:
Even tools designed to help developers can be weaponized. In an age where Web3 development is booming, cyber hygiene and vigilance are non-negotiable. One bad extension can cost you your entire crypto wallet.