Cyber Security News

New PyPI Supply Chain Attacks Target Python and NPM Users on Windows and Linux

Checkmarx Zero researcher Ariel Harush has uncovered a sophisticated malicious package campaign targeting Python and NPM users across Windows and Linux platforms through typo-squatting and name-confusion attacks against popular packages.

This coordinated supply chain attack demonstrates unprecedented cross-ecosystem tactics and advanced evasion techniques that security researchers warn represent an evolution in open-source threats.

Cross-Ecosystem Typo-Squatting Campaign

The attack campaign specifically targets users of colorama, a widely-used Python package for colorizing terminal output on PyPI, and colorizr, a similar JavaScript package on NPM.

Security researchers identified multiple malicious packages uploaded to PyPI with names designed to confuse developers into accidental installation through typographic errors.

The campaign’s most unusual characteristic involves using naming conventions from the NPM ecosystem to attack PyPI users, suggesting either deliberate confusion tactics or preparation for future NPM-targeted attacks.

The malicious packages were strategically named to exploit common typing mistakes and developer assumptions about package naming conventions.

This cross-ecosystem baiting technique represents a significant evolution in supply chain attack methodologies, as threat actors traditionally focus on single-ecosystem targets.

The campaign’s scope and coordination suggest targeted adversarial activity rather than opportunistic attacks, though researchers note that clear attribution data remains unavailable.

Multi-Platform Payloads

The discovered payloads demonstrate sophisticated capabilities across both Windows and Linux environments, with common features including sensitive data exfiltration, remote access establishment, and comprehensive persistence mechanisms.

Windows-targeted variants linked to the GitHub account github.com/s7bhme employ environment variable harvesting from the Windows registry to expose potential credentials and configuration secrets.

Indications of Environment Variable access

These payloads establish persistence through Task Scheduler entries pointing to different file paths, suggesting modular deployment architectures designed for long-term compromise.

Windows payloads exhibit advanced antivirus evasion capabilities, actively checking for installed security software and modifying behavior accordingly.

Researchers observed specific anti-detection commands including “C:\Program Files\Windows Defender\MpCmdRun.exe” -RemoveDefinitions -All to remove malware definitions and PowerShell commands disabling Input/Output Antivirus scanning for downloaded files.

These behaviors indicate clear adversarial intent focused on establishing persistent footholds while avoiding detection.

Linux-targeted packages including Colorizator and coloraiz contain base64-encoded payloads within src/colorizator/init.py files that initiate sophisticated infection chains.

The attack sequence involves RSA key deployment to /tmp/pub.pem, remote bash script downloads from gsocket.io/y for gs-netcat installation, and encrypted output exfiltration to Pastebin using valid developer keys.

The downloaded bash script provides comprehensive backdoor functionality including systemd persistence, shell profile injection, crontab modifications, and webhook notifications to Discord, Telegram, and custom URLs.

Initial investigation suggested unified threat actor involvement based on naming similarities and upload timing patterns, but deeper analysis reveals differences in tooling, tactics, and infrastructure that complicate attribution efforts.

Researchers cannot definitively link both Windows and Linux payload sets to a single source, suggesting potential separate campaigns exploiting similar typo-squatting tactics.

This uncertainty highlights how quickly malicious techniques proliferate within cybercrime ecosystems.

The packages have been removed from public repositories, limiting immediate damage potential, but the campaign serves as a critical reminder of sophisticated open-source supply chain threats.

Security experts recommend immediate examination of deployed application code for malicious package names, removal of any instances from private repositories, and implementation of blocking mechanisms across development environments.

Indicators of Compromise

TypeValueDescription
GitHub Repositorygithub.com/s7bhmeRepository hosting malicious payloads and templates
Webhook URLwebhook.site/dc3c1af9-ea3d-4401-9158-eb6dda735276Endpoint for data exfiltration and notifications
Package Ownerrick_grimesUploaded Colorizator (1.2.3, 2.1.2) for Linux
Package Ownermorty_smithUploaded coloraiz (1.0.1, 1.0.2, 1.0.3) for Linux
Package OwnerrevenUploaded coloramapkgsw (0.1.0), coloramapkgsdow (0.1.0) for Windows
Package Ownerm5tlUploaded coloramashowtemp (0.1.0) for Windows
Package OwnerdsssUploaded coloramapkgs (0.1.0), readmecolorama (0.1.0) for Windows
SHA256 Hashd30c78c64985a42c34ef142fd8754a776c8db81228bafc385c5bd429252e4612Malicious Linux bash script
SHA256 Hashdaef5255eac4a4d16940e424c97492c6bad8fdafd2420632c371b9d18df3b47fWindows payload (x69gg.exe)

Find this News Interesting! Follow us on Google News, LinkedIn, & X to Get Instant Updates!

Aman Mishra

Aman Mishra is a Security and privacy Reporter covering various data breach, cyber crime, malware, & vulnerability.

Recent Posts

Hackers Use ConnectWise SkyKick Credentials to Access Microsoft 365, Halting Cloud Backups

Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…

1 day ago

Anthropic’s Claude AI Uncovers Origins of NSA-Provided Cryptographic Keys After 25 Years

Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…

1 day ago

Critical WordPress Flaws Allow Attackers to Execute Remote Code Without Authentication

Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…

1 day ago

OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root

A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…

1 day ago

GhostAction Hackers Hide Credential-Stealing Malware in Fake Font Files Across 94 GitHub Repositories

GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…

1 day ago

SideCopy Hackers Target Indian Organizations With ReverseRAT Malware to Steal Data

Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…

2 days ago