1-minute read
What a defender needs to know
Trend Micro analyzed 200 Gemini CLI session logs from March 19 through April 21, 2026. They showed a Russian-speaking actor using the agent to rebuild a live command-and-control server in six minutes and operate eight infected computers at a dental clinic. The actor supplied goals in Russian while Gemini CLI wrote and deployed code, configured a Cloudflare tunnel, fixed connection failures and sent commands to victims.
The reusable C2 knowledge fit into roughly 5KB across GEMINI.md, SKILL.md and a migration guide. Trend Micro measured the actor’s contribution at 11 percent of the session text, with the AI producing the remaining 89 percent. Gemini CLI refused one request for a self-spreading tool, but its safeguards did not stop the botnet work captured in the logs.
Inventory coding agents and local MCP servers that can run shell commands. Record the credentials, network access and deployment tools available to each one. Retain prompts and tool traces for investigations. Detection should follow agent processes into shells and infrastructure changes, then look for the recurring botnet behavior: periodic PowerShell polling, unusual persistence and unexpected Cloudflare tunnels.
Verify that each agent’s enforced permissions match the inventory and that a harmless out-of-scope command is denied and logged.