Poisoned GitHub repos hijack AI coding agents to steal credentials
Original title: Hackers Hijack AI Coding Agents Through Malicious GitHub Repositories to Steal Developer Credentials
Bitdefender found 22 malicious links; a loader steals tokens and can push the same trap into other repositories.
Bitdefender Labs says attackers planted instructions and hooks in GitHub repositories so tools such as Claude Code and Cursor run a hidden setup.js. The multi-stage loader steals CI/CD, cloud, registry, browser, SSH and password-manager secrets, then can rewrite other agents’ settings and commit the trap into repositories the stolen tokens can push to. It may also try to republish packages. Bitdefender says AI Guardian detected all 22 samples in internal tests on November 10.
Unconfirmed: Bitdefender says new variants may not match its November 10 detection results.
- The outer script is a 3.75 MB single-line file using ROT13 and AES-128-GCM.
- Spread is capped at 25 repositories and 50 branches by default.
- Targeted agent names include Claude, Cursor, Copilot, Gemini and Cline.
- IoCs include repos under toray, ConcordiaDev, itsunai and ejaaduipitara.
- If the files ran, rotate every reachable token, key and cloud secret.
Impact: Steals developer tokens, keys and cloud secrets
| Product | Affected |
|---|---|
| Anthropic Claude Code | — |
| Cursor | — |
- 1.Review AGENTS.md, CLAUDE.md, session-start hooks and unknown setup scripts before opening a repo.
- 2.If setup.js ran, rotate tokens, keys and cloud secrets that machine could reach.
- ATT&CK
- T1059.007 JavaScriptT1555.004 Windows Credential ManagerT1552.001 Credentials In FilesT1195.002 Compromise Software Supply Chain
- Products
- Claude CodeGitHub
- Organizations
- Bitdefender
Indicators of compromise
auto-extracted · verify before use · export allAll| Type | Indicator | Context |
|---|---|---|
| md5 | 2191cbd04134839daeb6b8909725eae0 | vice ab7ff2f782c194953e5811d16b9e1817 Imanilom/baraja-coffe 2191cbd04134839daeb6b8909725eae0 bajoebel/kkpatip 31f1f5d9c59b950d91d05cecee20fce8 ahmadtoha |
| md5 | 2f54f6d41f41bb3c8e684b0f009cbcc3 | 9a182b646c7fdff68f2ff9dfd822516 ConcordiaDev/theme_saimaniq 2f54f6d41f41bb3c8e684b0f009cbcc3 itsunai/docker-php-fpm 3794736979327349404171798328a38a its |
| md5 | 31f1f5d9c59b950d91d05cecee20fce8 | aja-coffe 2191cbd04134839daeb6b8909725eae0 bajoebel/kkpatip 31f1f5d9c59b950d91d05cecee20fce8 ahmadtohar9/restomoiz 908293cd1ed04cf50fbe72baf74967b6 tobi |
| md5 | 3794736979327349404171798328a38a | niq 2f54f6d41f41bb3c8e684b0f009cbcc3 itsunai/docker-php-fpm 3794736979327349404171798328a38a itsunai/passport_auth_server 3794736979327349404171798328a3 |
| md5 | 5c8db9bf78c6c2174ccf8a6299f9aafd | f6d5a5b317f697310a796c rkamphuis012-hub/sr-pilot-codex-test 5c8db9bf78c6c2174ccf8a6299f9aafd Malala-Tour-Indonesia/Malala-Tour-Indonesia.github.io 82a8b |
| md5 | 5dc5473468ee2d8006ebdaab0c7e93fb | b.io 82a8be193a41f5b17906f919a179d999 julieth333/campustech 5dc5473468ee2d8006ebdaab0c7e93fb madolee/da… (name truncated in source) a20a99e325226f56d7a2 |
| md5 | 7ad1567180f6d5a5b317f697310a796c | claudiohernanbesada/xenios.api… (name truncated in source) 7ad1567180f6d5a5b317f697310a796c rkamphuis012-hub/sr-pilot-codex-test 5c8db9bf78c6c2174ccf8a |
| md5 | 82a8be193a41f5b17906f919a179d999 | 9aafd Malala-Tour-Indonesia/Malala-Tour-Indonesia.github.io 82a8be193a41f5b17906f919a179d999 julieth333/campustech 5dc5473468ee2d8006ebdaab0c7e93fb mado |
| md5 | 908293cd1ed04cf50fbe72baf74967b6 | atip 31f1f5d9c59b950d91d05cecee20fce8 ahmadtohar9/restomoiz 908293cd1ed04cf50fbe72baf74967b6 tobias94-design/s-valentine bbd5695c36e76538547c45fd17e6c7e |
| md5 | a20a99e325226f56d7a25460a9d436ab | 2d8006ebdaab0c7e93fb madolee/da… (name truncated in source) a20a99e325226f56d7a25460a9d436ab Note: IP addresses and domains are intentionally Qdefanged |
| md5 | ab7ff2f782c194953e5811d16b9e1817 | r 3794736979327349404171798328a38a ejaaduipitara/djp-devops ab7ff2f782c194953e5811d16b9e1817 ejaaduipitara/whatsapp-bot ab7ff2f782c194953e5811d16b9e1817 |
| md5 | b9a182b646c7fdff68f2ff9dfd822516 | promise (IoCs):- Repository setup.js MD5 toray/QiniuSDK-lib b9a182b646c7fdff68f2ff9dfd822516 toray/widget-lib b9a182b646c7fdff68f2ff9dfd822516 toray/Xia |
| md5 | bbd5695c36e76538547c45fd17e6c7e4 | 08293cd1ed04cf50fbe72baf74967b6 tobias94-design/s-valentine bbd5695c36e76538547c45fd17e6c7e4 tobias94-design/gymtracker bbd5695c36e76538547c45fd17e6c7e4 |
From the original article
4 min read at cybersecuritynews.com
Hackers are planting poisoned files in GitHub repositories to make AI coding assistants run hidden malware. The malware steals developer credentials, and it also uses them to spread to other projects. The campaign targets tools such as Claude Code and Cursor, and 22 malicious GitHub links have been found so far.
By Tushar Subhra Dutta · cybersecuritynews.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.