RESTLEAF is a Windows implant/backdoor used in the North Korea–linked APT37 (aka ScarCruft/Ricochet Chollima/InkySquid) “Ruby Jumper” campaign (reported by Zscaler ThreatLabz; first identified December 2025). In the described intrusion chain, a malicious Windows LNK file launches PowerShell that carves embedded components (including a decoy document and scripts) and ultimately spawns the RESTLEAF Windows executable payload in-memory as the first-stage downloader/implant.
RESTLEAF’s distinguishing behavior is command-and-control over Zoho WorkDrive cloud storage. It authenticates to Zoho WorkDrive using token material (including embedded refresh-token credentials and hardcoded client_id/client_secret/refresh_token) to obtain a valid access token for API operations. After successful authentication, RESTLEAF attempts to download shellcode (noted as “AAA.bin”) from Zoho WorkDrive and executes it via process injection (allocating executable memory, copying the payload, and transferring execution to the shellcode entry point). RESTLEAF is also described as beaconing by creating timestamped files in a Zoho WorkDrive folder named “Second,” with filenames matching the pattern “lion [timestamp].”
RESTLEAF is part of a multi-component toolkit used to breach segmented/air-gapped environments: it fetches further payloads after authentication, including the next-stage Ruby-based loader SNAKEDROPPER, which installs a disguised Ruby 3.3.0 runtime and persistence (scheduled task “rubyupdatecheck”), and later stages that weaponize removable media (THUMBSBD/VIRUSTASK) and deliver surveillance tooling (e.g., FOOTWINE for keylogging and audio/video capture).
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The full attack chain flows from the initial LNK file through RESTLEAF as the first-stage downloader...
The full attack chain flows from the initial LNK file through RESTLEAF as the first-stage downloader...
11 distinct techniques documented for this family, organized by ATT&CK tactic.
“The attack begins… with a malicious Windows shortcut file (LNK) that, once opened by a victim, silently drops and executes a series of payloads…”
“…opens a malicious Windows shortcut file (LNK), which deploys a PowerShell script that extracts payloads embedded in the LNK file.”
"...including ... a batch file."; "...the batch script launching PowerShell..."
“APT37 has abused LNKs as an initial vector for years. In the Ruby Jumper campaign, when a victim opens a malicious LNK file, it launches a PowerShell command…”
“…shellcode is executed through a classic process injection technique. RESTLEAF allocates executable memory, copies the downloaded payload into this region, and transfers execution…”
“…shellcode is executed through a classic process injection technique. RESTLEAF allocates executable memory, copies the downloaded payload into this region, and transfers execution…”
“…second-stage shellcode that is decrypted using a 1-byte XOR key… reflectively loads an embedded Windows executable payload that is also decoded using a 1-byte XOR key.”
"The Windows executable payload, named RESTLEAF, is spawned in memory..."
“RESTLEAF uses Zoho WorkDrive cloud storage for C2 communications… enabling subsequent API operations with the Zoho WorkDrive infrastructure.”
“RESTLEAF… uses Zoho WorkDrive for C2 communications to fetch additional payloads…”
"...backdoor that uses Zoho WorkDrive for command-and-control (C2)..."; "...weaponizes legitimate cloud providers, including Google Drive, Microsoft OneDrive, pCloud, and BackBlaze, for C2..."
"...uses Zoho WorkDrive for command-and-control (C2) communications to fetch more payloads..."; "...downloads shellcode..."; "...downloading a secondary payload..."
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.