In a recent alarming development, a new method of attack has been discovered that targets cryptocurrency wallets, draining them of assets by compromising the security of the seed phrase. The following is a detailed account of how a Ledger wallet was hacked, highlighting the vulnerabilities that led to the loss of funds.
The Incident
On September 4th, a user discovered that $25,000 worth of assets were drained from their Ledger wallet. After a thorough examination of transaction histories, no malicious interactions, drainer activities, or compromised smart contracts were found on-chain. This led to the conclusion that the seed phrase itself had been exposed.
The user had two copies of the seed phrase:
One copy was on paper, securely stored in a locked safe. The second was a photograph of the paper, stored in a secure folder on the user’s phone. Despite these precautions, the wallet was still compromised.
Discovery of SpyAgent Malware
Upon further investigation, a diagnostic scan revealed the presence of a malware named SpyAgent. This malware was stealthily hidden in a TV streaming app, employing a unique method of operation. SpyAgent scanned all the data on the infected phone, searching specifically for patterns resembling seed phrases. Astonishingly, this malware was capable of recognizing a seed phrase even when stored as a photo, not just as text.
The Extent of the Malware Spread
The cybersecurity company McAfee had identified this malware, compiling a list of 280 fake apps that carried SpyAgent. However, they estimated that this list represented only about 10% of the total apps infected with the malware, implying that numerous others remained unidentified and active.
How the Malware Spreads
SpyAgent spreads through phishing campaigns that use fake messages from seemingly trusted sources. When users click on these links, they are directed to websites that mimic legitimate ones, tricking them into downloading malicious apps. For instance, messages posing as urgent notifications or family emergencies prompt users to install apps that appear to be authentic but are actually malware.
Upon installation, these apps request access to sensitive information such as SMS, contacts, and storage under the guise of standard app functionalities. Once installed, the app stealthily steals data, including contacts, SMS, photos, and device details, sending this information to a remote server.
Malware Capabilities and Impact
Beyond data theft, the malware can also execute commands to manipulate device settings, send SMS messages, and confirm data theft, thereby significantly compromising the user’s privacy and security. The malware’s command and control (C2) servers were found to have weak security, exposing index pages and files without requiring credentials, which led to further data breaches.
This misconfiguration exposed victims’ personal data publicly, which was then exploited by other hacker groups for blackmail or to utilize the stolen seed phrases for financial gain.
Preventive Measures
To protect your crypto assets from such sophisticated attacks:
- Avoid storing sensitive information like seed phrases on digital devices—especially not in photos or unsecured folders.
- Be cautious of downloading apps from unofficial sources and scrutinize permissions requested by apps during installation.
- Regularly update security measures on devices, including using trusted antivirus software capable of detecting such malware.
- Be vigilant of phishing attempts, and always verify the legitimacy of any links before clicking.
This incident underscores the importance of offline storage solutions and highlights the evolving nature of threats in the crypto space, where attackers are constantly innovating to exploit new vulnerabilities.
A.k.a – alpha girl. Vinita is the founder of Alphachaincrypto. An English Lit Majors, Vinita bumped into Web3 in 2020 only to realise that tech was her calling. Later, Mathreja worked for some notable brands like Near Education, Biconomy, CoinDCX and top of the line crypto start ups.