Hackers Hijack 42 GitHub Repositories to Plant Malware Traps for Claude, Gemini, and Cursor Users
Hackers planted malware in 42 GitHub repositories that activates when developers open projects with Claude, Gemini, Cursor, or VS Code.
Overview
HackersA person who explores and manipulates computer systems, either as a criminal intruder or a security researcher have planted malwareSoftware built to steal data, spy on users, lock files, or take control of a computer in 42 real GitHub repositoriesA central storage place where a software project's source code, change history, and configuration files are kept that belong to 11 legitimate owners, including individual developers, students, and one company. The hidden code sits in a file named .github/init.js, which is huge and ranges between 12.9 MB and 13.7 MB in size. Small settings files for tools like Claude, Gemini, Cursor, and VS Code call this scriptA short program written in an interpreted language to automate tasks in a browser, shell, or application when a sessionAn active logged-in period of communication between a user or device and a server starts or a folder opens, causing the malware to run automatically. Researchers at JFrog Security Research identified these armed repositories while investigating an npm worm known as the testmetest campaign. The payloadThe part of an attack or malware file that carries out the harmful action on the target is a rebuild of a hidden CI publisher called ci.js, which is designed to push new packages to npm using stolen access. A normal habit like opening a workspace could run the payload, affecting anyone who uses these specific development tools on the compromised projects.
Terms in this story
- 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.
- 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
- 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.
- session
- An active logged-in period of communication between a user or device and a server. Once you log in to a website, the server tracks your session so you can click from page to page without retyping your password on every screen.
- payload
- The part of an attack or malware file that carries out the harmful action on the target. A phishing email and an exploit are only the delivery steps, while the payload is the ransomware or spyware that actually runs once the computer is compromised.
- tool call
- A structured request from an AI model asking its host program to run an external function. When an AI assistant checks your calendar, runs a shell script, or queries a database, it emits a tool call that the surrounding software executes.
- prompt injection
- Hiding instructions inside text or data so an AI model ignores its rules and obeys the attacker. An attacker might hide invisible text on a web page or inside an email so that when an AI assistant summarizes it, the assistant forwards private data to the attacker.
- AI agents
- Artificial intelligence software that can plan steps, call tools, and take actions on its own. Many stories cover agentic AI when companies connect language models to email, browsers, and databases, creating new risks if a hidden prompt tricks the agent into leaking data.
- 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.
- repository
- A central storage place where a software project's source code, change history, and configuration files are kept. Software teams collaborate by pushing code to a shared repository, and attackers scan public repositories for accidentally committed API keys or try to poison popular projects.
- MCP
- An open standard for connecting AI assistants to external data sources, files, and software tools. Software teams use the Model Context Protocol so an AI coding tool or chatbot can query databases and run local commands, which makes securing those tool connections a major concern.
- 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 Cyber Security News website. Cite the article, not this page.
Read the full article on Cyber Security 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
"Researchers at JFrog Security Research identified..." Found by reading the article; these exact words are in it - Who is affected: "11 legitimate owners, including individual developers..." Organizations using the product
Copied word for word from the article - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"Hackers Hijack 42 GitHub Repositories to Plant Malware Traps for Claude, Gemini, and Cursor Users..." Found in the headline - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"......GitHub Repositories to Plant Malware Traps for Claude, Gemini, and Cursor Users..." Found in the headline - CYBR 101 week 9: malware, indicators and how detection works
"Hackers Hijack 42 GitHub Repositories to Plant Malware Traps for Claude, Gemini, and Cursor Users..." Found in the headline
How a story is connected to the course, and every objective, week and job role