Latest / CyberCode Academy / Course 28 - Denial of Service and Elevation of Privilege | Episode 1: The Evolution of Denial of Service Attacks
Transcript
- 0:00Speaker 1: Welcome back to the Deep diive. So today we are
- 0:03Speaker 1: getting into something that affects literally everyone who uses technology,
- 0:07Speaker 1: which is the very fragile nature of system availability.
- 0:12Speaker 2: Oh, it is incredibly fragile, way more than most people realize.
- 0:15Speaker 1: Right, Like you know that feeling when an app won't
- 0:17Speaker 1: load or a website just hangs forever and you're refreshing
- 0:20Speaker 1: the page.
- 0:20Speaker 3: Yeah, we've all been there.
- 0:22Speaker 1: Well, today we're looking at exactly why that happens. We
- 0:24Speaker 1: are going to break down step by step how attackers
- 0:28Speaker 1: and honestly, sometimes just completely innocent accidents target different system bottlenecks.
- 0:33Speaker 2: It's a fascinating journey really because we're moving from you know,
- 0:37Speaker 2: traditional physical hardware all the way up to modern cloud
- 0:41Speaker 2: computing and the Internet of things.
- 0:43Speaker 1: Yeah, and to really understand this, we kind of need
- 0:46Speaker 1: to redefine what availability actually means in a technical sense, don't.
- 0:50Speaker 2: We We do, because when we talk about a denial
- 0:53Speaker 2: of service a DOS attack, it really just means impacting
- 0:56Speaker 2: the availability.
- 0:57Speaker 3: Of a resource.
- 0:58Speaker 2: That is the core principle. It's not a out stealing
- 1:02Speaker 2: your passwords or leaking private data. It's purely about making
- 1:05Speaker 2: sure you cannot access a.
- 1:07Speaker 1: System which brings up a massive misconception. Usually when we
- 1:10Speaker 1: talk about a system going down, there's this expectation of
- 1:13Speaker 1: like cinematic warfare.
- 1:15Speaker 3: Oh yeah, the hacker in.
- 1:16Speaker 1: The hoodie exactly. You picture a guy in a dark
- 1:19Speaker 1: basement furiously typing green code on a black screen, launching
- 1:24Speaker 1: a highly sophisticated cyber weapon. But the truth is, the
- 1:28Speaker 1: very first way a system fails usually isn't code at all.
- 1:32Speaker 3: No, it's not.
- 1:32Speaker 1: It's physical.
- 1:33Speaker 2: Far more often than any engineer would like to admit.
- 1:36Speaker 1: I mean, think about it. The electric grid running a
- 1:38Speaker 1: data center goes down because of a severe thunderstorm, or
- 1:42Speaker 1: a squirrel choose through a critical fiber optic cable.
- 1:45Speaker 2: Or a construction crew with a back hoe accidentally severs
- 1:48Speaker 2: a main Internet trunk line. That happens all the time.
- 1:51Speaker 1: Yes, we build these incredibly complex digital fortresses, but they
- 1:55Speaker 1: are entirely dependent on physical reality.
- 1:58Speaker 3: They really are.
- 1:59Speaker 2: I mean, you can have a mo TI million dollar
- 2:00Speaker 2: server die just because someone spilled coffee on a keyboard, or.
- 2:03Speaker 1: An outdoor security camera goes offline, not because of some
- 2:07Speaker 1: elaborate firewall breach, but because someone literally just walked up
- 2:11Speaker 1: and spray painted the lens right.
- 2:13Speaker 2: Even highly advanced machine learning systems, you know, running the
- 2:15Speaker 2: most complex algorithms on Earth, they will just sit there
- 2:19Speaker 2: completely idle, simply because the physical pathway moving data from
- 2:23Speaker 2: the RAM to the CPU got jammed.
- 2:26Speaker 1: So if we want to understand how a system is
- 2:29Speaker 1: taken offline digitally, the most logical approach is to just
- 2:33Speaker 1: follow the data pass.
- 2:35Speaker 2: Exactly, we need to track a piece of malicious data
- 2:37Speaker 2: from the outside world all the way to its final
- 2:39Speaker 2: destination inside the machine.
- 2:41Speaker 1: Okay, let's do that. Imagine a single bite of data
- 2:43Speaker 1: trying to take down a system. If that system survives
- 2:46Speaker 1: physical destruction, like it avoids the Roguebaco and the coffee spill,
- 2:50Speaker 1: the very first digital frontline it hits is the network connection.
- 2:54Speaker 2: We move from physical cables to logical.
- 2:56Speaker 1: Traffic, and the classic move here is network flooding, just
- 2:59Speaker 1: complete lely filling up the pipes.
- 3:01Speaker 2: Yeah, the goal is to send so much garbage traffic
- 3:03Speaker 2: to a target that legitimate traffic simply cannot physically fit
- 3:06Speaker 2: through the connection.
- 3:07Speaker 1: To give you a sense of scale on this, back
- 3:09Speaker 1: in June of twenty twenty, Amazon actually reported mitigating an
- 3:13Speaker 1: attack that sustained two point three terabets per.
- 3:15Speaker 2: Second, which is just a massive number, it is.
- 3:18Speaker 1: And that lasted for days two point three terabits. For context,
- 3:22Speaker 1: their ninety ninth percentile of traffic, meaning the absolute peak
- 3:26Speaker 1: of their normal everyday heavy traffic is usually only about
- 3:30Speaker 1: forty three gigabits per second.
- 3:32Speaker 2: So I mean the attack was roughly fifty times larger
- 3:34Speaker 2: than the maximum volume of their network was normally.
- 3:37Speaker 3: Expected to handle.
- 3:38Speaker 1: But how do they actually generate that? Because people often
- 3:40Speaker 1: use the terms data and packets interchangeably. Yeah, but network
- 3:45Speaker 1: engineers definitely do not.
- 3:46Speaker 3: No, they don't.
- 3:47Speaker 2: And there's a really strategic choice an attacker hass to
- 3:49Speaker 2: make here.
- 3:50Speaker 1: What kind of choice?
- 3:51Speaker 2: Well, you can send a massive amount of raw data
- 3:53Speaker 2: to simply clog the overall bandwidth, just giant files. Or
- 3:58Speaker 2: you can send billions of credibly tiny packets. Okay, the
- 4:01Speaker 2: overall data volume might be much lower, but the network
- 4:04Speaker 2: routing equipment, the physical hardware trying to read the destination
- 4:08Speaker 2: label on each individual packet, it gets completely overwhelmed and
- 4:11Speaker 2: just breaks down.
- 4:12Speaker 1: I love this concept. Think of it like a highway.
- 4:15Speaker 1: If you want to shut down a major interstate, you
- 4:18Speaker 1: really have two options. You could send a fleet of giant,
- 4:22Speaker 1: oversized semi trucks that take up all the lane.
- 4:24Speaker 2: Right, that's your large data packets. They just consume all
- 4:27Speaker 2: the physical space.
- 4:28Speaker 1: But your other option is to send a million tiny
- 4:31Speaker 1: motor scooters.
- 4:32Speaker 2: Yeah, they don't take up much physical space, but they
- 4:34Speaker 2: can cause absolute chaos exactly.
- 4:36Speaker 1: They're zipping around causing fender benders. But more importantly, they
- 4:39Speaker 1: completely overwhelm the tollbooths.
- 4:42Speaker 3: That's a great way to look at it.
- 4:43Speaker 1: The tollbooth operators, which are you know, the network routers.
- 4:46Speaker 1: In this scenario, they have to stop and process every
- 4:50Speaker 1: single scooter. They can't do it fast enough, and traffic
- 4:53Speaker 1: backs up for miles. That's the tiny.
- 4:56Speaker 2: Packet attack precisely.
- 4:57Speaker 1: But practically speaking, how does an attack actually force a
- 5:01Speaker 1: server to deal with all this?
- 5:02Speaker 2: Well, one really common method is exploiting post requests.
- 5:07Speaker 1: Okay, explain that.
- 5:08Speaker 2: In web traffic, a GAT request is lightweight. It's like
- 5:11Speaker 2: walking up to a server and asking, hey, can I
- 5:14Speaker 2: see the homepage? Simple enough, But a PS request is heavy.
- 5:18Speaker 2: It's like walking up to the server and handing it
- 5:20Speaker 2: a massive stack of paperwork and saying I need you
- 5:23Speaker 2: to process this, allocate memory for it, and file it away.
- 5:26Speaker 1: Oh wow.
- 5:27Speaker 2: Yeah, So attackers flood a server with complex post request
- 5:31Speaker 2: to just exhaust its capacity to accept any new connections.
- 5:34Speaker 1: And they don't play by the rules of the Internet either,
- 5:37Speaker 1: because normally the Internet relies on a polite handshake like
- 5:41Speaker 1: I send you data, you say I got it, and
- 5:43Speaker 1: if you're overwhelmed, you say slow down.
- 5:45Speaker 2: Right, The Transmission Control Protocol or TCP is designed to
- 5:48Speaker 2: be very cooperative.
- 5:50Speaker 1: But an attacker writes low level code that just strips
- 5:53Speaker 1: out that politeness entirely. Their code ignores the slowdown messages
- 5:57Speaker 1: and just blasts as much data as their local network
- 6:00Speaker 1: can physically push.
- 6:01Speaker 2: But here's the thing, one laptop doing that isn't enough
- 6:04Speaker 2: to take down Amazon, not even close. That's where amplification
- 6:07Speaker 2: and botnets come into play. Attackers will compromise thousands of
- 6:11Speaker 2: poorly secured devices out in the world, like.
- 6:14Speaker 1: Smart TVs, old home routers, internet connected refrigerators.
- 6:18Speaker 2: Even taking over a home router is trivial compared to
- 6:21Speaker 2: attacking a corporate data center. But once they control one
- 6:25Speaker 2: hundred thousand of those little devices, they weaponize them to
- 6:28Speaker 2: all send traffic at the exact same millisecond.
- 6:31Speaker 1: Okay, so Let's say the network pipes are incredibly robust,
- 6:34Speaker 1: the data center absorbs the flood, the toll booths survive
- 6:38Speaker 1: the scooters, and the attackers' traffic actually makes it inside
- 6:42Speaker 1: the system. What stops it next?
- 6:45Speaker 2: It hits the brain, the CPU, central processing unit, and
- 6:48Speaker 2: the memory. These components now have to actually look at
- 6:52Speaker 2: all that incoming data and figure out what to do
- 6:54Speaker 2: with it. And this is where computational complexity matters.
- 6:57Speaker 1: Immensely, because I mean, all math is not created equal
- 7:00Speaker 1: or a computer exactly.
- 7:01Speaker 2: If you ask a computer what is three times five?
- 7:03Speaker 2: It answers instantly. If you ask what is three to
- 7:05Speaker 2: the fifth power? Still instant sure, But if you ask
- 7:08Speaker 2: it what is three hundred and forty three million to
- 7:11Speaker 2: the nine hundred and twenty fourth power, you are going
- 7:14Speaker 2: to redline that CPU.
- 7:15Speaker 1: It actually has to sweat to figure that out.
- 7:17Speaker 2: It requires millions of actual physical computing cycles to calculate that.
- 7:23Speaker 2: Attackers intentionally format data to force the CPU into doing
- 7:27Speaker 2: the hardest math.
- 7:28Speaker 1: Possible, and sometimes they don't even use math at all.
- 7:31Speaker 1: There is this classic attack called the fork bomb. It's
- 7:34Speaker 1: super old school, but I want to understand the mechanics
- 7:36Speaker 1: of it. It's just a tiny script that copies itself right,
- 7:39Speaker 1: makes two copies, then four, then eight. But why does
- 7:42Speaker 1: that actually crash a system instead of just running in
- 7:44Speaker 1: the background.
- 7:45Speaker 2: It has to do with how an operating system manages tasks.
- 7:50Speaker 2: Think of the OS like a maitre taro at a
- 7:53Speaker 2: busy restaurant, and they have a limited number of pagers
- 7:56Speaker 2: to hand out to waiting guests. Okay, in a computer,
- 7:59Speaker 2: these pages are called process IDs. Every single program running
- 8:03Speaker 2: needs a unique process ID to function.
- 8:06Speaker 1: So the OS only has a finite number of those
- 8:08Speaker 1: ideas to hand out.
- 8:09Speaker 2: Precisely, a fork bomb doesn't do any heavy computing. It
- 8:12Speaker 2: just races to ask for all the pagers.
- 8:14Speaker 1: Oh I see.
- 8:14Speaker 2: It multiplies so fast that it consumes every single available
- 8:18Speaker 2: process ID in milliseconds. Once they are gone legitimate software,
- 8:24Speaker 2: even the systems own anti virus or recovery tools, they
- 8:28Speaker 2: can't even start up to stop the attack.
- 8:30Speaker 1: Because they can't get a pager.
- 8:31Speaker 2: Exactly, they can't get a process ID. The whole system
- 8:34Speaker 2: just holds.
- 8:34Speaker 1: That is fascinating. So they can show up the CPU
- 8:37Speaker 1: with math, they can show up the process limits with
- 8:40Speaker 1: a fork bomb, and they can also chew up the
- 8:42Speaker 1: RAM by writing scripts that allocate massive chunks of memory
- 8:45Speaker 1: the second they start.
- 8:46Speaker 2: With no delays, just instant memory consumption.
- 8:49Speaker 1: But this leads to something that completely changed my perspective
- 8:51Speaker 1: on this entire topic. We keep saying attackers, but you
- 8:54Speaker 1: don't actually need a malicious hacker to cause a denial
- 8:57Speaker 1: of service, do you not?
- 8:58Speaker 3: At all?
- 8:59Speaker 2: In fact, some time times the most devastating denial of
- 9:01Speaker 2: service attack comes from a company's very own engineering team.
- 9:05Speaker 1: Yes, there's a famous case study from July twenty sixteen
- 9:08Speaker 1: involving a major coding q and a website. Their entire
- 9:12Speaker 1: site went down.
- 9:13Speaker 3: I remember this one.
- 9:14Speaker 1: It wasn't a botnet. It was a single regular expression
- 9:17Speaker 1: A rejects for anyone off familiar. A reject is just
- 9:20Speaker 1: a piece of code used to search for text patterns.
- 9:23Speaker 1: A developer wrote this tiny housekeeping script to trim empty
- 9:27Speaker 1: spaces off the ends of user post titles.
- 9:29Speaker 2: Which is a completely standard task you see that everywhere.
- 9:31Speaker 1: But it was triggered by a specific user post that
- 9:34Speaker 1: had twenty thousand consecutive blank spaces in the title followed
- 9:38Speaker 1: by a few random characters. Oh no, yeah, the parser
- 9:42Speaker 1: checked all twenty thousand spaces it hit the character at
- 9:45Speaker 1: the very end and went, oops, that doesn't match the pattern.
- 9:48Speaker 1: But instead of just giving up the way the parser
- 9:50Speaker 1: evaluated the rule made it loop backward. It said, let
- 9:53Speaker 1: me check character nineteen nine ninety nine to see if
- 9:57Speaker 1: that matches.
- 9:58Speaker 2: And in computer science, this is known as order in
- 10:00Speaker 2: squared behavior, the time it takes to process something doesn't
- 10:04Speaker 2: grow linearly. It grows exponentially based on the input size.
- 10:08Speaker 1: Let me try to visualize order in squared. It's like
- 10:11Speaker 1: looking for a lost set of keys. If you have
- 10:13Speaker 1: five rooms in your house, you check room one, then
- 10:14Speaker 1: room two. It takes a few minutes. But imagine if
- 10:17Speaker 1: every single time you checked a new room, the rules
- 10:20Speaker 1: forced you to go back and recheck every previous room
- 10:23Speaker 1: you'd already looked in, just to be absolutely sure.
- 10:26Speaker 2: That is exactly what the CPU is doing.
- 10:28Speaker 1: So checking five rooms is annoying. Checking twenty thousand rooms
- 10:33Speaker 1: using that method would take the rest of your life.
- 10:36Speaker 1: For those twenty thousand blank spaces, the server wasn't doing
- 10:39Speaker 1: twenty thousand checks. It was doing hundreds of millions of checks.
- 10:43Speaker 1: The CPU locked up at one hundred percent capacity, caught
- 10:47Speaker 1: in an infinite loop of analyzing literally empty space and.
- 10:50Speaker 2: The beauty or I guess perhaps the horror of it
- 10:53Speaker 2: is that anywhere your code interacts with external data, this
- 10:57Speaker 2: exact risk exists. Right Sending an audio I made an
- 11:00Speaker 2: email to a list of ten people is easy. But
- 11:02Speaker 2: if a user uploads a list of ten million people
- 11:04Speaker 2: and the software tries to queue them all up in
- 11:06Speaker 2: the RAM at exactly the same time, the memory just crashes.
- 11:09Speaker 1: Or SQL databases, a developer writes a sloppy database query
- 11:13Speaker 1: that asks the server to cross reference three massive tables simultaneously.
- 11:17Speaker 1: Every time a user loads a page, it triggers that
- 11:19Speaker 1: massive calculation, and suddenly the application freezes for everyone.
- 11:22Speaker 2: Yeah, a bad sequel join will take a site down
- 11:25Speaker 2: faster than a bot net sometimes.
- 11:27Speaker 1: And the craziest part about that twenty sixteen rejects incident
- 11:31Speaker 1: it was never specified if that post with twenty thousand
- 11:34Speaker 1: spaces was a malicious attack. It could have just been
- 11:37Speaker 1: someone's cat falling asleep on the space bar, which.
- 11:39Speaker 2: Perfectly proves the point. An availability failure is an availability failure,
- 11:44Speaker 2: regardless of the intent.
- 11:45Speaker 1: Okay, so the data byte gets past the network pipe.
- 11:48Speaker 1: Let's say the CPU miracles its way through the math
- 11:51Speaker 1: without freezing. The data has been processed. Now the system
- 11:55Speaker 1: has to put it somewhere. It has to save the results.
- 11:57Speaker 2: Right, we move from processing power to yusical storage, the
- 12:01Speaker 2: hard drives, the flash storage.
- 12:02Speaker 1: You're attacking the filing cabinet storage exhaustion.
- 12:05Speaker 2: It is incredibly common and often completely self inflicted. Really well, yeah,
- 12:10Speaker 2: if an app allows users to upload raw, uncompressed four
- 12:13Speaker 2: K video and the engineering team doesn't strictly monitor their
- 12:17Speaker 2: disk space, those terabytes will just vanish in an afternoon,
- 12:20Speaker 2: just from normal use, exactly. Compare that to a platform
- 12:23Speaker 2: like Instagram, which intentionally stores billions of photos that might
- 12:27Speaker 2: only ever be viewed by like three people.
- 12:30Speaker 1: Which seems terribly inefficient.
- 12:32Speaker 2: It is, but they plan for that inefficiency, they build
- 12:35Speaker 2: the infrastructure around it. Storage crashes happen when the consumption
- 12:38Speaker 2: is completely unplanned, Like.
- 12:40Speaker 1: The story of the shared Unix mail spool decades ago,
- 12:44Speaker 1: a shared network's email server kept mysteriously crashing because the
- 12:49Speaker 1: primary hard drive kept filling up completely.
- 12:51Speaker 3: Oh, this is a classic.
- 12:52Speaker 1: The admins finally dig into it and they find massive
- 12:56Speaker 1: gigabyte sized files clogging the whole system. It turned out
- 13:00Speaker 1: to be an angry spouse she was mad at her partner,
- 13:03Speaker 1: so she just started emailing them massive copies of the
- 13:06Speaker 1: entire Unix operating system over and over again.
- 13:09Speaker 2: A highly targeted, very personal denial of service.
- 13:12Speaker 1: She later apologized because she didn't realize the server was
- 13:14Speaker 1: shared by hundreds of other users. She just wanted to
- 13:17Speaker 1: fill up her partner's inbox, but she took down the
- 13:19Speaker 1: entire network.
- 13:20Speaker 2: Yeah, it's amazing, But you know, malicious actors use storage
- 13:23Speaker 2: exhaustion too, and they do it way more elegantly than
- 13:26Speaker 2: emailing an operating system.
- 13:28Speaker 1: They exploit compression algorithms. Yes, the zip bomb. This is
- 13:31Speaker 1: such a clever vector. Explain how a tiny file takes
- 13:34Speaker 1: down a huge hard drive?
- 13:36Speaker 2: Well, it exploits the fundamental way compression works. When you
- 13:40Speaker 2: zip a file, the software looks for repeating data. If
- 13:43Speaker 2: a document has the letter A written to billion times,
- 13:47Speaker 2: the zip file doesn't actually save a billion, as.
- 13:49Speaker 1: That would defeat the purpose of zipping it right.
- 13:52Speaker 2: It just writes a tiny instruction that says print A
- 13:54Speaker 2: one billion times.
- 13:56Speaker 1: So the file itself is only a few bites in size.
- 13:59Speaker 2: Exactly perfectly valid data. But when that tiny file gets
- 14:03Speaker 2: emailed to a corporate server, the system's automated antivirus grabs
- 14:07Speaker 2: it to scan it. Yeah, to scan it from malware,
- 14:10Speaker 2: the anti virus has to unzip it in the system memory.
- 14:13Speaker 2: It reads that instruction, and suddenly a four kilobyte file
- 14:16Speaker 2: expands into forty gigabytes of raw data, instantly crushing the
- 14:20Speaker 2: server storage capacity.
- 14:21Speaker 1: It's like slipping a tiny, perfectly dehydrated sponge through a
- 14:25Speaker 1: mail slot. It looks completely harmless, but the second it
- 14:28Speaker 1: gets inside the house and touches water, or in this
- 14:30Speaker 1: case of the decompression software, it absorbs it and expands
- 14:34Speaker 1: exponentially until it literally bursts the walls of the house
- 14:37Speaker 1: from the inside out.
- 14:38Speaker 2: That is a great analogy, and it applies to data
- 14:41Speaker 2: structures too, not just ZIP files. Take XML files for example. Okay,
- 14:45Speaker 2: XML is a standard language for transporting data. Attackers can
- 14:49Speaker 2: craft XML files with nested entities that constantly reference each
- 14:53Speaker 2: other in an infinite loop.
- 14:55Speaker 1: Oh wow.
- 14:55Speaker 2: When the server tries to read it, the data structure
- 14:57Speaker 2: expands in the RAM until the machine.
- 14:59Speaker 3: Just does so.
- 15:01Speaker 1: We've exhausted the traditional hardware journey network CPU storage, but
- 15:06Speaker 1: technology evolves. We invented cloud computing specifically to solve these exact.
- 15:10Speaker 2: Problems we did. Modern cloud systems are built to scale infinitely.
- 15:14Speaker 1: Right. If you need more network, more CPU, or more storage,
- 15:17Speaker 1: you don't call a guide to buy a physical server anymore.
- 15:20Speaker 1: The cloud provider just automatically spins up virtual servers for
- 15:23Speaker 1: you in milliseconds.
- 15:24Speaker 2: Autoscaling is an absolute marvel of modern engineering. The resources
- 15:28Speaker 2: are just there when you need them. But and this
- 15:30Speaker 2: is a big book, it introduces a fundamental, dangerous shift
- 15:34Speaker 2: in how we think about availability. How So, if the
- 15:37Speaker 2: physical hardware never actually runs out, what becomes the new bottleneck?
- 15:41Speaker 1: It has to be money, the ultimate modern limit, because
- 15:45Speaker 1: autoscaling is magic, but you pay for every single compute
- 15:49Speaker 1: cycle you use.
- 15:50Speaker 3: Exactly.
- 15:51Speaker 2: There's an anecdote that perfectly captures this reality. An engineer
- 15:55Speaker 2: was discussing a system design with a colleague, and the
- 15:57Speaker 2: colleague casually mentioned that their company had recently turned off
- 16:00Speaker 2: SSL encryption for a multiplayer online game they were hosting.
- 16:04Speaker 1: Wait, they turned off encryption.
- 16:06Speaker 2: Yeah, And the engineer, thinking about cybersecurity, immediately protested, explaining
- 16:11Speaker 2: why encrypting traffic is essential, But the colleagues stopped him
- 16:15Speaker 2: and said, yeah, but by turning it off, we got
- 16:17Speaker 2: to decommission thirty thousand servers.
- 16:19Speaker 1: Hold on thirty thousand servers just for security. I understand
- 16:22Speaker 1: encryption is heavy, but how does the math on that
- 16:25Speaker 1: actually work? That sounds wildly disproportionate.
- 16:28Speaker 2: It comes back to the CPU math we discussed earlier.
- 16:31Speaker 2: Setting up an SSL connection requires a cryptographic handshake. The
- 16:35Speaker 2: server and the user's computer have to generate and verify
- 16:39Speaker 2: massive prime numbers to create secure keys. It is incredibly
- 16:43Speaker 2: CPU intensive when you have millions of players constantly connecting
- 16:48Speaker 2: and disconnecting. The compute power required just to do that
- 16:51Speaker 2: math necessitates entire data centers. By turning it off, the
- 16:56Speaker 2: CPU load dropped to almost nothing.
- 16:58Speaker 1: And the punchline of that story is brilliant. The engineer asks,
- 17:01Speaker 1: how do you even decommission thirty thousand servers in the cloud?
- 17:05Speaker 1: And the colleague just says, we stop paying for them.
- 17:07Speaker 2: Which illustrates the modern reality perfectly. Your infrastructure is directly
- 17:11Speaker 2: tethered to your bank account, and this has created a
- 17:14Speaker 2: brand new attack vector known as the financial doss.
- 17:16Speaker 1: A financial denial of service.
- 17:18Speaker 2: Yes, as an architect building an app today, you are
- 17:21Speaker 2: phased with a brutal binary choice regarding your budget.
- 17:24Speaker 1: Let me think through this binary because it feels like
- 17:26Speaker 1: a total trap. Okay, Option A. I'm building an app
- 17:28Speaker 1: and I set a strict budget cap. I tell my
- 17:31Speaker 1: cloud provider never spend more than five thousand dollars a month.
- 17:34Speaker 1: An attacker hits me with a massive flood of traffic,
- 17:37Speaker 1: the auto scaling kicks in, server spin up, and then
- 17:40Speaker 1: I hit the five thousand dollars limit.
- 17:41Speaker 3: And what happens to the auto scaling.
- 17:43Speaker 1: It hard stops. It refuses to spin up more servers,
- 17:47Speaker 1: which means the attacker's traffic immediately overwhelms the system and
- 17:51Speaker 1: my site goes offline. I suffer a traditional denial of
- 17:54Speaker 1: service attack.
- 17:55Speaker 2: You lose availability, but you protect your wallet. Now look
- 17:58Speaker 2: at option B.
- 17:59Speaker 1: Option I don't set a cap. I leave it open
- 18:02Speaker 1: because I want one hundred percent uptime No matter what.
- 18:04Speaker 1: The attacker hits me with the same massive flood, The
- 18:07Speaker 1: autoscaling goes into overdrive. Ten thousand servers spin up to
- 18:10Speaker 1: handle the junk traffic.
- 18:12Speaker 2: And the system stays online flawlessly.
- 18:14Speaker 1: But at the end of the month, I get a
- 18:16Speaker 1: half million dollar cloud bill that bankrupts my company.
- 18:19Speaker 2: It's a terrifying catch. Twenty two, we invented cloud auto
- 18:22Speaker 2: scaling to defeat traditional DOS attacks, but in doing so
- 18:26Speaker 2: we essentially handed the attackers our credit cards.
- 18:29Speaker 3: That is wild.
- 18:30Speaker 2: As an expert, I always advise clients hit the limit,
- 18:33Speaker 2: let the system go down. Really absolutely, It is infinitely
- 18:37Speaker 2: easier to authorize a budget increase to brought a system
- 18:40Speaker 2: back online than it is to try and convince a
- 18:42Speaker 2: cloud provider to forgive a six figure bill for resources
- 18:44Speaker 2: you actually consumed.
- 18:46Speaker 1: So money is the bottleneck in the cloud. What about
- 18:49Speaker 1: the physical world. We still have hardware out there, especially
- 18:51Speaker 1: if the Internet of Things.
- 18:53Speaker 2: For IoT the ultimate constraint is power. The battery. If
- 18:58Speaker 2: someone runs a heavy script on your laptop up, the
- 19:00Speaker 2: fan spins, the battery dies in an hour. It's annoying,
- 19:04Speaker 2: but you just plug it into the wall.
- 19:05Speaker 1: But IoT devices are remote. We have agricultural sensors in
- 19:09Speaker 1: the middle of fields, ocean monitors on buoys, security cameras
- 19:13Speaker 1: mounted thirty feet up on brick walls.
- 19:15Speaker 2: Exactly, if that battery dies, you can't just plug it in.
- 19:18Speaker 2: You have to send a technician driving out in a
- 19:20Speaker 2: truck with a ladder. Draining the battery is a highly
- 19:23Speaker 2: effective operational.
- 19:25Speaker 1: Attack, and modern hardware design makes it even worse.
- 19:27Speaker 2: It does to make devices waterproof, and compact batteries are
- 19:31Speaker 2: no longer swampable. They are integrated gel packs sealed inside
- 19:35Speaker 2: the casing. You can't just pop in for new aas
- 19:38Speaker 2: if the battery dies. The device is a brick until
- 19:42Speaker 2: it slowly trickles a charge from a tiny solar panel, and.
- 19:45Speaker 1: Doing that repeatedly causes physical damage, doesn't it, Yes.
- 19:48Speaker 3: It does.
- 19:48Speaker 2: Yeah. Lithium ion batteries degrade with every charge cycle. An
- 19:52Speaker 2: attacker can write code that forces a device to wake
- 19:54Speaker 2: up max outed CPU, drain the battery, and recharge continuously.
- 19:59Speaker 1: So they are in intentionally burning through the chemical life
- 20:02Speaker 1: span of the battery.
- 20:03Speaker 2: They can even trigger memory effects by forcing partial recharges,
- 20:07Speaker 2: which permanently diminishes the battery's total capacity. It is a
- 20:10Speaker 2: digital command that causes irreversible physical degradation.
- 20:15Speaker 1: It really circles back to where we started. The physical
- 20:17Speaker 1: reality of these systems is their weakest point. We have
- 20:21Speaker 1: covered incredible ground today, from flooding network pipes with tiny scooters,
- 20:25Speaker 1: overwhelming the CPU with complex math and fork bombs, dropping
- 20:29Speaker 1: dehydrated zip bomb sponges into storage, all the way to
- 20:33Speaker 1: cloud budgets and battery chemistry.
- 20:35Speaker 3: We really ran the gamut.
- 20:36Speaker 1: So to lock this all in, I have a quick
- 20:38Speaker 1: exercise for you, the listener. I want you to mentally
- 20:41Speaker 1: map out an application you use every day, or maybe
- 20:43Speaker 1: a system you're building for work. Look at it like
- 20:45Speaker 1: an attacker. Where is the absolute weakest link?
- 20:48Speaker 3: That's a great exercise.
- 20:50Speaker 1: Is it the network pipe? Could a sloppy sequel join
- 20:53Speaker 1: spike the CPU? Do you have an unprotected cloud budget
- 20:57Speaker 1: just waiting to be exploited?
- 20:59Speaker 2: Thinking like an attacker is truly the best way to
- 21:01Speaker 2: defend a system and to leave you with one final,
- 21:05Speaker 2: slightly chilling thought that builds on everything we've analyzed.
- 21:08Speaker 1: Oh boy, here we go.
- 21:09Speaker 2: We've talked about human attackers in human errors. But what
- 21:12Speaker 2: happens very soon when we hand infrastructure management over to
- 21:16Speaker 2: autonomous AI?
- 21:18Speaker 1: Oh wow?
- 21:19Speaker 2: If a machine learning agent is given the power to
- 21:21Speaker 2: dynamically write its own code to optimize backend efficiency, could
- 21:26Speaker 2: that AI accidentally create a massive order and squared logical.
- 21:29Speaker 1: Loop like the twenty thousand spaces rejects.
- 21:32Speaker 2: Exactly, And instead of just crashing a single server, could
- 21:34Speaker 2: it autonomously spin up endless cloud resources to try and
- 21:37Speaker 2: solve its own infinite loop, effectively bankrupting a company's entire
- 21:41Speaker 2: cloud budget in milliseconds, long before a human engineer could
- 21:44Speaker 2: even pull the plug.
- 21:45Speaker 1: Now that is a thought that will keep network architects
- 21:48Speaker 1: awake at night, because no matter how infinite the cloud seems,
- 21:51Speaker 1: or how smart the AI gets, it, all still relies
- 21:54Speaker 1: on finite resources. Thanks for exploring the fragile nature of
- 21:58Speaker 1: availability with us and you on the next deep dive.