ROOFDECK
- Type
- RAT
- Capabilities
- ExfiltrationPersistenceLateral movementPost exploitationDefense evasionReconnaissance
- Delivery
- Lure
- Platforms
- macOSWindows
ROOFDECK is a Rust-based remote-access trojan and backdoor with macOS and Windows variants. It is associated with operations attributed to the North Korean threat actor TraderTraitor, also tracked as Jade Sleet and UNC4899. It is deployed as a follow-on implant after initial compromise, including in recruitment-themed campaigns that use malicious coding assessments and trojanized Terraform providers. These infection chains also deploy FLATROOF, which can subsequently install ROOFDECK. Observed targets include cryptocurrency and Web3 organizations and an India-based IT services provider, particularly developer and DevOps workstations with access to cloud infrastructure and source code.
ROOFDECK supports arbitrary command execution, interactive reverse shells, reverse SSH access, host and process reconnaissance, disk and filesystem discovery, file manipulation and transfer, data exfiltration, and clipboard reading and writing. It also provides background-task management, persistence management, configuration changes, self-updating, and self-removal. macOS deployments establish persistence through LaunchAgents and masquerade as legitimate Apple components. Operators have replaced existing implants with stripped ROOFDECK variants that remove earlier binaries and omit debugging information to impede analysis.
A distinguishing feature is resilient command-and-control discovery. ROOFDECK can obtain server information from local configuration, retrieve a signed and encrypted server address from Pastebin, or consult attacker-controlled Nostr profile metadata. Signature verification protects the recovered configuration against unauthorized replacement. After resolving its server address, documented variants communicate through HTTP and WebSocket endpoints; Nostr also serves as decentralized command-and-control infrastructure in observed macOS deployments.
Associated threat actors
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.
In short: a malicious code assessment task -> trojanized Terraform registry to a target -> cross-platform backdoors, FLATROOF + ROOFDECK.
La recherche a débuté avec deux paires IP/domaine identifiées comme C2 ROOFDECK : 85.137.56.245 — grenight.com ; 45.11.59.140 — storage.hubpage.cloud.
Techniques & procedures
38 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
4 techniques
Initial Access
TraderTraitor collected API keys and escalated privileges to expand into the victim's Amazon Web Services and Google Cloud Platform environments.
A separate toolset using the same lure drops the FLATROOF and ROOFDECK backdoors through a trojanized Terraform provider.
“[They created] fake GitHub repositories with malicious Terraform dependency lock files. When developers ran the ‘terraform init’ command, their systems downloaded attacker-controlled modules.”
“TraderTraitor, employed social engineering tactics, using job interview lures to target individuals in DevOps, cryptocurrency, and financial technology roles.”
Execution
5 techniques
Execution
FLATROOF ... is capable of command execution ... ROOFDECK ... is capable of ... remote shell access.
sh -c ./safari_updater &
Native API T1106 Provider and ROOFDECK RL
“When developers ran the ‘terraform init’ command, their systems downloaded attacker-controlled modules.”
The malicious implants remained undetected until March 29, when they were triggered by the victim launching a workspace within the Cursor development environment.
Persistence
2 techniques
Persistence
TraderTraitor collected API keys and escalated privileges to expand into the victim's Amazon Web Services and Google Cloud Platform environments.
ROOFDECK ... facilitat[es] ... persistent access through the use of LaunchAgents.
Privilege Escalation
4 techniques
Privilege Escalation
TraderTraitor collected API keys and escalated privileges to expand into the victim's Amazon Web Services and Google Cloud Platform environments.
ROOFDECK ... facilitat[es] ... persistent access through the use of LaunchAgents.
Abuse Elevation Control Mechanism: Setuid and Setgid / Sudo T1548.001, T1548.003 Provider and ROOFDECK RL
Note Sudo and Sudo Caching (T1548.003), Setuid and Setgid (T1548.001) and File Deletion (T1070.004).
Stealth
6 techniques
Stealth
The new ROOFDECK variant removed symbols and debug information to make detection more difficult.
The font-contained payload uses Base64 and AES-256-CBC.
FLATROOF implant ... has been dropped as SystemUpdate ... ROOFDECK, which was deployed as iSync utility.
SystemUpdate, imagent
Loader and backdoor cleanup; self-destructing tooling in the theft
TraderTraitor collected API keys and escalated privileges to expand into the victim's Amazon Web Services and Google Cloud Platform environments.
Defense Impairment
1 technique
Defense Impairment
FLATROOF suppresses Gatekeeper by removing the com.apple.quarantine attribute from ROOFDECK and sets the executable bit on it; the second implant runs with no signature check and no user prompt.
Credential Access
2 techniques
Credential Access
OS Credential Dumping: /etc/passwd and /etc/shadow T1003.008 ROOFDECK and RHA siblings RL
TraderTraitor used the backdoors to collect API keys from the organization; ROOFDECK find searches for high-value data including wallets, keys, and documents.
Discovery
5 techniques
Discovery
Network Configuration Discovery ... T1016
The stealers enumerate running processes using ps aux or tasklist.
System Information / File and Directory / Account / Network Configuration Discovery
T1082, T1083, T1087.001, T1016 All RL samples RL
System Information / File and Directory / Account / Network Configuration Discovery T1082, T1083, T1087.001, T1016
Collection
4 techniques
Collection
ROOFDECK... can search for valuable files... [and] transfer data.
ROOFDECK reads clipboard contents on Windows and macOS.
zip / unzip — Create/extract archives incl. AES-encrypted zips... Used to stage encrypted exfiltration bundles or unpack downloaded archives.
ROOFDECK... create[s] encrypted archives.
Command and Control
8 techniques
Command and Control
Web Service: Dead Drop Resolver / Fallback Channels T1102.001, T1008
“ROOFDECK, which uses the Nostr protocol for decentralized command and control.”
« Réponse HTTP identique : HTTP/1.1 404 Not Found, Content-Type: application/json, Content-Length: 22, corps {"detail":"Not Found"} » ; « 13 adresses IP sur les ports 443 et 10443 ».
FLATROOF... upload[s] files through Telegram... ROOFDECK... resolves command servers through the decentralized Nostr network.
C2 resolved via Nostr profile -> Pastebin (RSA-signed) -> delay[.]servehttp[.]com
ROOFDECK retrieves live Nostr relays, locates an operator profile using a configured public key, and uses the profile website field as its C2 URL.
“When developers ran the ‘terraform init’ command, their systems downloaded attacker-controlled modules. This led to the deployment of two Rust-based macOS backdoors.”
« T1573.002 — Encrypted Channel: Asymmetric Cryptography (Command and Control) » ; « certificats TLS générés avec mkcert ».
Exfiltration
1 technique
Exfiltration
ROOFDECK ... facilitat[es] ... file transfer exfiltration of data.
Observables
57 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
28 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.