AI-Generated Payloads Power CL-UNK-1211 Attacks on Government Organizations
Detection stack
- AIDR
- Alert
- ETL
- Query
Summary
A sophisticated threat cluster tracked as CL-UNK-1211 is targeting government entities with AI-generated payloads and scripts. The attackers primarily focus on Linux environments to perform reconnaissance, dump databases, and exfiltrate sensitive information, including mailbox data. The campaign features custom Go-based RATs, web shells, and advanced anti-forensic techniques designed to reduce visibility.
Investigation
Unit 42 analyzed the attack chain from initial access through web shells to lateral movement and data exfiltration. The investigation uncovered distinctive AI-generated conversational comments embedded in malicious scripts, indicating automated or LLM-assisted code creation. Analysts also identified custom malware known as SysGoRAT along with multiple in-memory reverse shell techniques.
Mitigation
Organizations should enforce strict outbound firewall policies to prevent unauthorized reverse shells and data exfiltration. Hardening Linux environments through timely patching of vulnerabilities such as PwnKit and securing PHP configurations, including auto_prepend_file, is critical. Deploying advanced endpoint protection capable of identifying anomalous process behavior and log tampering is also strongly recommended.
Response
When malicious activity is detected, incident responders should isolate compromised Linux hosts and review all PHP and shell configurations for unauthorized changes. Conduct a thorough examination of system logs while accounting for possible attacker attempts to clear or manipulate them. Perform a comprehensive credential reset for all administrative and service accounts identified across the affected environment.
Attack Flow
Detections
Possible Data Exfiltration / Reverse Shell via Bash (via cmdline)
Possible Command Execution via SQL Extended Stored Procedure xp_cmdshell (via cmdline)
Possible Python (GTFOBin) Activity by Use of Unusual Command Arguments (via cmdline)
Possible Data Infiltration / Exfiltration / C2 via Third Party Services / Tools (via proxy)
Possible Data Infiltration / Exfiltration / C2 via Third Party Services / Tools (via dns)
Possible SSH Known Hosts Discovery Attempt [Linux] (via cmdline)
Suspicious Chmod Execution Pointing To Suspicious Directories (via cmdline)
Possible Linux History File Manipulation (via cmdline)
Possible Base64 Encoded Strings Manipulation (via cmdline)
Downloads to Suspicious Folders (via cmdline)
Linux Script Was Created In Temporary Folders (via file_event)
IOCs (HashSha256) to detect: Unit 42 Investigation of CL-UNK-1211: AI-Enabled Campaign Targeting Linux Environments
IOCs (SourceIP) to detect: Unit 42 Investigation of CL-UNK-1211: AI-Enabled Campaign Targeting Linux Environments
IOCs (DestinationIP) to detect: Unit 42 Investigation of CL-UNK-1211: AI-Enabled Campaign Targeting Linux Environments
Potential Reverse Shell Execution via Named Pipe [Linux Process Creation]
Modification of PHP auto_prepend_file for Backdoor Access [Webserver]
Defense Evasion by Terminating Cortex XDR Processes [Linux Process Creation]
Simulation Execution
-
Attack Narrative & Commands: The adversary has gained initial access to a Linux-based production server. To ensure persistence and prevent their activities from being flagged by the EDR, they intend to disable the Cortex XDR agent. The attacker first uses
pgrepto identify the running processes associated with “cortex”. Once the names are confirmed, they usepkillto send a termination signal to all processes matching that pattern. This is a classic “Living off the Land” approach using standard system binaries to avoid triggering signature-based malware alerts. -
Regression Test Script:
#!/bin/bash # Simulation script to trigger the "Defense Evasion by Terminating Cortex XDR Processes" rule. echo "[+] Starting Simulation: Identifying Cortex processes..." # This generates the 'pgrep cortex' telemetry pgrep cortex || echo "[-] No cortex process found, but telemetry generated." echo "[+] Simulating Attack: Attempting to kill Cortex processes..." # This generates the 'pkill cortex' telemetry pkill cortex || echo "[-] pkill executed (target likely not running)." echo "[+] Simulation Complete." -
Cleanup Commands:
# No persistent changes are made by this simulation script. # If a process was actually stopped (in a real test environment), # the service would need to be restarted: # sudo systemctl start cortex-agent echo "[+] Cleanup: No artifacts to remove."