Fake Homebrew installers and a trojanized pyenv: how to check a Mac

Updated 2026-11-15

Short answer: install Homebrew only from its official site, brew.sh, never from a search ad, and never run a job interview "assignment" on a work computer. Both lures were used in the attack that Binance says ended with about $6.34 billion stolen on 29 October 2026.

What happened at Binance

How the fake Homebrew lure works

A paid search result leads to a page that imitates the Homebrew site and asks you to paste a command into Terminal. ReversingLabs classifies the samples from the SANS diary Binance cites as the MacSync stealer family. The official Homebrew install command is only on brew.sh.

The pyenv swap Binance disclosed

The assignment created /opt/homebrew/Cellar/pyenv/2.8.0/libexec/pyenv_, deleted the real libexec/pyenv (3,344 bytes) and renamed its own file (3,414 bytes) into its place. /opt/homebrew is writable by the logged-in user, so no password prompt appeared (ReversingLabs, The Register).

Check a Mac (read-only)

brew config | head -5
ls -l "$(brew --prefix pyenv)/libexec/pyenv"
brew info pyenv | head -3

On pyenv 2.8.0 from Homebrew, the real libexec/pyenv is 3,344 bytes per Binance's report; a 3,414-byte file there matches the malicious copy. Other pyenv versions have other sizes, so compare with a fresh copy of the same version. If you ever pasted a Homebrew install command from a page that was not brew.sh, treat the Mac as compromised.

FixLane pages: fake Homebrew installers promoted through Google search ads, malicious pyenv replacement in the Binance attack, malicious coding assignment that reached wallet signing.

Questions

Where is the official Homebrew installer?

Only on brew.sh. The fake installers in this campaign were promoted through paid search results that imitate the Homebrew site.

How did the Binance attackers replace pyenv?

A fake job interview assignment, run on a work Mac, replaced /opt/homebrew/Cellar/pyenv/2.8.0/libexec/pyenv with a malicious file. /opt/homebrew is writable by the user, so no password was asked.

Is it safe to run a take-home coding assignment?

Not on a work computer or any machine with access to secrets. In this attack the assignment's setup step ran the malware.

Sources

Check your own machine

Connect an AI agent to the free, read-only FixLane MCP server or ask the Telegram bot: it checks what you have installed against verified fixed versions and serves a reviewed fix procedure. All guides.