
Zscaler ThreatLabz has uncovered a July 2026 campaign that hides malware in a trojanized Terraform provider. It targets developer workstations and CI/CD systems.
The activity overlaps heavily with TraderTraitor, the North Korean state-backed group also tracked as Jade Sleet, UNC4899, Pressure Chollima and Slow Pisces. It also overlaps with the earlier KelpDAO incident.
ThreatLabz says it lacks unique code, infrastructure or cryptographic links to attribute the campaign to the group with high confidence.
Terraform provider malware
According to research published by Zscaler ThreatLabz, the initial payload is a Go binary named terraform-provider-awsbeta_v1.0.0, which poses as an AWS provider.
The attackers added a malicious package called awsbeta and called it directly from main. The code therefore runs as soon as Terraform loads the provider.
A session.lock file in the temp directory acts as a run-once marker. If the file is absent, the provider downloads a Bash script from the lookalike domain hashicorp-terraform[.]io.
It saves the script as safari_updater, makes it executable and launches it detached through sh -c. The provider keeps behaving normally, which makes the compromise harder to spot.
The Bash loader supports macOS, Linux and Windows environments such as Cygwin, MinGW or MSYS. It builds a filename from the OS and CPU architecture. Linux maps to NotoSansCJK, macOS to HiraginoSans and Windows to MalgunGothic.
Styles such as Bold, Regular, ExtraBold and Italic denote the architecture, giving names like HiraginoSans-Regular.woff.
The loader tries a dynamic DNS host, a GitHub repository and a Vercel site in turn. Each .woff file holds decoy font data, then the marker @@ENDFONT@@, then an encrypted executable.
The loader Base64-decodes the data and decrypts it with AES-256-CBC. It can use Python, Node.js, Perl or OpenSSL for this. On macOS it removes the quarantine attribute and applies an ad hoc code signature.
The payload is FLATROOF, a Rust backdoor that shares one code layout across all three platforms. It decrypts its configuration with PBKDF2-HMAC-SHA256 and AES-256-GCM.
It supports three C2 channels: the Telegram Bot API, GitHub API polling and an HTTP webhook. Persistence differs by platform: a service on Linux, zlogout on macOS and a registry Run value on Windows.
FLATROOF also deploys Python stealers that target Chromium and Firefox databases holding credentials, cookies and history, shell history, installed applications and running processes, the macOS login keychain and Safari data, Linux keyring files, Windows Credential Manager entries, as well as MetaMask, Phantom, Trust Wallet and Rabby extension data.
The Windows script also injects an XOR-decoded payload into a suspended Chromium process to recover browser master keys. Its verbose comments, emojis and repetitive exception handling suggest an LLM helped write parts of the code.
The final stage is ROOFDECK, seen in Windows and macOS variants. It finds its C2 address through three layers. It reads a local configuration file first. It then fetches an encrypted, RSA-signed address from Pastebin.
If Pastebin fails, it queries Nostr profile metadata. Signature verification stops third parties from redirecting infected hosts. Once the address resolves, ROOFDECK talks to the server over HTTP and WebSocket.
Its features include a reverse shell, file operations, clipboard access, persistence control and self-destruction.
Indicators
| Type | Indicator |
| Domain | hashicorp-terraform[.]io |
| Domain | arusupport-region1-webhook[.]online |
| Domain | supportaru.serveftp[.]com |
| Domain | delay.servehttp[.]com |
| URL | hxxps://pastebin[.]com/raw/3yptBDhL |
| MD5 | 9d78ece09457907b730d139e4e0c64dd (trojanized provider) |
| MD5 | 73adaea97f003735335505858c1c6def (safari_updater) |
| MD5 | 2b81aceab0142472d94eb42e500b27b1 (macOS ROOFDECK) |
Organizations should restrict untrusted Terraform providers, verify provider checksums and monitor for unexpected process activity on developer machines. Defenders can also watch for safari_updater and session.lock in temp directories.
Zscaler detects the malware as OSX.Backdoor.FLATROOF and OSX.Backdoor.ROOFDECK.
The post Trojanized Terraform Provider Delivers Cross-Platform Malware to Steal Developer Credentials appeared first on Cyber Security News.
Discover more from RSS Feeds Cloud
Subscribe to get the latest posts sent to your email.
