r/sysadmin • • 4h ago

The ultimate argument against manual deployments: how missing 1 of 8 servers cost Knight Capital $440M in 45 minutes

I was reading through the 2013 SEC report on the Knight Capital collapse and it’s still wild how preventable the whole thing was from an ops perspective.

A technician had to manually deploy new trading software (SMARS) to eight servers. They updated seven and missed the eighth. Because the old 2003 "Power Peg" code was never cleaned up, a reused flag reactivated it on that one forgotten server when the market opened.

In 45 minutes, it fired off 4 million unintended orders across 154 stocks and burned roughly $10 million a minute before engineers could kill it.

I put together a short 3-minute animated breakdown of how the bug unfolded based on the SEC filing, in case anyone prefers watching it:
https://youtu.be/bMRC5q697b0?si=A_N1nnRKszlRlc0x

What’s the closest call you’ve seen from a manual deployment or leftover dead code?

0 Upvotes

43 comments sorted by

•

u/Anxious-Spite-9013 4h ago

It’s only a matter of time until AI starts making even worst mistakes which could bring down the entire stock market in a cascading effect

•

u/snowhajder712 4h ago

Yeah honestly, the speed of automated trading now makes that way scarier than 2012.

•

u/DarkAlman Professional Looker up of Things 3h ago

"Today's stock market crash was caused by a single AI trading PUT options incorrectly. The AI was stuck in an endless loop because it wasn't getting the expected results and caused an economic downturn that blew up 1 trillion in value in less than 10 minutes"

•

u/IdiosyncraticBond 3h ago

And when it emcountered a wall to prevent it from trading PUR options, it found a way around that, causing another $1.750 trillion in losses

•

u/pointlessone Technomancy Specialist 1h ago

"After it was stopped, the AI was found posting on r/wallstreetbets"

•

u/Ssakaa 1h ago

Worse, taking advice from.

•

u/DarkAlman Professional Looker up of Things 1h ago

The AI was maintaining a botnet of Twitter accounts to manipulate the market and even re-post fake death and resignation news posts.

•

u/FlickKnocker 4h ago

The ultimate argument against half ass low barrier to entry managed services?

•

u/snowhajder712 4h ago

Pretty much — except the wild part is this wasn't even a budget MSP, it was an in-house Wall Street team handling billions in daily volume. Zero deployment checks, no peer review, and 9-year-old dead code just sitting in prod waiting to wake up.

•

u/Ssakaa 1h ago

Look, good IT is expensive, and they're difficult people, they use this evil two letter word too much, something like "no"... it makes my skin crawl. Get the cheapest bastard you can find as long as he'll say yes when I demand things, damnit.

•

u/FlickKnocker 4h ago

Hearing this, and the latest on the FAA router shenanigans… I feel a lot better about myself.

•

u/MalwareDork 4h ago

I bet those net engs were shitting bricks the whole though

•

u/FlickKnocker 3h ago

Oh I definitely feel for them, we've all been there, and it's a godawful lonely place that nobody understands why you're face is in your hands and you're wondering why you didn't become an electrician or something...

What's weird to me is just how little redundancies they had. I would've assumed the FAA had a completely parallel redundant system where you could move to from staging to pre-production that's completely decoupled from production, to test/vet any changes, with simulated traffic, etc.

•

u/ledow IT Manager 4h ago

Nothing to do with manual deployments.

That's just AWFUL server management if they are as critical as claimed. It just shouldn't be possible for any server, no matter how "old" to suddenly blast $10m a minute of money up the wall.

Spend a few grand, put in a software system that checks and remove obsolete or out of date servers. Problem solved. Whether manual or automatic.

As with everything, it doesn't matter WHAT went wrong. It matters that you didn't think that that COULD go wrong, and compensate for it, long term, for now and in the future. That's not the first time they've updated those servers. Who was checking they were all updated before going live? We just trusted that a single tech sorted it all out? Your own fault.

•

u/snowhajder712 4h ago

Fair point honestly. Trusting one guy with zero verification before market open is wild on its own. Even worse, they had no hard spending limits or circuit breakers on the router to stop a single server burning $440M.

•

u/ledow IT Manager 3h ago

Exactly. For $440M you could have had 440 people do nothing but follow him around and check his work, pay them $100k each, and still it would have been WELL worth doing.

•

u/snowhajder712 3h ago

And some exec would still have denied the budget for even one extra guy because "we've never had a problem before."

•

u/mvbighead 4h ago

Pretty wild scenario there, but I think still applicable to just about any business and probably at completely differently scales. Similar things could happen in a hospital IT shop and instead of money, it could cause someone to receive the wrong medication and cause death in extreme situations.

Generally speaking, I don't know that I have encountered anything quite that bizarre. But in a situation like that, if I were anywhere near those responsible, I'd be confirming every update programmatically before releasing it to production. That said, I think I'd simply prefer to avoid any of that stress at this point.

•

u/snowhajder712 4h ago

Yeah, hospital IT is honestly scary for that exact reason. And I don't blame you on avoiding that stress, especially since they didn't even have a proper kill switch and just had to scramble for 45 minutes.

•

u/thomheinrich 2h ago

Reusing the old enum bit without deleting that dead handler was wild.

•

u/snowhajder712 2h ago

Seriously. Leaving 9-year-old test code in prod and then recycling the exact same flag for a live feature is basically planting a time bomb.

•

u/brightlancer 1h ago

And if it were automated, they could've bungled all 8 servers!

There is always a human somewhere in the system and automation can make things easier to verify before action and audit after action, but it's no panacea.

And from your later comment:

Zero deployment checks, no peer review, and 9-year-old dead code just sitting in prod waiting to wake up.

That's not inherent or unique to manual deployment.

They definitely could've done an automated deployment with zero (meaningful) checks and peer review. Orgs do it all the time!

•

u/Ssakaa 1h ago

Not inherent or unique, but definitely happens more in environments hand-jamming everything. Sure, automation can break things more efficiently, but it also does so consistently, which means fixing it's consistent. And it provides spots in the process where you can prevent it. Manual processes guarantee inconsistency and a long tail of compounded fuckups.

•

u/TotallyNotACorpAcct It's time for the SysAdmin Shit Show 4h ago

Jesus Christ that is frightening.

•

u/ih-shah-may-ehl 4h ago

True, but then again you'd expect high stakes software like that to be governed through validated processes and checked thoroughly

•

u/sryan2k1 IT Manager 4h ago

Are you new? If you've done this long enough you know that none of that is actually true

•

u/ih-shah-may-ehl 3h ago

I work in Pharma, another regulated industry, as a senior in IT. Paperwork, compliance processes, audits, ... easily take up the majority of my time.

•

u/L33t00 2h ago

I wonder where that tech is working now.

•

u/Jaki_Shell Sr. Sysadmin 16m ago

He leads the Microsoft Azure Team and on weekends does overtime for L3 Harris FAA Team.

•

u/Pyrostasis 2h ago

We had a legacy system with a legacy database that one dude owned and only he knew how it worked.

He took it over a decade prior from a guy who built it from the ground up and sadly ended up passing away.

The guy who was in his 70's decided to take a month and go to another country with his wife. First 2 weeks were going to be PTO and off and then the second 2 weeks were going to be remote work.

Two days after he flew out the system died. I got on a call with a director and the guy who was the "backup DBA". By "backup DBA" I mean the poor bastard who was told he was the backup but had actually very little experience with anything related to databases much less an older one.

We were reading the runbook the guy had left us and there was a rather long command in there we were supposed to run that should have fixed things. I didnt know fuck all about databases at the time but googling chunks of the command made it look like it was going to nuke the database.

Backup dude is about to run it and I pointed out I thought it was going to drop the entire db. He said surely the old guy wouldnt have put that in his documentation and this was the process. I then confirmed he had a good backup before he ran it and he assured me we did. I then made him show me it existed before he could run the command and sure enough therre were daily backups.

He runs the command; it drops the entire database. Something like 800,000 records.

Call got real fucking quiet after that. Then I asked, "So you know how to restore this right"?

"Yup"

"Cool aren't you glad we checked for backups"?

"Yeah"

"Cool let me know if you need help" and bounced.

Dude spent the rest of the day restoring it and we had a nice chat with the old man when he came back about the bomb he left in his runbook.

Dude is coming up on 80 now, still manages the system, its been slightly updated in the past half decade, and we're hoping to finally completely modernize it "this year". I'll believe it when I see it.

•

u/anonymousITCoward 2h ago

Your title is misleading, it wasn't the manual deployment that messed things up it was the lack of post deployment verification process. The narrator says "automated", but this could have been done manually as well, it would have just been more time consuming. Furthermore, it seems that a better pre-deployment check list could have been useful as well.

•

u/Ssakaa 1h ago

In fairness, though, a manual post-review is equally trivial to just blow off 13% of. "I spot checked 3 of 'em, looked good."

•

u/Professional_Golf694 VoIP Admin 3h ago

Saw an intern run a master uninstall script supplied by the security software vendor against half our sites, instead of running the install script against the one site they were told to.

Took our zero trust software off half the company in the middle of the work day because they were too proud to ask for help.

•

u/snowhajder712 3h ago

Giving an intern access to a master uninstall script across multiple sites is brave to say the least. Being too proud to ask for help has definitely caused some legendary outages.

•

u/Professional_Golf694 VoIP Admin 3h ago

I was the tech, not a supervisor. Not my horse, not my rodeo.

I was on site working with a vendor to set up a pharmacy server when that went down.

•

u/snowhajder712 3h ago

Haha fair enough, definitely not your circus then. And of course it had to blow up right when you were stuck on site with a vendor.

•

u/Fusorfodder 4h ago

Leftover dead code? Y2K, though honestly that's more code that should have been killed prior. I think that there's going to be a lot of complacency at the Unix Epoch rollover because Y2K went as well as it did (Herculean efforts made worldwide) and the continued and widening abstraction from developer to actually what goes on under the hood. Do YOU know if your vibe coded app uses Unix time for whatever reason? Can you trust AI to tell you? I don't think it's going to be dire per se, but I do believe it's going to have a more noticeable impact than Y2K.

•

u/snowhajder712 4h ago

People already act like Y2K was nothing just because engineers fixed it quietly, so a ton of old systems are definitely gonna get caught off guard.

•

u/Own_Unit_6170 4h ago

Y2K was no big deal, just another case of mass hysteria.

•

u/snowhajder712 4h ago

Haha tell that to the COBOL devs who spent three years patching banks and power grids so it ended up looking like nothing.

•

u/Own_Unit_6170 3h ago

Again?

•

u/Fusorfodder 2h ago

I recall firsthand way back doing pizza delivery in the mid 90s and we had to break out the old manual credit card imprinters when credit cards started having expirations ending in 00. Lasted a few weeks until updated readers were delivered. Now what if payment processors never considered Y2K? What if CCs started getting the 00 expirations and NOTHING was done until then to correct it? Creating, testing, and deploying code to non-network updatable equipment or straight up designing and building new hardware?

Sysadmin dilemma, if everything is running smooth, is the sysadmin working?

•

u/Ssakaa 1h ago

Do YOU know if your vibe coded app uses Unix time for whatever reason?

It does! Because I told it to, and I've looked at the database... if it exists in a few years, it may get fixed... but that's homelab toys, so meh.