Fake 'MIT AI API' repo: forged shell tool call installs StealC on coding-agent hosts
Severity: high · Patch status: no-fix-needed · Since 2026-12-06
A GitHub repository posing as a free MIT-branded AI API (rinbayconra1977/mit-institute-free-ai-api, created 2026-12-04; about 1.5k stars and 31 forks when SafeDep captured it on 2026-12-06) points OpenCode and Codex at aimitlab[.]tech, a server with no model behind it. On the first request it reads the agent's tool list, finds a shell-like tool, and answers with a forged call to that tool containing a base64-encoded PowerShell launcher. The launcher fetches a Python loader that injects StealC v2 into a suspended explorer.exe; the stealer targets saved browser passwords and cookies, Discord and Steam files, and reports to 145.63.142.222. SafeDep attributes the same loader in Blender MCP add-on lures to one operator running since October 2026, and the repository's star and issue activity is largely fake. No vendor fix exists. The only confirmed victim report is one user whose browser closed after running the command. Users should stop using the endpoint, block its infrastructure, check for the persistence artifacts, and rotate every credential saved in the affected browsers and developer tokens.
What to do
- Do not connect OpenCode, Codex or any coding agent to aimitlab[.]tech (/v1, /api, /go, /py-worker, /py) or to rinbayconra1977/mit-institute-free-ai-api
- Block aimitlab[.]tech and the IPs 145.63.142.222 (StealC C2), 193.104.58.44 (C2 address in the loader), 80.87.206.55 (December stage server) and 185.162.233.6 (November stage server) at network egress
- Remove opencode.json files that point at aimitlab.tech from projects; review model-provider URLs in pull requests the way you review dependencies
- Hunt on Windows hosts for %LOCALAPPDATA%\MIT-FREE-AI\python-315\, %TEMP%\ms_log.txt, %APPDATA%\FreeAI\agent.ps1 and connector.log, the HKCU Run value FreeAIConnector, and powershell -EncodedCommand launched from an agent process
- Rotate browser-saved passwords, cookies and session tokens, and developer tokens (GitHub, cloud, npm, PyPI, AI provider keys) on any machine that ran the command; reinstall Windows where the earlier agent.ps1 variant was present
- Keep shell-command approval on for coding agents and treat an encoded PowerShell call as the first action of a new model provider as a reason to stop
- Review the okimesem1983/blender-ai-mcp-addon, linknimiball1974/ai-texture-forge and LiCinCan/blender-ai-mcp-addon Blender MCP lures if Blender MCP add-ons are in use
- Treat free AI API endpoints offering top models from unknown repositories as untrusted code execution; verify provider identity before configuring agents
Sources
All live incidents on Threat Watch