Latest / CyberSecurity Summary / TLS Cryptography In-Depth: Explore the intricacies of modern cryptography and the inner workings of TLS
Transcript
- 0:00Speaker 1: I want you to picture something you do probably every
- 0:03Speaker 1: single day, maybe twenty thirty even one hundred times.
- 0:06Speaker 2: A day, Yeah, easily one hundred times.
- 0:08Speaker 1: Right, You open your browser, you type in a URL.
- 0:11Speaker 1: Maybe it's your bank, maybe it's your email, maybe it's
- 0:13Speaker 1: I don't know, that embarrassing medical question you don't really
- 0:16Speaker 1: want to ask a doctor in person.
- 0:17Speaker 2: We've all been there, exactly.
- 0:19Speaker 1: And you look up and you see that little padlock
- 0:22Speaker 1: icon in the corner, you see the letters HTTPS, and
- 0:27Speaker 1: you just kind of relax.
- 0:28Speaker 2: You feel safe.
- 0:29Speaker 1: You feel safe. You type in your credit card number,
- 0:31Speaker 1: your social Security number, you know your darkest secrets. You
- 0:35Speaker 1: just trust it implicitly. But here's the question that really
- 0:39Speaker 1: kept nagging me while reading our source material for today's
- 0:42Speaker 1: deep dive. Why do we trust it? Like? What is
- 0:46Speaker 1: actually happening behind that little icon to justify all that trust?
- 0:50Speaker 2: It is arguably the single most important click we make
- 0:53Speaker 2: in the modern world, and for most people, I mean,
- 0:55Speaker 2: it's just magic. It's a binary state, right, it's locked
- 0:58Speaker 2: or it's unlocked. Yeah, But as we're going to find
- 1:01Speaker 2: out today exploring this, it is definitely not magic. It's
- 1:04Speaker 2: basically a war zone.
- 1:06Speaker 1: A war zone is an incredibly vivid way to put it.
- 1:09Speaker 2: Welcome back to the Deep Dive Today we are tackling
- 1:13Speaker 2: an absolute beast of a topic. We're engaging with TLS
- 1:16Speaker 2: Cryptography in Depth by doctor Paul Dupless and doctor Roland Schmidz. Now,
- 1:20Speaker 2: I have to be honest with you. When I first
- 1:22Speaker 2: saw the title, I thought, Okay, this is going to
- 1:23Speaker 2: be dry.
- 1:24Speaker 1: It sounds a bit heavy.
- 1:25Speaker 2: It does transport layer security doesn't exactly screen betreat. I
- 1:29Speaker 2: was fully expecting pages and pages of just impossible math. Right.
- 1:33Speaker 1: It sounds incredibly dense, and look, the math inside the
- 1:36Speaker 1: protocol is dense. It kind of has to be. But
- 1:38Speaker 1: if you peel back the layers as we're going to do,
- 1:40Speaker 1: this isn't really a math book. It's a book about
- 1:42Speaker 1: high stake strategy. It is the story of the invisible
- 1:46Speaker 1: armor that keeps the global economy from effectively collapsing overnight
- 1:50Speaker 1: because without TLS, the Internet as we know it simply
- 1:52Speaker 1: stops functioning. That's totally the vibe I got once I
- 1:55Speaker 1: actually started reading. The mission for this deep dive is
- 1:58Speaker 1: to try and move past the complex equations. Will leave
- 2:02Speaker 1: the capulus to the computers and get at the core
- 2:05Speaker 1: question the authors are posing, how do two people who
- 2:09Speaker 1: have literally never met share a secret in a crowded
- 2:12Speaker 1: room without anyone else hearing.
- 2:14Speaker 2: That's the golden question because looking at.
- 2:16Speaker 1: The source material, the answer involves everything from Cold War
- 2:20Speaker 1: spies to well, actual lava lamps.
- 2:23Speaker 2: The lava answer honestly my favorite part of the whole infrastructure.
- 2:27Speaker 1: We will definitely get to those.
- 2:28Speaker 2: Yeah, it really covers the full spectrum. It spans the
- 2:30Speaker 2: history of the Internet, from the early days where everyone
- 2:32Speaker 2: just trusted everyone to the modern zero trust environment we
- 2:36Speaker 2: have to live in right now.
- 2:37Speaker 1: So let's unpack this. The book starts by setting the
- 2:40Speaker 1: stage with a bit of history. We usually think of
- 2:42Speaker 1: cryptography as this military thing, right Enigma machines, guys in
- 2:47Speaker 1: trench coats, meeting on foggy bridges, submarines exchanging coded messages.
- 2:52Speaker 2: Historically, that's exactly what it was. For thousands of years.
- 2:55Speaker 2: Cryptography was exclusively for generals, diplomats, and spies. Right. If
- 3:00Speaker 2: you were just a regular person in say nineteen fifty,
- 3:04Speaker 2: you didn't need to encrypt your grocery list or your
- 3:06Speaker 2: letter to Gramma. No one cared exactly. But the source
- 3:09Speaker 2: material makes a crucial point here the shifts wasn't just
- 3:13Speaker 2: about technology improving, It was about necessity. Two massive forces
- 3:18Speaker 2: collided to make cryptography essential for every single person on Earth,
- 3:24Speaker 2: and those are connectivity and complexity.
- 3:27Speaker 1: Let's start with connectivity. Because on the surface, connecting everything
- 3:30Speaker 1: seems great. My toaster talks to my phone, my car
- 3:33Speaker 1: talks to the traffic lights. I can see who is
- 3:35Speaker 1: at my front door while I'm on vacation. It all
- 3:38Speaker 1: feels like progress. But the authors argue this created a
- 3:41Speaker 1: massive problem.
- 3:42Speaker 2: It created the problem of the attack surface. Think about
- 3:44Speaker 2: it this way. When you connect to toothbrush or a
- 3:46Speaker 2: cart to the Internet, you are opening a door. You
- 3:49Speaker 2: were creating an entry point.
- 3:50Speaker 1: Yeah.
- 3:51Speaker 2: And the scary part, which the authors highlight beautifully is
- 3:53Speaker 2: the concept of zero marginal cost. This is an economic
- 3:57Speaker 2: term that has terrifying implications for cybersecurity.
- 4:00Speaker 1: Zero marginal cost. I actually circled that phrase in my notes.
- 4:03Speaker 1: It sounds a bit like business school jargon. But break
- 4:06Speaker 1: that down for us. How does that apply to hacking?
- 4:08Speaker 2: Okay, so imagine you want to break into houses in
- 4:11Speaker 2: a physical neighborhood. To break into one house takes time,
- 4:15Speaker 2: it takes effort and risk. I have to pick the lock,
- 4:18Speaker 2: check for dogs, avoid the police, maybe jump a fence.
- 4:21Speaker 1: Sounds exhausting right now.
- 4:23Speaker 2: To break into six hundred thousand houses that would take lifetimes.
- 4:27Speaker 2: It is physically impossible for one person to.
- 4:29Speaker 1: Do that because the physics of the real world slow
- 4:31Speaker 1: you down. You can only be in one place at
- 4:33Speaker 1: one time exactly.
- 4:34Speaker 2: But in the digital world, physics doesn't apply in the
- 4:36Speaker 2: same way. Once an attacker writes a script to hack
- 4:40Speaker 2: one specific device, say a specific model of webcam with
- 4:44Speaker 2: a known security flaw, the cost to hack one hundred
- 4:47Speaker 2: thousand of those webcams is essentially zero. Wow, it costs
- 4:50Speaker 2: them nothing to scale up. You just press enter and
- 4:52Speaker 2: the script runs against the entire Internet.
- 4:54Speaker 1: That is a terrifying thought, scaling a crime instantly, and
- 4:57Speaker 1: the source gives a really concrete, really just diructive example
- 5:00Speaker 1: of this the Mirri botnet from twenty sixteen.
- 5:03Speaker 2: This is a classic case study in the book. Mira
- 5:05Speaker 2: was a piece of malware that honestly wasn't even that
- 5:08Speaker 2: sophisticated code wise. It was actually quite simple. Really yeah.
- 5:11Speaker 2: It just scanned the Internet for IoT devices, cameras, routers,
- 5:15Speaker 2: baby monitors that were still using factory default passwords. Because
- 5:19Speaker 2: let's be honest, how often do users plug these things
- 5:22Speaker 2: in and actually change the admin settings?
- 5:24Speaker 1: Almost never. I'm guilty of it. You get the new gadget,
- 5:27Speaker 1: you just want it to work, you plug it in,
- 5:29Speaker 1: and you completely forget about it.
- 5:30Speaker 2: We all are, Yeah, And the speed of this infection
- 5:33Speaker 2: was insane. The source notes that at its peak, Mira
- 5:37Speaker 2: was infecting devices within minutes of them going online. Metz
- 5:40Speaker 2: it amassed an army of six hundred thousand bots, and
- 5:44Speaker 2: it did this because of that connectivity. You couldn't physically
- 5:47Speaker 2: recruit six hundred thousand soldiers that fast, but digitally it
- 5:52Speaker 2: took moments. And then they used those six hundred thousand
- 5:54Speaker 2: devices to launch attacks that took down major parts of
- 5:57Speaker 2: the Internet.
- 5:58Speaker 1: So that's connectivity. We've connected every thing, so everything is
- 6:01Speaker 1: vulnerable to these mass scale attacks. But then we have
- 6:04Speaker 1: the second driver, which is complexity. The authors have this
- 6:07Speaker 1: quote that I underline three times complexity is the worst
- 6:11Speaker 1: enemy of security.
- 6:12Speaker 2: It's a bold statement, but it holds up under scrutiny.
- 6:16Speaker 2: The logic is simple. The more complex a system is,
- 6:20Speaker 2: the more moving parts it has, and more moving parts
- 6:23Speaker 2: means more mistakes. Software is written by humans, and humans
- 6:27Speaker 2: make mistakes.
- 6:28Speaker 1: They use the Linux kernel as an example here to
- 6:31Speaker 1: illustrate just how big these systems have gotten.
- 6:34Speaker 2: Right, The Linux kernel is the core of so many
- 6:37Speaker 2: operating systems, including Android, and a huge chunk of the
- 6:40Speaker 2: web's infrastructure is something like thirty million lines.
- 6:43Speaker 1: Of code thirty millionar.
- 6:44Speaker 2: Now, think about human error. Even if you are the
- 6:46Speaker 2: absolute best programmer in the world, you are going to
- 6:49Speaker 2: make typos. You're going to make logic errors. Even if
- 6:52Speaker 2: you only have one bug for every ten thousand lines
- 6:54Speaker 2: of code, which would be an incredibly low air rate.
- 6:58Speaker 2: A system that size is satistically guaranteed to have thousands
- 7:01Speaker 2: of vulnerabilities.
- 7:02Speaker 1: So we are essentially building systems that are just too
- 7:05Speaker 1: big to ever be fully bug free. We're building skyscrapers
- 7:09Speaker 1: knowing there are cracks in the foundation simply because the
- 7:12Speaker 1: skyscraper is too big to inspect every single inch of
- 7:15Speaker 1: concrete precisely.
- 7:16Speaker 2: And that is the fundamental argument for why we need
- 7:18Speaker 2: cryptography and protocols like TLS. We can't fix every bug
- 7:22Speaker 2: in the software. It's impossible, So we wrap the communication
- 7:26Speaker 2: in this invisible armor to protect it, even when the
- 7:29Speaker 2: system itself might be vulnerable. We assume the network is
- 7:32Speaker 2: hostile and we armor the data.
- 7:35Speaker 1: Okay, so that's the why we're living in a glasshouse
- 7:37Speaker 1: of complexity and connectivity. Now, let's talk about the how
- 7:41Speaker 1: the book introduces us to a cast of characters to
- 7:43Speaker 1: explain how this armour works. If you've ever read anything
- 7:45Speaker 1: about crypto, you know these names. We've got Alice and Bob,
- 7:48Speaker 1: the famous duo.
- 7:49Speaker 2: Alice is usually the center, Bob is the receiver. They
- 7:52Speaker 2: are just placeholders for point A and point B. But
- 7:55Speaker 2: in a security context, we have to introduce the villains
- 7:58Speaker 2: to really understand the stakes. You have Eve Eve the evesdropper. Correct,
- 8:03Speaker 2: she just listens, She sits on the wire. She wants
- 8:06Speaker 2: to steal your credit card number or read your emails,
- 8:08Speaker 2: but she doesn't actually touch the data. She's passive. She's
- 8:12Speaker 2: the spy in the corner booth with the newspaper cutout.
- 8:14Speaker 1: And then there's the nastier one, Mallorie.
- 8:17Speaker 2: Mallory is the active attacker. She's malicious. She doesn't just listen.
- 8:22Speaker 2: She intercepts the message and changes it. She takes a
- 8:24Speaker 2: message like paid Bob ten dollars and changes it to
- 8:27Speaker 2: pay Mallory ten thousand, dollars before passing.
- 8:30Speaker 1: It along to stop even Mallory. The book introduces this
- 8:33Speaker 1: framework called the CIA triad, and I have to clarify
- 8:36Speaker 1: for everyone listening, this is not the Spy Agency, no.
- 8:39Speaker 2: Although I'm sure the agency cares deeply about this concept too.
- 8:42Speaker 2: CIA in this context stands for confidentiality, integrity, and authentication.
- 8:48Speaker 2: These are the three pillars of a secure channel. If
- 8:51Speaker 2: you are missing even one, you aren't safe. You need
- 8:54Speaker 2: all three to actually trust the connection.
- 8:56Speaker 1: Let's take them one by one to see how they
- 8:58Speaker 1: actually work in the wild. Starting confidentiality, this is what
- 9:02Speaker 1: most of us think of when we hear the word encryption,
- 9:05Speaker 1: Keeping secret secret right.
- 9:07Speaker 2: This is the primary defense against EVE. Only Alice Babob
- 9:10Speaker 2: should be able to read the message. If EVE intercepts it,
- 9:13Speaker 2: it should just look like garbage data, pure static. But
- 9:18Speaker 2: the source gives a great example of what happens when
- 9:20Speaker 2: confidentiality fails.
- 9:22Speaker 1: The we hack oh early Wi Fi security. I remember
- 9:26Speaker 1: this being notoriously bad, but I never actually understood why.
- 9:29Speaker 1: I just knew I was supposed to switch my router
- 9:31Speaker 1: to WPA.
- 9:32Speaker 2: It was awful. WEP stands for wired equivalent privacy. The
- 9:38Speaker 2: goal was to make Wi Fi as safe as plugging
- 9:40Speaker 2: in a physical cable, but the math was fundamentally flawed.
- 9:43Speaker 2: The source explains that WEP reused its keys way too often,
- 9:48Speaker 2: so it.
- 9:48Speaker 1: Was repetitive, like using the same password.
- 9:50Speaker 2: Over and over in a way. Yeah, imagine a codebook
- 9:53Speaker 2: where you eventually have to start back at page one.
- 9:55Speaker 2: An attacker could just sit outside your house in a car,
- 9:57Speaker 2: listen to the noise of your network traffic, and because
- 9:59Speaker 2: the patterns eventually repeated, they could mathematically recover the password
- 10:03Speaker 2: without ever knocking on your door.
- 10:04Speaker 1: How long are we talking hours?
- 10:06Speaker 2: Days with it? About one minute?
- 10:07Speaker 1: One minute. That's not even enough time to make a
- 10:09Speaker 1: cup of coffee.
- 10:09Speaker 2: Nope, you just drive by and steal the network. So
- 10:13Speaker 2: confidentiality is eve can't read my stuff. But that's only
- 10:17Speaker 2: step one. Next up is integrity. This is the one
- 10:20Speaker 2: I think people overlook the most.
- 10:22Speaker 1: I definitely did before reading this. Integrity means knowing that
- 10:25Speaker 1: the message wasn't changed in transit. It's the defense against Mallory.
- 10:29Speaker 2: It is because secrecy isn't enough. If I send an
- 10:32Speaker 2: encrypted message to the bank saying Paybob, and Mallory scrambles
- 10:36Speaker 2: the encrypted bits so that when the bank decrypts it,
- 10:39Speaker 2: it says pay Mallory. It doesn't matter that it was encrypted.
- 10:42Speaker 2: The instruction got changed. The system failed.
- 10:44Speaker 1: And the scariest, most Hollywood style example of an integrity
- 10:48Speaker 1: attack and the source material has to be stucksnet.
- 10:51Speaker 2: The famous worm that hit the Iranian nuclear facilities. That
- 10:54Speaker 2: is the ultimate integrity case study.
- 10:56Speaker 1: This story always blows my mind. Walk us through the
- 10:59Speaker 1: integrity failure there. How did it actually trick them? So?
- 11:01Speaker 2: Stucksnent was sophisticated for many reasons, but the integrity aspect
- 11:05Speaker 2: is fascinating. It attacked the centrifuges, the machinery used to
- 11:10Speaker 2: enrich uranium. It didn't just shut them down, It manipulated
- 11:14Speaker 2: the commands to make the centrifuges spin too fast and
- 11:17Speaker 2: literally destroy themselves.
- 11:19Speaker 1: But the operators were sitting in a control room monitoring this.
- 11:23Speaker 1: Why didn't they see the machines spinning out of control
- 11:25Speaker 1: on their screens.
- 11:26Speaker 2: That's the genius and the horror of the attack. While
- 11:29Speaker 2: it was destroying the machines, stucksnet was sending fake data
- 11:32Speaker 2: back to the control room. It had recorded normal operations
- 11:35Speaker 2: prior to the attack and was playing that loop back
- 11:37Speaker 2: to the screens, So.
- 11:38Speaker 1: The operators are looking at their monitors seeing system normal,
- 11:42Speaker 1: sipping their tee, while the reality in the next room
- 11:44Speaker 1: is system critical and centrifuges are tearing themselves apart.
- 11:49Speaker 2: That is the integrity breach. The data they were receiving
- 11:52Speaker 2: was a lie. It had lost its integrity, and that
- 11:55Speaker 2: failure caused physical destruction. It shows that digital security is
- 12:00Speaker 2: just about data. It's about the physical world too.
- 12:03Speaker 1: That really drives it home. It's not just about stealing data,
- 12:06Speaker 1: it's about trusting what you see, which leads us to
- 12:10Speaker 1: the third pillar, authentication.
- 12:13Speaker 2: The A and the triad, proving you are who you
- 12:17Speaker 2: say you are. This is arguably the most critical one
- 12:20Speaker 2: because you can have a perfectly encrypted, integrity protected connection
- 12:24Speaker 2: straight to a hacker exactly if you don't know who
- 12:27Speaker 2: is on the other end of the line, the encryption
- 12:29Speaker 2: doesn't matter. And this brings us to the g Pack
- 12:31Speaker 2: of twenty fifteen, a huge moment, a watershed moment in
- 12:34Speaker 2: IoT security. This changed how the auto industry thought about
- 12:38Speaker 2: software entirely.
- 12:40Speaker 1: Two researchers, Charlie Miller and Chris Baalisek, managed to remotely
- 12:43Speaker 1: take control of a jeep Cherokee. And we aren't talking
- 12:46Speaker 1: about changing the radio station or rolling down the windows.
- 12:49Speaker 1: We were talking steering, brakes, transmission right.
- 12:52Speaker 2: And the scary part was where they were doing it from.
- 12:55Speaker 2: They weren't in the back seat with the laptop plugged
- 12:57Speaker 2: into the dashboard. They were sitting on a couch miles away.
- 13:00Speaker 2: They exploited the car's infotainment system. You connect via the
- 13:04Speaker 2: cellular network, but.
- 13:06Speaker 1: How does the radio let you cut the brakes? That
- 13:07Speaker 1: seems like a massive design flaw.
- 13:09Speaker 2: It is. Once they got into the infotainment system, they
- 13:12Speaker 2: found a component called the d bus. This is like
- 13:15Speaker 2: the internal nervous system of the car. It connects the
- 13:18Speaker 2: radio to the engine, the brakes, the steering. Yeah, and
- 13:21Speaker 2: here is where authentication failed. The d bus didn't ask
- 13:25Speaker 2: for ID.
- 13:26Speaker 1: It just trusted the commands completely.
- 13:29Speaker 2: It assumed that if you were connected to the internal network,
- 13:31Speaker 2: you must be safe. It didn't authenticate the commands at all.
- 13:35Speaker 2: So the researchers could send a command like engage brakes,
- 13:38Speaker 2: and the car just obeyed. It didn't ask are you
- 13:40Speaker 2: the driver or are you a mechanic? It just said okay.
- 13:43Speaker 1: That is terrifying. It's like walking into a bank vault
- 13:46Speaker 1: just because the front door was unlocked, and the vault
- 13:48Speaker 1: just opens because you're standing there.
- 13:50Speaker 2: Another great example of authentication failure in the book is
- 13:53Speaker 2: the false base station or stingray attack.
- 13:55Speaker 1: This is with mobile phones, right, I've heard about these
- 13:57Speaker 1: being used in cities.
- 13:59Speaker 2: Yes, your phone constantly looks for a cell tower, but
- 14:03Speaker 2: in early two G networks and even some setups today,
- 14:07Speaker 2: the phone didn't require the tower to prove its identity.
- 14:10Speaker 2: It just connected to the strongest signal.
- 14:12Speaker 1: It's just looking for the loudest voice in the room exactly.
- 14:15Speaker 2: So police or attackers could set up a fake tower,
- 14:19Speaker 2: a stingray that blasts a really strong signal. Your phone says, oh,
- 14:23Speaker 2: a great signal, and connects to it instead of the real.
- 14:26Speaker 1: Tower, and now all your calls and data are going
- 14:28Speaker 1: through them because.
- 14:29Speaker 2: The network failed to authenticate itself to the phone. The
- 14:32Speaker 2: two way street, you need to know the bank is
- 14:34Speaker 2: the bank, and the bank needs to know you Are
- 14:37Speaker 2: you okay?
- 14:37Speaker 1: So we have the triad confidentiality, integrity, authentication. But here
- 14:43Speaker 1: is the million dollar question that the book raises. If
- 14:46Speaker 1: the bad guys know all this, if they know the math,
- 14:49Speaker 1: they know the protocols, they know the triad. How do
- 14:51Speaker 1: we keep anything safe? Doesn't the enemy knowing the system
- 14:55Speaker 1: make it weak? If I tell a Burgling exactly what
- 14:58Speaker 1: brand of lock I have on my front door, isn't
- 15:00Speaker 1: that a bad idea?
- 15:01Speaker 2: That is the paradox, but in cryptography it's actually the
- 15:04Speaker 2: exact opposite. This is known as Kirkos principle.
- 15:07Speaker 1: The enemy knows the system or.
- 15:09Speaker 2: Gus Kirkhofs back in the nineteenth century argued that you
- 15:12Speaker 2: should never rely on security by obscurity. You shouldn't rely
- 15:16Speaker 2: on hiding how your system works, because eventually a manual
- 15:20Speaker 2: gets lost, or a disgruntled employee leaks the blueprints, or
- 15:25Speaker 2: someone reverse engineers it.
- 15:26Speaker 1: So if the blueprints are public, where is the secret
- 15:29Speaker 1: the key?
- 15:30Speaker 2: The only thing that should be secret is the key.
- 15:33Speaker 2: The lock design can be totally public. In fact, it
- 15:36Speaker 2: should be public so that thousands of experts can try
- 15:39Speaker 2: to piket and find flaws, but the key, that specific
- 15:42Speaker 2: string of data, must remain entirely private.
- 15:45Speaker 1: It's like the lock on your front door. Everyone knows
- 15:48Speaker 1: how a pin tumbler lock works. You can look it
- 15:50Speaker 1: up on Wikipedia right now. But knowing how the lock
- 15:53Speaker 1: works doesn't help you get into my house unless you
- 15:55Speaker 1: have my specific key precisely.
- 15:57Speaker 2: Open design leads to stronger security because it gets tested
- 16:00Speaker 2: by the community and the source material goes deep into
- 16:03Speaker 2: key management, because if the key is the only secret,
- 16:06Speaker 2: you better protect it with your life. One major concept
- 16:09Speaker 2: here is forward secrecy.
- 16:10Speaker 1: Which sounds like time travel, but it's actually about damage control.
- 16:14Speaker 2: It is imagine you use the same key for every
- 16:17Speaker 2: email you sent for ten ms. If I steal that
- 16:19Speaker 2: key today, I can go back and read everything you
- 16:22Speaker 2: wrote in twenty fifteen total disaster.
- 16:24Speaker 1: My entire history is exposed.
- 16:27Speaker 2: Forward secrecy means we change the keys constantly. We use
- 16:30Speaker 2: session keys. We generate a key, use it for one conversation,
- 16:33Speaker 2: and then destroy it.
- 16:34Speaker 1: Like burning the diary after you write the entry.
- 16:37Speaker 2: Exactly if I hack you today, I can't read the
- 16:39Speaker 2: messages you sent yesterday because that key is gone. It
- 16:43Speaker 2: doesn't exist anymore.
- 16:44Speaker 1: It effectively locks the pass. I love that, but this
- 16:47Speaker 1: brings up a technical problem that I found really interesting
- 16:50Speaker 1: while reading. To generate all these keys, we need randomness.
- 16:53Speaker 1: We need to pick numbers that no one can guess,
- 16:56Speaker 1: and as the book points out, computers are actually terrible
- 16:59Speaker 1: at being random.
- 17:00Speaker 2: They are. Computers are logical machines. They follow strict instructions.
- 17:05Speaker 2: If you tell a computer to pick a random number,
- 17:07Speaker 2: it uses an algorithm. It's like flipping a coin. But
- 17:10Speaker 2: if you knew the exact wind speed, the force of
- 17:13Speaker 2: the thumb, and the weight of the coin, you could
- 17:15Speaker 2: predict the outcome every single time.
- 17:17Speaker 1: And if a hacker knows the algorithm and the starting
- 17:20Speaker 1: point the seed, they can predict the number the computer
- 17:23Speaker 1: will pick.
- 17:24Speaker 2: Which defeats the whole purpose. If I can predict your key,
- 17:27Speaker 2: I can unlock your door. This is where we get
- 17:30Speaker 2: into entropy. In crypto, entropy basically means surprise or uncertainty.
- 17:35Speaker 2: We need a source of data that is completely unpredictable.
- 17:38Speaker 1: And this is where the lava lamps come in. I
- 17:40Speaker 1: tease this at the very beginning. The source mentions cloud Flare,
- 17:43Speaker 1: a massive web security company, tell us about the wall
- 17:46Speaker 1: of entropy.
- 17:47Speaker 2: It's brilliant. At their headquarters, they have a wall of
- 17:50Speaker 2: actual physical lava lamps. They have a camera pointed right
- 17:54Speaker 2: at them. The blobs of lax moving around are governed
- 17:57Speaker 2: by fluid dynamics, heat chaos. It is fithysically impossible to
- 18:01Speaker 2: predict exactly what shape those blobs will take next.
- 18:04Speaker 1: So they use the video feed of the lava.
- 18:06Speaker 2: Lamps as a source of randomness.
- 18:07Speaker 1: Yes, wild.
- 18:08Speaker 2: They digitize the visual noise of the lava lamps to
- 18:11Speaker 2: generate true randomness. They mix that with the computer's mathematical
- 18:15Speaker 2: randomness to create keys that are effectively impossible to predict.
- 18:19Speaker 1: That is just so cool. You're securing the banking data
- 18:22Speaker 1: of the world using groovy nineteen seventies room decre.
- 18:25Speaker 2: It highlights the lengths we have to go to. We
- 18:27Speaker 2: have to reach out into the physical world, into the
- 18:29Speaker 2: chaos of reality to find true unpredictability because the digital
- 18:34Speaker 2: world is just too orderly.
- 18:35Speaker 1: So bringing it all together, we live in this world
- 18:38Speaker 1: of infinite connectivity and zero cost attacks. To survive, we
- 18:43Speaker 1: build these secure channels. We use the CIA triad to
- 18:46Speaker 1: ensure no one is listening, nothing is changed, and we
- 18:50Speaker 1: know who we're talking to.
- 18:51Speaker 2: And we do it by adhering to Kirkhoff's principal open standards,
- 18:54Speaker 2: secret keys, and fueling it all with high entropy randomness.
- 18:58Speaker 1: And all of this is bundled up in TLS transport
- 19:01Speaker 1: layer security. That's the invisible armor. It's what happens when
- 19:04Speaker 1: you click that padlock.
- 19:05Speaker 2: It is. It's a protocol that negotiates all of this
- 19:07Speaker 2: for you in milliseconds. It picks the cipher, it exchanges
- 19:11Speaker 2: the keys, It authenticates the server, all before your webpage
- 19:14Speaker 2: even lugs. It handles the complexity so you don't have to.
- 19:17Speaker 1: It really is a marvel of engineering. But before we
- 19:20Speaker 1: wrap up this deep dive, the book leaves us with
- 19:23Speaker 1: a bit of a provocative thought. We talked earlier about
- 19:25Speaker 1: complexity being the enemy of security.
- 19:27Speaker 2: We did, and looking at the trends in the source material,
- 19:30Speaker 2: software is only getting more complex.
- 19:32Speaker 1: The Linux kernel grows larger every year. We are adding
- 19:35Speaker 1: features faster than we can secure them. We want our
- 19:38Speaker 1: fridges to tweet and our cars to drive themselves. We
- 19:41Speaker 1: aren't slowing down.
- 19:42Speaker 2: That is the big question the author's pose. If complexity
- 19:46Speaker 2: is the enemy and we demand more complexity, more features,
- 19:49Speaker 2: more connectivity, are we fighting a losing battle?
- 19:52Speaker 1: Can cryptography keep up with an attack surface that is
- 19:55Speaker 1: expanding infinitely?
- 19:56Speaker 2: The math is solid. The encryption works, as we saw
- 20:00Speaker 2: with the jeep haag or stucksnet. The implementation is where
- 20:03Speaker 2: we fail. We can build the perfect lock, but if
- 20:06Speaker 2: we put it on a door made of tissue paper,
- 20:08Speaker 2: or if we forget to check who is knocking the
- 20:10Speaker 2: lock doesn't matter. The challenge isn't the math anymore. It's
- 20:13Speaker 2: the messiness of the real world.
- 20:15Speaker 1: A sobering thought to leave you with. Next time you
- 20:18Speaker 1: see that padlock, maybe give a little nod to the math,
- 20:21Speaker 1: the lava lamps and the invisible armor keeping the chaos
- 20:24Speaker 1: at bay. Thanks for joining us on this deep dive.
- 20:27Speaker 2: Stay secure, everyone,