tl;dr
- About $6.34 billion was taken from Binance’s hot wallets in under four hours, and about $2.85 billion has since been frozen.
- About five months passed between a tampered Homebrew (a macOS package manager) download and the theft.
- The only host artefacts Binance published are the file operations behind one swapped pyenv executable, which grew by 70 bytes.
A job interview, five months and $6.34 billion
On the evening of 29 October 2026 (UTC), attackers emptied Binance’s hot wallets, the online wallets the exchange uses to process withdrawals. Between 20:05 and 23:56, XRP, SOL, OP, BTC and ETH worth about $6.34 billion left for addresses the attackers controlled. Binance paused withdrawals, and the money kept leaving anyway.
The theft was the end of a campaign that started in June. One of Binance’s wallet engineers, whom Binance calls Engineer A, downloaded a tampered copy of Homebrew while looking for an AI coding tool. Binance caught it, replaced the laptop and rotated the credentials, but by then the attackers knew who ran the wallets. In September, a fake project director, backed by a fake HR contact and a fake CEO, approached a second engineer through a legitimate job platform and a chat app. The take-home assignment quietly replaced pyenv, the tool developers use to switch between Python versions, with a malicious build. From there the attackers moved through an internal AI tool to two more engineers’ machines, took a token that could deploy containers, and on 29 October used it to reach the service that signs Binance’s wallet transactions.
Two days later the FBI, the US Secret Service and IRS Criminal Investigation blamed North Korea’s TraderTraitor. Their alert is a list of wallet addresses to block. It says nothing about how the attackers got in.
Three reports, three different views
The technical story arrived over the following week, in three reports that each saw something different:
| Source | What it saw | What it lacks |
|---|---|---|
| Binance’s initial findings (3 Nov) | The victim’s own timeline, the people targeted, the only published host artefact (the swapped pyenv file), and the abuse of an Ethereum feature called EIP-7702, explained below | Hashes, domains, malware names |
| ReversingLabs (4 Nov) | A software-security company’s ATT&CK mapping of Binance’s steps, and a separate 2026 TraderTraitor toolset, also documented by Zscaler and SentinelOne: a trojanised Terraform provider (a plugin for HashiCorp’s infrastructure-as-code tool) that installs the FLATROOF and ROOFDECK backdoors, with hashes, infrastructure and detection rules | Proof that the toolset was used against Binance, which ReversingLabs says it cannot establish |
| Vectra AI (4 Nov) | A detection vendor’s view of the identity path: how the attacker moved between teams, and why no single log showed the chain | ATT&CK IDs and indicators |
Read side by side in Stixify, the three barely touch. Binance describes what happened and publishes no indicators. ReversingLabs publishes plenty of indicators, but for a toolset it cannot tie to Binance. Vectra explains why the movement between teams went unnoticed and names no techniques at all, so the closest ATT&CK match for the June download depends on who you ask: Supply Chain Compromise from Vectra’s description, Drive-by Compromise as ReversingLabs’ “likely”. Each points to the others in passing, and that is all.
Who is behind it
US law enforcement is clear: TraderTraitor, a North Korean state-sponsored group. The blockchain analytics firm TRM Labs reached the same conclusion with high confidence, ReversingLabs reports. The name comes from CISA advisory AA22-108A, published in April 2022, which used it for the group’s trojanised cryptocurrency apps. Other vendors know the same group as UNC4899, Jade Sleet, Slow Pisces and Pressure Chollima, the aliases ReversingLabs lists.
How the attack worked
Binance’s account, in its own order, runs to 13 steps. If Attack Flows are new to you, Beyond the ATT&CK Matrix: How to Build Dynamic Attack Flows with STIX explains how to read one.
- June: a tampered Homebrew download on Engineer A’s machine (Supply Chain Compromise, T1195; ReversingLabs suggests Drive-by Compromise, T1189, as “likely”). Binance caught it and rotated credentials, but the attacker had already mapped the wallet team (Identify Roles, T1591.004).
- September: fake Project Director, HR and CEO personas (Establish Accounts, T1585) approach Engineer B through a job platform and a chat app (Spearphishing via Service, T1566.003). The “assignment” repository runs during setup (Malicious File, T1204.002) and replaces pyenv with a malicious build (Compromise Host Software Binary, T1554; ReversingLabs also gives Hijack Execution Flow, T1574). The implant contacts an attacker server (Application Layer Protocol, T1071) and removes its traces (File Deletion, T1070.004).
- 20 October: from Engineer B’s machine, an internal AI tool is used to take control of Engineer A’s and Engineer C’s machines. A token with container deployment permissions is taken from Engineer A’s machine (Steal Application Access Token, T1528).
- 29 October, from 17:15 UTC: a container is deployed from Engineer C’s machine with Engineer A’s credentials and reaches the wallet signing service (Deploy Container, T1610).
- From 20:05 UTC: the signing service sends XRP, SOL, OP and BTC from the hot wallets to attacker addresses (Financial Theft, T1657).
- Then: the attacker uses the signing service to hand control of a hot wallet to its own smart contract, through EIP-7702. Funds keep leaving after Binance pauses withdrawals, until the last transfer of 2,961.9 ETH at 23:56 UTC (Financial Theft, T1657).
Two steps nobody can name
Two of those steps have no ATT&CK technique, for different reasons.
The internal AI tool is a gap in what Binance has said. Remote Services (T1021) and Software Deployment Tools (T1072) are the nearest techniques, and ReversingLabs marks both as only “likely”. Binance hasn’t disclosed which tool it was or how it gave the attacker control, so neither can be confirmed. Vectra makes the defensive point: internal AI tools cross team boundaries, and should be monitored like any other system that does.
EIP-7702 is a gap in ATT&CK. The feature lets an Ethereum wallet hand execution rights to a smart contract. The attacker used Binance’s own signing service to sign 50 transactions that gave its contract partial control of a hot wallet. Those permissions lived on the blockchain, and Binance’s wallets use multi-party computation (MPC), where several parties jointly produce each signature, so no single key could revoke them quickly. Pausing withdrawals on Binance’s side didn’t stop them. ReversingLabs suggests Transmitted Data Manipulation (T1565.002) while saying the step doesn’t map cleanly; that technique covers tampering with data in transit, not on-chain delegation.
What the attack needed is more useful than a name. It needed access to the signing service outside the normal withdrawal flow, and that is something a defender can remove, whatever the next variant looks like on-chain. The graph records both steps with what the attacker was trying to achieve and what had to be true for it to work.
What defenders can hunt for
Binance’s one artefact is a file event, not a hash. Binance published the file operations, not the file itself: a pyenv_ staging file is created in /opt/homebrew/Cellar/pyenv/2.8.0/libexec, the legitimate 3,344-byte pyenv is deleted, and the 3,414-byte replacement is renamed into place. That path is Homebrew on Apple Silicon with pyenv 2.8.0. Intel Macs install under /usr/local/Cellar, and other pyenv versions use a different directory, so adjust the path to your fleet. A broader hunt is any libexec/pyenv whose size doesn’t match the legitimate file for that pyenv version.
ReversingLabs’ 17 indicators are for a different TraderTraitor toolset: a trojanised Terraform provider (a plugin for HashiCorp’s infrastructure-as-code tool) that installs the FLATROOF and ROOFDECK backdoors. It uses the same fake-interview lure, but ReversingLabs says nothing ties it to the Binance theft, so treat these as leads, not Binance indicators. They cover delivery, payload hosting and command and control. The file hashes are the SHA-256 values from ReversingLabs’ IoC table, and all 17 are in the reference section at the end. Several of the hosts and URLs sit on shared services (dynamic DNS providers, Vercel, GitHub and Pastebin), so block the full hostname or URL. Blocking serveftp.com or vercel.app takes out every legitimate customer of those services along with the attacker.
The toolset reaches victims through Terraform lock files (.terraform.lock.hcl) that point at a lookalike registry. That suggests a hunt that doesn’t depend on any indicator: look for lock files that reference a registry other than registry.terraform.io (or registry.opentofu.org, if you use OpenTofu, the open-source Terraform fork). Teams that run a private registry or Terraform Cloud will see legitimate hits too, so allow-list those first.
Every indicator can change overnight. The pyenv swap is harder to change, which makes it a good first detection rule. A Sigma rule is a YAML file that describes suspicious activity in a log, which detection tools then convert into queries for a specific SIEM. If you are new to Sigma, Writing Effective Sigma Detection Rules: A Guide for Novice Detection Engineers explains each field.
The rule below is adapted from one in the ReversingLabs report, which also has a rule for the Terraform provider. It looks for the pyenv_ staging file in pyenv’s libexec directory under any Homebrew install path:
title: pyenv Staging File Created in a Homebrew Install
id: 7b6dc95f-61f9-5486-9e72-cd7561a12a79
status: experimental
description: Detects a pyenv_ staging file being created in the libexec directory of a Homebrew pyenv install. In the September 2026 compromise that preceded the Binance theft, this file was created before the legitimate pyenv was deleted and replaced with a malicious build. Adapted from the ReversingLabs rule, generalised to any Homebrew install prefix and without its exclusion for brew itself.
references:
- https://x.com/binance/status/2117626126214504729
- https://www.reversinglabs.com/blog/binance-heist-what-we-know-and-what-rl-sees-in-tradertraitors-toolkit
author: dogesec
date: 2026-11-04
tags:
- attack.persistence
- attack.t1554
logsource:
product: macos
category: file_event
detection:
selection:
TargetFilename|contains: '/Cellar/pyenv/'
TargetFilename|endswith: '/libexec/pyenv_'
condition: selection
falsepositives:
- Manual patching of pyenv by a developer (rare)
level: high
The rule needs file creation events from macOS endpoints.
The rule catches the pyenv swap and nothing else. Nothing in the public reporting would catch the AI-tool pivot, the stolen token or the misuse of the signing service, which is where the money was actually lost. Using Sigma Rules in Attack Flows for Detection Coverage and SOC Triage shows how to track that kind of gap across a whole attack.
The whole theft in one graph
Put together, this is the whole case: the three reports, the theft and who it is blamed on, the Terraform toolkit kept at arm’s length, the 13 steps, the two steps nobody can name, the indicators and the rule.
A hunter gets one confirmed artefact, 17 leads and a rule. An analyst gets the state of the case: North Korea’s TraderTraitor did it, the Terraform toolset may or may not have been involved, and nobody has said how the internal AI tool was abused. Each of those sits in the graph with its source.
In summary
Three reports on the Binance theft each saw part of it: Binance saw the five months from a tampered download to the empty wallets, ReversingLabs saw a TraderTraitor toolkit it couldn’t tie to Binance, and Vectra saw why nobody noticed the attacker moving between teams. Read together, they give one account that keeps the toolkit separate from the theft, admits the two steps nobody can name, and ends with the one artefact Binance published turned into a detection.
Reference: IoCs and ATT&CK techniques
For copying into other tools. Each row gives the STIX ID of the matching object in the graphs above.
IoCs
Domains, URLs and the IP address are defanged ([.], hxxps). “Linked to” says what each indicator belongs to: the Binance theft for the one artefact confirmed on Binance’s machines, and FLATROOF or ROOFDECK for the Terraform toolkit indicators, which are not confirmed for Binance.
| Type | Value | What it is | Linked to | Confidence | STIX ID |
|---|---|---|---|---|---|
| File event |
pyenv_ created in /opt/homebrew/Cellar/pyenv/2.8.0/libexec
|
pyenv replaced via pyenv_ staging file | Binance hot wallet theft, October 2026 | Confirmed | indicator--b9788fae-7ac4-5ec0-a756-0e84b4543472 |
| SHA-256 | 188bd4fc222c9615540884920caf37ea88bcbea7488e1fb98709e357dd096666 |
Trojanised terraform-provider-awsbeta_v1.0.0 | FLATROOF | Medium | indicator--666b68e3-9a33-5cab-ae32-5fb059ff6f23 |
| SHA-256 | 451b586ec9d3c997b319986a1177829653e8ae641c953c05ede6a38616f2da97 |
safari_updater Bash loader | FLATROOF | Medium | indicator--e4e6306f-18ec-560f-96c4-cd5e7458aa33 |
| SHA-256 | 62e988e9affcd000657bef4db47eb2e85c9a4cc42f4832780a02e19624e36e38 |
HiraginoSans-Regular.woff encrypted FLATROOF container | FLATROOF | Medium | indicator--5a0a93d8-c8c3-5939-920a-c8488ac6af42 |
| SHA-256 | 3c254614de8c1a2f213c526b0e5072d43ffeb7cc340d9a4a6ebaa16592b3bbe0 |
Decrypted FLATROOF (macOS ARM64) | FLATROOF | Medium | indicator--b4895a2e-58bf-5d7e-b03c-f22216d7b7de |
| SHA-256 | 4ba58fba8e1293e1d980726323bda0fcd3cc1e5781a99e86638a4a7641b6ffd6 |
ROOFDECK imagent (macOS) | ROOFDECK | Medium | indicator--18980c8e-269c-568c-b9ec-4cfcacad57a3 |
| SHA-256 | e1c71374814e5d907afb913108090b8abf21ae2131c0880f013a3b9108a9d0fc |
ROOFDECK update.exe (Windows) | ROOFDECK | Medium | indicator--dd73ffe0-c484-55d6-8a31-8cd7ffa0870e |
| Domain | registry[.]hashicorp-terraform[.]io |
Lookalike Terraform registry | FLATROOF | Medium | indicator--12646562-1573-5026-946e-dec5e946c32a |
| Domain | registry[.]hashicorp-aws[.]com |
Lookalike Terraform registry | FLATROOF | Medium | indicator--58a7c194-90ea-568a-a429-615fedbb635f |
| Domain | registry[.]hashicorp-aws[.]io |
Lookalike Terraform registry | FLATROOF | Medium | indicator--fdee89fa-5259-59bf-bafd-4a7e53d2083f |
| Domain | diagnose[.]hashicorp-terraform[.]io |
safari_updater download host | FLATROOF | Medium | indicator--3d9fc9f7-9547-5056-8ba9-f9a7b059fef0 |
| Domain | supportaru[.]serveftp[.]com |
FLATROOF payload host | FLATROOF | Medium | indicator--0c66ce7b-dcf9-582f-ad2e-47942a9f4970 |
| Domain | stage-fashion365[.]vercel[.]app |
FLATROOF payload mirror | FLATROOF | Medium | indicator--066454ac-9b46-585d-a29b-e0341dbf3c3f |
| URL | hxxps://raw[.]githubusercontent[.]com/bluearuhost/hospitalrun-frontend/refs/heads/main/public/fonts/version1/ |
FLATROOF payload mirror (GitHub) | FLATROOF | Medium | indicator--3e1d3a2c-88d1-5d04-abdf-64f6a84cf715 |
| Domain | arusupport-region1-webhook[.]online |
FLATROOF C2 webhook | FLATROOF | Medium | indicator--8c12dcd1-8202-5b96-bca6-85d620387234 |
| Domain | delay[.]servehttp[.]com |
ROOFDECK C2 | ROOFDECK | Medium | indicator--d9fda8e0-80a2-5e8b-9b4e-e54182ced2d7 |
| URL | hxxps://pastebin[.]com/raw/3yptBDhL |
ROOFDECK signed C2 dead drop | ROOFDECK | Medium | indicator--89514b70-b072-5e16-ab51-e3d269b633f2 |
| IPv4 | 176[.]97[.]114[.]232 |
Served ROOFDECK (MacOS.Backdoor.GetShell) | ROOFDECK | Medium | indicator--5208ee91-8b44-517c-8304-02ee34274a13 |
ATT&CK techniques
The steps of the Attack Flow, in order. Steps 8 and 12 have no ATT&CK technique; their STIX ID is the procedure that describes them.
| Step | Action | Technique | Tactic | STIX ID |
|---|---|---|---|---|
| 1 | Tampered Homebrew download | T1195 Supply Chain Compromise | Initial Access | attack-pattern--3f18edba-28f4-4bb9-82c3-8aa60dcac5f7 |
| 2 | Wallet team mapped | T1591.004 Identify Roles | Reconnaissance | attack-pattern--cc723aff-ec88-40e3-a224-5af9fd983cc4 |
| 3 | Fake Project Director, HR and CEO personas | T1585 Establish Accounts | Resource Development | attack-pattern--cdfc5f0a-9bb9-4352-b896-553cfa2d8fd8 |
| 4 | Approach via job platform and chat app | T1566.003 Spearphishing via Service | Initial Access | attack-pattern--f6ad61ee-65f3-4bd0-a3f5-2f0accb36317 |
| 5 | Assignment repo runs on setup | T1204.002 Malicious File | Execution | attack-pattern--232b7f21-adf9-4b42-b936-b9d6f7df856e |
| 6 | pyenv replaced with malicious build | T1554 Compromise Host Software Binary | Persistence | attack-pattern--960c3c86-1480-4d72-b4e0-8c242e84a5c5 |
| 7 | C2 and trace removal (trace removal is T1070.004, in the step’s description) | T1071 Application Layer Protocol | Command and Control | attack-pattern--355be19c-ffc9-46d5-8d50-d6a036c675b6 |
| 8 | Internal AI tool used as a springboard | None (procedure: Pivot between engineers’ machines through an internal AI tool) | Lateral Movement | procedure--9288b3e8-debe-5a94-b2ab-77ffa18d0a8c |
| 9 | Container deployment token stolen | T1528 Steal Application Access Token | Credential Access | attack-pattern--890c9858-598c-401d-a4d5-c67ebcdd703a |
| 10 | Container deployed to reach signing service | T1610 Deploy Container | Execution | attack-pattern--56e0d8b8-3e25-49dd-9050-3aa252f5aa92 |
| 11 | Direct transfers from hot wallets | T1657 Financial Theft | Impact | attack-pattern--851e071f-208d-4c79-adc6-5974c85c78f3 |
| 12 | EIP-7702 delegation abuse | None (procedure: Hot wallet takeover through EIP-7702 delegation) | Impact | procedure--3c0971bd-72eb-5901-8ea0-ea68f1a8879f |
| 13 | Delegations outlive the withdrawal pause | T1657 Financial Theft | Impact | attack-pattern--851e071f-208d-4c79-adc6-5974c85c78f3 |
Get new posts by email
New threat research and tutorials from dogesec, plus the weekly Obstracts threat brief. No spam, unsubscribe any time.
