ThreatLabz discovered a malicious Terraform provider in July 2026 that delivers credential stealers and backdoors to developer systems.
The campaign uses trusted infrastructure workflows to infect macOS, Linux, and Windows devices, exposing sensitive browser data, terminal histories, and cryptocurrency wallet information.
The activity overlaps with campaigns associated with TraderTraitor, a North Korean threat group known for targeting cryptocurrency businesses.
However, ThreatLabz said it lacked unique code, infrastructure, or cryptographic evidence needed to independently attribute this campaign with high confidence.
Researchers identified FLATROOF and ROOFDECK, two malware families also documented in the KelpDAO incident.
SentinelLabs separately reported related backdoors and weaponized Terraform interview projects, including activity affecting an Indian IT services company without cryptocurrency ties.
Hackers Weaponize Terraform Providers
The Go executable, named terraform-provider-awsbeta_v1.0.0, pretends to be an AWS provider. Terraform providers are executable plugins that connect infrastructure configurations with cloud platforms and other services.
Attackers added a malicious package that runs when Terraform starts the provider. The binary retains normal provider functions, helping the infection remain unnoticed. ThreatLabz could not determine how this particular provider reached the victim.

Before executing, the malware checks for a temporary session.lock file. If absent, it downloads a Bash loader from hashicorp-terraform[.]io, saves it as safari_updater, launches it through sh -c, and creates the marker to prevent repeated execution.
The loader selects its next payload using the operating system and processor architecture. Windows support requires a compatible Unix-like shell environment, such as Cygwin, MinGW, or MSYS.
Payloads masquerade as .woff font files. Each contains decoy font data followed by the @@ENDFONT@@ marker and an encrypted executable. The loader extracts the hidden content, decodes it, and uses AES-256-CBC decryption.
Downloads fall back across a dynamic DNS host, GitHub, and Vercel. On macOS, the loader removes the quarantine attribute and applies an ad hoc signature before execution.

The decrypted payload installs FLATROOF, a Rust backdoor supporting command execution, file transfers, system discovery, and additional downloads.
Its code supports Telegram, GitHub, and HTTP webhook communication, although individual samples do not configure every channel.
Persistence varies by platform: Linux services, a macOS shell logout mechanism, and Windows registry Run entries.
Embedded Python scripts collect browser databases containing credentials, cookies, history, and autofill records. They also gather terminal history, system details, installed applications, and running processes.
Platform-specific collection includes macOS keychain files, Linux keyring data, and Windows Credential Manager entries. Windows scripts additionally target MetaMask, Phantom, Trust Wallet, and Rabby browser extensions, zscaler said.
Indicators of Compromise
| File hash | File name | Description |
|---|---|---|
9d78ece09457907b730d139e4e0c64dd | terraform-provider-awsbeta_v1.0.0 | Trojanized Terraform provider |
73adaea97f003735335505858c1c6def | safari_updater | Cross-platform Bash loader |
Note: IP addresses and domains are intentionally defanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.
Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team