# Binance: a fake job interview swapped a pyenv shim and led to a $6.3B wallet heist

- **Canonical URL:** https://breachidents.com/incidents/binance-oct-2026-dprk-pyenv-heist
- **Organization:** Binance
- **Incident date:** Oct 29, 2026
- **Disclosed / updated:** Nov 3, 2026
- **Category:** CI supply chain
- **Primary source:** Binance Initial Findings, FBI Attribution, The Register, and Chainalysis (https://www.binance.com/en/blog/community/3229153443759566763)

## In 30 seconds

- **How they got in:** DPRK recruiters lured an engineer into running a malicious assignment repo on a work Mac _[Confirmed]_
- **What leaked / reached:** Developer Macs (pyenv shim swap), internal AI tool pivot to Wallet DevOps, container deploy token, and wallet-signing authorization
- **What stayed safe:** June compromised Mac was caught and wiped, though team org knowledge leaked; billions traced, frozen, or backstopped by Binance

## Summary

On Oct 29, 2026, North Korea-linked attackers drained roughly $6.3 billion from Binance’s wallet system in the largest crypto heist on record. Binance’s Nov 3 findings traced a four-month chain: a June Homebrew scare exposed wallet-team names, a September fake job interview tricked an engineer into running malware that swapped a single pyenv binary on his work Mac, and an Oct 20 pivot through an internal AI tool yielded a wallet DevOps container deployment token.

## Attack sequence

1. **June–Sept 2026 — June Homebrew recon leads to fake interview coding assignment:** After a wiped June Homebrew install mapped wallet-team names, North Korean TraderTraitor operatives ran multi-round fake interviews in September and got an engineer to run a malicious assignment repo on a work Mac.
2. **Sept 2026 — Malware swaps Homebrew pyenv binary (3,344B to 3,414B):** During setup, the repo replaces /opt/homebrew/Cellar/pyenv/2.8.0/libexec/pyenv with a 3,414-byte tampered version, recreates its symlink, and spawns zsh with hidden C2 missed by endpoint tools.
3. **Oct 20, 2026 — Internal AI tool pivots to Wallet DevOps and Software Engineers:** From the compromised Mac, attackers use an internal Binance AI tool to gain access to the computers of Wallet DevOps Engineer A and Wallet Software Engineer C.
4. **Oct 20–29, 2026 — Container deployment token harvested from Engineer A’s Mac:** Attackers locate a container deployment permission token sitting on Engineer A’s laptop, giving them a path to push workloads into wallet infrastructure.
5. **Oct 29, 17:15–19:56 UTC — Deployed container drains ~$6.34B from wallet signing:** From Engineer C’s machine, attackers use Engineer A’s token to deploy a container and run scripts reaching wallet-signing authorization, draining roughly $6.3B to $6.34B before Binance intervenes.

## How they got in

Binance’s Nov 3 preliminary findings describe a four-month operation that the FBI attributed to North Korea’s TraderTraitor group. It did not begin in October. Back in June 2026, a Wallet DevOps engineer (Engineer A) installed a tampered Homebrew package while searching for an AI coding tool. Binance’s security team caught the malware, replaced the laptop, and rotated credentials. That containment stopped an immediate compromise, but the attacker walked away knowing Engineer A’s role and the identities of colleagues on Binance’s wallet infrastructure team.

Three months later, in September 2026, attackers targeted another Binance software engineer on a real job-hunting site. Over multi-round video interviews and a chat app, fake recruiters and a fake company CEO built trust using curated social profiles before asking the engineer to complete a technical coding assignment. The engineer cloned and ran the assignment repository on a corporate Mac.

## What it reached

During setup, the malicious repository swapped a single developer utility inside Homebrew. Binance’s file-operation trace shows the malware creating a 3,414-byte file named pyenv_ inside /opt/homebrew/Cellar/pyenv/2.8.0/libexec/, deleting the genuine 3,344-byte pyenv binary, renaming pyenv_ into place, deleting and recreating the /opt/homebrew/bin/pyenv symlink, and spawning zsh. A hidden command-and-control script kept running without triggering immediate endpoint alerts.

On Oct 20, the attackers used the infected Mac and an internal Binance AI tool to move laterally onto the workstations of Wallet DevOps Engineer A and Wallet Software Engineer C. Binance has not disclosed the exact mechanism inside the internal AI tool, so that step stays marked withheld. On Engineer A’s machine, the attackers found a container deployment permission token.

On Oct 29, between 17:15 and 19:56 UTC, the attackers accessed Engineer C’s laptop, used Engineer A’s deployment token to launch a container, and ran scripts reaching Binance’s internal wallet-signing infrastructure. Using what Binance called an advanced transaction-authorization method (reported externally as EIP-7702 delegation abuse on hot wallets), they drained roughly $6.3 billion to $6.34 billion in digital assets before Binance intervened.

## What stayed safe

Binance’s June response prevented direct theft from the first infection, and after Oct 29 the exchange worked with law enforcement and tracing firms to freeze or intercept substantial stolen assets while covering user balances. Binance replaced affected machines, revoked compromised credentials, and rebuilt both the wallet system and the internal AI tool from scratch.

## How to defend against this

- **Block outside repos** (Stops step 1): Forbid running coding interviews or third-party repos on corporate laptops holding internal SSO sessions. Require ephemeral cloud devcontainers or isolated VMs for untrusted code.
- **Watch Homebrew shims** (Catches step 2): Monitor macOS EndpointSecurity or osquery for non-brew processes deleting, renaming, or re-linking binaries inside /opt/homebrew/Cellar/** and /opt/homebrew/bin/**, or shims spawning zsh and outbound sockets.
- **Isolate internal AI** (Stops step 3): Treat internal AI tools with host or repo reach as lateral-movement infrastructure: enforce per-user authorization, strict session isolation, and approval gates before touching peer environments.
- **Ban laptop deploy keys** (Stops step 4): Remove long-lived container deployment tokens from developer workstations. Require short-lived hardware-backed OIDC sessions and multi-party approval for any deploy into wallet-signing clusters.

## Evidence log

| Section | Claim | Evidence state | Source |
| --- | --- | --- | --- |
| How they got in | A June 2026 malicious Homebrew install on Engineer A’s Mac was detected and wiped, but exposed wallet-team identities that attackers later targeted | Confirmed | Binance Nov 3 initial findings (reported by The Register) |
| How they got in | In September 2026, FBI-attributed North Korean TraderTraitor operatives lured a Binance engineer through multi-round fake interviews into running a malicious assignment repo on a work Mac | Confirmed | Binance Nov 3 findings, FBI attribution, and Chainalysis |
| What it reached | Malware replaced /opt/homebrew/Cellar/pyenv/2.8.0/libexec/pyenv (3,344B) with a 3,414B copy, recreated /opt/homebrew/bin/pyenv, and spawned zsh without immediate endpoint detection | Confirmed | Binance Nov 3 report file-operation trace (quoted by The Register) |
| What it reached | On Oct 20, attackers pivoted through an internal AI tool to Engineer A’s and Engineer C’s Macs, stole a container deployment token from Engineer A, and on Oct 29 deployed a container from Engineer C’s Mac to drain roughly $6.3B to $6.34B | Confirmed | Binance Nov 3 findings and Chainalysis |
| What it reached | Exact lateral-movement mechanism inside the internal AI tool and full details of the Oct 29 transaction-authorization method | Withheld by vendor | Not detailed in Binance’s Nov 3 preliminary findings |
| What held | The June compromise was contained before direct theft; after Oct 29 Binance rebuilt the wallet system and internal AI tool, rotated tokens, and traced, froze, or backstopped user assets | Confirmed | Binance Nov 3 findings and follow-up disclosures |

## Indicators of compromise

- **log:** `/opt/homebrew/Cellar/pyenv/2.8.0/libexec/pyenv (3,344B replaced by 3,414B pyenv_)` (Exact file-replacement trace published in Binance’s Nov 3 findings (with /opt/homebrew/bin/pyenv symlink re-creation and zsh spawn).)
- **log:** `Container deployment initiated Oct 29 (17:15–19:56 UTC) using another engineer’s token` (Cross-host token replay from Engineer C’s workstation using Engineer A’s container deployment permission token.)

---
Published by [breachidents](https://breachidents.com). Preserve evidence labels (Confirmed / Inferred / Withheld by vendor / Observed) when citing.
