Neural Override: The Evolution of a Python RAT That Uses AI to Plan Its Own Attacks and Target SCADA Systems Palo Alto Networks Unit 42 analyzed Neural Override, a Python remote access Trojan for Windows controlled via Telegram that uses the OpenRouter API to call large language models and autonomously run ransomware, DDoS, credential theft, persistence routines and SCADA commands based on the model's recommendations. Unit 42 tracked five successive builds over one month, during which the malware grew from a basic eight-command Telegram bot to a 61-capability framework, with the fastest jump from 19 to 61 capabilities in under 24 hours, which the researchers say shows possible signs of AI-assisted code generation. The SCADA component calls an external Python module named scada_commander.py that has not been found in the wild, and Unit 42 ties the Trojan to the risks described in CISA advisory AA26-231A on actors using AI to generate exploitation scripts targeting programmable logic controllers. We identified and analyzed Neural Override, a Python-based remote access Trojan RAT for Windows controlled through Telegram. The Trojan's code reveals an AI-powered autopilot that can execute attacks without attacker input. The code also reveals an undetermined capability to execute attacks against supervisory control and data acquisition SCADA systems through a separate module we have not yet found. The malware uses the OpenRouter API to access large language models LLMs to analyze compromised systems. It then autonomously runs ransomware, distributed denial-of-service DDoS attacks, credential theft, persistence routines and SCADA commands based on the AI's recommendations. We tracked five successive builds of Neural Override over one month. During this time, the malware evolved from a basic eight-command Telegram bot to a 61-capability framework. The fastest jump, from 19 to 61 capabilities in under 24 hours, shows possible signs of AI-assisted code generation. The SCADA component calls an external Python module named scada commander.py that has not yet been discovered in the wild. The framework to trigger SCADA attacks exists within the files we accessed, but the protocol-level code to communicate with industrial control systems ICS hasn’t been found. Neural Override works as a RAT and can do real damage. The ransomware encrypts files, the persistence sticks, the credential theft hits the right database and the DDoS floods traffic. Around two-thirds of the codebase, however, consists of functions that either do nothing beyond sending a status message or hand everything off to the LLM at runtime. If the malware author could more successfully integrate AI-assisted code generation, this could rapidly evolve and increase Neural Override’s capabilities. Neural Override is a prime example of the risks reported in CISA advisory AA26-231A https://www.cisa.gov/news-events/cybersecurity-advisories/aa26-231a , which warns about actors using AI to generate exploitation scripts targeting programmable logic controllers PLCs . Palo Alto Networks customers are better protected from the threats discussed above through the following products and services: Unit 42 Threat Intel Services https://www.paloaltonetworks.com/unit42/threat-intelligence is designed to provide organizations with tailored intelligence and direct access to our analysts to help assess relevant threats, prioritize risks and determine appropriate actions. If you think you might have been compromised or have an urgent matter, contact the Unit 42 Incident Response team https://start.paloaltonetworks.com/contact-unit42.html . | Related Unit 42 Topics | LLM https://unit42.paloaltonetworks.com/tag/llm/ , SCADA https://unit42.paloaltonetworks.com/tag/scada/ , RAT https://unit42.paloaltonetworks.com/tag/remote-access-trojan/ | How the AI Implementation Works Through a .py sample of Neural Override, we analyzed the version v9.2/v9.3 source code. Our analysis indicates that Neural Override's most notable feature is its autonomous attack loop, built around a command-and-control C2 channel on Telegram and an LLM backend on OpenRouter. The function autopilot loop runs as a background thread and fires every 300 seconds. Each cycle, it collects the host's system state hostname, OS, IP address, running processes, disk usage . It sends this data to OpenRouter's free-tier API with a Ukrainian-language prompt asking the model to pick from a list of available attacks. It then returns a JSON-formatted plan. The system prompt identifies itself as Neural Override v9.3 bot-helper and lists every available command, including scada attack and apocalypse. The malware asked the model to "propose an optimal action plan for maximum damage/control." The execute plan function iterates through the steps in the returned JSON data and calls each one through the same handle command dispatcher that processes manual Telegram commands. Figure 1 shows the sample banner and Figure 2 shows the autopilot loop with its 300-second cycle, system information collection and LLM prompt construction. Figure 3 shows the init local ai function in the Build 3 source, loading Microsoft's DialoGPT-medium local model name = "microsoft/DialoGPT-medium" as a local fallback for command interpretation when the OpenRouter API is unavailable. A second function, analyze and act , works the same way as the init local ai function, but runs once on demand rather than looping. Both paths use ask ai , which tries to load DialoGPT-medium locally first and falls back to OpenRouter if that fails. Responses are cached by MD5 hash to avoid repeat API calls. As a consequence, when the autopilot is enabled, the attacker does not need to be present so the LLM picks what to do and the RAT does it. We identified five builds by pivoting on the shared Telegram bot token. All five use the same bot token, operator chat ID and from Build 2 onward the same OpenRouter API key. No credentials were rotated across the entire development timeline. Table 1 shows the progression. | Build | Date | SHA-256 Hash | Type | Version | Capabilities | | 1 | 2026-07-08 | 7eb8b6b1...e06e | .pyc | Pre-v3 | 8 | | 2 | 2026-08-03 | e7c63a71...1cd9 | .pyc | v3 | 19 | | 3 | 2026-08-04 | cee0bc69...75e0 | .py | v9.2/v9.3 | 61 | | 4 | 2026-08-04 | fb9abe62...67f1 | .pyc | v9 | 61 | | 5 | 2026-08-04 | bfaa12c5...367d | PE | v9.2 | 92 - Full suite | | 6 | 2026-08-08 | 5138f443...9657 | .pyc | v3 Regression to v3 | 19 | Table 1. Neural Override build timeline. - Build 1 is a straightforward Telegram bot with eight commands and no AI integration. - Build 2 adds the OpenRouter connection, the autopilot loop and 11 new capabilities. - Builds 3 and 4 show a notable leap forward. 42 new functions appear in a single batch, the version number jumps from v3 in Build 2 to v9 with these builds. There are no versions between v3 and v9, and the capability count triples. - Build 5, the v9.2 executable, packages the v9 codebase into a standalone 214 MB Windows binary with 92 command tokens. It’s bundled with a HuggingFace inference stack, anti-analysis gating and hard-coded tool download URLs. Its internal title is NEURAL OVERRIDE v9.2 - AI COMMANDER PLUS FIXED . Indications of LLM Usage for Writing This Malware Build 3 is the only build we have available in Python script .py file rather than compiled Python bytecode .pyc files . The Build 3 source code has several patterns that point to bulk LLM generation: - Duplicate stdlib imports: The socket, json, re, hashlib and random modules are each imported twice in separate import blocks. This duplication is more common in LLM-generated Python scripts when compared to human-generated scripts. - Self-improvement loop: The function evolve bot reads the RAT's own source code. It then sends the first 8,000 characters to the LLM with the prompt improve this code, add new functions, fix bugs in Ukrainian . It then overwrites itself with whatever the model returns. - Stub functions: Of the 61 capabilities in v9, roughly 27 are stubs that either call send msg with a status string and return or ask the AI to generate code at runtime. Function names like quantum c2 , drone hack and zigbee hack indicate capabilities far beyond what the rest of the code demonstrates. They read like LLM-generated answers to a prompt such as, "What else could this malware do?" The author does not appear to have actually built out functions to match these names. Another 13 functions delegate to the LLM at runtime, including polymorph virus , which asks the AI to write a polymorphic virus on the fly. Despite the bulk-generated stubs, several parts of Neural Override are functional and would perform malicious actions on a Windows host. The v9.2/v9.3 scripts fill in additional gaps by downloading their own tooling and adding capabilities that the .py source code only stubbed. - Ransomware: start ransomware generates an RSA-2048 key pair and creates a random 256-bit AES key. It then walks the user's home directory and encrypts files with extensions .db, .docx, .jpg, .pdf, .png, .pptx, .py, .txt, .xlsx and .zip. It wraps the AES key with the RSA public key using Optimal Asymmetric Encryption Padding OAEP . The encrypted AES key is written to key.enc. The implementation uses proper initialization vector generation and PKCS7 padding. It also replaces the original files with .encrypted versions. - Verdict: This would work. - Persistence: install persistence sets up persistence through different characteristics: - Creating the HKCU\Software\Microsoft\Windows\CurrentVersion\Run\SystemHelper entry in the Windows Registry - Two scheduled tasks: SystemHelper triggered at logon and SystemHelperPeriodic triggered every 30 minutes via schtasks - A Windows service SystemHelper with automatic start - A copy of the Neural Override binary in the Windows startup menu's Startup folder as SystemHelper.exe and SystemHelper.py - Additional copies are placed in %SystemRoot%\System32\drivers\, %SystemRoot%\Temp\ and %SystemRoot%\System32\Tasks\ directories - A backup copy named SystemHelper backup.py is stored in the corresponding $TEMP directory for self-restoration - Verdict: These would work. - Credential theft: get chrome passwords targets the victim's Chrome Login Data SQLite database, queries the associated table and columns origin url, username value, password value and sends the results over Telegram. It skips Data Protection API DPAPI decryption of the password blobs, so it exfiltrates the raw encrypted values rather than plaintext passwords. - Verdict: This would work. - Defender evasion: bypass av runs nine Set-MpPreference commands to disable real-time monitoring, behavior monitoring, script scanning, IOAV protection and other Windows Defender features. It also adds registry entries to suppress the Defender notifications. - Verdict: This would work. - Miscellaneous functions: These functions are standard implementations for DDoS attacks, cryptocurrency mining and reconnaissance for lateral movement, for instance: - start ddos floods a target with requests for the infected host to participate in DDoS attacks - start miner runs XMRig Monero for cryptocurrency mining - spread scans for SMB hosts with nmap for lateral movement - Verdict: These would work. Characteristics of the Attacker The Telegram bot token led to a bot with the designator @Skibidi 16 bot. This bot has a display name of Pomoshnik, which is Russian for helper. Identified through passive Telegram bot API queries, the bot's operator account is @Xakmee with the display name XD. This operator account is linked to a channel named @Vsom Cheat Crark Meln with no visible posts. Searches across developer platforms, underground forums, gaming services and general web sources returned no results for this account. The Telegram webhook points to manybot . io, a consumer bot-building service. This means that the operator uses a drag-and-drop bot platform alongside the RAT's own polling loop. No specific target is hard coded anywhere in the Neural Override samples or attack infrastructure. The nmap scans all use 192.168.1 . 0/24 as the target IP address block, which is a generic placeholder value. API keys for different services are empty strings. The URL used for the BIOS infection uses a placeholder domain value your-c2 . com . The Monero payment address is truncated and non-functional. The Skibidi string in the bot's name is a term used in internet meme culture. While the display name Pomoshnik is Russian, the code's user-facing strings are all Ukrainian. This could reflect a bilingual author or just a name chosen for the bot without much thought. The OpenRouter API key redacted: sk-or-v1-d72076961 REDACTED is valid and returns access to 417 models. The malware only uses the free tier. Organizations should watch for outbound connections to both api.telegram . org and openrouter . ai from the same host, particularly from a Python process. Neither service has a legitimate role on most operational technology OT networks and devices. A Windows Registry Run key, scheduled tasks and a Windows service all named SystemHelper pointing to a Python script is a situation worth investigating. The SCADA module invocation, shown in Figure 4 python scada commander.py --command shutdown , is another specific string to hunt for in process creation logs. We did not find a sample of scada commander.py in the wild, and therefore could not evaluate its functionality. Neural Override is a working RAT with multiple capabilities, wrapped in a lot of AI-generated noise and non-functional code. While many of the capabilities work as expected, half of the codebase consists of stubs that crash for functions that delegate everything to the LLM at runtime. The development pattern tells the more interesting story. Our analysis of the samples suggests a single operator likely built a basic Telegram bot. They then plugged in an LLM API and asked the AI to expand the codebase. After they watched it triple overnight, the operator rolled it back four days later when the expanded version proved unreliable. The evolve bot function shows that the RAT asks the AI to rewrite itself. Even if malware is not fully functional, it still poses a security risk. With LLM assistance, it could eventually become fully functional. The SCADA task is still unknown. Neural Override contains the framework, and the AI autopilot can select it, but we have not yet discovered the protocol module that would talk to industrial devices. The combination of Telegram C2 and LLM API calls from the same host is a distinctive pattern worth adding to detection rules, particularly on networks anywhere near operational technology. Palo Alto Networks customers are better protected from the threats discussed above through the following products: - The Advanced WildFire https://docs.paloaltonetworks.com/wildfire machine-learning models and analysis techniques have been reviewed and updated in light of the indicators shared in this research. - Cortex Agentic Endpoint Security https://www.koi.ai/product/endpoint is designed to help discover every AI artifact and AI agent's activity across the agentic endpoint, assess its risk, enforce prevention and runtime controls and remediate violations. - Cortex XDR https://docs-cortex.paloaltonetworks.com/p/XDR and XSIAM https://docs-cortex.paloaltonetworks.com/p/XSIAM can help prevent threats discussed in this article by employing an advanced, on-device Small Language Model SLM for real-time semantic code comprehension. Trained on hundreds of millions of scripts and malicious packages, the model runs locally on standard enterprise CPUs to detect and block malicious Python scripts directly on the endpoint, ensuring no sensitive code or data leaves the machine. - Device Security https://docs.paloaltonetworks.com/iot/getting-started/iot-security-solution is designed to proactively protect the specialized device attack surface of operational environments, providing deep visibility into industrial protocols, actionable risk insights and adaptive security enforcement across all OT and IoT assets. - Idira Endpoint Privilege Manager EPM https://docs.cyberark.com/epm/latest/en/content/intro/introduction.htm can help enable enterprises to reduce risk, satisfy compliance and streamline operations. It helps implement least privilege via policy-driven elevation and removal of standing admin rights. It blocks risky actions such as executing unvetted applications and accessing the memory of other processes, while providing audit-ready evidence and unified identity governance. - Idira Secure Infrastructure Access SIA https://docs.cyberark.com/pam-self-hosted/latest/en/content/pasimp/integrate-with-sia.htm can help enforce zero standing privileges ZSP through just-in-time JIT provisioning, which grants temporary, tightly scoped access only as needed. Backed by continuous session recording and real-time command monitoring, SIA can detect high-risk actions before an attacker compromises critical systems. Unit 42 Threat Intel Services https://www.paloaltonetworks.com/unit42/threat-intelligence is designed to provide organizations with tailored intelligence and direct access to our analysts to help assess relevant threats, prioritize risks and determine appropriate actions. If you think you may have been compromised or have an urgent matter, get in touch with the Unit 42 Incident Response team https://start.paloaltonetworks.com/contact-unit42.html or call: - North America: Toll Free: +1 866 486-4842 866.4.UNIT42 - UK: +44.20.3743.3660 - Europe and Middle East: +31.20.299.3130 - Asia: +65.6983.8730 - Japan: +81.50.1790.0200 - Australia: +61.2.4062.7950 - India: 000 800 050 45107 - South Korea: +82.080.467.8774 Palo Alto Networks has shared these findings with our fellow Cyber Threat Alliance CTA members. CTA members use this intelligence to rapidly deploy protections to their customers and to systematically disrupt malicious cyber actors. Learn more about the Cyber Threat Alliance https://www.cyberthreatalliance.org . Neural Override RAT Family: SHA-256 hash: 7eb8b6b1b5934a5f1011320c27a25e30d69c76a8a338a42b74eeccb04080e06e File size: 59,843 bytes File type: Python 3.13 bytecode .pyc Filename: NEEDS CONFIRMATION File description: Neural Override Build 1, minimal Telegram bot, eight capabilities, no AI integration SHA-256 hash: e7c63a717539e2c78a1600dbb69ce0c48d9707832c8a747e9d211a6a711b1cd9 File size: 57,727 bytes File type: Python 3.13 bytecode .pyc Filename: neural override v3.py File description: Neural Override Build 2, adds OpenRouter AI, autopilot loop, 19 capabilities SHA-256 hash: cee0bc699073dbcf97b68e05110a29503b844748bcd2492cbae0f6882a3775e0 File size: 79,887 bytes File type: Python script UTF-8 Filename: neural override v9.2.py / neural override v9.3.py File description: Neural Override Build 3, Python source, capability explosion to 61 functions SHA-256 hash: fb9abe6285fc0152b35673b36a5fbf1893bf8592fac7e352357ab4bdeccd67f1 File size: 127,373 bytes File type: Python 3.13 bytecode .pyc Filename: neural override v9.py File description: Neural Override Build 4, compiled v9, largest build SHA256 hash: bfaa12c5196123fd159b631a08fb126b55cdd1a8236fe6d19f5c66530360367d File size: 214,234,082 bytes File type: PE32+ executable GUI x86-64, for MS Windows Filename: NeuralOverride.exe File description: Neural Override Build 5 v9.2 , PyInstaller 6.x onefile executable bundling Python 3.14, theHuggingFace inference stack for offline AI-assisted command processing, 92 command tokens. Full Suite SHA-256 hash: 5138f443dfd519c77adcfc1f86821cd1821a558e3e2c5a09b9cc6aab84639657 File size: 55,729 bytes File type: Python 3.13 bytecode .pyc Filename: neural override v3.py File description: Neural Override Build 6, deliberate rollback to v3 capability set, 19 functions Network Indicators: Telegram bot: @Skibidi 16 bot Bot ID: 7122631458 Telegram bot token: 7122631458:AAG9EWA4 REDACTED Telegram operator CHAT ID: 5841362765 Telegram operator account: @Xakmee display name XD Telegram operator channel: @Vsom Cheat Crark Meln Telegram webhook: manybot . io/webhook/7122631458/... LLM endpoint: openrouter . ai/api/v1/chat/completions LLM API key: sk-or-v1-d72076961 REDACTED LLM account ID: user 3CD8sdjJ7nNeLOGEDUrLU8B52WF LLM model: openrouter/free free tier Modbus port scan target: 192.168.1 . 0/24 generic placeholder value Host Indicators: Persistent binary name: SystemHelper.py / SystemHelper.exe Registry key: HKCU\Software\Microsoft\Windows\CurrentVersion\Run\SystemHelper Scheduled task: SystemHelper login trigger Scheduled task: SystemHelperPeriodic 30-minute interval Windows service: SystemHelper Startup folder: SystemHelper.py copied to shell:startup System32 copy: SystemHelper.exe copied to C:\Windows\System32\ USB spreading: autorun.inf - SystemHelper.py SCADA module invocation: python scada commander.py --command shutdown