AINews
Unit 42 finds a Telegram-controlled RAT that asks an LLM to pick its next attack
Palo Alto Networks' Unit 42 says Neural Override sends a victim's system details to an LLM every five minutes and runs the attacks it suggests. Much of its code is filler, but its ransomware, persistence and credential theft work.
Palo Alto Networks’ Unit 42 has published an analysis of Neural Override, a remote access Trojan (RAT) for Windows that is written in Python and controlled through Telegram. Its most unusual feature is an “autopilot”: the malware asks a large language model (LLM) what to do next and then does it, with no operator involved.
“The Trojan’s code reveals an AI-powered autopilot that can execute attacks without attacker input,” Unit 42 writes in the report, published on Dec 2.
How the autopilot works
A function called autopilot_loop() “runs as a background thread and fires every 300 seconds”. Each time, it collects the infected machine’s hostname, operating system, IP address, running processes and disk usage. It sends them through OpenRouter’s free API tier with a Ukrainian-language prompt that lists every command the malware supports and asks the model to “propose an optimal action plan for maximum damage/control.”
The model replies with a plan in JSON, and the malware runs each step through the same code path that handles manual Telegram commands. The available actions include ransomware, distributed denial-of-service (DDoS) attacks, credential theft, persistence and commands aimed at SCADA industrial control systems. One build can also run Microsoft’s small DialoGPT-medium model locally and use OpenRouter only when that fails.
Built with AI, too
Unit 42 tracked five builds over about a month, from July to August 2026, all sharing the same Telegram bot token and, from the second build on, the same OpenRouter API key. “During this time, the malware evolved from a basic eight-command Telegram bot to a 61-capability framework,” Unit 42 writes. The jump from 19 to 61 capabilities took under 24 hours and “shows possible signs of AI-assisted code generation”.
The source code points the same way. A function called evolve_bot() sends the first 8,000 characters of the malware’s own code to the LLM with the instruction “improve this code, add new functions, fix bugs”, in Ukrainian, then overwrites itself with the answer. Many functions are empty shells: of the 61 capabilities, roughly 27 only send a status message or ask the AI to generate code, and another 13 hand the work to the LLM at runtime. Names such as quantum_c2(), drone_hack() and zigbee_hack() “read like LLM-generated answers to a prompt such as, ‘What else could this malware do?’”
A later build rolled the malware back to the smaller version four days after the expansion, which Unit 42 reads as the operator finding the expanded version unreliable.
What actually works
Unit 42 tested the core functions and says several “would work”:
- Ransomware encrypts documents, images, databases and archives in the user’s home folder with AES, and wraps the key with RSA-2048.
- Persistence uses a registry Run key, two scheduled tasks and a Windows service, all named SystemHelper, plus copies of itself in several system folders.
- Credential theft copies Chrome’s saved-login database and sends it over Telegram. It does not decrypt the passwords, so it sends the encrypted values.
- Defence evasion runs nine Set-MpPreference commands to turn off Microsoft Defender features.
- It can also join DDoS attacks, mine Monero with XMRig and scan the local network for SMB hosts.
The SCADA function calls a separate module, scada_commander.py, that Unit 42 has not found: it “has not yet been discovered in the wild”. Unit 42 links the malware to a CISA advisory that, in its words, “warns about actors using AI to generate exploitation scripts targeting programmable logic controllers (PLCs)”.
Unit 42 does not describe any victims, and no specific target is hard-coded in the samples: the network scans use a placeholder address range, and the Monero payment address is truncated.
How to spot it
Unit 42’s main detection advice is to look for a single host that talks to both Telegram and an LLM service: “Organizations should watch for outbound connections to both api.telegram[.]org and openrouter[.]ai from the same host, particularly from a Python process.” It notes that neither service has a legitimate role on most operational technology networks.
Other signs to hunt for:
- A registry Run key, scheduled tasks named SystemHelper and SystemHelperPeriodic, and a Windows service named SystemHelper that point to a Python script or SystemHelper.exe.
- The process command line python scada_commander.py –command shutdown.
The report lists file hashes for all the builds, along with the Telegram bot and operator accounts.
Sources
- Topics
- AI agents
- Ransomware
Spotted a mistake? Report an error
Related coverage
More in AI ›AIAnalysis
AI infrastructure joins CISA's exploited list as attackers put AI agents to work
AINews
US Justice Department: handing a task to AI does not shield a company or its staff from criminal law
AINews