24 npm Packages Abuse unpkg Mirrors to Host Fake Cloudflare CAPTCHA Pages
Researchers found that 24 npm packages were used to host fake CAPTCHA pages, leveraging the registry as safe storage for phishing infrastructure.
Overview
Cybersecurity researchers found a campaign using 24 npm packagesA reusable web code library published to the public npm registry for developers to install to host fake Cloudflare CAPTCHAA challenge on a web page designed to tell a human visitor apart from an automated bot pages. The attackers used the npm registryA central database of system settings on a computer or a public catalog that hosts software packages and its mirrors as a safe storage location for the malwareSoftware built to steal data, spy on users, lock files, or take control of a computer. When a user opens a link hosted on these mirrors, they see a fake verification page that redirectsA web flaw where a trusted site accepts an outside URL parameter and forwards visitors there them to an external site. This trick is designed to make the victim perform unintended actions that lead to malware deployment. The attackers initially used a typosquatRegistering a domain or software package with a common misspelling of a popular name domainThe human-readable name for a website or a centrally managed group of workplace computers to impersonate a Microsoft login page. Anyone who opens a link hosted on the npm mirror is tricked into carrying out actions that can lead to the deployment of malware.
Terms in this story
- 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
- CAPTCHA
- 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.
- 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.
- 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
- redirects
- 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.
- 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
- 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.
- phishing
- 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
- ClickFix
- A lure that tricks a user into copying and running a malicious command themselves. A fake verification box or error pop-up on a website tells the visitor to press a key shortcut and paste a fix into their terminal, which silently downloads malware. Security+ objective 2.2 lists the term
- threat actor's
- 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
- prompt
- The text instruction or question a user or program sends to an artificial intelligence model. In AI security news, a prompt includes both the visible question typed by a user and the hidden instructions that an attacker might embed in a web page.
- JavaScript
- The programming language that web browsers run to make web pages interactive, and that also runs on servers. Because every browser runs JavaScript automatically when loading a page, attackers use malicious JavaScript in cross-site scripting, fake browser updates, and compromised software packages.
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.
- Kind of story: Research and reports
"Cybersecurity researchers have disclosed details of a new campaign..." Found by reading the article; these exact words are in it - Who is affected: "...anyone who opens a link thats hosted on the npm mirror..."
Copied word for word from the article - Security+ 2.1 Compare and contrast common threat actors and motivations.
"......while downloading it wouldn't do harm, the threat actor's use of npm isn't to infect..." Found in the opening sentences - Security+ 2.2 Explain common threat vectors and attack surfaces.
"24 npm Packages Abuse unpkg Mirrors to Host Fake Cloudflare..." Found in the headline - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"......to ClickFix-style fake CAPTCHA pages. "While the malware is simply a single HTML page inside..." Found in the opening sentences - Security+ 5.6 Given a scenario, implement security awareness practices.
"......cluster of 24 npm packages as free phishing infrastructure for redirecting to ClickFix-style fake CAPTCHA..." Found in the opening sentences - CYBR 101 week 10: the web, cookies, phishing, incident response and logs
"......cluster of 24 npm packages as free phishing infrastructure for redirecting to ClickFix-style fake CAPTCHA..." Found in the opening sentences - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"......while downloading it wouldn't do harm, the threat actor's use of npm isn't to infect..." Found in the opening sentences - CYBR 101 week 8: networks, ports, DNS and packets
"......Packages Abuse unpkg Mirrors to Host Fake Cloudflare CAPTCHA Pages..." Found in the headline - CYBR 101 week 9: malware, indicators and how detection works
"......to ClickFix-style fake CAPTCHA pages. "While the malware is simply a single HTML page inside..." 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
- Hackers abuse npm mirrors to host phishing redirect pages