CLOSEDQUORUM: The Malware Where Four LLMs Vote on the Next Move, Explained for Developers
If you’ve built an LLM app, you’ve probably written something like this: call a few models, parse their JSON, take the majority answer, fall back to a default if they all fail. It’s a standard reliability pattern.
Cisco Talos just published a teardown of malware built exactly that way (by Ryan Fetterman). It’s called CLOSEDQUORUM, and the “default if they all fail” choice turns out to be the most revealing line in it.
The architecture in one paragraph
CLOSEDQUORUM is a 16.4MB 64-bit Windows executable written in Go. Talos’ framing: “The foundational design choice in CLOSEDQUORUM is the treatment of LLM providers as the C2 infrastructure.” There is no attacker-run command server telling it what to do. Instead it asks up to four commercial models (DeepSeek, Qwen, Mistral, and Google Gemini) and does whatever they collectively pick. Stolen data goes out through a Discord webhook.
The vote
Talos walks through the code. A component called ModelOrchestrator queries the providers one by one inside a function named interModelDiscussion(). The system prompt opens with “You are an advanced malware strategist. Provide ONLY executable decisions.” Each model must return a JSON object matching a known schema, or its answer is discarded.
Then:
- Plurality vote: each valid response’s
Decisionfield increments amap[string]int. Highest count wins. - Ties are broken by a fixed preference order: DeepSeek, then Qwen, then Mistral, then Gemini.
- If every model fails, the decision becomes
consensus, a string with no handler, so the loop sleeps and retries “rather than take a default action.”
That last design choice is the one I keep coming back to. The author chose to do nothing rather than guess. When the models refuse or the APIs block it, the implant waits. It’s a quiet admission of how much the thing depends on providers that don’t want to be its command channel.
What the decisions do
There are four possible decisions:
| Decision | What runs |
|---|---|
steal |
LSASS memory dump via MiniDumpWriteDump, saved browser passwords (Chrome, Edge, Firefox), crypto wallets (MetaMask, Exodus, Ethereum) |
inject |
Generates shellcode, then process hollowing or early-bird APC injection |
persist |
Run key named “WindowsUpdate,” a scheduled task, and a WMI event subscription that fires every 60 seconds |
move |
No handler in the distributed build |
Evasion is conventional: it patches EtwEventWrite to return immediately (killing ETW telemetry), waits five minutes before doing anything, then polls at random 5 to 15 minute intervals. Exfiltration is AES-256-GCM with a date-derived key, base64-encoded, split into 1,900-byte chunks posted to Discord one per second.
How “autonomous” is it really
Talos calls it “the first publicly documented Windows implant” to apply this model to tactical C2. I’d add two things the headlines left out.
First, the public build is inert: every API key is set to dummy_api_key and the webhook to dummy_webhook_url. It looks like a service an operator configures, not something the developer deployed. Talos says it has no confirmation of in-the-wild use and “did not observe a complete end-to-end execution of the architecture.”
Second, the models aren’t inventing tactics. They pick one of three working actions that a human already wrote. That’s autonomy in the sense of “who presses the button,” not in the sense of “who designed the attack.” It’s still worth taking seriously, because the button-pressing is the part that used to need a person watching a dashboard.
Detecting it
Talos’ advice: “focus on behavioral characteristics, rather than domain blocking.” You can’t block api.deepseek.com and generativelanguage.googleapis.com everywhere without breaking legitimate tools. The tells are in the combination:
- AI provider API traffic from an unexpected Windows executable
- Several model providers hit within a short window by the same process
- Discord webhook traffic from that same process or host
- Repeated activity at randomized 5 to 15 minute intervals
The prompts themselves are only visible with TLS inspection or on the provider side. Which means the model providers are, in practice, part of the detection surface now. Talos also published hashes and a YARA rule, CLOSEDQUORUM_LLM_Autonomous_Implant.