Latest / CyberSecurity Summary / Identity and Data Security for Web Development: Best Practices
Transcript
- 0:00Speaker 1: Imagine, if you will, building this massive, state of the
- 0:04Speaker 1: art titanium bank vault.
- 0:06Speaker 2: Okay, I'm picturing it.
- 0:07Speaker 1: Right, So we are talking two foot thick steel doors. Yeah,
- 0:12Speaker 1: biometric retinal scanners, you know, laser grids straight out of
- 0:16Speaker 1: a spy movie.
- 0:16Speaker 2: Oh yeah, absolutely impenetrable.
- 0:18Speaker 1: Exactly, It's totally impenetrable. But the bank manager decides that
- 0:23Speaker 1: going through all those lasers every single morning before getting
- 0:25Speaker 1: their coffee is just well a bit annoying.
- 0:29Speaker 2: I mean, it would be a hassle before coffee.
- 0:31Speaker 1: Right, so they just leave the master key under the
- 0:33Speaker 1: welcome matt because you know, it's more convenient.
- 0:37Speaker 2: Well, it sounds totally absurd when you frame it like that.
- 0:39Speaker 2: I mean you would fire that bank manager.
- 0:41Speaker 1: Immediately, right, you absolutely would. But the crazy thing is
- 0:44Speaker 1: that is exactly what's happening every single time you log
- 0:48Speaker 1: into a website.
- 0:49Speaker 2: It really is.
- 0:49Speaker 1: We've been looking at some fascinating source material today for
- 0:52Speaker 1: this deep dive. It's Identity and Data Security for Web
- 0:56Speaker 1: Development by Jonathan LeBlanc and Tim messerschmanyhighlight a terrifying reality
- 1:02Speaker 1: right up front.
- 1:02Speaker 2: Yeah, the financial cost.
- 1:04Speaker 1: Yes, they point out that cyber attacks are costing businesses
- 1:08Speaker 1: roughly four hundred to five hundred billion dollars a year.
- 1:11Speaker 1: That's billion with a B.
- 1:14Speaker 2: It is a staggering amount of money to lose. And
- 1:17Speaker 2: you know, to understand how we are bleeding half a
- 1:19Speaker 2: trillion dollars, we have to recognize a fundamental truth about
- 1:23Speaker 2: system architecture, which is what exactly, well, the true weakest
- 1:27Speaker 2: link in any digital system. It isn't the code, it
- 1:30Speaker 2: isn't the server or the firewall. It's human behavior. Oh wow,
- 1:34Speaker 2: so it's us exactly, it's us. Throughout this deep dive,
- 1:38Speaker 2: we are going to untack how modern developers are essentially
- 1:41Speaker 2: forced to architect entire systems just to protect us from ourselves.
- 1:45Speaker 1: That makes a lot of sense because before we can
- 1:47Speaker 1: even talk about stopping the hackers, we have to talk
- 1:50Speaker 1: about what they are actually trying to steal.
- 1:52Speaker 2: Right, are incredibly flawed password?
- 1:53Speaker 1: Yes, because we as users suffer from this phenomenon called
- 1:57Speaker 1: password fatigue. I mean, you have to make an account for.
- 2:00Speaker 2: Everything now, Oh, tell me about it.
- 2:01Speaker 1: It's your streaming service, your bank, the app you used
- 2:04Speaker 1: to buy a single cup of coffee, your smart fridge probably.
- 2:08Speaker 2: Yeah, And the human brain just isn't built to memorize
- 2:11Speaker 2: fifty different complex alphanumeric strings, so people naturally default to
- 2:16Speaker 2: the path of least resistance, right, And the data on
- 2:19Speaker 2: the most popular passwords from these massive database breaches it
- 2:24Speaker 2: is always simultaneously hilarious and depressing.
- 2:27Speaker 1: It really is like the top contenders are exactly what
- 2:31Speaker 1: you'd expect. It's one, two, three, four, five six password
- 2:34Speaker 1: and inexplicably wait for it, monkey.
- 2:38Speaker 2: Oh yeah, monkey is a classic guess the word monkey.
- 2:41Speaker 1: I mean, who is using monkey?
- 2:43Speaker 2: A lot of people apparently. And this brings us to
- 2:46Speaker 2: how we actually quantify the strength of a password in
- 2:49Speaker 2: the first place. In the cybersecurity world. This strength is
- 2:52Speaker 2: measured in something called entropy introp okay, yeah, which is
- 2:55Speaker 2: essentially a mathematical measurement of information unpredictability and they make
- 3:00Speaker 2: in bits.
- 3:00Speaker 1: Right, And if a computer randomly generates a password for you, yeah,
- 3:04Speaker 1: the math on that entropy is pretty straightforward, right, very straightforward, yeah,
- 3:07Speaker 1: because it's just based on the symbol set you use.
- 3:10Speaker 1: So if a computer picks a string of characters using
- 3:14Speaker 1: just say the twenty six character Latin alphabet, there's a
- 3:17Speaker 1: strict mathematical formula to determine exactly how unpredictable. It is
- 3:22Speaker 1: just based on how long the string is exactly.
- 3:25Speaker 2: Or there's this method mentioned in the research called dicewar.
- 3:28Speaker 1: Oh yeah, dice wear explain how that works.
- 3:30Speaker 2: So dicewar is a great example of true randomness. You
- 3:33Speaker 2: literally roll a physical die five times to pick a
- 3:37Speaker 2: word from a predetermined list of seven, seven hundred and
- 3:40Speaker 2: seventy six words.
- 3:41Speaker 1: Right, So you roll it, look up the number sequence,
- 3:43Speaker 1: get a word exactly.
- 3:44Speaker 2: And because it relies on the physical randomness of the dice,
- 3:48Speaker 2: you can calculate the exact entropy, the exact mathematical difficulty
- 3:52Speaker 2: a computer would have in guessing it.
- 3:54Speaker 1: But I mean, think about the last time you made
- 3:56Speaker 1: a password for your bank account. Did you sit there
- 3:58Speaker 1: and roll a physical die five times to pick a
- 4:01Speaker 1: random word?
- 4:01Speaker 2: Obviously not, of course you didn't.
- 4:03Speaker 1: You picked your dog's name, you capitalize the first letter,
- 4:06Speaker 1: and you slapped a one at the end exactly.
- 4:09Speaker 2: And because of that extreme human predictability, measuring the actual
- 4:13Speaker 2: entropy of human selected passwords is much much harder.
- 4:17Speaker 1: Right, because we aren't random, No.
- 4:19Speaker 2: Not at all. A purely random straying of ten characters
- 4:22Speaker 2: is vastly harder to guess than a ten character dictionary word.
- 4:26Speaker 2: So to account for this, the National Institute of Standards
- 4:29Speaker 2: and Technology, It's right, right, NIST. They try to create
- 4:32Speaker 2: a set of rules to mathematically estimate human unpredictability.
- 4:36Speaker 1: Okay, let's unpack this because the NIST rules are wild
- 4:40Speaker 1: to me.
- 4:40Speaker 2: They are a bit complex. Yeah.
- 4:42Speaker 1: Under these guidelines, the first character of your password gives
- 4:45Speaker 1: you four bits of entropy. The next seven characters only
- 4:48Speaker 1: give you two bits each. Right, then you get these bonuses,
- 4:51Speaker 1: like a six bit bonus if you use uppercase or
- 4:54Speaker 1: non alphabetic characters, and another six bit bonus if your
- 4:57Speaker 1: password passes an extensive dictionary check to it's not just
- 5:00Speaker 1: a common word.
- 5:01Speaker 2: That's the baseline.
- 5:02Speaker 1: Yeah, but wait, hold on the math here isn't adding
- 5:04Speaker 1: ups me. I was looking at the way these rules
- 5:06Speaker 1: are applied in the data, and I found a really
- 5:09Speaker 1: bizarre quirk regarding password length.
- 5:11Speaker 2: Ah, I know what you're getting at. You're talking about
- 5:13Speaker 2: the twenty character rule.
- 5:14Speaker 1: Yes, okay, So let's say you have a nineteen character password,
- 5:17Speaker 1: just total gibberish like TDMD one eight dot A two
- 5:21Speaker 1: handstag JH forty.
- 5:23Speaker 2: Three, a very strong password.
- 5:24Speaker 1: Exactly according to nist that gets a very healthy forty
- 5:28Speaker 1: six point five bits of entropy. But if you add
- 5:31Speaker 1: literally one more character to make it twenty characters, say
- 5:35Speaker 1: a two at the end, your entropy score actually drops.
- 5:38Speaker 1: It does It loses that six bit bonus and falls
- 5:41Speaker 1: to forty two bits. How does making a password longer
- 5:44Speaker 1: make it mathematically less secure?
- 5:46Speaker 2: What's fascinating here is how the system is trying to
- 5:49Speaker 2: account for human psychology, not just raw.
- 5:51Speaker 1: Math, okay, psychology.
- 5:53Speaker 2: How So, then study assumes that if a human being
- 5:55Speaker 2: is typing in a password that is twenty characters or longer,
- 5:58Speaker 2: they almost certainly didn't sit down and memorize twenty random
- 6:01Speaker 2: gibberish letters and symbols.
- 6:03Speaker 1: Oh I see.
- 6:03Speaker 2: The psychological assumption is that you just strung a bunch
- 6:06Speaker 2: of easy to remember dictionary words together to make a passphrase.
- 6:09Speaker 1: Oh like taking the words tree manicure, donkey, and tornado
- 6:13Speaker 1: and just mashing them together into tree manicureed donkey.
- 6:16Speaker 2: Tornado precisely, even though it's incredibly long, it's really just
- 6:20Speaker 2: four standard dictionary words. And hackers know people do this.
- 6:24Speaker 1: So they program for it. Right.
- 6:25Speaker 2: Their computers are programmed to guess combinations of dictionary words.
- 6:30Speaker 2: That makes your long passphrase far more predictable to an
- 6:33Speaker 2: attacking computer than a shorter string of actual random gibberish.
- 6:38Speaker 1: Wow.
- 6:38Speaker 2: And this highlights the core dilemma for developers. If we
- 6:42Speaker 2: force you to use complex rules, you know, an upper case,
- 6:45Speaker 2: lower case, a symbol, a number, a hieroglyph.
- 6:48Speaker 1: Yeah, you won't memorize it. You'll just write it on
- 6:50Speaker 1: a sticky note and put it on your monitor, which
- 6:52Speaker 1: destroys the security completely.
- 6:54Speaker 2: The master key under the welcome matt exactly. Therefore, developers
- 6:58Speaker 2: have realized they just have to accept that you, as
- 7:01Speaker 2: a user, are going to use weak, predictable passwords. Their
- 7:04Speaker 2: job is to harden the data behind the scenes instead.
- 7:07Speaker 1: So if developers are essentially surrendering on the front lines
- 7:10Speaker 1: and letting us use monkey one, what happens when a
- 7:13Speaker 1: hacker actually sneaks past the front door, like when they
- 7:16Speaker 1: find the giant database where all those tarritle passwords are stored.
- 7:20Speaker 2: This brings us to what the industry calls data at rest.
- 7:23Speaker 1: Data at rest okay.
- 7:25Speaker 2: Right, This is the actual database sitting on a server
- 7:27Speaker 2: that holds everyone's passwords. Because we use low entropy passwords,
- 7:31Speaker 2: attackers have developed highly efficient ways to crack them once
- 7:34Speaker 2: they steal that database, and they have a whole playbook for.
- 7:37Speaker 1: This, the most basic play being the brute force attacks,
- 7:40Speaker 1: where the hacker's computer just tries every single permutation of
- 7:43Speaker 1: characters like aid and B and C then aaab all
- 7:46Speaker 1: the way up until it gets a hit.
- 7:48Speaker 2: Right, But brute forcing every possible combination is incredibly slow
- 7:52Speaker 2: for anything longer than a few characters. And if a
- 7:55Speaker 2: hacker tries to run an automated brute force script against
- 7:58Speaker 2: a live website, you know get saying over and over
- 8:00Speaker 2: on the actual login page. Developers have a very simple
- 8:03Speaker 2: defense for that.
- 8:04Speaker 1: Let me guess, recap tccha.
- 8:07Speaker 2: Yeah, recap tccha.
- 8:09Speaker 1: That annoying little box you click that says I am
- 8:11Speaker 1: not a robot after you type your password wrong a
- 8:14Speaker 1: couple of times, or it asks you to find all
- 8:17Speaker 1: the traffic lights in a.
- 8:18Speaker 2: Blurry grid exactly. It stops the automated guessing in its
- 8:22Speaker 2: tracks because the computer script can't solve it.
- 8:25Speaker 1: So if brute forcing a live site doesn't work, what's
- 8:28Speaker 1: the real danger.
- 8:29Speaker 2: The real danger is offline attacks. The hackers find a vulnerability,
- 8:34Speaker 2: download your encrypted database to their own servers, and now
- 8:37Speaker 2: they have all the time in the world.
- 8:39Speaker 1: Right, they don't have to deal with traffic light puzzles exactly.
- 8:42Speaker 1: But wait before we talk about how they break into
- 8:44Speaker 1: those stolen passwords, what actually is an encrypted password in
- 8:48Speaker 1: this context, because well, a lot of people think it's
- 8:51Speaker 1: like a secret decoder ring. How do you mean, like
- 8:54Speaker 1: the server takes the word monkey, shifts all the letters
- 8:56Speaker 1: by two to make it aquobamamonga, and then shifts it
- 9:00Speaker 1: back when you log in.
- 9:01Speaker 2: Ah, that's a crucial distinction. What you are describing is
- 9:05Speaker 2: standard two way encryption, okay, Ween, Developers don't use that
- 9:08Speaker 2: for passwords because if a hacker steals the decoder ring,
- 9:11Speaker 2: they get everything. Everything is exposed. Instead, developers use something
- 9:16Speaker 2: called a hash function.
- 9:17Speaker 1: A hash function, Yes, a.
- 9:19Speaker 2: Hash is a one way mathematical operation. Think of it
- 9:22Speaker 2: like a meat grinder a meat grinder. Yeah, you can
- 9:25Speaker 2: put a steak into a meat grinder and it turns
- 9:27Speaker 2: into ground beef. But you cannot put ground beef into
- 9:31Speaker 2: a meat grinder and turn it back into a steak.
- 9:34Speaker 1: Okay, I absolutely love that analogy. So if my password
- 9:37Speaker 1: is monkey, the server runs it through the meat grinder
- 9:40Speaker 1: and it turns into a massive string of random looking alphanumeric.
- 9:44Speaker 2: Gibberish the hash, Yes, exactly.
- 9:47Speaker 1: The server only stores the gibbers. So when I log
- 9:49Speaker 1: in tomorrow I type monkey, the server grinds it up
- 9:51Speaker 1: again and compares the new pile of ground beef to
- 9:54Speaker 1: the old pile of ground beef.
- 9:55Speaker 2: Right, and if they match, you get in.
- 9:57Speaker 1: That's brilliant. The server never actually knows your real password,
- 10:01Speaker 1: It only knows what the hashed version looks like.
- 10:03Speaker 2: Perfect analogy.
- 10:04Speaker 1: Yeah, but if a hash is a one way meat grinder,
- 10:07Speaker 1: how do offline attackers reverse it once they steal the database?
- 10:11Speaker 2: Well, they don't reverse it. They use a dictionary attack.
- 10:13Speaker 1: Oh, meaning they just guess words from a dictionary.
- 10:16Speaker 2: Basically, they take a massive list of common words or
- 10:20Speaker 2: previously leaked passwords, and they run every single one of
- 10:23Speaker 2: those words through the exact same meat grinder.
- 10:26Speaker 1: Ah, I see.
- 10:27Speaker 2: Then they compare their freshly ground hashes against the stolen hashes.
- 10:31Speaker 2: If they find a match, they know what the original
- 10:33Speaker 2: word was.
- 10:33Speaker 1: Okay, But even dictionary attacks take some computing power to
- 10:37Speaker 1: grind all those millions of words, which leads us to
- 10:40Speaker 1: the most complex and dangerous offline attack in the hacker playbook, right,
- 10:45Speaker 1: Rainbow tables.
- 10:46Speaker 2: Yes, rainbow tables are terrifyingly efficient. They essentially trade storage
- 10:51Speaker 2: space for processing time. They do all the heavy lifting
- 10:53Speaker 2: in advance.
- 10:54Speaker 1: Let me see if I can break this down, because
- 10:56Speaker 1: the mechanism here is wild for it. The researchers talk
- 10:59Speaker 1: about a reduction function. So hackers take an arbitrary password,
- 11:05Speaker 1: hash it into gibberish. Then, because they can't reverse the hash,
- 11:09Speaker 1: they use a special mathematical reduction function to scramble that
- 11:13Speaker 1: gibberish into a brand new plaintext password.
- 11:16Speaker 2: Guess right, They generate a new guess.
- 11:18Speaker 1: Then they hash that new guest, then they reduce it again,
- 11:20Speaker 1: and they do this over and over, creating a massive
- 11:23Speaker 1: chain of say ten thousand guesses.
- 11:26Speaker 2: Exactly, They are creating a chain of links bouncing between
- 11:29Speaker 2: plaintext and hashes.
- 11:31Speaker 1: But the brilliant part is they don't store the whole
- 11:34Speaker 1: chain on their hard drive. They only store the very
- 11:37Speaker 1: first plaintext password and the final resulting hash at the
- 11:42Speaker 1: end of the ten thousand links.
- 11:44Speaker 2: That's the key to saving storage space.
- 11:46Speaker 1: So a rainbow table is essentially a massive pre solved
- 11:50Speaker 1: crossword puzzle book like instead of the hacker's computer doing
- 11:54Speaker 1: the math to figure out the hash from scratch, they
- 11:57Speaker 1: just look up the answer in the back of the book.
- 11:59Speaker 2: That is exactly, they look up the stolen hash in
- 12:01Speaker 2: the back of their puzzle book. If they find a match,
- 12:04Speaker 2: they know the plaintext password is somewhere in that specific
- 12:07Speaker 2: ten thousand link chain.
- 12:08Speaker 1: Wow.
- 12:09Speaker 2: Then and only then do they run that single chain
- 12:11Speaker 2: from the beginning to find exactly which word it was.
- 12:14Speaker 1: That is insane, right.
- 12:15Speaker 2: Rainbow tables are why offline cracking is so lethal. A
- 12:18Speaker 2: hacker can precompute trillions of hashes, store just the start
- 12:22Speaker 2: and end points in a massive table, and when they
- 12:24Speaker 2: steal your data, they just flip through the pages of
- 12:26Speaker 2: that book and reverse map stolen hashes with terrifying speed.
- 12:30Speaker 1: So if the hackers have this massive pre computed cheat
- 12:32Speaker 1: code puzzle book, how on earth do developers render those
- 12:36Speaker 1: tables useless? Because they have to do it without making
- 12:39Speaker 1: the user change They're terrible monkey one password.
- 12:42Speaker 2: This brings us to the defender's arsenal, and the primary
- 12:46Speaker 2: weapon here is something called salting.
- 12:48Speaker 1: Okay, salting, let me guess how this works. Does the
- 12:51Speaker 1: salt just encrypt the hash again, like putting it in
- 12:54Speaker 1: a second larger file, so the rainbow table can't find it.
- 12:57Speaker 2: Not quite. It actually happens before the hash assault is
- 13:00Speaker 2: a string of completely random data that the developer attaches
- 13:04Speaker 2: to your plaintext password before putting it into the meat grinder.
- 13:07Speaker 1: Before the meatgrinder right.
- 13:08Speaker 2: For example, they might use a thirty two byte salt
- 13:11Speaker 2: generated by a cryptography library.
- 13:13Speaker 1: So if I use the password mecha Godzilla and my
- 13:17Speaker 1: friend across the country also uses the exact same password
- 13:20Speaker 1: Mega Godzilla, Okay, hypothetically, the server doesn't store the same
- 13:24Speaker 1: hash for both of us. It grabs a completely unique
- 13:27Speaker 1: random string of characters, attaches it to my mecha Godzilla,
- 13:30Speaker 1: and puts that in the meat grinder. Yeah, then it
- 13:32Speaker 1: attaches a different random string to my friends and grinds that,
- 13:37Speaker 1: meaning our final encrypted hashes look completely different in the database,
- 13:41Speaker 1: even though our actual passwords are the same.
- 13:43Speaker 2: Precisely, And if we connect this to the bigger picture,
- 13:46Speaker 2: think about what this does to the hackers rainbow table.
- 13:48Speaker 1: It shatters it instantly.
- 13:50Speaker 2: Completely shatters it. Because the hacker's pre computed puzzle book
- 13:54Speaker 2: only contains hashes of regular dictionary words. It doesn't contain
- 13:58Speaker 2: a hash of Mecha Godzilla. Combined with a random thirty
- 14:01Speaker 2: two byte string. Of course, to use a rainbow table,
- 14:04Speaker 2: the hacker would have to generate a brand new, massive
- 14:07Speaker 2: pre computed puzzle book for every single unique salt in
- 14:11Speaker 2: your database, which.
- 14:11Speaker 1: Would take in a possible amount of time and storage.
- 14:14Speaker 1: You'd need a hard drive the size of a planet.
- 14:16Speaker 2: That is brilliant.
- 14:17Speaker 1: Now, I also write about something called peppering, ah peppering,
- 14:20Speaker 1: which I guess means adding an additional secret key to
- 14:23Speaker 1: the hash on top of the salt, but apparently it's
- 14:26Speaker 1: controversial and rarely used. Why is that?
- 14:29Speaker 2: Because a salt is stored right next to the user's
- 14:31Speaker 2: hash in the database, it's not a secret, it's just
- 14:34Speaker 2: there to make the hash unique. A pepper is supposed
- 14:36Speaker 2: to be a secret cryptographic key held elsewhere on the.
- 14:39Speaker 1: Server right to add another layer.
- 14:41Speaker 2: But the reality of cumber breaches is that if a
- 14:44Speaker 2: hacker gets deep enough into your system to steal your
- 14:47Speaker 2: entire database, they usually steal the pepper right alongside it.
- 14:51Speaker 1: So it's kind of useless.
- 14:52Speaker 2: Exactly so, most cryptography experts agree that a long unique
- 14:56Speaker 2: salt is sufficient, making the pepper mostly redundant.
- 15:00Speaker 1: Okay, here's where it's really interesting for me. The data
- 15:03Speaker 1: dies into the actual algorithms used to grind up these passwords,
- 15:07Speaker 1: and it classifies some algorithms as bad and some as good. Right,
- 15:11Speaker 1: the bad ones are MD five and SAHA one. But
- 15:14Speaker 1: the reason they are bad kind of blew my mind.
- 15:16Speaker 1: They are bad for passwords because they are fast.
- 15:19Speaker 2: Yep, they're too fast.
- 15:20Speaker 1: Think about that. And literally all of tech we are
- 15:23Speaker 1: obsessed with making processing speeds faster, you know, faster phones,
- 15:27Speaker 1: faster computers, zero lag. But for security, the ultimate defense
- 15:31Speaker 1: is literally putting speed bumps in the code to make
- 15:34Speaker 1: the algorithm as sluggish as possible.
- 15:36Speaker 2: Right, we want the hackers computers to choke on the workload, exactly.
- 15:40Speaker 1: It is a brilliant paradox, it really is.
- 15:42Speaker 2: If a hashing algorithm is fast like MD five, a
- 15:46Speaker 2: hacker's computer can guess billions of passwords a second.
- 15:49Speaker 1: Billions.
- 15:50Speaker 2: Yes, So how do you fight back? You use good
- 15:53Speaker 2: password algorithms like b crypt, PBKDF two and script, which
- 15:58Speaker 2: are deliberately slow. Developers use a technique called key stretching.
- 16:02Speaker 1: Key stretching right.
- 16:04Speaker 2: Which means they take the hatch function and loop it thousands,
- 16:07Speaker 2: sometimes tens of thousands of times. It forces the computer
- 16:11Speaker 2: to do the math over and over and over again
- 16:13Speaker 2: for a single guess.
- 16:14Speaker 1: It's just exhausting the computer on purpose. Yeah, I love that,
- 16:17Speaker 1: And the research specifically highlights the algorithm script for this.
- 16:21Speaker 1: Explain how script works because the mechanism here is fascinating.
- 16:24Speaker 2: Yes, Script takes this intentional exhaustion to another level. It's
- 16:27Speaker 2: explicitly designed to be memory intensive.
- 16:30Speaker 1: Memory intensive.
- 16:31Speaker 2: You see, when hacker's trying to brute force a database.
- 16:33Speaker 2: They don't usually use standard computer processors CPUs. They use
- 16:37Speaker 2: massive arrays of graphics cards GPUs rugs.
- 16:40Speaker 1: A CPU is like having a few incredibly fast smart
- 16:44Speaker 1: race horses exactly, but a GPU is like having an
- 16:47Speaker 1: army of a million ants. The ants individually aren't smart,
- 16:50Speaker 1: but they could do thousands of simple math problems in
- 16:53Speaker 1: parallel very quickly, which is perfect for rendering pixels on
- 16:57Speaker 1: a screen or guessing passwords.
- 16:59Speaker 2: That's a great way to look at it. But GPUs
- 17:01Speaker 2: have a major weakness. We have tons of tiny processor
- 17:04Speaker 2: cores but very little individual memory or RAM assigned to
- 17:09Speaker 2: each of those cores.
- 17:10Speaker 1: And Script attacks that.
- 17:11Speaker 2: Script attacks this exact weakness. It demands a massive chunk
- 17:15Speaker 2: of actual memory for every single password guess.
- 17:18Speaker 1: So an army of ants can't lift a boulder exactly.
- 17:21Speaker 2: The GPU simply doesn't have the memory architecture to handle
- 17:24Speaker 2: that demand. So Script effectively neutralizes the hacker's multi million
- 17:29Speaker 2: dollar hardware advantage by demanding memory, not just processing speed.
- 17:34Speaker 2: It forces the hacker to use CPUs instead, which slows
- 17:37Speaker 2: their guessing rate from billions a second down to maybe
- 17:40Speaker 2: thousands a second.
- 17:41Speaker 1: That's a huge drop.
- 17:42Speaker 2: It turns a weekend cracking job into a thousand year
- 17:44Speaker 2: cracking job.
- 17:45Speaker 1: Okay, so we've salted the data to break the rainbow tables,
- 17:49Speaker 1: We've looped the algorithms thousands of times to exhaust the processor,
- 17:53Speaker 1: and we've demanded massive amounts of RAM to choke out
- 17:55Speaker 1: the graphics cards.
- 17:56Speaker 2: We've put up a lot of defenses.
- 17:58Speaker 1: Yeah, we've effectively load the hackers down to an absolute crawl.
- 18:02Speaker 1: But now we have a new problem, the users. Yes,
- 18:06Speaker 1: how do we speed the user up? Because the ultimate
- 18:08Speaker 1: holy grail of web development is maximum security with zero
- 18:12Speaker 1: user friction. Nobody wants to fill out a capture or
- 18:16Speaker 1: type in a six digit text message code every time
- 18:19Speaker 1: they want to buy a pair of socks online.
- 18:21Speaker 2: No, they don't. We want to establish what the researchers
- 18:24Speaker 2: call trust zones, and to do that without bothering the user,
- 18:27Speaker 2: we have to look at the types of identity we
- 18:29Speaker 2: use online.
- 18:30Speaker 1: Okay, types of identity. Right.
- 18:31Speaker 2: There's social identity, the casual information you share on Facebook
- 18:35Speaker 2: or Google. There's concrete identity, heavy verifiable details like your
- 18:39Speaker 2: physical address, social security number, or credit card numbers, which
- 18:44Speaker 2: services like.
- 18:45Speaker 1: PayPal handle, right, the serious stuff.
- 18:47Speaker 2: And there's thin identity, something incredibly simple like just verifying
- 18:51Speaker 2: you own a specific phone number, which is what Twitter's
- 18:54Speaker 2: digit service does.
- 18:55Speaker 1: And the goal is to leverage these identities alongside environmental
- 18:59Speaker 1: clues to silently verify the user exactly Like if your
- 19:03Speaker 1: phone's GPS says you are sitting inside your own house
- 19:06Speaker 1: and you are connected to your home Wi Fi, the
- 19:08Speaker 1: system can confidently put you in a trust zone. Right.
- 19:11Speaker 1: I know. Android has a feature called smartlock, which keeps
- 19:14Speaker 1: your phone unlocked if its senses is connected to your
- 19:17Speaker 1: personal Bluetooth smartwatch. It's silently verifying you based on your environment.
- 19:21Speaker 2: That's a perfect example.
- 19:23Speaker 1: But what if you are on a Guesktop computer, no
- 19:26Speaker 1: GPS and a smart watch. How do they silently verify you.
- 19:29Speaker 2: Then that is where we turn to browser fingerprinting, and
- 19:33Speaker 2: this is a truly double edged sword. Every device you
- 19:36Speaker 2: use leaves a digital footprint. A major study by the
- 19:40Speaker 2: Electronic Frontier Foundation called panopt Click revealed that eighty four
- 19:44Speaker 2: percent of web browsers have a completely unique configuration.
- 19:47Speaker 1: Wait, eighty four percent just based on how your browser
- 19:50Speaker 1: is set up. That seems impossibly high.
- 19:52Speaker 2: It sounds high until you realize how much mundane data
- 19:55Speaker 2: your browser leaks every time you visit a website. Like
- 19:58Speaker 2: what the server can quiet by lely pull your user agent,
- 20:01Speaker 2: which tells it exactly what operating system and browser version
- 20:05Speaker 2: you're on. Right, But it goes so much deeper.
- 20:07Speaker 1: Oh really, Yeah?
- 20:08Speaker 2: It checks what specific plugins you have installed, It checks
- 20:11Speaker 2: your local time zone, It checks what default system fonts
- 20:14Speaker 2: you have loaded on your machine fonts. Yes, it even
- 20:18Speaker 2: checks your exact screen resolution and whether your laptop battery
- 20:21Speaker 2: is currently charging.
- 20:22Speaker 1: So it's looking at dozens of tiny, completely random variables.
- 20:26Speaker 2: Exactly when you combine all these seemingly mundane data points,
- 20:31Speaker 2: it creates a highly specific digital fingerprint. The eff study
- 20:36Speaker 2: calculated that this combination of traits gives an average of
- 20:39Speaker 2: about eighteen point one bits of entropy. Wow, meaning your specific,
- 20:44Speaker 2: exact browser setup is incredibly hard to replicate by chance,
- 20:48Speaker 2: it is statistically unique to you.
- 20:49Speaker 1: So what does this all mean for you? Let's say
- 20:51Speaker 1: you are listening to this and you are very privacy conscious.
- 20:54Speaker 1: You do not want to be tracked by corporations, so
- 20:57Speaker 1: you install a bunch of specific ad blockers. Maybe you
- 21:00Speaker 1: disable certain standard tracking plug ins, or you install a
- 21:03Speaker 1: custom privacy font to mask your system.
- 21:06Speaker 2: So most people do.
- 21:07Speaker 1: The sheer act of customizing your browser to protect your
- 21:09Speaker 1: privacy is the exact behavior that makes your digital fingerprint
- 21:15Speaker 1: utterly unique to the server. You literally stand out to
- 21:18Speaker 1: the tracking algorithms because you tried to hide.
- 21:21Speaker 2: It is the ultimate privacy paradox. If we connect this
- 21:24Speaker 2: to the bigger picture, this fingerprinting is exactly how companies
- 21:28Speaker 2: manage that delicate balancing act between security and usability. Well,
- 21:32Speaker 2: I see, when you try to log in or check
- 21:35Speaker 2: out of an online store, they don't just look at
- 21:37Speaker 2: your password, they look at your digital fingerprint. If your
- 21:40Speaker 2: username and password match, and your browser fingerprint perfectly matches
- 21:44Speaker 2: the one you used yesterday right down to the screen resolution,
- 21:47Speaker 2: and the ad blockers they silently establish a trust zone.
- 21:50Speaker 1: They let you bypass ACPTCHA entirely. Yes, they give you
- 21:54Speaker 1: the seamless one click checkout. They recognize you mathematically without
- 21:58Speaker 1: ever having to interrogate you.
- 22:00Speaker 2: Precisely. It is a marvel of invisible engineering, constantly evaluating
- 22:05Speaker 2: risk in the background.
- 22:06Speaker 1: To wrap this deep dive up, it's just wild to
- 22:09Speaker 1: think about the whole landscape of identity and data security
- 22:12Speaker 1: is just this constant high wire balancing act.
- 22:15Speaker 2: It really is.
- 22:16Speaker 1: We the users are always going to want convenience. We
- 22:21Speaker 1: are going to reuse bad passwords, We're going to use monkeys.
- 22:24Speaker 2: And developers have just accepted this reality, right.
- 22:26Speaker 1: They take our terrible passwords, they solve them to break
- 22:29Speaker 1: the hackers rainbow tables, and they put deliberate speed bumps
- 22:33Speaker 1: in their code with memory heavy algorithms like script to
- 22:36Speaker 1: choke out the attackers yep. And then on the front
- 22:39Speaker 1: end they harvest our unique digital fingerprints to keep our
- 22:42Speaker 1: experience completely frictionless.
- 22:45Speaker 2: They do, And this raises an important final question, something
- 22:48Speaker 2: I think is worth mulling over long after this discussion ends.
- 22:51Speaker 1: What's up?
- 22:51Speaker 2: We just established that the very things that make our
- 22:53Speaker 2: devices customized to our personal tastes are specific plugins, our
- 22:57Speaker 2: screen resolutions, our privacy blockers are exactly what servers use
- 23:02Speaker 2: to silently track and authenticate us. If that's true, will
- 23:06Speaker 2: true digital privacy in the future require us to abandon
- 23:09Speaker 2: all customization?
- 23:11Speaker 1: Oh wow?
- 23:11Speaker 2: To stay truly hidden from the tracking algorithms, we might
- 23:15Speaker 2: eventually have to make our digital presence completely boringly identical
- 23:19Speaker 2: to everyone else's.
- 23:20Speaker 1: That is a fascinating and kind of haunting thought. Maybe
- 23:24Speaker 1: the safest way to store our valuables isn't behind a
- 23:26Speaker 1: massive titanium bank vault.
- 23:28Speaker 2: Or after all, maybe not.
- 23:30Speaker 1: Maybe the only way to truly keep the contents hidden
- 23:33Speaker 1: is to put them in a plain gray cardboard box
- 23:36Speaker 1: sitting on a shelf next to millions of other completely identical,
- 23:40Speaker 1: plane gray cardboard boxes, where the bank manager couldn't find
- 23:43Speaker 1: them even if they had the key.
- 23:44Speaker 2: That's a great way to look at it.
- 23:46Speaker 1: Thanks for joining us on this deep dive. We'll see
- 23:48Speaker 1: you next time.