Hackers Hijack AI Coding Agents Through Malicious GitHub Repositories to Steal Developer Credentials
Hackers planted malicious files in GitHub repositories to trick AI coding assistants into stealing developer credentials and spreading to other projects.
Overview
HackersA person who explores and manipulates computer systems, either as a criminal intruder or a security researcher are placing malicious files in GitHub repositoriesA central storage place where a software project's source code, change history, and configuration files are kept to trick AI coding assistants into running hidden malwareSoftware built to steal data, spy on users, lock files, or take control of a computer. These tools, such as Claude Code and Cursor, read project files to understand how to work, but the attackers have added secret orders to those files. When a developer opens the repository, the AI may execute a scriptA short program written in an interpreted language to automate tasks in a browser, shell, or application without warning, using the developer's own access permissionsThe specific rights granted to an account or app to read, write, or run files and services to steal credentialsThe login details, such as a username and password or key, that prove who an account belongs to. The malware then uses those stolen credentials to spread to other projects. Analysts at Bitdefender Labs identified the malware, and researcher Andrei Anton-Aanei found 22 malicious links that map how the attack works. The campaign abuses standard files and settings that AI tools use to automate tasks, allowing the malicious code to run either through AI instructions or direct configuration hooks.
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
- 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.
- 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.
- permissions
- The specific rights granted to an account or app to read, write, or run files and services. When a mobile app or browser extension asks for broad permissions, such as reading every web page you visit, a malicious update can abuse those rights to steal passwords.
- 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
- binary
- Base 2, where each byte is written as 8 ones and zeros. In security news, the word binary refers either to raw data made of ones and zeros or to a compiled executable program that runs directly on a computer's processor. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- 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.
- indirect prompt injection
- Hiding malicious instructions inside external content, such as a web page or email, that an AI assistant reads. Unlike direct prompt injection where the user types the trick themselves, indirect prompt injection plants a trap inside a document or calendar invite that hijacks the victim's AI assistant when opened.
- reverse shell
- A connection where an infected machine calls out to the attacker's server and hands over a command prompt. Because company firewalls usually block incoming connections from the internet but allow outgoing traffic, attackers make the victim computer open a reverse shell back to them.
- 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.
- shell
- The command-line interpreter program that accepts text commands and runs them on an operating system. When an attacker exploits a web server and pops a shell, they can type operating system commands directly as if they were sitting at the server's keyboard.
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
"Analysts at Bitdefender Labs identified the malware..." Found by reading the article; these exact words are in it - Who is affected: "Developer Credentials..."
Copied word for word from the article - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"......to make AI coding assistants run hidden malware. The malware steals developer credentials, and..." Found in the opening sentences - Security+ 4.6 Given a scenario, implement and maintain identity and access management.
"......Through Malicious GitHub Repositories to Steal Developer Credentials..." Found in the headline - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"Hackers Hijack AI Coding Agents Through Malicious GitHub Repositories to..." Found in the headline - CYBR 101 week 9: malware, indicators and how detection works
"......to make AI coding assistants run hidden malware. The malware steals developer credentials, and..." Found in the opening sentences
How a story is connected to the course, and every objective, week and job role