BigTech CompaniesCybersecurityNewswireTechnologyWhat's Buzzing

Red Hat NPM channel hit by backdoored packages

▼ Summary

– Official Red Hat NPM accounts were compromised to push a worm that steals credentials and spreads between machines.
– The attacker took control of the @redhat-cloud-services namespace, a trusted channel for Red Hat packages.
– The worm executes an obfuscated payload during npm install, collecting GitHub secrets, npm tokens, and cloud credentials.
– It spreads by republishing backdoored packages to third-party accounts accessible from infected systems.
– Affected systems are considered compromised; the malware encrypts stolen credentials and sends them via web requests or to a compromised GitHub repository.

Official Red Hat NPM accounts were breached and weaponized to distribute a self-replicating worm that steals sensitive credentials as it moves from one machine to another, according to security researchers.

The supply-chain attack began on Monday and remained active as of publication time, said researchers at Aikido. The breach gave the threat actor control over @redhat-cloud-services, a legitimate namespace in the NPM repository designated for official Red Hat packages. Because this channel is reserved for Red Hat, developers who rely on Red Hat cloud services widely trust it.

How exactly the attacker seized control of the namespace remains unclear, but the incident almost certainly involved compromised credentials, possibly stolen during a prior supply-chain attack. More than 30 packages appear to be affected.

The malicious packages contain an obfuscated payload that executes during the npm install process, before a developer imports or uses the package in a production environment. Security firm Socket analyzed the malware and found it is designed to harvest GitHub action secrets, npm tokens, Kubernetes and Vault credentials, and keys for other cloud services. The worm then spreads by republishing backdoored packages to third-party accounts that the infected device can access. Most, though not all, of the packages had been taken down within hours of the incident.

“Organizations should treat any system that installed one of the affected @redhat-cloud-services package versions as potentially compromised,” Socket researchers wrote. “The payload executes during npm install, before application code imports or uses the package, so exposure depends on installation or CI execution, not runtime use.”

Once a system is infected, the malware encrypts the stolen credentials and exfiltrates them via a web request. A fallback mechanism allows the malware to publish the encrypted data into a compromised GitHub repository, provided it has the appropriate credentials.

(Source: Ars Technica)

Topics

supply chain attack 98% credential theft 95% npm malware 93% red hat compromise 92% worm propagation 90% package backdooring 88% developer trust abuse 87% credential encryption 85% ci/cd exploitation 84% credential access 83%