The most expensive software bug in history...
Fireship
Summary
This video tells the cautionary tale of Knight Capital, a Wall Street giant that lost 440 million dollars in less than an hour due to a catastrophic software deployment error. By accidentally reusing an obsolete code flag from 2003, the firm triggered a legacy testing function called Power Peg. This caused the system to aggressively buy high and sell low across the market. The situation spiraled out of control when engineers panicked and worsened the error by rolling back the only functioning servers. Ultimately, the company collapsed and was sold within months, serving as a reminder of the risks hidden in legacy code and manual deployment practices.
Chapters
- 0:00Introduction to modern software failures
- 0:26Introducing the Knight Capital disaster
- 1:04What was Knight Capital?
- 1:26The SMARS trading system
- 1:41NYSE retail liquidity program pressure
- 2:19The Power Peg legacy flag
- 3:02Manual deployment flaws
- 3:16Deployment failure across servers
- 3:28The moment of the crash
- 3:40The panic-driven rollback
- 3:54Calculating the massive financial loss
- 4:15Aftermath and company acquisition
Topics covered
- Modern security incidents
- Knight Capital's role on Wall Street
+6 more topics (full content when you follow the channel)
Transcript excerpt
It seems like every week now we're seeing security incidents happening that would have made mainstream news just a few years ago. The big ones lately have been the North Korean hackers who Trojan horse tapped the JavaScript ecosystem, the OpenAI model that committed a felony to get answers to a benchmark, and that time Anthropic accidentally open-sourced Claude code at 4:00 a.m. via an NPM source map. But, sometimes it's good to remember that even before AI, the software has always been held together with duct tape and the poverty of open-source maintainers. And there's no better example of this than the damage one company managed to do to itself 14 years ago this month with organic human retardedness. In about 45 minutes on a random Wednesday, Knight Capital, who at one time was responsible for 10% of all stock trading happening in the United States, lost $440 million, and 4 months late…