24 npm Packages Abuse unpkg Mirrors to Host Fake Cloudflare CAPTCHA Pages

By George Bailey   Published: 08/25/26   2 min read
24 npm Packages Abuse unpkg Mirrors to Host Fake Cloudflare CAPTCHA Pages

What The Campaign Is Actually Doing

The Hacker News says OX Security found 24 npm packages being used as phishing infrastructure, not as packages meant to infect developers who install them. The malicious content is a single HTML page embedded in the package and then mirrored through services like unpkg.

Once mirrored, a URL on a trusted domain such as an unpkg[.]com/.../index.html path becomes a live fake Cloudflare CAPTCHA page that can redirect the visitor into an attacker-controlled ClickFix-style chain.

Why The Mirror Abuse Matters

The point is not a novel browser exploit. It is trust laundering. The attacker gets to host the lure on infrastructure many users and defenders are less likely to distrust immediately because it belongs to a legitimate package mirror.

The source reporting says the embedded JavaScript can contact a remote server to retrieve or decode the next redirect target. Earlier iterations reportedly used a Microsoft-themed typosquat, login[.]microsofte[.]live, which shows how the initial trusted-domain lure can be repointed without changing the first-step hosting story.

The Defensive Shift

This is a reminder that package registries and their mirrors are part of phishing infrastructure now, not just software-delivery infrastructure. A user does not need to install the package for the attacker to get value from it.

OX Security's framing is useful: npm and its mirrors are being treated as durable, validated storage. That gives the attacker a cleaner reputation story and more persistence than a disposable phishing host.

What Teams Should Check

Source Context

CyberExperts used The Hacker News as the primary source and preserved the details that make the story actionable: the 24 npm packages, the unpkg mirror abuse, the fake Cloudflare CAPTCHA lure, the JavaScript redirect logic, and the Microsoft-typosquat destination described by OX Security.

Related In The Daily Brief

See this item in The 5-Minute Cyber Brief

George Bailey

George Bailey is a cybersecurity researcher and writer at CyberExperts, covering cyber threats, AI, cloud security, vulnerabilities, and defensive strategies. His goal is to help security professionals quickly understand what matters most and how it impacts their organizations.

Keep Reading