Palo Alto Networks Unit 42 has detailed Neural Override, a Python-based remote access Trojan (RAT) for Windows. It is controlled through a Telegram bot and uses a large language model (LLM) backend to choose its own attack steps.
Unit 42 published the research on December 2, 2026. It describes an autopilot that can run ransomware, distributed denial-of-service (DDoS) floods, credential theft, and persistence routines without an operator present. The code also references an undiscovered module for supervisory control and data acquisition (SCADA) targets.
The core of the malware is the autopilot_loop() function, which runs as a background thread every 300 seconds. Each cycle it collects the hostname, operating system, IP address, running processes, and disk usage. It sends that telemetry to the OpenRouter free-tier API with a Ukrainian-language prompt asking the model to pick from the available attacks.
Neural Override Python RAT
The model returns a JSON plan, and execute_plan() passes each step to the same handle_command() dispatcher that processes manual Telegram commands.
The system prompt names Neural Override v9.3 and lists every command, including scada_attack and apocalypse. When the autopilot is enabled, the operator does not need to be online. The model picks the action and the RAT carries it out.
A second routine, analyze_and_act(), performs the same analysis once on demand. Both paths call ask_ai(), which first tries to load Microsoft’s DialoGPT-medium locally through init_local_ai(). If that fails, it falls back to OpenRouter. Responses are cached by MD5 hash to avoid repeated API calls.
Defenders tracking AI-assisted malware will recognize this as a shift from static command logic to runtime decision-making. Unit 42 pivoted on a shared Telegram bot token to identify successive builds. All of them reuse the same bot token and operator chat ID.
From Build 2 onward they also reuse the same OpenRouter API key, and no credential was rotated during development. Build 1, dated July 8, 2026, was a basic eight-command Telegram bot with no AI integration. Build 2, dated August 3, added the OpenRouter connection, the autopilot loop, and 11 new capabilities, for a total of 19.
Builds 3 and 4 appeared on August 4. They jumped from version v3 to v9 and reached 61 capabilities, with 42 new functions arriving in a single batch.
This is the jump the researchers say may indicate AI-assisted code generation. Build 5 packages the v9.2 codebase into a 214 MB Windows PE binary with 92 command tokens.
It bundles a HuggingFace inference stack, anti-analysis gating, and hard-coded tool download URLs. A later sample, dated August 8, regressed to v3, which suggests the expanded version proved unreliable.
Build 3 is the only build available as plain Python source, and it shows several patterns of bulk LLM generation. The socket, json, re, hashlib, and random modules are each imported twice in separate blocks.
The evolve_bot() routine reads the RAT’s own source, sends the first 8,000 characters to the model with a Ukrainian prompt to improve the code and fix bugs, then overwrites itself with the response.
Roughly 27 of the 61 capabilities are stubs that only send a status message or ask the AI to generate code at runtime. Another 13 delegate to the LLM, including polymorph_virus(). Names such as quantum_c2(), drone_hack(), and zigbee_hack() have no matching implementation. Teams monitoring Python malware families should treat these as capability claims, not demonstrated function.
Several components work as written. The start_ransomware() routine generates an RSA-2048 key pair and a random 256-bit AES key. It encrypts files in the user’s home directory with the extensions .db, .docx, .jpg, .pdf, .png, .pptx, .py, .txt, .xlsx, and .zip.
The AES key is wrapped with the RSA public key using OAEP and written to key.enc, and the original files are replaced with .encrypted versions.
Persistence uses an HKCU Run key named SystemHelper, two scheduled tasks (SystemHelper at logon and SystemHelperPeriodic every 30 minutes), and an auto-start Windows service. It also drops copies into the Startup folder, System32\drivers, Windows\Temp, and System32\Tasks.
The get_chrome_passwords() function queries the Chrome Login Data SQLite database and exfiltrates the raw encrypted blobs over Telegram without DPAPI decryption.
The bypass_av() function runs nine Set-MpPreference commands to disable Microsoft Defender monitoring features. Other functions cover DDoS flooding, XMRig Monero mining, and SMB discovery with nmap for lateral movement.
The bot is named @Skibidi_16_bot with the display name Pomoshnik, and the operator account is @Xakmee. The webhook points to manybot[.]io, a consumer bot-building service. No victim is hard coded.
The nmap scans use the placeholder block 192.168.1[.]0/24, the BIOS infection URL uses your-c2[.]com, and the Monero address is truncated and non-functional. The exposed OpenRouter key returns access to 417 models, but the malware uses only the free tier. All user-facing strings are Ukrainian, while the bot’s display name is Russian.
SCADA Module and Detection
The scada_attack() function invokes an external script, scada_commander.py, with a command such as shutdown. Unit 42 did not find that module in the wild, so the protocol-level code that would talk to industrial control systems remains unseen. The researchers cite CISA advisory AA26-231A, which warns about actors using AI to generate exploitation scripts aimed at programmable logic controllers (PLCs).
Defenders should alert on one host making outbound connections to both api.telegram[.]org and openrouter[.]ai, especially from a Python process. Neither service has a legitimate role on most operational technology (OT) networks. A Run key, scheduled tasks, and a service all named SystemHelper that point to a Python script warrant investigation.
The string python scada_commander.py –command shutdown is worth hunting for in process-creation logs. Teams responsible for critical infrastructure defense should add the Telegram-plus-LLM-API pairing to detection rules. Egress filtering, segmentation between IT and OT, and least-privilege controls would disrupt several stages of this chain.
FAQs
What is Neural Override? It is a Python-based Windows RAT controlled through Telegram that uses OpenRouter LLMs to plan attacks autonomously.
How often does the autopilot run? The autopilot_loop() function collects host data and queries the model every 300 seconds.
Does it attack SCADA systems today? The scada_attack() function calls scada_commander.py, which Unit 42 has not found, so SCADA capability is unconfirmed.
How can defenders detect it? Alert on a host connecting to both api.telegram[.]org and openrouter[.]ai, and on SystemHelper persistence artifacts.
Sources
Unit 42, Palo Alto Networks: Neural Override research