Red Hat hit by npm supply‑chain attack – here’s how to stay safe


red hat logo

John Keeble/Getty Images

Follow ZDNET: Add us as a preferred source on Google.


ZDNET’s key takeaways

  • Red Hat was the victim of an npm security breach.
  • The company has removed the affected packages.
  • Check whether you use @redhat-cloud-services npm namespace.

The npm repository namespace –the JavaScript runtime environment Node.js package manager — is infamous for security breaches. Now, Red Hat, which, with IBM, just announced Project Lightwell, an AI-powered initiative to find and fix open-source software vulnerabilities, has an npm problem of its own.

Also: Open-source security is a mess – IBM and Red Hat bet $5 billion and 20,000 engineers can fix it

Dozens of JavaScript packages in the company’s @redhat-cloud-services namespace were backdoored with credential-stealing malware targeting secrets in Red Hat developers’ and continuous integration and continuous deployment (CI/CD) systems. The security research company Aikido reported that the namespace was “compromised with a credential-stealing worm. In total, 96 versions across 32 packages have been compromised, cumulatively downloaded 116,991 times per week.”

According to Red Hat security, someone used a compromised GitHub account to inject malicious code into packages maintained in a Red Hat GitHub organization. The affected packages are front-end libraries compiled and bundled into container images during the Red Hat product build process.

What exactly happened?

It appears the malware was added via npm preinstall hooks: Whenever a developer or build system ran “npm install” for an affected package, the malicious code was automatically executed. According to Microsoft’s threat intelligence team, each compromised package added a preinstall script that ran a bloated, heavily obfuscated index.js loader, which then pulled down and executed a payload designed to vacuum up secrets from npm, GitHub, AWS, SSH, and other environments.

Researchers quickly linked the attack to a broader campaign based on the Mini Shai-Hulud malware,  an npm-propagating worm used in earlier supply-chain incidents. In the Red Hat case, multiple reports refer to the payload as a new variant dubbed Miasma, which retains Mini Shai-Hulud’s self-spreading behavior while adding more obfuscation and a multistage loading design.

The worm does more than just steal credentials. Once it’s running on a machine with access to other npm packages, it identifies every package the current user can publish and republishes them with the same malicious preinstall payload. That is, each victim becomes a new attacker. Security firms say this “wormable” behavior is what enabled the Red Hat-associated namespace to be contaminated so quickly. Some estimates suggest that more than 30 packages were backdoored in a matter of minutes.

Also: Red Hat Desktop vs. Fedora Hummingbird: Which AI development Linux path is right for you?

While Red Hat hasn’t yet published a detailed post-mortem, independent analyses point to compromised GitHub infrastructure as the initial access vector. Semgrep and other security research companies report that the malicious Red Hat-scoped packages were pushed using GitHub Actions OpenID Connect (OIDC) tokens associated with the RedHatInsights/javascript-clients repository.

Once in, the attackers injected the preinstall hook into multiple packages and versions, often without any corresponding changes in the public source repositories. This is a classic hallmark of build-pipeline compromise.

The executed code scans for and attempts to exfiltrate the following:

  • GitHub Actions secrets and access tokens
  • GitHub SSH keys and personal access tokens
  • AWS, GCP, and Azure cloud credentials
  • Kubernetes configuration and tokens
  • HashiCorp Vault tokens and other secret manager data
  • npm and CircleCI tokens, plus other CI/CD secrets stored in environment variables or configuration files

Also: Rust will save Linux from AI, says Greg Kroah-Hartman

Security vendors warn that anyone who installed the affected versions on a developer workstation, build agent, or CI runner should assume that all accessible tokens and credentials from that environment may now be in an attacker’s hands.

For developers, guidance from multiple firms is explicit:

  1. Rotate secrets immediately.
  2. Audit GitHub and cloud activity for suspicious access.
  3. Rebuild any potentially contaminated environments from known-good baselines.

Red Hat told me, “We immediately initiated an investigation and removed the packages from the npm registry. The packages are strictly limited to internal development, and the malicious code was never published for customer consumption via the console.redhat.com system. While our investigation is ongoing, we have not identified any impact on customer or partner environments or Red Hat production systems.”

In short, this could have been much worse.

Also: Ubuntu 26.04 is the OS for the AI agentic era, says Canonical’s Mark Shuttleworth

In earlier, more general guidance on npm supply-chain attacks, Red Hat Product Security stated that its products rely heavily on strict version pinning and internal mirrors, and that no previously compromised npm packages had been incorporated into supported Red Hat software. 

In the wake of the recent incident, however, security researchers are urging organizations not to assume they are safe simply because they use Red Hat offerings. They argue that any build or developer workflow that touched the backdoored packages should be treated as potentially compromised.

What should you do now?

While Red Hat is assuring everyone that the bad code didn’t make it into the public, I remain wary. If you rely on Red Hat cloud services tooling or have ever pulled @redhat-cloud-services packages into your builds, I’d recommend scanning dependency trees for the affected versions, blocking the known-bad releases, and downgrading or replacing them with trusted builds where necessary. 

At the same time, I’d assume that any environment where those packages were installed may have had its secrets exposed, and rotate all relevant credentials, for example, GitHub PATs, SSH keys, cloud provider API keys, and CI tokens.

Also: How digitally sovereign is your organization? This Red Hat tool can tell you in minutes

In the long term, the Red Hat npm incident shows again that the npm repositories aren’t all that trustworthy. With even heavyweight Linux and cloud vendors now demonstrably vulnerable to wormable npm malware, the pressure is mounting on both npm’s stewards and major software suppliers to provide stronger guarantees about the provenance and safety of their packages.

In other words, while Red Hat may have pie on its face from this episode, it also underscores just how important Project Lightwell and similar efforts, such as Chainguard’s efforts to find a way to improve everyone’s open-source security, are.





Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


I consider myself part of many fandoms. Some are from my childhood, others from college, and now, as a young adult, but they all mean something to me on some level. One of those just happens to be Star Wars.

For years, I have adored the Star Wars franchise, mainly because I grew up on those movies. But I must admit, the best Star Wars film isn’t one of the classics from the 1970s and 1980s. No, it’s actually a rather new one—and it’s time you gave it the praise it deserves.

Rogue One is the best Star Wars movie by far

It simply can’t be beaten

Jyn Erso in Rogue One: A Star Wars Story speaking to someone. Credit: Lucasfilm

So hear me out.

What are my credentials to say this? Really, none except for the fact that I grew up watching the entire franchise, as I’m sure most people reading this article did. I am a fan whose brother was obsessed with Luke Skywalker and Han Solo and whose father would meticulously quote Yoda as if he were real. I was raised on Star Wars, both the Star Wars movies and TV shows.

So I must admit that I’ve watched the first movies a few times, the prequel films many times, and, of course, the sequel movies. And they’re all great. Trust me. They are. But to me, Rogue One, otherwise known as Rogue One: A Star Wars Story, is the best film in the series.


Star Wars logo.


8 Classic Star Wars Games Every Fan Should Play At Least Once

Enjoy these games, you will.

You can’t really surpass some of the iconic moments that have cemented themselves into movie history from the originals, such as the legendary reveal of Darth Vader being Luke’s father, Han and Leia’s love exchange, and, of course, the epic lightsaber fights that happen in both the original films and the prequels.

But I think what makes Rogue One the best Star Wars film is that it’s the perfect movie set in the Star Wars universe, with a plot that matters without trying to be anything else. It doesn’t aim to become bigger than it originally was—a story about a group of rebels who begin the entire story of A New Hope thanks to what they did.

The characters make it so much more enthralling

My favorite ones come from here!

I think what really stands out in Rogue One is the memorable characters. One was so memorable and beloved that Disney created a critically acclaimed TV show about the character. That’s how you know they were good.

But they weren’t just well-written characters with complex backstories and interesting comedic bits. They were likable. I feel like a lot of Star Wars characters fall into an unlikable trap.

There are plenty of characters who are likable and memorable, but I’m not entirely sure their stories are as fleshed out, so we see their flaws much more easily. I honestly think a big reason fans didn’t like Rey as much was that her story didn’t feel as well-told. They tried to make her bigger than she needed to be—her original story, of just being a random girl with the Force who had no connection to anything else, felt a lot more original than her being a granddaughter of Palpatine.

That’s what makes Jyn Erso (played by Felicity Jones), the main protagonist of Rogue One, so good. Yes, she is the daughter of an Imperial scientist, but she doesn’t have any powers, secret abilities, or anything like that. She’s a rebel who aims to help and is very human and flawed but does her best. Those traits are carried out throughout every character we meet in Rogue One, including Cassian Andor (Diego Luna).​​​​​​​

The action and special effects are top-tier

The BEST blaster fights

A ship explodes from bombs in Rogue One: A Star Wars Story. Credit: Lucasfilm

I know for a fact that the sequel films fell into a bad rhythm with their action. It didn’t feel as well-choreographed or as well-executed as the special effects in previous films. But with Rogue One? It never feels like that.

I honestly believe it’s because the movie is more grounded in war than in epic space battles and moving things with the force all the time. It’s about a group of humans and droids who are trying to work together to bring an end to the Empire. Most of them don’t really have powers, and that leads to some really well-done sequences that feel real in ways where even we could relate to them.

Of course, there’s that epic final scene of Darth Vader basically destroying and killing everyone with his skills and the force, but that doesn’t feel pushed into the story. That feels authentically woven into the storyline and done in a way that shows his power and how it connects to the overall story. That’s an effective way to use that kind of power.

War-focused action with a little hint of those special effects made this so much better.

The original films are still great, but just not my favorite

Jyn and Cassian have my heart

I’m not saying I don’t love the original Star Wars movies because that is not the case. I love the originals and the sequels with a heavy passion. There’s a reason why most Star Wars board and card games are centered around those characters—we love them because we grew up with them.

From a theatrical perspective, with its compelling story, well-developed characters, and impressive effects, Rogue One stands out as the supreme leader of the series. I genuinely cannot find a fault in this film within the grand timeline of the Star Wars universe, and honestly, I wish we got more of movies like this.

Grounded Star Wars feels so much more relatable, and I think that’s a big reason why Rogue One is successful. As much as we love the powers and the Force and epic lightsaber fights, we would all most likely be like Jyn or Cassian, rebels trying to fight for the greater good. And I think that’s beautiful.

Either way, we’ll still be getting plenty of new Star Wars content soon, including a Darth Maul show, apparently. Maybe something new will surpass Rogue One. But for now, I doubt it. And if you haven’t seen Rogue One, you should check it out on Disney+.

Subscription with ads

Yes, the Disney Basic plan

Simultaneous streams

Up to 4




Source link