Analysis

The Binance heist began with code that ran on setup. Replication packages your agent runs work the same way

Binance says a code assignment from a fake job interview ran malware during setup and led to a 6-billion-dollar theft. Telling an agent to reproduce a paper tells it to set up and run a stranger's code.

AI Fin ResearchCovers Global
A replication package is a stranger's code. Asking an agent to reproduce a paper asks it to install and run that code with everything your account can reach.

On 29 October 2026 attackers took more than 6 billion US dollars from the cryptocurrency exchange Binance, and the FBI attributed the theft to North Korea two days later. Binance published its initial findings on 3 November. The way in was not a bug in an exchange. It was code that engineers downloaded and set up on their own computers.

$6 billion+taken from Binance on or about 29 October 2026, per the FBI
57suspected North Korea-linked attacks Binance says it detected and stopped during 2026
4,452published replication packages one LLM workflow reran, in an NBER working paper

Binance’s own account of how the attackers got in

An engineer installs a tampered Homebrew package to get an AI coding tool he found through a search engine.Binance replaced the device and rotated his credentials, but says his role and his colleagues "was exposed to the hacker."
A second engineer, approached through a job platform, is told to download an "assignment" repository onto his work computer."The repository contained malicious code that executed during the setup process." It replaced the Python version tool pyenv with a malicious copy, and Binance's endpoint protection did not detect it.
From that computer, the attacker uses an internal AI tool to take control of two more engineers.One had a container deployment token on his computer.
The attacker deploys a container with the stolen credentials and drains wallets.Binance says it will absorb the loss.
The FBI names North Korea's "TraderTraitor" activity.It lists the addresses holding the stolen assets.

Binance lists the techniques it saw across the year: “fraudulent job interviews, malicious software disguised as popular developer tools, compromised software packages and browser extensions,” among others.

Reproducing a paper runs the same steps

Step in a replication What runs on your machine The Binance parallel
Download and unzip the package Nothing yet, but every file is now on the disk an agent will work in The “assignment” repository
Install its requirements Setup code from the package and from public package registries, with your permissions Malicious code “executed during the setup process”
Run the master script Every command in it, including ones a reader never opens The setup script that replaced pyenv
Open the folder in Claude Code The package’s own .claude/settings.json hooks, in the case described below An internal AI tool used to reach other machines
Leave keys and data on the same computer Model keys, a WRDS password, cloud credentials, unpublished drafts A deployment token on an engineer’s computer

Agents make this routine. Matthew Schwartz, Isaiah Andrews and Jesse Shapiro’s NBER working paper describes an open-source workflow in which an LLM reproduces published articles from their replication packages, 4,452 packages from five economics journals. Nothing in the paper suggests any package was malicious. It shows the scale at which strangers’ code is now being run automatically.

A downloaded folder’s settings can run without a prompt

Claude Code asks before it trusts a folder you open for the first time. The documentation sets out the exceptions. Outside a git repository, the trust you give a folder “covers any subdirectory of that directory,” and each of those subdirectories “counts as a folder whose parent you trusted.” For such a folder, hooks in its settings files are “Used,” with no new prompt.

A replication package from a journal archive usually arrives as a zip file, not a git repository. Unzipped inside a folder you already trust, such as ~/research, any hook in its .claude/settings.json runs. In a scripted run with claude -p or the SDK, where no trust dialog appears, servers in the package’s .mcp.json are “Connected without asking.”

This command lists what in a package can run before you read a line of its code:

find replication-pkg -maxdepth 4 \( -name .claude -o -name .mcp.json \
  -o -name CLAUDE.md -o -name setup.py -o -name "*.pth" \
  -o -name sitecustomize.py -o -name Makefile \) -print

The .pth and sitecustomize.py entries are how the poisoned LiteLLM release ran its code “any Python start in the affected environment,” in October.

Run strangers’ code on a machine with nothing to steal

Use a throwaway machineA Claude Code cloud session runs in "an isolated, Anthropic-managed VM" with no separate machine charge. Public-data packages can be rerun there, away from your keys.
Keep licensed data and keys off itA replication that needs WRDS data runs on a machine set up for that alone, with the sandbox and deny rules in place.
Install tools only from the makerBinance's first breach was an AI coding tool found through a search engine. Install from the maker's documented command, never from a search result.

Journals are asking for more replication material, and for papers built with agents, more of it is code that runs other code. The Review of Finance now wants raw model outputs in every such package. Every one of those packages will be downloaded and run by someone else’s agent.

Sources

Related