Threat reportSupply ChainTL-2026-3071
Suspected TraderTraitor Group Uses Trojanized Terraform Provider to Deliver Cross-Platform FLATROOF and ROOFDECK Malware
Zscaler ThreatLabz reports a campaign in which a trojanized Terraform AWS provider (terraform-provider-awsbeta_v1.0.0) executes malicious code on load, fetches a Bash loader that retrieves encrypted payloads hidden inside decoy .woff font files, and installs the Rust-based FLATROOF backdoor/stealer and the ROOFDECK backdoor on Windows, macOS and Linux.
Key facts
| Identifiers | TL-2026-3071 |
|---|---|
| Also known as | FLATROOF, ROOFDECK, Trojanized Terraform Provider Campaign |
| Severity | HIGH |
| Affected products | HashiCorp Terraform (provider plugin ecosystem; trojanized terraform-provider-awsbeta_v1.0.0); Multiple Developer and CI/CD hosts running Windows, macOS and Linux (x86_64, arm64, ARM, x86) |
| Weaknesses (CWE) | CWE-506, CWE-494 |
| Attribution | TraderTraitor (low confidence) |
| Nation-state nexus | North Korea |
| Malware | FLATROOF, ROOFDECK |
| MITRE ATT&CK techniques | T1008 Fallback Channels, T1027.009 Embedded Payloads, T1027.013 Encrypted/Encoded File, T1036.005 Match Legitimate Resource Name or Location, T1036.008 Masquerade File Type, T1055.012 Process Hollowing, T1057 Process Discovery, T1059.004 Unix Shell, T1059.006 Python, T1070.004 File Deletion, T1071.001 Web Protocols, T1082 System Information Discovery and 13 more in the attack flow |
| Motivation | FINANCIAL |
| Target sectors | cryptocurrency, web3, technology, it-services, finance |
| Target regions | Global, india |
| Detection rules | 9 (1 shown free) |
| Sources | 7 cited sources |
Detection coverage
As of 2026-10-09, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3071 across Splunk SPL, Microsoft KQL and Sigma, covering 55 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: FLATROOF/ROOFDECK Persistence and Implant Path Artifacts — Post-Exploitation
Detects FLATROOF persistence and install artifacts: the Windows Run value powershell-config-service, the masquerading Windows implant %AppData%\Local\Microsoft\Edge\service.exe, the Linux implant $HOME/.config/git/update and the snap-imagent systemd service. These names are hard-coded in the FLATROOF configuration and are not used by legitimate software.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1547.001, T1543.002, T1546.004, T1036.005
- Data sources: windows_sysmon:XmlWinEventLog:Microsoft-Windows-Sysmon/Operational, sysmon_for_linux:sysmon:linux, microsoft_defender_endpoint:DeviceRegistryEvents, microsoft_defender_endpoint:DeviceFileEvents
- Severity: high
- Confidence: high
Splunk SPL
(index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" (EventCode=11 OR EventCode=12 OR EventCode=13)) OR (index=linux sourcetype="sysmon:linux" EventID=11)
| eval target=lower(coalesce(TargetObject,TargetFilename))
| eval persistence=case(
match(target,"run.powershell-config-service$"),"windows_run_key_powershell-config-service",
match(target,"microsoft.edge.service[.]exe$"),"windows_flatroof_service_exe",
match(target,"/[.]config/git/update$"),"linux_flatroof_payload",
match(target,"(systemd|init[.]d).*snap-imagent"),"linux_snap-imagent_service"
)
| where isnotnull(persistence)
| stats count min(_time) as firstTime max(_time) as lastTime values(Image) as writer_process values(target) as artifact by host, user, persistence
| convert ctime(firstTime) ctime(lastTime)Microsoft KQL
let run_key = DeviceRegistryEvents
| where Timestamp > ago(24h)
| where ActionType == 'RegistryValueSet'
| where RegistryValueName =~ 'powershell-config-service'
| project Timestamp, DeviceName, Signal='run_key_powershell-config-service', Actor=InitiatingProcessFileName, ActorCommand=InitiatingProcessCommandLine, Artifact=strcat(RegistryKey, ' :: ', RegistryValueName, ' = ', RegistryValueData);
let implant_files = DeviceFileEvents
| where Timestamp > ago(24h)
| where ActionType in ('FileCreated','FileModified','FileRenamed')
| where (FolderPath has '/.config/git/' and FileName =~ 'update')
or (FolderPath has '/Library/com.apple.iTunesCloud/' and FileName =~ 'SystemUpdate')
or (FolderPath has '/Library/com.apple.internal.ck/' and FileName =~ 'iSync')
or (FolderPath has '/Library/com.apple.appleaccountd/' and FileName =~ 'loginwindow')
or (FolderPath matches regex @'(?i)Microsoft.Edge.service[.]exe$')
or FileName =~ 'snap-imagent.service'
or (FileName =~ '.zlogout' and FolderPath startswith '/Users/' and InitiatingProcessFileName !in~ ('vim','nvim','nano','code','zsh','bash','sh','Terminal'))
| project Timestamp, DeviceName, Signal='implant_or_persistence_file', Actor=InitiatingProcessFileName, ActorCommand=InitiatingProcessCommandLine, Artifact=FolderPath;
union run_key, implant_files
| order by Timestamp descSigma
title: FLATROOF Run Key Persistence powershell-config-service
id: 2f9b6d18-84c3-4e57-b1a0-96d3c7e45f02
status: experimental
description: Detects creation of the HKCU or HKLM Run registry value named powershell-config-service, the Windows persistence name hard-coded in the FLATROOF backdoor configuration (Linux sibling name snap-imagent, macOS zlogout entry imagent).
references:
- https://www.zscaler.com/blogs/security-research/suspected-tradertraitor-group-uses-trojanized-terraform-provider-deliver
author: Threadlinqs Team
date: 2026-10-09
tags:
- attack.persistence
- attack.t1547.001
- attack.defense-evasion
- attack.t1036.005
logsource:
category: registry_set
product: windows
detection:
selection:
TargetObject|endswith: '\Run\powershell-config-service'
condition: selection
falsepositives:
- None known, the value name is attacker-chosen and mimics a PowerShell configuration service
level: highKnown false positives:
- Developers testing or reverse engineering the published samples in a lab
- Unrelated software that happens to ship a service.exe under a Microsoft Edge folder (verify signer)
Tuning notes: Sysmon registry rules must log Run-key value sets (EventCode 13). The macOS zlogout branch (T1546.004) is only in the KQL form because it needs MDE for Mac file telemetry; tune the editor/shell exclusion list to your fleet. Treat any hit as confirmed compromise and pivot to the safari_updater and session.lock artifacts.
- Font-Disguised Payload Loader (.woff / @@ENDFONT@@ / AES-256-CBC) — Exploitation · unlock with TL Creds
- FLATROOF Stealer: Browser Key Theft, Credential Store Access and Staging — Post-Exploitation · unlock with TL Creds
- Non-Browser Access to Telegram, Pastebin, Nostr and GitHub API C2 Channels — C2 · unlock with TL Creds
- Trojanized Terraform Provider and [indicator] Loader File Artifacts — Exploitation · unlock with TL Creds
- macOS Quarantine Strip and Ad Hoc Signing of FLATROOF/ROOFDECK Implants — Post-Exploitation · unlock with TL Creds
- DNS Resolution of HashiCorp-Lookalike and FLATROOF/ROOFDECK C2 Domains — C2 · unlock with TL Creds
- Trojanized Terraform Provider Spawning Shell or Downloader (awsbeta) — Exploitation · unlock with TL Creds
- FLATROOF/ROOFDECK Payload Delivery and C2 Infrastructure Contact — C2 · unlock with TL Creds
Indicators of compromise
As of 2026-10-09, Threadlinqs Intelligence tracks 55 indicators of compromise for TL-2026-3071.
Sample indicators (3 of 55)
- IP address:
176.97.114[.]232 - Domain:
diagnose[.]hashicorp-terraform[.]io - URL:
hxxps://raw[.]githubusercontent[.]com/bluearuhost/hospitalrun-frontend/refs/heads/main/public/fonts/version1/
Defanged, TLP:CLEAR. Full set of 55 indicators: unlock with TL Creds.
Technical analysis
Targets are cloud engineers and developers (notably crypto/Web3); attribution to North Korea-nexus TraderTraitor is suspected with limited confidence.
Zscaler ThreatLabz (Seongsu Park, published 2026-10-08) analyzed a campaign first uncovered in July 2026 that abuses the Terraform provider plugin model to compromise developer workstations and CI/CD systems. The trojanized Go binary terraform-provider-awsbeta_v1.0.0 masquerades as an AWS provider for HashiCorp Terraform. It adds a sibling package named awsbeta that is invoked directly from main(), so malicious code runs as soon as Terraform loads the provider. A session.lock run-once marker is written to the temp directory (TMPDIR, default /tmp). The provider downloads a Bash payload over HTTPS from a typosquatted HashiCorp-themed domain (diagnose.hashicorp-terraform.io), writes it to a file named safari_updater, marks it executable and launches it detached via sh -c.
The Bash loader selects an OS/architecture-specific payload by building a decoy font file name: font family encodes the OS (NotoSansCJK = Linux, HiraginoSans = macOS, MalgunGothic = Windows) and font style encodes the architecture (Bold = x86_64/amd64, Regular = aarch64/arm64, ExtraBold = ARMv7/ARMv6, Italic = 32-bit x86). Encrypted executables are appended to legitimate-looking .woff files after an @@ENDFONT@@ marker, then Base64-decoded and AES-256-CBC decrypted using Python, Node.js, Perl or OpenSSL, whichever is available. Files are fetched from three fallback sources in sequence: a dynamic-DNS host, a GitHub repository, and a Vercel-hosted site. On macOS the loader strips the com.apple.quarantine attribute with xattr and applies an ad hoc code signature before execution. Payloads are placed at $HOME/.config/git/update (Linux), $HOME/Library/com.apple.iTunesCloud/SystemUpdate (macOS) and $HOME/AppData/Local/Microsoft/Edge/service.exe (Windows).
FLATROOF is a Rust-based cross-platform backdoor and credential stealer. Its configuration is protected with PBKDF2-HMAC-SHA256 key derivation and AES-256-GCM and contains Telegram bot credentials, optional GitHub repo/token polling settings, a webhook C2 base/upload URL, platform-specific payload paths and persistence settings (Linux service named snap-imagent; macOS zlogout shell-logout persistence named imagent; Windows Run registry value powershell-config-service). C2 channels are the Telegram Bot API, GitHub API polling and an attacker-controlled HTTP webhook server. Commands cover system discovery, process and file management, command execution, payload download, data upload, persistence management, configuration changes and self-removal. FLATROOF also deploys embedded Python stealers that stage data in collected_data(.zip) and collect Chromium and Firefox profile data (history, cookies, logins, key4.db), shell history, installed applications, running processes and system information; macOS variants take Safari data and login.keychain-db, Linux variants the Chrome Safe Storage secret and keyring files, and Windows variants Chrome/Edge/Brave data, Credential Manager, PowerShell/CMD history and MetaMask, Phantom, Trust Wallet and Rabby extension data. The Windows stealer injects an XOR-encoded (0x37) 64-bit executable into a suspended Chromium process to recover app-bound encryption keys (written to [browser]_aes.txt) and drops cookie_copy_tool.exe as a fallback. FLATROOF checks for Cortex XDR/Traps paths and processes. ThreatLabz assesses the Python code as likely LLM-assisted (emoji-laden comments, repetitive exception handling, inconsistent naming).
ROOFDECK (Windows and macOS variants, near-identical) is a second-stage backdoor with a layered C2 discovery scheme: it reads a local configuration disguised as an application file, then pulls an encrypted server address from a Pastebin dead drop protected by an RSA signature (value and signature separated by ||) so third parties cannot redirect it, and falls back to Nostr profile metadata (attacker profile name 'tulip', 'website' field pointing to the current Pastebin URL) resolved through public relay lists. Capabilities include host/process/disk discovery, single-command and interactive reverse shell, file create/delete/move/compress/download/upload, clipboard read/write, background tasks, persistence install/remove/status, C2/polling reconfiguration, agent update and self-destruction.
Attribution: ThreatLabz links the activity to TraderTraitor (Jade Sleet, UNC4899, Pressure Chollima, Slow Pisces) based on targeting of cryptocurrency/Web3 developers via trojanized developer tooling, tactics consistent with prior TraderTraitor trojanized-app, Python-package and fake-job-offer operations, and overlap of FLATROOF/ROOFDECK with findings from the KelpDAO incident. ThreatLabz explicitly states it has not identified unique code similarities, shared infrastructure or cryptographic links sufficient to attribute with high confidence, so attribution is suspected only. SentinelLabs (report dated 2026-09-18) independently documented the same FLATROOF/ROOFDECK pair on an India-based IT services provider's macOS DevOps workstation, delivered via fake job-interview repositories containing weaponized .terraform.lock.hcl files pointing to attacker-controlled, HashiCorp-mimicking provider registries, broadening targeting beyond crypto entities. The Zscaler article does not state whether the trojanized provider was distributed through a public registry.
MITRE ATT&CK techniques by tactic:
Command and Control
T1008 Fallback Channels; T1071.001 Web Protocols; T1102.001 Dead Drop Resolver; T1573.001 Symmetric Cryptography
Stealth
T1027.009 Embedded Payloads; T1027.013 Encrypted/Encoded File; T1036.005 Match Legitimate Resource Name or Location; T1036.008 Masquerade File Type; T1055.012 Process Hollowing; T1070.004 File Deletion
Discovery
T1057 Process Discovery; T1082 System Information Discovery; T1217 Browser Information Discovery; T1518 Software Discovery
Execution
T1059.004 Unix Shell; T1059.006 Python
Initial Access
T1195.002 Compromise Software Supply Chain
Credential Access
T1539 Steal Web Session Cookie; T1552.003 Shell History; T1555.001 Keychain; T1555.004 Windows Credential Manager
Persistence
T1546.004 Unix Shell Configuration Modification
defense-impairment
T1553.001 Gatekeeper Bypass; T1553.002 Code Signing
Collection
Remediation
Immediate actions
- Hunt for terraform-provider-awsbeta, safari_updater, session.lock and the file hashes and network indicators listed in this record on developer workstations and CI/CD runners
- Block diagnose.hashicorp-terraform.io, supportaru.serveftp.com, arusupport-region1-webhook.online, delay.servehttp.com and stage-fashion365.vercel.app at DNS/proxy
- Rotate browser-stored credentials, session cookies, cloud keys and crypto wallet secrets on any host where the provider executed; isolate affected hosts
- Review .terraform.lock.hcl files and provider source addresses in repositories received from recruiters or third parties
Workarounds
- Run terraform init in disposable sandboxes for untrusted repositories
- Monitor Telegram Bot API, GitHub API, Pastebin and Nostr relay traffic from developer endpoints where not business-justified
Longer-term hardening
- Restrict Terraform provider sources to an allowlisted private registry or mirror and verify provider checksums/signatures against the official HashiCorp registry
- Deploy EDR on developer workstations and monitor process trees spawned by terraform provider plugins (sh -c, curl, python, openssl)
- Isolate development and CI/CD environments from production through network segmentation and short-lived credentials
- Enforce software supply chain verification and code signing policies for provider binaries; train engineers on fake job-interview coding test lures
Affected and fixed versions
- HashiCorp — Terraform (provider plugin ecosystem; trojanized terraform-provider-awsbeta_v1.0.0)
Vulnerable versions: terraform-provider-awsbeta_v1.0.0 (malicious provider, not an official HashiCorp release) - Multiple — Developer and CI/CD hosts running Windows, macOS and Linux (x86_64, arm64, ARM, x86)
Vulnerable versions: Any host executing the trojanized provider
Timeline
- Per SentinelLabs, FLATROOF and ROOFDECK were already present on the victim macOS disk; first observed implant execution followed on 2026-03-29 when the developer opened a DevOps-Automation workspace, with C2 connections within seconds
- Per SentinelLabs, a DevOps engineer at an India-based IT services provider cloned a fake-job-interview repository with a weaponized .terraform.lock.hcl, leading to FLATROOF/ROOFDECK on an Apple Silicon Mac (SentinelLabs-reported timeline; internally inconsistent in secondary coverage)
- Per SentinelLabs, FLATROOF re-armed ROOFDECK the day after the developer cloned the weaponized terraform-candidate-repo
- Per SentinelLabs, a stripped Stage 3 payload was downloaded and connected to C2, after which the original implants were deleted (anti-forensics)
- Per SentinelLabs, the final C2 beacon from the victim host was observed after sustained Stage 3 beaconing from early May
- Zscaler ThreatLabz uncovered the trojanized Terraform provider campaign (July 2026; day is approximate)
- SentinelLabs published 'Don't Call Us, We'll Call Your APIs' documenting FLATROOF and ROOFDECK on a second victim with no crypto ties
- eSecurity Planet reported North Korean actors hiding macOS backdoors in fake Terraform job tests
- Zscaler ThreatLabz published analysis attributing the activity, with low confidence, to TraderTraitor and released IOCs
Sources cited
- Suspected TraderTraitor Group Uses Trojanized Terraform Provider to Deliver Cross-Platform Malware (Zscaler ThreatLabz) zscaler.com · Research · 2026-10-08
- Don't Call Us, We'll Call Your APIs: TraderTraitor Backdoors Resurface on Victim with No Crypto Ties (SentinelLabs) SentinelOne · Research · 2026-09-18
- The Good, the Bad and the Ugly in Cybersecurity - Week 39 (SentinelOne) SentinelOne · Blog · 2026-09-25
- North Korean Hackers Hide Mac Backdoors in Fake Terraform Job Tests (eSecurity Planet) esecurityplanet.com · News · 2026-09-22
- SentinelLabs Ties Second macOS Backdoor Attack to TraderTraitor (Technobezz) technobezz.com · News · 2026-09-22
- North Korean hackers linked to $290M heist from cryptocurrency platform (NK News) nknews.org · News · 2026-04-01
- LayerZero says North Korea's Lazarus likely behind Kelp DAO exploit (The Block) theblock.co · News · 2026-04-01
More from TraderTraitor
- Binance Hack: Tampered Homebrew Package Delivers macOS Stealer; Infostealers and AI-Powered Profiling Feed Social Engineering (TraderTraitor attribution)
- FaceStealer: DPRK (APT38-attributed) deepfake meeting social-engineering campaign disrupted by FBI/DOJ; $1.2B of stolen Binance crypto seized (TraderTraitor)
- TraderTraitor (DPRK-aligned) FLATROOF and ROOFDECK macOS Backdoors Resurface on IT Services Victim With No Crypto Ties
- Binance Wallet Infrastructure Compromise via Fake Job Interviews, Trojanized Homebrew Installer and Internal AI Tool Abuse (~$6.3B Theft, TraderTraitor)
- TraderTraitor (North Korea) months-long campaign leads to $6.34B Binance cryptocurrency theft
- Binance security incident: compromised DevOps engineer laptop leads to service container access and ~$6.3 billion in unauthorized withdrawals
Previous and next in supply chain
Further reading
Drafted by the Threadlinqs research pipeline from 7 sources; published ; last updated —.