Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2165+ Articles
156+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. News
  3. Hackers Poison Adform Script to Swap Crypto Wallet Addresses Across Customer Sites
Hackers Poison Adform Script to Swap Crypto Wallet Addresses Across Customer Sites
NEWS

Hackers Poison Adform Script to Swap Crypto Wallet Addresses Across Customer Sites

Attackers compromised a JavaScript file served by ad tech company Adform, turning it into a browser-side tool that silently rewrites cryptocurrency wallet addresses to redirect payments to attacker-controlled wallets.

Dylan H.

News Desk

August 1, 2026
4 min read

Threat actors carried out a sophisticated supply chain attack against advertising technology company Adform, modifying a widely distributed JavaScript file to silently swap cryptocurrency wallet addresses displayed on customer websites. The malicious modification turned a legitimate ad-serving script into a browser-side cryptocurrency hijacking tool — hitting visitors across multiple Adform customer sites simultaneously.

What Happened

On July 27, 2026, Adform detected that one of its JavaScript files had been tampered with. The modified script contained code designed to monitor web pages for displayed cryptocurrency wallet addresses and replace them in real-time with attacker-controlled addresses.

When a visitor to an affected site attempted to copy a wallet address — for example, to send payment to a cryptocurrency exchange, vendor, or service — the browser-side script would substitute the legitimate address with the attacker's wallet, causing funds to be sent to the wrong destination.

Adform:

  • Detected the incident on July 27, 2026
  • Removed the malicious code promptly after discovery
  • Notified affected clients
  • Reported the incident to relevant authorities

The Supply Chain Angle

This attack is a textbook JavaScript supply chain attack — a category of threat that has grown significantly in recent years. The attack pattern exploits the trusted relationship between a third-party service provider and the websites that embed its scripts.

Because Adform's JavaScript file was served from Adform's infrastructure and embedded across numerous customer websites, a single compromise of the source file propagated the malicious code to all sites loading that script. Visitors on any of those sites were silently exposed to the wallet-swapping payload without any individual site having been directly compromised.

This is the same fundamental mechanism behind other notable supply chain attacks:

  • Polyfill.io (2024) — malicious code injected into a widely embedded polyfill script
  • Magecart campaigns — JavaScript skimmers injected into e-commerce payment pages
  • XZ Utils (2024) — backdoor inserted into a widely used compression library

How Crypto Clippers Work

The malicious script likely functioned as a cryptocurrency clipboard hijacker or DOM manipulator:

  1. The script listens for cryptocurrency wallet addresses appearing in the DOM or being copied to the clipboard
  2. When a wallet address is detected, it is silently replaced with an attacker-controlled address
  3. The user, believing they are sending funds to the correct destination, initiates a transaction
  4. Funds arrive at the attacker's wallet instead

Cryptocurrency transactions are irreversible by design. Once funds are sent to the wrong address, recovery is generally impossible.

Who Is at Risk

Visitors to Adform customer websites during the period when the malicious script was active may have been targeted. Organizations that rely on Adform's ad technology and display cryptocurrency wallet addresses on their sites — such as crypto exchanges, DeFi platforms, blockchain projects, and fintech services — should:

  1. Audit transactions processed during the July 27 window for potential misdirection
  2. Notify customers who may have attempted cryptocurrency transfers during the exposure period
  3. Review third-party JavaScript embedded on their sites for any unexpected behavior

Broader Implications

This incident highlights the inherent risk of embedding third-party JavaScript without robust integrity controls. Site owners can reduce this risk through:

  • Subresource Integrity (SRI) — cryptographic hash checks on third-party scripts ensure the file has not been modified
  • Content Security Policy (CSP) — restrict which scripts can execute on your site
  • Third-party script auditing — periodically review and inventory all embedded scripts
  • Real User Monitoring (RUM) — detect anomalous DOM changes that may indicate injected malicious code

The ad tech ecosystem, which distributes JavaScript across millions of websites simultaneously, represents a high-value target for supply chain attackers seeking maximum reach from a single compromise.

References

  • The Hacker News: Hackers Poison Adform Script to Swap Crypto Wallet Addresses
  • OWASP: Third Party JavaScript Management
#Supply Chain#Crypto Theft#Ad Tech#JavaScript#The Hacker News

Related Articles

ThreatsDay: Game Cheat Spyware, Spirals Ransomware, Chrome Sync Stalking

This week's threat roundup covers NuGet packages poisoned with game-cheat spyware, the Spirals ransomware deploying network-wide in under 24 hours, and...

5 min read

Google and Microsoft Pull ModHeader After Hidden Tracker Found in 1.6M-Install Extension

Google and Microsoft have removed ModHeader — a popular HTTP header editor with 1.6 million installs across Chrome and Edge — after researchers discovered...

4 min read

North Korea-Linked npm Packages Mimic Rollup Polyfills to Steal Developer Secrets

JFrog researchers attribute a fresh npm supply chain campaign to North Korea's Lazarus Group. Malicious packages impersonating Rollup polyfill tooling...

4 min read
Back to all News