144 Mastra npm Packages Compromised via Hijacked Contributor Account
A hijacked account published over 140 malicious packages in a popular AI framework's namespace, though the infected packages themselves do not include malicious code.
Overview
A software supply chainAll the open-source libraries, build tools, code repositories, and update servers that go into making a program attack compromised 144 npm packagesA reusable web code library published to the public npm registry for developers to install associated with the Mastra namespaceA named boundary that keeps variable names, package names, or container resources separate from each other, which is a popular framework for building AI applications. The attackers hijacked a legitimate contributor account named ehindero to mass-publish malicious versions of these packages within 88 minutes on June 17, 2026. The malicious codeSoftware built to steal data, spy on users, lock files, or take control of a computer was not directly in the packages but was introduced through a third-party library called easy-day-js, which was added to the dependencyAn external code library or package that a software project relies on to do part of its work list. This library is a clone of the dayjs date library that downloads and runs a cryptocurrencyDigital money tracked on a public ledger using cryptography instead of a central bank-stealing remote access trojanMalware disguised as a normal file that gives an attacker remote control over the victim's computer. Because Mastra is used in environments holding sensitive credentialsThe login details, such as a username and password or key, that prove who an account belongs to, it became a high-value target for attackers. The compromised packages were installed in systems that could lead to the theft of browser history and data from over 160 cryptocurrency walletA software app or hardware device that stores the private keys needed to spend cryptocurrency browser extensionsA small add-on program installed inside a web browser to add features like ad blocking.
Terms in this story
- software supply chain
- All the open-source libraries, build tools, code repositories, and update servers that go into making a program. Protecting the software supply chain means making sure no attacker has tampered with the third-party packages, build pipelines, or signing keys used to ship an application.
- 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
- 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
- namespace
- A named boundary that keeps variable names, package names, or container resources separate from each other. Operating systems use namespaces to isolate containers so a program inside one container sees only its own files and processes, not those of the host server.
- malicious code
- Software built to steal data, spy on users, lock files, or take control of a computer. News reports use malware as the umbrella term for viruses, ransomware, spyware, and trojans that criminals install on phones, laptops, or servers without permission. Security+ objective 2.4 lists the term
- dependency
- An external code library or package that a software project relies on to do part of its work. When a popular open-source dependency has a security bug or gets hijacked by an attacker, every application that imports that package inherits the risk.
- cryptocurrency
- Digital money tracked on a public ledger using cryptography instead of a central bank. Cryptocurrency appears constantly in cybersecurity news because ransomware gangs demand payment in digital coins and hackers target online exchanges and digital wallets directly.
- remote access trojan
- Malware disguised as a normal file that gives an attacker remote control over the victim's computer. Once installed, a remote access trojan lets the attacker watch the screen, record keystrokes, browse files, and run commands as if sitting at the keyboard. Security+ objective 2.4 lists the term
- 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
- cryptocurrency wallet
- A software app or hardware device that stores the private keys needed to spend cryptocurrency. If an infostealer copies the secret seed phrase or key file from a victim's cryptocurrency wallet, the attacker can drain the funds irreversibly in seconds.
- browser extensions
- A small add-on program installed inside a web browser to add features like ad blocking. Because a browser extension can often read and change every web page you visit, attackers buy or hijack legitimate extensions to steal session cookies and passwords.
- open-source
- Software whose source code is publicly available for anyone to inspect, use, modify, and share. Most websites and apps rely on hundreds of open-source code libraries, so a single security flaw or malicious update in a popular library can affect thousands of companies at once.
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 The Hacker News website. Cite the article, not this page.
Read the full article on The Hacker News (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.
- Security+ 2.2 Explain common threat vectors and attack surfaces.
"144 Mastra npm Packages Compromised via Hijacked Contributor Account..." Found in the headline - Security+ 2.3 Explain various types of vulnerabilities.
"......been compromised as part of a software supply chain attack codenamed easy-day-js, per findings from JFrog,..." Found in the opening sentences - Security+ 5.3 Explain the processes associated with third-party risk assessment and management.
"......been compromised as part of a software supply chain attack codenamed easy-day-js, per findings from JFrog,..." Found in the opening sentences - CYBR 101 week 1: the course, logins and two-factor sign in, cyber roles and jobs
"......with the Mastra namespace ("@mastra/*"), a popular open-source JavaScript and TypeScript framework for building artificial..." Found in the opening sentences - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"......TypeScript framework for building artificial intelligence (AI) applications, have been compromised as part..." Found in the opening sentences - CYBR 101 week 8: networks, ports, DNS and packets
"......TypeScript framework for building artificial intelligence (AI) applications, have been compromised as part of..." Found in the opening sentences
How a story is connected to the course, and every objective, week and job role
Same story at other outlets
- Microsoft Attributes Mastra AI Supply Chain Attack to North Korea
- Microsoft links Mastra AI supply chain attack to North Korean hackers
- From package to postinstall payload: Inside the Mastra npm supply chain compromise