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

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.

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.

DPRK targetingDeveloper Macs and AI toolWallet infrastructureStayed safeJune Homebrew scareWallet team mappedFake job interviewTraderTraitor (DPRK)Swapped pyenv binary3,344B to 3,414B shimInternal AI tool pivotMechanics withheldContainer deploy tokenFound on Engineer A MacWallet signing drain~$6.34B impactedJune Mac and rebuildWiped, systems rebuilt12345
1June–Sept 2026

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.

ConfirmedWhere to stop it: block outside repos
  1. June–Sept 2026

    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.

    June Homebrew scaretoFake job interview
  2. Sept 2026

    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.

    Fake job interviewtoSwapped pyenv binary
  3. Oct 20, 2026

    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.

    Swapped pyenv binarytoInternal AI tool pivot
  4. Oct 20–29, 2026

    Attackers locate a container deployment permission token sitting on Engineer A’s laptop, giving them a path to push workloads into wallet infrastructure.

    Internal AI tool pivottoContainer deploy token
  5. Oct 29, 17:15–19:56 UTC

    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.

    Container deploy tokentoWallet signing drain

Figure 1. How the attack unfolded, and what stayed isolated. Select any step or box for details.

What they took

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

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

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

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.

detect-homebrew-shim-swap.sql

macOS osquery / EndpointSecurity hunt checking for tampered Homebrew shims or non-brew file replacements under /opt/homebrew/Cellar and /opt/homebrew/bin.

# Hunt for recently modified Homebrew shims or unexpected symlinks on macOS developer laptopsfind /opt/homebrew/Cellar /opt/homebrew/bin -maxdepth 4 -type f -mtime -30 \  -exec shasum -a 256 {} + | head -n 50 # Verify Homebrew package integrity against upstream bottle checksumsbrew doctorbrew list --versions | awk '{print $1}' | xargs -n 1 brew reinstall --dry-run 2>&1 | grep -i "mismatch" || echo "No obvious mismatch"

Appendix

Evidence log: what’s confirmed and what’s withheld6 claims
ClaimStatusSource
A June 2026 malicious Homebrew install on Engineer A’s Mac was detected and wiped, but exposed wallet-team identities that attackers later targetedConfirmedBinance Nov 3 initial findings (reported by The Register)
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 MacConfirmedBinance Nov 3 findings, FBI attribution, and Chainalysis
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 detectionConfirmedBinance Nov 3 report file-operation trace (quoted by The Register)
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.34BConfirmedBinance Nov 3 findings and Chainalysis
Exact lateral-movement mechanism inside the internal AI tool and full details of the Oct 29 transaction-authorization methodWithheld by vendorNot detailed in Binance’s Nov 3 preliminary findings
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 assetsConfirmedBinance Nov 3 findings and follow-up disclosures
Indicators of compromise2 indicators
  • /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).

  • 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.

Reproduction labMarkdown playbook, MIT license

Verifies whether your macOS EndpointSecurity / EDR pipeline logs file renames inside /opt/homebrew/Cellar and flags container deploy tokens stored on developer disks.

Safety note: Read-only local developer Mac audit; changes no system binaries.

# check local macOS developer environments for long-lived container or registry deploy tokens
find "$HOME" -maxdepth 3 \( -name "*kubeconfig*" -o -name "config.json" -o -name "*.token" \) 2>/dev/null
Binance: a fake job interview swapped a pyenv shim and led to a $6.3B wallet heist | breachidents