{"incident":{"slug":"binance-oct-2026-dprk-pyenv-heist","caseId":"BI-2026-021","organization":"Binance","title":"Binance: a fake job interview swapped a pyenv shim and led to a $6.3B wallet heist","shortSummary":"North Korean attackers used a fake recruitment repo to swap a Homebrew pyenv binary, pivoted through an internal AI tool, and stole a container deploy token.","lede":"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.","incidentDate":"Oct 29, 2026","incidentDateIso":"2026-10-29","disclosedDate":"Nov 3, 2026","sourceUrl":"https://www.binance.com/en/blog/community/3229153443759566763","sourceAuthor":"Binance Initial Findings, FBI Attribution, The Register, and Chainalysis","vectorFilter":"CI supply chain","timeToDetect":"~4 months from June recon (17:15–19:56 UTC drain)","detectedBy":"Binance Security and FBI TraderTraitor attribution","initialAccess":{"label":"Fake job interview coding repo","detail":"DPRK recruiters lured an engineer into running a malicious assignment repo on a work Mac","evidence":"confirmed"},"secondaryVectorMeta":{"term":"AI tool pivot & tx bypass","label":"Exact mechanics withheld","evidence":"withheld"},"blastRadius":"~$6.34B digital assets impacted (partially frozen and covered by Binance)","whatItReachedShort":"Developer Macs (pyenv shim swap), internal AI tool pivot to Wallet DevOps, container deploy token, and wallet-signing authorization","whatHeldShort":"June compromised Mac was caught and wiped, though team org knowledge leaked; billions traced, frozen, or backstopped by Binance","revisions":[{"id":"Rev A","date":"Nov 3, 2026","note":"First published from Binance’s Nov 3 initial findings (as reported verbatim by The Register and corroborated by Chainalysis and FBI TraderTraitor attribution)."}],"bodyMarkdown":"## How they got in\n\nBinance’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.\n\nThree 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.\n\n## What it reached\n\nDuring 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.\n\nOn 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.\n\nOn 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.\n\n## What held\n\nBinance’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.\n\n> **Why wiping one infected laptop does not end a targeted campaign**\n>\n> Security teams routinely treat a caught developer infection as closed once the Mac is wiped and passwords are rotated. Here, the June incident still handed North Korean operators the org chart of the wallet team.\n>\n> Stopping this chain requires three hard rules: never run untrusted interview code on a corporate laptop, alert when non-Homebrew processes modify files inside /opt/homebrew/Cellar, and keep long-lived container deployment tokens off developer workstations entirely.","narrative":{"howTheyGotIn":["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."],"whatItReached":["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."],"whatHeld":["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."],"sideNoteTitle":"Why wiping one infected laptop does not end a targeted campaign","sideNoteParagraphs":["Security teams routinely treat a caught developer infection as closed once the Mac is wiped and passwords are rotated. Here, the June incident still handed North Korean operators the org chart of the wallet team.","Stopping this chain requires three hard rules: never run untrusted interview code on a corporate laptop, alert when non-Homebrew processes modify files inside /opt/homebrew/Cellar, and keep long-lived container deployment tokens off developer workstations entirely."]},"claims":[{"group":"How they got in","claim":"A June 2026 malicious Homebrew install on Engineer A’s Mac was detected and wiped, but exposed wallet-team identities that attackers later targeted","evidence":"confirmed","source":"Binance Nov 3 initial findings (reported by The Register)"},{"group":"How they got in","claim":"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","evidence":"confirmed","source":"Binance Nov 3 findings, FBI attribution, and Chainalysis"},{"group":"What it reached","claim":"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","evidence":"confirmed","source":"Binance Nov 3 report file-operation trace (quoted by The Register)"},{"group":"What it reached","claim":"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","evidence":"confirmed","source":"Binance Nov 3 findings and Chainalysis"},{"group":"What it reached","claim":"Exact lateral-movement mechanism inside the internal AI tool and full details of the Oct 29 transaction-authorization method","evidence":"withheld","source":"Not detailed in Binance’s Nov 3 preliminary findings"},{"group":"What held","claim":"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","evidence":"confirmed","source":"Binance Nov 3 findings and follow-up disclosures"}],"diagram":{"label":"How a fake interview repo and a swapped pyenv shim reached Binance wallet signing","zones":[{"id":"lure","label":"DPRK targeting","kind":"boundary","lane":0},{"id":"dev","label":"Developer Macs and AI tool","kind":"boundary","lane":1},{"id":"wal","label":"Wallet infrastructure","kind":"boundary","lane":2},{"id":"safe","label":"Contained / response","kind":"isolated","lane":2}],"nodes":[{"id":"bn-june","zone":"lure","name":"June Homebrew scare","detail":"Wallet team mapped","kind":"attacker","ev":"confirmed","at":0,"story":"In June 2026, Wallet DevOps Engineer A installed a malicious Homebrew package. Binance detected it, replaced the Mac, and rotated credentials, but the attacker had already mapped Engineer A’s role and wallet-team peers.","when":"June 2026","steps":[1]},{"id":"bn-lure","zone":"lure","name":"Fake job interview","detail":"TraderTraitor (DPRK)","kind":"compromised","ev":"confirmed","at":1,"story":"In September 2026, FBI-attributed TraderTraitor operatives ran multi-round video and chat interviews from a legitimate job platform, then told a Binance engineer to run a coding assignment repo on his work Mac.","when":"Sept 2026","steps":[1,2],"ctl":["bn-k1"]},{"id":"bn-pyenv","zone":"dev","name":"Swapped pyenv binary","detail":"3,344B to 3,414B shim","kind":"compromised","ev":"confirmed","at":2,"story":"Setup malware wrote a 3,414-byte pyenv_ inside /opt/homebrew/Cellar/pyenv/2.8.0/libexec/, deleted the genuine 3,344-byte pyenv, renamed pyenv_ into place, recreated the /opt/homebrew/bin/pyenv symlink, and spawned zsh with hidden C2 that endpoint tools missed.","when":"Sept 2026","steps":[2,3],"ctl":["bn-k2"]},{"id":"bn-ai","zone":"dev","name":"Internal AI tool pivot","detail":"Mechanics withheld","kind":"compromised","ev":"withheld","at":3,"story":"On Oct 20, the attacker used the infected Mac and an internal Binance AI tool to reach the workstations of Wallet DevOps Engineer A and Wallet Software Engineer C. Binance has not disclosed the exact lateral mechanism inside the AI tool.","when":"Oct 20, 2026","steps":[3,4],"ctl":["bn-k3"]},{"id":"bn-tok","zone":"wal","name":"Container deploy token","detail":"Found on Engineer A Mac","kind":"compromised","ev":"confirmed","at":4,"story":"On Engineer A’s Mac, the attacker found a container deployment permission token. On Oct 29 they logged into Engineer C’s Mac and used Engineer A’s token to deploy a malicious container.","when":"Oct 20–29, 2026","steps":[4,5],"ctl":["bn-k4"]},{"id":"bn-wal","zone":"wal","name":"Wallet signing drain","detail":"~$6.34B impacted","kind":"compromised","ev":"confirmed","at":5,"story":"Between 17:15 and 19:56 UTC on Oct 29, scripts in the deployed container reached internal wallet signing using an advanced transaction-authorization method (reported as EIP-7702 delegation abuse) to drain roughly $6.3B to $6.34B.","when":"Oct 29, 17:15–19:56 UTC","steps":[5]},{"id":"bn-june-wipe","zone":"safe","name":"June Mac and rebuild","detail":"Wiped, systems rebuilt","kind":"isolated","ev":"confirmed","at":0,"story":"Binance caught and wiped the June laptop before direct theft, later froze or intercepted substantial funds with partners, backstopped user balances, and rebuilt both the wallet system and internal AI tool.","when":"Contained Oct 29–Nov 3"}],"edges":[{"id":"be1","from":"bn-june","to":"bn-lure","kind":"attack","step":1},{"id":"be2","from":"bn-lure","to":"bn-pyenv","kind":"attack","step":2},{"id":"be3","from":"bn-pyenv","to":"bn-ai","kind":"attack","step":3},{"id":"be4","from":"bn-ai","to":"bn-tok","kind":"attack","step":4},{"id":"be5","from":"bn-tok","to":"bn-wal","kind":"attack","step":5}],"steps":[{"n":1,"time":"June–Sept 2026","short":"June–Sept","text":"June Homebrew recon leads to fake interview coding assignment","say":"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."},{"n":2,"time":"Sept 2026","short":"Sept 2026","text":"Malware swaps Homebrew pyenv binary (3,344B to 3,414B)","say":"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."},{"n":3,"time":"Oct 20, 2026","short":"Oct 20","text":"Internal AI tool pivots to Wallet DevOps and Software Engineers","say":"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."},{"n":4,"time":"Oct 20–29, 2026","short":"Oct 20–29","text":"Container deployment token harvested from Engineer A’s Mac","say":"Attackers locate a container deployment permission token sitting on Engineer A’s laptop, giving them a path to push workloads into wallet infrastructure."},{"n":5,"time":"Oct 29, 17:15–19:56 UTC","short":"Oct 29","text":"Deployed container drains ~$6.34B from wallet signing","say":"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."}],"controls":[{"id":"bn-k1","step":1,"kind":"control","name":"Block outside repos","tag":"Stops step 1","long":"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.","nodeId":"bn-lure"},{"id":"bn-k2","step":2,"kind":"detection","name":"Watch Homebrew shims","tag":"Catches step 2","long":"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.","nodeId":"bn-pyenv"},{"id":"bn-k3","step":3,"kind":"control","name":"Isolate internal AI","tag":"Stops step 3","long":"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.","nodeId":"bn-ai"},{"id":"bn-k4","step":4,"kind":"control","name":"Ban laptop deploy keys","tag":"Stops step 4","long":"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.","nodeId":"bn-tok"}],"detectedAt":{"time":"Oct 29, 2026 (19:56 UTC containment)","short":"Intervened Oct 29","text":"Binance intervened during the Oct 29 drain window, rebuilt the wallet and internal AI systems, replaced affected devices, and published initial findings on Nov 3."}},"plate":{"W":812,"H":382,"label":"How a fake interview repo and a swapped pyenv shim reached Binance wallet signing","zones":[{"id":"lure","label":"DPRK targeting","kind":"boundary","x":8,"y":16,"w":224,"h":212},{"id":"dev","label":"Developer Macs and AI tool","kind":"boundary","x":270,"y":16,"w":257,"h":212},{"id":"wal","label":"Wallet infrastructure","kind":"boundary","x":565,"y":16,"w":239,"h":212},{"id":"safe","label":"Contained / response","kind":"isolated","x":565,"y":248,"w":239,"h":110}],"nodes":[{"id":"bn-june","name":"June Homebrew scare","detail":"Wallet team mapped","kind":"attacker","ev":"confirmed","x":20,"y":52,"w":200,"at":0,"story":"In June 2026, Wallet DevOps Engineer A installed a malicious Homebrew package. Binance detected it, replaced the Mac, and rotated credentials, but the attacker had already mapped Engineer A’s role and wallet-team peers.","when":"June 2026","steps":[1]},{"id":"bn-lure","name":"Fake job interview","detail":"TraderTraitor (DPRK)","kind":"compromised","ev":"confirmed","x":20,"y":154,"w":200,"at":1,"story":"In September 2026, FBI-attributed TraderTraitor operatives ran multi-round video and chat interviews from a legitimate job platform, then told a Binance engineer to run a coding assignment repo on his work Mac.","when":"Sept 2026","steps":[1,2],"ctl":["bn-k1"]},{"id":"bn-pyenv","name":"Swapped pyenv binary","detail":"3,344B to 3,414B shim","kind":"compromised","ev":"confirmed","x":282,"y":52,"w":233,"at":2,"story":"Setup malware wrote a 3,414-byte pyenv_ inside /opt/homebrew/Cellar/pyenv/2.8.0/libexec/, deleted the genuine 3,344-byte pyenv, renamed pyenv_ into place, recreated the /opt/homebrew/bin/pyenv symlink, and spawned zsh with hidden C2 that endpoint tools missed.","when":"Sept 2026","steps":[2,3],"ctl":["bn-k2"]},{"id":"bn-ai","name":"Internal AI tool pivot","detail":"Mechanics withheld","kind":"compromised","ev":"withheld","x":282,"y":154,"w":233,"at":3,"story":"On Oct 20, the attacker used the infected Mac and an internal Binance AI tool to reach the workstations of Wallet DevOps Engineer A and Wallet Software Engineer C. Binance has not disclosed the exact lateral mechanism inside the AI tool.","when":"Oct 20, 2026","steps":[3,4],"ctl":["bn-k3"]},{"id":"bn-tok","name":"Container deploy token","detail":"Found on Engineer A Mac","kind":"compromised","ev":"confirmed","x":577,"y":52,"w":215,"at":4,"story":"On Engineer A’s Mac, the attacker found a container deployment permission token. On Oct 29 they logged into Engineer C’s Mac and used Engineer A’s token to deploy a malicious container.","when":"Oct 20–29, 2026","steps":[4,5],"ctl":["bn-k4"]},{"id":"bn-wal","name":"Wallet signing drain","detail":"~$6.34B impacted","kind":"compromised","ev":"confirmed","x":577,"y":154,"w":215,"at":5,"story":"Between 17:15 and 19:56 UTC on Oct 29, scripts in the deployed container reached internal wallet signing using an advanced transaction-authorization method (reported as EIP-7702 delegation abuse) to drain roughly $6.3B to $6.34B.","when":"Oct 29, 17:15–19:56 UTC","steps":[5]},{"id":"bn-june-wipe","name":"June Mac and rebuild","detail":"Wiped, systems rebuilt","kind":"isolated","ev":"confirmed","x":585,"y":284,"w":199,"at":0,"story":"Binance caught and wiped the June laptop before direct theft, later froze or intercepted substantial funds with partners, backstopped user balances, and rebuilt both the wallet system and internal AI tool.","when":"Contained Oct 29–Nov 3"}],"edges":[{"id":"be1","kind":"attack","step":1,"pts":[[120,110],[120,154]]},{"id":"be2","kind":"attack","step":2,"pts":[[220,183],[251,183],[251,81],[282,81]]},{"id":"be3","kind":"attack","step":3,"pts":[[399,110],[399,154]]},{"id":"be4","kind":"attack","step":4,"pts":[[515,183],[546,183],[546,81],[577,81]]},{"id":"be5","kind":"attack","step":5,"pts":[[685,110],[685,154]]}],"balloons":{"1":[120,132],"2":[251,132],"3":[399,132],"4":[546,132],"5":[685,132]},"noroute":[{"x1":527,"x2":565,"y":278,"label":"No route"}],"bps":[{"id":"bn-k1","step":1,"kind":"control","at":[120,132],"name":"Block outside repos","tag":"Stops step 1","lead":[[120,121],[120,104],[132,104]],"lx":138,"ly":108,"anchor":"start","long":"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.","nodeId":"bn-lure"},{"id":"bn-k2","step":2,"kind":"detection","at":[251,132],"name":"Watch Homebrew shims","tag":"Catches step 2","lead":[[251,143],[251,154],[263,154]],"lx":269,"ly":158,"anchor":"start","long":"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.","nodeId":"bn-pyenv"},{"id":"bn-k3","step":3,"kind":"control","at":[399,132],"name":"Isolate internal AI","tag":"Stops step 3","lead":[[399,121],[399,104],[411,104]],"lx":417,"ly":108,"anchor":"start","long":"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.","nodeId":"bn-ai"},{"id":"bn-k4","step":4,"kind":"control","at":[546,132],"name":"Ban laptop deploy keys","tag":"Stops step 4","lead":[[546,143],[546,154],[534,154]],"lx":528,"ly":158,"anchor":"end","long":"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.","nodeId":"bn-tok"}],"steps":[{"n":1,"time":"June–Sept 2026","short":"June–Sept","text":"June Homebrew recon leads to fake interview coding assignment","say":"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."},{"n":2,"time":"Sept 2026","short":"Sept 2026","text":"Malware swaps Homebrew pyenv binary (3,344B to 3,414B)","say":"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."},{"n":3,"time":"Oct 20, 2026","short":"Oct 20","text":"Internal AI tool pivots to Wallet DevOps and Software Engineers","say":"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."},{"n":4,"time":"Oct 20–29, 2026","short":"Oct 20–29","text":"Container deployment token harvested from Engineer A’s Mac","say":"Attackers locate a container deployment permission token sitting on Engineer A’s laptop, giving them a path to push workloads into wallet infrastructure."},{"n":5,"time":"Oct 29, 17:15–19:56 UTC","short":"Oct 29","text":"Deployed container drains ~$6.34B from wallet signing","say":"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."}],"stripRows":[{"id":"sr-bn-june","nodeId":"bn-june","lineStyle":"solid"},{"id":"sr-step-1","nodeId":"bn-lure","step":1,"lineStyle":"solid","bpIds":["bn-k1"]},{"id":"sr-step-2","nodeId":"bn-pyenv","step":2,"lineStyle":"solid","bpIds":["bn-k2"]},{"id":"sr-step-3","nodeId":"bn-ai","step":3,"lineStyle":"solid","bpIds":["bn-k3"]},{"id":"sr-step-4","nodeId":"bn-tok","step":4,"lineStyle":"solid","bpIds":["bn-k4"]},{"id":"sr-step-5","nodeId":"bn-wal","step":5,"lineStyle":"none"}],"detectedAt":{"time":"Oct 29, 2026 (19:56 UTC containment)","short":"Intervened Oct 29","text":"Binance intervened during the Oct 29 drain window, rebuilt the wallet and internal AI systems, replaced affected devices, and published initial findings on Nov 3."}},"codeArtifacts":[{"id":"bn-osquery","filename":"detect-homebrew-shim-swap.sql","language":"sh","description":"macOS osquery / EndpointSecurity hunt checking for tampered Homebrew shims or non-brew file replacements under /opt/homebrew/Cellar and /opt/homebrew/bin.","code":"# Hunt for recently modified Homebrew shims or unexpected symlinks on macOS developer laptops\nfind /opt/homebrew/Cellar /opt/homebrew/bin -maxdepth 4 -type f -mtime -30 \\\n  -exec shasum -a 256 {} + | head -n 50\n\n# Verify Homebrew package integrity against upstream bottle checksums\nbrew doctor\nbrew list --versions | awk '{print $1}' | xargs -n 1 brew reinstall --dry-run 2>&1 | grep -i \"mismatch\" || echo \"No obvious mismatch\""},{"id":"bn-es-rule","filename":"macos-pyenv-shim-tamper.yaml","language":"yaml","description":"Detection rule flagging non-Homebrew processes replacing files inside /opt/homebrew/Cellar or spawning interactive zsh directly from a language version-manager shim.","code":"title: Suspicious Homebrew Shim Replacement or Shell Spawn (macOS)\nstatus: production\nlogsource:\n  product: macos\n  category: process_creation\ndetection:\n  shim_zsh:\n    ParentImage|contains:\n      - '/opt/homebrew/Cellar/pyenv/'\n      - '/opt/homebrew/bin/pyenv'\n    Image|endswith: '/zsh'\n  non_brew_write:\n    TargetFilename|startswith: '/opt/homebrew/Cellar/'\n    Image|does_not_contain: '/Homebrew/'\n  condition: shim_zsh or non_brew_write\nlevel: critical"}],"reproductionLab":{"title":"Reproduction lab","summary":"Verifies whether your macOS EndpointSecurity / EDR pipeline logs file renames inside /opt/homebrew/Cellar and flags container deploy tokens stored on developer disks.","bundleMeta":"Markdown playbook, MIT license","safetyNote":"Read-only local developer Mac audit; changes no system binaries.","commands":"# check local macOS developer environments for long-lived container or registry deploy tokens\nfind \"$HOME\" -maxdepth 3 \\( -name \"*kubeconfig*\" -o -name \"config.json\" -o -name \"*.token\" \\) 2>/dev/null"},"iocs":[{"type":"log","value":"/opt/homebrew/Cellar/pyenv/2.8.0/libexec/pyenv (3,344B replaced by 3,414B pyenv_)","context":"Exact file-replacement trace published in Binance’s Nov 3 findings (with /opt/homebrew/bin/pyenv symlink re-creation and zsh spawn)."},{"type":"log","value":"Container deployment initiated Oct 29 (17:15–19:56 UTC) using another engineer’s token","context":"Cross-host token replay from Engineer C’s workstation using Engineer A’s container deployment permission token."}],"publishedAt":"2026-11-03T22:00:00Z","origin":"editorial"}}