Microsoft links Mastra AI supply chain attack to North Korean hackers
Microsoft says North Korean hackers hijacked an npm account to publish malicious updates to over 140 packages.
Overview
Microsoft identified a North Korean hacking groupA person or group that carries out cyberattacks, whether for money, spying, or disruption called Sapphire Sleet as the source of a recent attack on the Mastra AI software environment. The attackers took control of a maintainerThe developer or small team responsible for reviewing changes and publishing releases for an open-source project account named ehindero and used it to release bad updates for more than 140 packages. These updates included a fake dependencyAn external code library or package that a software project relies on to do part of its work called easy-day-js that looked like a real tool named dayjs. When developers installed the packages, the fake tool ran a hidden scriptA short program written in an interpreted language to automate tasks in a browser, shell, or application that disabled security checks and contacted the attackers. The script then downloaded a second piece of malwareSoftware built to steal data, spy on users, lock files, or take control of a computer designed to steal credentialsThe login details, such as a username and password or key, that prove who an account belongs to, API keysA secret string a program sends with an API request to identify itself and get access, and cryptocurrency walletsA software app or hardware device that stores the private keys needed to spend cryptocurrency from Windows, Linux, and macOS systems. Developers who installed these packages now have a hidden program on their devices that is actively trying to steal their sensitive data and money.
Terms in this story
- hacking group
- 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
- 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.
- 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.
- script
- A short program written in an interpreted language to automate tasks in a browser, shell, or application. System administrators write scripts to automate daily maintenance, while attackers often use a script to download malware and disable security settings without dropping a compiled file.
- malware
- 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
- 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
- API keys
- A secret string a program sends with an API request to identify itself and get access. Software teams sometimes accidentally upload an API key to a public code repository, allowing attackers who scan for leaked keys to rack up cloud bills or read private databases. Security+ objective 4.6 lists the term
- keys
- The secret value that locks or opens a message. Many breach and ransomware stories come down to who holds the cryptographic key, since strong encryption protects data only as long as the key stays secret. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- cryptocurrency wallets
- 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.
- 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.
- hackers
- A person who explores and manipulates computer systems, either as a criminal intruder or a security researcher. In news headlines, the word hacker usually means an unauthorized intruder, though the security community also uses it for researchers who find and fix flaws.
- 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
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 BleepingComputer website. Cite the article, not this page.
Read the full article on BleepingComputer (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 links Mastra AI supply chain attack to North Korean hackers..." Found by reading the article; these exact words are in it - Security+ 2.1 Compare and contrast common threat actors and motivations.
"......links Mastra AI supply chain attack to North Korean hackers..." Found in the headline - Security+ 2.2 Explain common threat vectors and attack surfaces.
"Microsoft links Mastra AI supply chain attack to North Korean hackers..." Found in the headline - Security+ 2.3 Explain various types of vulnerabilities.
"Microsoft links Mastra AI supply chain attack to North Korean hackers..." Found in the headline - Security+ 5.3 Explain the processes associated with third-party risk assessment and management.
"Microsoft links Mastra AI supply chain attack to North Korean hackers..." Found in the headline - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"......140 npm packages to the North Korean hacking group Sapphire Sleet, also known as BlueNoroff." Found in the opening sentences - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"Microsoft links Mastra AI supply chain attack to North Korean hackers..." Found in the headline - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of key cyber threat actors and their equities.
"North Korean hacking group Sapphire Sleet..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Analyze identified malicious activity to determine weaknesses exploited, exploitation methods, effects on system and information.
"...malicious dependency executed a post-install hook..." 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
Same story at other outlets
- Microsoft Attributes Mastra AI Supply Chain Attack to North Korea
- From package to postinstall payload: Inside the Mastra npm supply chain compromise
- 144 Mastra npm Packages Compromised via Hijacked Contributor Account