All case studies

Where reduction worked

WitFoo

Forked every external dependency and pruned what it did not use

The company took ownership of every Go module and npm package it ships, found 14 npm vulnerabilities on the way in, and now builds with no network access.

Removed: every external package the product builds from. 450 Go modules forked into the repository and pinned with replace directives, npm tarballs cached offline, upstream merges refused. Then the parts nobody called: 13,060 test files, 315 testdata directories, bundled daemons and CLI tools the product never ran. third_party/go/ fell from 964 MB to roughly 576 MB.

Outcome: all eight core services build with GOPROXY=off in 8.1 seconds and no network access. Binaries stayed at 318 MB and 10,157 Go tests still passed. Scanning code it now owned turned up 14 npm vulnerabilities, eight high severity, in flatted, happy-dom, picomatch and cookie; all were patched the same day.

The pre-state is the argument. 7,352,179 lines across 32,708 files, of which WitFoo’s own code was 183,363 lines in 737 files — “roughly 97.5% of the code running in our product was code we didn’t write and didn’t control.” One Google API package was 363 MB of the tree; they used about 2% of it.

The trade is real: a frozen fork patches nothing upstream, so a Monday job scans for CVEs against the pinned versions. The account is the R&D lead’s own, on his personal site.

Source: Charles Herring, The Nuclear Code Fork (30 March 2026)