AI agents tricked into recommending malicious GitHub repositories
AI agents were tricked into recommending malicious GitHub repositories that delivered malware to users.
Overview
A campaign called FakeGit created roughly 7,600 malicious GitHub repositoriesA central storage place where a software project's source code, change history, and configuration files are kept, with more than 800 posing as AI Skills or Model Context ProtocolAn open standard for connecting AI assistants to external data sources, files, and software tools serversA computer or program on a network that stores data and responds to requests from client devices. These fake projects used copied layouts and convincing documentation to trick AI agentsArtificial intelligence software that can plan steps, call tools, and take actions on its own into recommending them to users. The malwareSoftware built to steal data, spy on users, lock files, or take control of a computer delivered by these repositories is called SmartLoader, which installs StealC to steal credentialsThe login details, such as a username and password or key, that prove who an account belongs to and sensitive data. The operation targeted both individual and enterprise tools, including integrations for Gmail, WhatsApp, Databricks, Jenkins, and Docker. By July 2026, the campaign had logged more than 14 million downloads across GitHub Release assets in about 200 of these repositories. Users who followed the installation instructions provided by AI agents risked having their active sessionsAn active logged-in period of communication between a user or device and a server and personal information stolen.
Terms in this story
- Model Context Protocol
- 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.
- Protocol
- An agreed set of rules and message formats that computers follow to exchange data over a network. Every internet service relies on a network protocol such as HTTP for web pages or DNS for domain lookups, and a logic flaw in a protocol's design affects every vendor that implements it.
- servers
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- 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.
- 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
- sessions
- 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.
- persistence
- The tricks an attacker uses to keep access to a computer after a reboot or password change. To maintain persistence on an infected laptop, malware might add itself to the startup folder or create a hidden scheduled task that runs every time the machine turns on.
- information stealer
- 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
- trojanized
- Altered to hide malware inside a legitimate-looking installer, update, or open-source package. Attackers distribute trojanized copies of popular utilities through search ads so users get a working program while a hidden background script steals their passwords.
- MCP servers
- A connector program that gives an AI assistant access to a specific database, file system, or web API. When a developer connects an AI agent to an MCP server, a bug or malicious prompt in that connector can let the agent run unintended shell commands or read private files.
- 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.
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 Help Net Security website. Cite the article, not this page.
Read the full article on Help Net Security (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
"AI agents tricked into recommending malicious GitHub repositories..." Found by reading the article; these exact words are in it - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"AI agents tricked into recommending malicious GitHub repositories..." Found in the headline - CYBR 101 week 8: networks, ports, DNS and packets
"......posing as AI Skills or Model Context Protocol (MCP) servers, in a wave that peaked..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of a broad range of malicious activity concepts.
"FakeGit uses copied projects, lookalike developer profiles, convincing READMEs, and malicious ZIP files..." 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
- FakeGit campaign uses 7,600 GitHub repos to push SmartLoader malware
- AgentBaiting Campaign Uses 800 Fake AI Skills and MCP Servers to Deliver SmartLoader Malware