FLATROOF
- Type
- Backdoor
- Capabilities
- Credential theftSession hijackingExfiltrationPersistencePost exploitationDefense evasionReconnaissanceProcess injection
- Delivery
- Lure
- Platforms
- macOSLinuxWindows
FLATROOF is a Rust-based, cross-platform backdoor with embedded Python information-stealing components targeting macOS, Linux, and Windows. It has been used in intrusions attributed to the North Korean threat actor TraderTraitor, also tracked as Jade Sleet and UNC4899. Targets include cryptocurrency and Web3 developers, cloud engineers, DevOps personnel, and an Indian IT services provider without cryptocurrency ties.
FLATROOF provides arbitrary command execution, process and file management, host reconnaissance, payload downloading, data uploading, persistence management, and self-removal. Its Python components collect browser credentials, session cookies, browsing history, autofill information, shell histories, installed applications, running processes, and system information. Platform-specific collection includes macOS keychain data, Linux keyring material, Windows Credential Manager entries, and cryptocurrency-wallet browser-extension data. A Windows component injects an executable into a suspended Chromium process to recover browser encryption keys. Collected information is compressed for exfiltration.
Command-and-control options include the Telegram Bot API, GitHub API polling, and attacker-controlled HTTP webhooks, with channel availability varying by configuration. Persistence mechanisms include Linux services, macOS shell-logout hooks, and Windows Run entries. FLATROOF also installs the ROOFDECK backdoor for follow-on access.
Observed delivery chains use recruitment-themed coding assessments and weaponized Terraform projects that retrieve trojanized providers from attacker-controlled registries. The malicious provider retains legitimate functionality while launching a Bash loader that selects operating-system- and architecture-specific payloads. Executables are concealed in encrypted font containers; macOS delivery additionally removes quarantine attributes and applies ad hoc signing. Payloads masquerade as legitimate software components.
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.
92.242.187.214 : enregistré sous tinklify.com, certificat contenant arusupport-region1-webhook.online, identifié par Zscaler comme C2 FLATROOF.
Techniques & procedures
47 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.
FLATROOF ... can be used to execute arbitrary shell commands.
FLATROOF is a Rust backdoor that runs Python credential stealers and then installs a second backdoor, ROOFDECK.
“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.
persistence: ~/.zlogout hook (macOS)
Privilege Escalation
3 techniques
Privilege Escalation
The Windows stealer hollows Chrome, Brave, or Edge processes.
TraderTraitor collected API keys and escalated privileges to expand into the victim's Amazon Web Services and Google Cloud Platform environments.
persistence: ~/.zlogout hook (macOS)
Stealth
9 techniques
Stealth
AES-encrypted executable after @@ENDFONT@@
Base64-encoded, AES-256-CBC-encrypted executable.
It launches the payload detached with the argument --type=renderer, so a process listing shows what looks like a Chromium renderer.
SystemUpdate, imagent
Each hidden in a file named like a font: decoy WOFF data, an @@ENDFONT@@ marker, then a Base64-encoded, AES-256-CBC-encrypted executable.
The Windows stealer hollows Chrome, Brave, or Edge processes.
The attackers later deployed a stripped ROOFDECK variant called loginwindow, removed the earlier implants, and continued beaconing through June 1.
TraderTraitor collected API keys and escalated privileges to expand into the victim's Amazon Web Services and Google Cloud Platform environments.
Loader splits the container at @@ENDFONT@@, Base64-decodes and AES-256-CBC decrypts it with a hardcoded passphrase.
Defense Impairment
2 techniques
Defense Impairment
On macOS the loader strips com.apple.quarantine with xattr.
Ad-hoc signs the file with codesign -s -.
Credential Access
8 techniques
Credential Access
Browser cookie theft for session reuse
".config/fish/fish_history" : "fish_history_copy.txt" , # T1552
TraderTraitor used the backdoors to collect API keys from the organization; ROOFDECK find searches for high-value data including wallets, keys, and documents.
Unsecured Credentials: Shell History T1552.003 Shell history collection
The backdoor also carries a data-harvesting Python module... [to gather] Chrome, Brave, Firefox, and Safari browser data... [and] a raw copy of login.keychain-db.
src = Path . home () / "Library/Keychains/login.keychain-db" # T1555.001
[FLATROOF's] capabilities also include harvesting browser information.
Credentials from Password Stores: Keychain / Windows Credential Manager T1555.001, T1555.004
Discovery
8 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
The Python stealers collect browser-related data.
The stealers enumerate installed applications.
FLATROOF checks paths and processes associated with Cortex XDR and Traps.
Collection
2 techniques
Collection
“FLATROOF ... can exfiltrate browser data and system information.”
The Windows stealer invokes PowerShell Compress-Archive.
Command and Control
7 techniques
Command and Control
Web Service: Dead Drop Resolver / Fallback Channels T1102.001, T1008
FLATROOF uses Telegram for command-and-control, while ROOFDECK uses the Nostr protocol for decentralized C2 communications.
Malware uses HTTP or HTTPS for C2 communication.
“FLATROOF, which uses Telegram for command and control.”
FLATROOF, a backdoor that uses Telegram for command-and-control (C2).
“When developers ran the ‘terraform init’ command, their systems downloaded attacker-controlled modules. This led to the deployment of two Rust-based macOS backdoors.”
FLATROOF uses an AES-encrypted C2 channel.
Exfiltration
2 techniques
Exfiltration
FLATROOF exfiltrates files and harvested data through Telegram; ROOFDECK upload exfiltrates local files to its C2.
FLATROOF... can... upload files through Telegram.
Observables
61 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
25 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.