# Don’t Call Us, We’ll Call Your APIs | TraderTraitor Backdoors Resurface on Victim With No Crypto Ties

TraderTraitor used weaponized Terraform lock files pointing to fake provider registries to deliver FLATROOF/ROOFDECK macOS backdoors, harvesting cloud credentials from a DevOps engineer's laptop.

- Payout: Real-world hack
- Severity: critical
- Program: IT services provider
- Analysis by: Albert Priego
- Disclosed: 2026-09-18
- Write-up quality: 8/10
- Original: https://www.sentinelone.com/labs/dont-call-us-well-call-your-apis-tradertraitor-backdoors-resurface-on-victim-with-no-crypto-ties/
- Library page: https://bugbountylibrary.com/r/blog%3Asentinelone-com-labs-dont-call-us-well-call-your-apis-tradertraitor-backdoors-resurface-on-victim-with-no-crypto-ties
- Tags: area:os domain:cloud domain:desktop impact:data-leak impact:internal-access kind:incident platform:threat-intel sev:critical tech:ci-cd technique:recon vuln:privilege-escalation vuln:secrets-leak

**Target:** macOS developer workstation (Terraform/Ansible, AWS/GCP/OVH/OpenStack)
**Root cause:** A weaponized .terraform.lock.hcl pins a custom provider to an attacker-controlled registry domain (e.g. registry.hashicorp-aws[.]com); terraform init treats the lockfile as source of truth and downloads/executes the malicious provider, which drops Rust backdoors.
**Steps:**
1. Deliver fake job-interview repo (e.g. terraform-candidate-repo) containing a .terraform.lock.hcl referencing a typosquatted provider registry such as `registry.hashicorp-aws[.]com`
2. Victim runs `terraform init`; Terraform downloads and executes the malicious provider module
3. Provider drops FLATROOF to `~/Library/com.apple.iTunesCloud/SystemUpdate` and ROOFDECK to `~/Library/com.apple.internal.ck/iSync`
4. FLATROOF runs `xattr -rd com.apple.quarantine .../com.apple.internal.ck/iSync` and `chmod +x .../com.apple.internal.ck/iSync` to bypass Gatekeeper
5. Implants beacon to C2 (technicais.sytes[.]net, storage.hubpage[.]cloud) and harvest keychain, browser data, shell history, then exfiltrate via Telegram bot
6. ROOFDECK resolves C2 via Nostr profile `website` field, persists via `~/Library/LaunchAgents/loginwindow.plist` with `--type=renderer` masquerade
**How found:** SentinelOne pivoted from the gtn-candidate-repo shared in LayerZero Labs' report to find additional lure repos, then hunted telemetry for the FLATROOF/ROOFDECK hashes to identify an unrelated infected host.
**Exploitation:** Social engineering of DevOps job seekers with fake interview repos; terraform init executes attacker provider; backdoors collect API keys and escalate into victim AWS/GCP environments; ROOFDECK provides shell, reverse shell, file exfil, clipboard capture and self-update over signed C2 commands.
**Escalation:** Credential harvesting from login.keychain-db and browser data enabled privilege escalation and lateral movement into AWS and GCP cloud environments.
**Insight:** Terraform lockfiles are an execution vector: a pinned provider registry outside registry.terraform.io runs arbitrary code on `terraform init`, so audit .terraform.lock.hcl provider sources in any take-home or third-party repo before running init.

## Proof of concept (copied exactly from the original report)

**Weaponized Terraform lock file pointing to attacker registry**

```
https://github.com/exubient0/terraform-candidate-repo/blob/main/.terraform.lock.hcl
Weaponized Terraform lock file

https://github.com/radupopa369/gtn-candidate-repo/blob/feat/three-tier-infrastructure/live/.terraform.lock.hcl
Weaponized Terraform lock file

hashicorp-aws[.]io Provider:
https://github.com/chainstacker/Northwind-IAC/blob/930e5be6d34511bedbfb0d762bd08fffe64e9630/aws/us-east-1/prod/northwind/global/vpc/.terraform.lock.hcl
Weaponized Terraform lock file

https://github.com/RyanLRay/Technical-Assessments/blob/19af09ebe8b7ad03419677dda515507dd099bc39/README.md?plain=1#L175
README with references to the weaponized provider domain

hashicorp-terraform[.]io Provider:
https://github.com/Steed-LHV/assessment
README with references to the weaponized provider domain
```

