Trojanized Terraform Provider Delivers FLATROOF, ROOFDECK to Developer Environments in July 2026
North Korean-linked hackers used a malicious Terraform provider to deliver FLATROOF and ROOFDECK malware to developer environments in July 2026.
Key points
- Zscaler ThreatLabz identified a trojanized Terraform provider delivering cross-platform malware in July 2026.
- The campaign targets developers with FLATROOF for data theft and ROOFDECK for remote control.
- Attribution to TraderTraitor is based on tactical similarities rather than unique code matches.
In July 2026, Zscaler ThreatLabz uncovered a campaign where attackers distributed a trojanized Terraform provider to infect developer environments. This supply-chain-style attack executes malicious code immediately when Terraform loads the provider, bypassing standard security checks. The operation targets users across multiple operating systems, leveraging the trust developers place in infrastructure-as-code tools to gain initial access to sensitive systems and data.
Root cause
The core vulnerability exploited is the lack of strict verification for third-party plugins in infrastructure tools. According to Zscaler ThreatLabz, the trojanized provider preserves normal Terraform behavior while simultaneously downloading a Bash loader from a lookalike domain. This domain mimics HashiCorp branding to deceive users. The loader then selects and downloads malware payloads tailored to the victim's specific operating system and CPU architecture, ensuring compatibility across platforms.
Attack path
The infection chain begins with the execution of the malicious Terraform provider. Once loaded, the provider contacts a command-and-control server hosted on a HashiCorp-themed lookalike domain. It downloads a cross-platform Bash loader that determines the victim's environment. For macOS, Linux, and Windows systems, the loader delivers specific payloads. FLATROOF malware deploys Python scripts to steal sensitive data, while ROOFDECK serves as a backdoor for persistent remote control.
Affected versions
- Any Terraform installation loading the specific trojanized provider identified in the July 2026 campaign.
- Developer environments running on macOS, Linux, or Windows that accept unsigned or unverified providers.
- Systems where users execute infrastructure-as-code scripts without verifying the integrity of external dependencies.
- Environments lacking network restrictions that allow communication with lookalike domains mimicking legitimate vendors.
Mitigation
- Verify the cryptographic signatures of all Terraform providers against official HashiCorp registries before use.
- Implement network monitoring to block traffic to domains mimicking legitimate vendor branding.
- Use application whitelisting to prevent unauthorized executables from running during infrastructure deployments.
- Isolate development environments to limit lateral movement if a trojanized provider is executed.
What to do and how to stay safe: Terraform
- Audit all infrastructure-as-code providers for unexpected or unverified sources before deployment.
- Monitor network traffic for connections to domains that closely resemble legitimate vendor URLs.
- Review system logs for unusual Python script executions or new backdoor processes.
- Educate developers on the risks of using unofficial or community-maintained plugins in production.
Step-by-step guide: Implement a Ransomware Recovery Plan: Step-by-Step Guide
General security guidance from the NetSec Observer newsroom. It is not confirmed advice from the organisations named in this story.
Frequently asked questions
Who is responsible for this Terraform provider attack?
Zscaler ThreatLabz attributes the campaign to TraderTraitor, a North Korean-backed group, based on tactical similarities.
What malware was delivered in this campaign?
The attackers deployed FLATROOF for credential theft and ROOFDECK for remote control, as reported by Zscaler.
Is there a confirmed patch for this vulnerability?
No specific patch has been confirmed yet; users should verify provider integrity and monitor for updates.




