Typosquatted npm packages used to steal cloud and CI/CD secrets
A threat actor published malicious packages that mimic popular libraries to steal cloud and CI/CD secrets from the npm ecosystem.
Overview
A threat actorA person or group that carries out cyberattacks, whether for money, spying, or disruption published 14 malicious packages in the npm ecosystem on May 28, 2026, using typosquatted names to mimic well-known OpenSearch and ElasticSearch libraries. These packages were designed to steal cloud and CI/CD secretsPrivate credentials used by software, such as API keys, database passwords, and encryption keys from the host environment where they were installed. The malicious code runs silently during the installation process to harvest credentialsThe login details, such as a username and password or key, that prove who an account belongs to from Amazon Web Services, HashiCorp Vault, and GitHub Actions. The actor also targeted npm publish tokensA short-lived digital pass that a server gives a logged-in user or app to enable further supply chain attacksBreaking into a software maker or vendor so their trusted product or update infects their customers. Microsoft identified the attack and worked with the npm team to take down the malicious repositories. Organizations that installed these packages are now at risk of having their cloud credentials and pipelineThe automated pipeline that tests, builds, and deploys software whenever developers push new code secrets stolen.
Terms in this story
- threat actor
- A person or group that carries out cyberattacks, whether for money, spying, or disruption. Security researchers use the term threat actor to refer to a criminal gang, state spy unit, or solo hacker behind a series of intrusions. Security+ objective 2.1 lists the term
- typosquat
- Registering a domain or software package with a common misspelling of a popular name. Attackers use typosquatting on code registries so a developer who mistypes one letter when installing a library accidentally downloads malware. Security+ objective 2.2 lists the term
- secrets
- Private credentials used by software, such as API keys, database passwords, and encryption keys. Software teams use vault tools to keep secrets out of source code because anyone who finds a leaked secret in a public repository can log right in to the company's cloud services.
- credentials
- The login details, such as a username and password or key, that prove who an account belongs to. Many breaches begin when attackers steal an employee's login credentials through a fake website and sign in to the company network as if they belonged there. Security+ objective 4.6 lists the term
- tokens
- A short-lived digital pass that a server gives a logged-in user or app. After you sign in once, your browser or app presents a token on each request, and if malware steals that token the attacker can act as you without knowing your password. Security+ objective 4.6 lists the term
- supply chain attack
- Breaking into a software maker or vendor so their trusted product or update infects their customers. Instead of attacking a hundred companies one by one, an intruder compromises a single software library or update server that all of those companies already trust. Security+ objective 2.2 lists the term
- pipeline
- The automated pipeline that tests, builds, and deploys software whenever developers push new code. Attackers love to compromise a company's CI/CD pipeline because that build server holds cloud keys and can inject malicious code directly into official software releases. Security+ objective 4.7 lists the term
- npm packages
- A reusable web code library published to the public npm registry for developers to install. Web developers pull in dozens of npm packages when building a site, and attackers frequently publish malicious packages with lookalike names to steal developer credentials during installation. Security+ objective 2.2 lists the term
- attack chain
- The full sequence of steps an intruder takes from initial break-in to final goal. Incident reports map out the full attack chain, such as a phishing email that drops a loader, steals domain credentials, and finally deploys ransomware across servers.
- mitigation
- A defensive step or setting change that lowers the risk of a flaw before patching. When a software vendor has not finished a patch yet, its advisory often lists a mitigation such as turning off an optional feature or blocking a specific URL path at the firewall. Security+ objective 2.5 lists the term
- maintainer
- The developer or small team responsible for reviewing changes and publishing releases for an open-source project. Supply chain attackers often target a volunteer maintainer with phishing emails or offers to help, hoping to gain publishing rights over a popular code library.
- configuration
- A text file that stores settings, network addresses, and options for how a program or server runs. Attackers who gain read access to a server look for its configuration file first because it often contains database passwords, API keys, and internal server paths.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the Microsoft Security Blog website. Cite the article, not this page.
Read the full article on Microsoft Security Blog (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Research and reports
"Microsoft has identified an active supply chain attack..." Found by reading the article; these exact words are in it - Who is affected: "AWS credentials, HashiCorp Vault tokens, and CI/CD pipeline secrets..." Energy and utilities
Copied word for word from the article - Security+ 2.2 Explain common threat vectors and attack surfaces.
"Typosquatted npm packages used to steal cloud and CI/CD secrets..." Found in the headline - Security+ 2.5 Explain the purpose of mitigation techniques used to secure the enterprise.
"......details the attack chain, detection opportunities, and mitigation guidance to help organizations identify and disrupt..." Found in the opening sentences - Security+ 4.6 Given a scenario, implement and maintain identity and access management.
"......npm packages to target cloud and CI/CD credentials across developer environments. This report details the..." Found in the opening sentences - Security+ 4.7 Explain the importance of automation and orchestration related to secure operations.
"......npm packages used to steal cloud and CI/CD secrets..." Found in the headline - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"......environments. This report details the attack chain, detection opportunities, and mitigation guidance to help organizations..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of virtual machine aware malware, debugger aware malware, and packing.
"Bun-compiled second-stage payload..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of the concept of an advanced persistent threat (APT)
"...automatic execution via npm lifecycle hooks..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role