Hackers abuse npm mirrors to host phishing redirect pages
Hackers used npm mirrors to host fake Cloudflare CAPTCHA pages that redirect visitors to malicious websites.
Overview
Threat actorsA person or group that carries out cyberattacks, whether for money, spying, or disruption are using npm and its mirrors to host malicious HTML pages that impersonate Cloudflare CAPTCHAsA challenge on a web page designed to tell a human visitor apart from an automated bot. These pages redirectA web flaw where a trusted site accepts an outside URL parameter and forwards visitors there visitors to attacker-controlled websites rather than infecting a developer's computer with malwareSoftware built to steal data, spy on users, lock files, or take control of a computer. The technique was first spotted in July by security researcher inf0stache, who found a package named china_airlines using a fake verification page. Later, OX Security discovered 24 npm packagesA reusable web code library published to the public npm registry for developers to install containing the same malicious HTML page hosted on npm and various mirrors. Unlike typical supply-chain attacksBreaking into a software maker or vendor so their trusted product or update infects their customers, this method uses the npm registryA central database of system settings on a computer or a public catalog that hosts software packages as free storage for malicious HTML pages. Mirroring platforms like UNPKG and npmmirror copy these files, allowing them to be accessed directly in a browser from legitimate domainsThe human-readable name for a website or a centrally managed group of workplace computers.
Terms in this story
- Threat actors
- 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
- CAPTCHAs
- A challenge on a web page designed to tell a human visitor apart from an automated bot. Online services use a CAPTCHA to slow down credential stuffing and spam bots, while attackers also use fake CAPTCHA screens to trick users into pasting malware commands.
- redirect
- A web flaw where a trusted site accepts an outside URL parameter and forwards visitors there. Attackers abuse an open redirect on a well-known website so the link in their email starts with a trusted domain name before forwarding the victim to a fake login page.
- 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
- npm package
- 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
- supply-chain attacks
- 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
- registry
- A central database of system settings on a computer or a public catalog that hosts software packages. In security news, the registry means either the operating system settings database where malware adds startup entries or a public package registry where developers download code libraries.
- domain
- The human-readable name for a website or a centrally managed group of workplace computers. In security stories, domain refers either to a web address that criminals register for phishing or to an organization's internal computer network managed by a central server.
- 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.
- infostealers
- Malware built to quietly copy saved passwords, browser cookies, and wallet keys from an infected device. Victims often download an infostealer through a fake game crack or malicious ad, and the stolen login cookies are then sold to ransomware crews on criminal markets. Security+ objective 2.4 lists the term
- phishing pages
- Tricking people into handing over passwords or money through fake messages that look real. Attackers send fake emails or messages that copy a bank, school, or login page so a reader types in their password or opens a malicious attachment. Security+ objective 2.2 lists the term
- URL
- The full web address used to locate a specific page, file, or resource on the internet. Security filters inspect every URL in an incoming message to see whether the domain name is a newly registered lookalike or points to a known credential-harvesting server. Security+ objective 4.5 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.
- Who is affected: "...developers who install it..." Organizations using the product
Copied word for word from the article - Security+ 2.1 Compare and contrast common threat actors and motivations.
"Threat actors are abusing npm and its mirrors to..." Found in the opening sentences - Security+ 2.2 Explain common threat vectors and attack surfaces.
"Hackers abuse npm mirrors to host phishing redirect pages..." Found in the headline - Security+ 5.6 Given a scenario, implement security awareness practices.
"Hackers abuse npm mirrors to host phishing redirect pages..." Found in the headline - CYBR 101 week 10: the web, cookies, phishing, incident response and logs
"Hackers abuse npm mirrors to host phishing redirect pages..." Found in the headline - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"Threat actors are abusing npm and its mirrors to..." Found in the opening sentences - CYBR 101 week 8: networks, ports, DNS and packets
"......to host malicious HTML pages that impersonate Cloudflare CAPTCHAs to redirect visitors to attacker-controlled websites." 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
- 24 Malicious npm Packages Abuse Trusted Mirrors to Host ClickFix Phishing Pages
- 24 npm Packages Abuse unpkg Mirrors to Host Fake Cloudflare CAPTCHA Pages