An LLM role-playing community was targeted with a backdoor disguised as an âAI Waifuâ feature that provides arbitrary code execution and file access via a local agent listening on 127.0.0.1:9999 and 127.0.0.1:4444, enabling remote command execution, file exfiltration, and staged payload delivery. Publicly disclosed IoCs include SHA256 hashes, filenames, local HTTP endpoints, registry persistence key FakeUpdater, and hosting URLs linked to actors using aliases such as KazePsi/PsionicZephyr and Enclave0775. #AIWaifuRAT #PsionicZephyr
Keypoints
- The âAI Waifu RATâ was distributed in an LLM role-playing community as a âmetaâ feature enabling the AI to read files and execute code on the host.
- The local agent listens on fixed ports (127.0.0.1:9999 and 127.0.0.1:4444) and exposes endpoints /execute_trusted, /execute, and /readfile allowing command execution and file exfiltration.
- Social engineering was the primary distribution vector: the author urged users to whitelist or disable antivirus and presented themselves as a âCTF playerâ researcher.
- A related dropper/stager (nulla_re.exe) requests admin privileges, writes a Run key (FakeUpdater) for persistence, contains embedded shellcode and a reverse TCP stager, and can download/execute stage2 payloads.
- Multiple primitive anti-analysis techniques (anti-VM, anti-debug), outdated APIs, and masquerading as CTF challenges were used to hinder scrutiny and deceive analysts.
- Threat actors used multiple hosting providers and accounts (GitGud, GitHub, Mega, OneDrive, IPFS intent) to evade takedown and employed compression/encryption and compile-after-delivery tactics.
- Attribution points to low-skilled but socially adept actors using aliases KazePsi / PsionicZephyr and Enclave0775; incident reported to hosting providers and CERTs and repositories were takedown.
MITRE Techniques
- [T1566] Phishing â The malware was distributed through community posts and social engineering posing as a desirable research project (ââŚpresented themself as a helpful âCTF playerâ and âtechnical researcherââŚâ).
- [T1204.002] Malicious File â Users were asked to run executable files presented as features (âthe âmalicious fileâ is disguised as a desirable software enhancementâ).
- [T1036] Masquerading â The author disguised malicious binaries as legitimate âCTF Challengeâ and âAI characterâ artifacts (âThis so-called âCTF Challengeâ is essentially a disguised malicious program / scareware / stagerâ).
- [T1071.001] Web Protocols â The agent accepts plaintext HTTP requests from the LLM/web UI to the local C2 endpoints (âcommandsâŚsent to the local agent as plaintext HTTP requestsâ).
- [T1059.001] PowerShell â /execute_trusted spawns powershell.exe via popen to run attacker-supplied commands (âspawning a powershell.exe process via popen for executionâ).
- [T1005] Data from Local System â The /readfile endpoint reads arbitrary local files and returns contents to C2 (âuses its path field as a file path argument, and reads the fileâs contentsâŚsending it back to the C&C sourceâ).
- [T1041] Exfiltration Over C2 Channel â Read file contents are sent back to the C2 over the agent channel (âsending it back to the C&C sourceâ).
- [T1562.001] Disable or Modify Tools â The author instructs users to whitelist or disable antivirus to avoid detection (âIf your antivirus flags this, add it to the whitelist or turn it off temporarilyâ).
- [T1059.007] JavaScript â Prior web-based components executed untrusted LLM-generated code using eval/new Function(), creating remote code execution on the page (âdirectly execute LLM-generated code in the frontend JavaScript using an eval()-like new Function()â).
- [T1547.001] Registry Run Keys / Startup Folder â The challenge writes a Run key for persistence (FakeUpdater) (âwriting to the registry to establish persistenceâŚFakeUpdater register keyâ).
- [T1673] Virtual Machine Discovery â The binary queries SystemProductName to detect virtual machine environments (âextract the SystemProductName field from the registry ⌠to check for strings from well-known virtual machine vendorsâ).
- [T1622] Debugger Evasion â The program uses checks like NtQueryInformationProcess, CheckRemoteDebuggerPresent, IsDebuggerPresent, and PEB->BeingDebugged (âclassic, entry-level debugger detection methodsâŚCheckRemoteDebuggerPresent and IsDebuggerPresentâ).
- [T1497.001] System Checks â Uses timing checks and window enumeration to detect analyst environments (âenumerating window class names, and using simple timing checks based on Windows API callsâ).
- [T1529] System Shutdown/Reboot â Malicious branch calls system() to forcibly shut down the userâs computer on consecutive wrong answers (âprogram immediately calls a system API to execute a shutdown commandâ).
- [T1207.009] Embedded Payloads â The challenge contains hardcoded Metasploit reverse TCP shellcode embedded and executed (âfills it with hardcoded metasploit shellcode, then jumps to the shellcode, which is a classic reverse TCP shellcodeâ).
- [T1620] Reflective Code Loading â The shellcode receives and executes a second-stage payload over a local socket (âlistens on 127.0.0.1:4444 and receives the second stage payload through the socket and then executes itâ).
- [T1027.015] Compression â Actors distributed payloads inside compressed/encrypted archives to evade hash detection (âbypass hash-based detectionâŚCompressionâ).
- [T1027.013] Encrypted/Encoded File â Use of encrypted/encoded files and passwords for delivered archives (âfile passwords listed for delivered archivesâ).
- [T1027.004] Compile After Delivery â Actors planned to deliver source and compile later to change behavior post-delivery (âCompile After Delivery (T1027.004: Compile After Delivery)â).
- [T1027.003] Steganography â Actors attempted additional evasion via steganography (âattempted further evasion using steganographyâ).
- [T1608.001] Upload Malware â Actors intended to host files on decentralized storage (IPFS) to resist takedown (âplan to further host the malicious files on the InterPlanetary File System (IPFS)â).
Indicators of Compromise
- [File Hashes] malware samples and archives â f64dbd93âŚ02607c3088f5364âŚ, fdf461a6bd7e806bâŚac6f9, and 11b07ef15945d2f1e7cf192e49cbf670 (and multiple other listed hashes).
- [File Names] distributed binaries â js_windows_executor.exe, nulla_re.exe, android_server.py.
- [Network] local C2 endpoints / stager ports â HTTP to 127.0.0.1:9999 (agent C2), HTTP to 127.0.0.1:4444 (reverse TCP stager).
- [Persistence] Registry Run key â HKCUSoftwareMicrosoftWindowsCurrentVersionRun Value Name: FakeUpdater (used to persist dropped FakeUpdater.exe).
- [Hosting URLs] distribution locations (takedown noted) â https://gitgud.io/KazePsi/âŚ/nulla_re.exe, https://github.com/PsionicZephyr/Files/âŚ/js_windows_executor.exe, and multiple Mega/OneDrive links (all listed as already takedown).
- [Actor Aliases] threat actor identifiers â KazePsi, PsionicZephyr, psinokaze, Enclave0775 (and variants including Chinese display names and [email protected]).