LIVE · cybersecurity feed
Live wire
phishing

Hackers abuse npm mirrors to host phishing redirect pages

Threat actors are leveraging the npm package registry and its mirroring services to host malicious HTML pages, effectively turning these platforms into free web hosting for phishing redirects. This technique, distinct from typical supply-chain attacks that infect developer systems, uses npm as a validated storage mechanism for attacker-controlled content.

ZeroDay News ·

Source: BleepingComputer

Threat actors are leveraging the npm package registry and its mirroring services to host malicious HTML pages, effectively turning these platforms into free web hosting for phishing redirects. This technique, distinct from typical supply-chain attacks that infect developer systems, uses npm as a validated storage mechanism for attacker-controlled content.

The issue was initially identified in July by a security researcher known as inf0stache, who discovered a package named 'china_airlines' that incorporated a fake Cloudflare verification page. This page was designed to redirect users to a malicious domain. Subsequently, security firm OX Security identified 24 additional npm packages containing similar malicious HTML pages hosted across npm and its mirrors.

When these packages are mirrored by services like UNPKG and npmmirror, individual files within them become directly accessible via a browser. For instance, an HTML file can be rendered from a URL such as `https://unpkg[.]com/ndmxchdjxn2@1.0.0/index[.]html`. This allows the malicious HTML to execute from a legitimate domain, potentially bypassing security measures that might block attacker-controlled infrastructure.

The malicious HTML pages are designed to impersonate Cloudflare security verification screens, often embedding the legitimate Cloudflare Turnstile CAPTCHA service. Regardless of the CAPTCHA outcome, the pages execute heavily obfuscated JavaScript to redirect the visitor.

Early versions of these redirects, observed in July, pointed to `microcloud[.]homes`. By August, some redirects were observed leading to `login[.]microsofte[.]live`. In some cases, these initial redirects ultimately resolved to the legitimate Microsoft Outlook mail login site at `https://outlook.office.com/mail`.

Later iterations of the attack adopted a more dynamic redirection method. This newer code retrieves an encrypted value from `api.keyval.org`, a legitimate platform for storing key-value pairs. The encrypted value is then decrypted in the user's browser, and the visitor is redirected to the resulting URL. This mechanism allows attackers to alter the redirect destination remotely without needing to modify or republish the npm package. At the time of OX Security's research, this method was redirecting visitors to the legitimate ChatGPT website.

While the current observed redirects have sometimes led to legitimate sites, the flexibility of this technique means attackers could easily change the destination to phishing pages, malware downloads, or other malicious content. OX Security also noted that npm packages, once published, may persist on mirroring services even after being removed from the official npm registry.

Security researchers advise treating direct HTML requests to npm mirror domains as potentially suspicious. This incident highlights a growing trend of threat actors exploiting legitimate infrastructure for payload storage and data delivery, rather than solely for direct malware distribution.

phishingnation-statecloud
ShareXLinkedInWhatsAppFacebook

More News

view all →
security

Canadian cybersecurity executive arrested in federal extortion case

A Canadian cybersecurity executive was arrested in Pennsylvania on Thursday, facing federal charges of conspiracy to commit extortion. Edward Dubrovsky, 54, a co-founder and former Chief Operating Officer of CYPFER, a firm specializing in ransomware negotiation, is charged with conspiring to threaten the confidentiality of information for extortion and conspiring to commit Hobbs Act extortion,…

breach

Criminal IP Introduces AITEM as the Next Evolution of Attack Surface Management

AI SPERA, the company behind the cyber threat intelligence platform Criminal IP, has announced AITEM (AI-Powered Threat Exposure Management), an expansion of its Attack Surface Management (ASM) offerings. AITEM aims to move beyond traditional asset discovery to provide a more comprehensive approach to understanding, prioritizing, and responding to security exposures. The platform is scheduled…

ai

AI Is Getting Really Good at Messing With Cybercriminals

Anti-cybercrime initiatives are increasingly deploying artificial intelligence to disrupt scammers by engaging them with lifelike bots, which the criminals mistake for genuine victims. This strategy aims to waste scammers' time and resources while gathering intelligence on their operations.

ransomware

FBI Arrests Ransomware Negotiation Firm Co-Founder in ShinyHunters Probe

The Federal Bureau of Investigation (FBI) has reportedly arrested Edward Dubrovsky, a co-founder of the ransomware negotiation firm Cypfer and currently associated with CyberSteward. The arrest is said to be part of the ongoing ShinyHunters investigation, specifically in connection with an incident involving FBI job applicant data.

ai

The Third-Party Agent Problem: Why Security Built for AI You Chose Misses the Agents You Didn't

A new report highlights a significant blind spot in enterprise security architectures concerning the proliferation of third-party AI agents. The forthcoming 2026 State of Agent Security Report indicates that current security models, often designed to protect AI systems directly chosen and deployed by an organization, frequently fail to account for AI capabilities embedded within third-party…

security

Insider Cyber Extortion Plot Against Industrial Firm Lands Engineer in Prison

A former core infrastructure engineer has been sentenced to prison for an attempted cyber extortion plot against an industrial firm. The engineer reportedly deleted administrative accounts and reset hundreds of user passwords, subsequently demanding a ransom of 20 Bitcoin to prevent further disruption to the company's servers.