Latest / CyberCode Academy / Course 36 - Windows Forensics and Tools | Episode 5: Structure and Forensic Significance
Transcript
- 0:00Speaker 1: You know, it's funny when you sit down at your
- 0:01Speaker 1: computer with your morning coffee, you type in your username,
- 0:05Speaker 1: you type in your password, and boom, you're.
- 0:06Speaker 2: On your desktop, right the magic moment, Yeah, exactly.
- 0:09Speaker 1: You see your background, your files, your saved settings, and
- 0:13Speaker 1: it feels incredibly personal. There's this fundamental expectation that the
- 0:18Speaker 1: computer is saying, you know, welcome back, my good friend.
- 0:21Speaker 3: But it's totally an illusion.
- 0:23Speaker 1: It is, and that brings me to a fundamental cybersecurity
- 0:26Speaker 1: question for you, the listener. When you type in that
- 0:29Speaker 1: username and password, how does the computer actually know it's you,
- 0:34Speaker 1: Because here's a massive hint, it does not care about your.
- 0:38Speaker 3: Name at all. Oh, it really doesn't. I mean, to
- 0:40Speaker 3: the operating system, your name is just well, it's window dressing, right.
- 0:44Speaker 3: It's just an illusion of identity created for our human
- 0:47Speaker 3: brains simply because you know, we prefer words.
- 0:50Speaker 4: To raw data.
- 0:52Speaker 3: The machine, however, operates on an entirely different, hidden layer
- 0:56Speaker 3: of identification that most people just never see.
- 0:59Speaker 1: That hidden layer is exactly what we are exploring today.
- 1:03Speaker 1: So welcome to this deep dive. Today, we are stepping
- 1:07Speaker 1: into the shoes of a forensic investigator and we're going
- 1:10Speaker 1: to explore the hidden digital fingerprints of the Windows operating system.
- 1:16Speaker 3: Yes, specifically, we're looking at something called security identifiers or sids.
- 1:21Speaker 1: Sads, right, and for anyone listening, whether you are a programmer,
- 1:25Speaker 1: a cybersecurity analyst, or I mean just someone curious about
- 1:28Speaker 1: the invisible architecture powering your daily tools, we are taking
- 1:33Speaker 1: this step by step.
- 1:34Speaker 3: Absolutely, you don't need to be staring at a terminal
- 1:36Speaker 3: screen for this. We're going to paint a really clear
- 1:38Speaker 3: mental picture of what happens behind the scenes of your OS.
- 1:41Speaker 2: So let's start the very beginning.
- 1:43Speaker 1: If my computer doesn't care that my name is, you know,
- 1:46Speaker 1: my actual name, what does it care about, Like, how
- 1:48Speaker 1: does it actually categorize me when I enter on that
- 1:51Speaker 1: login screen?
- 1:51Speaker 3: Well, it categorizes you as a security principle.
- 1:54Speaker 2: A security principle, okay, yeah.
- 1:56Speaker 3: In the Windows environment, every single user, every group of users,
- 2:00Speaker 3: and even you know, every automated background service is considered
- 2:03Speaker 3: a security principle. Or sometime you'll hear the term.
- 2:06Speaker 2: Trustee okay, trust d That makes sense.
- 2:09Speaker 3: And the way the operating system tracks these trustees is
- 2:12Speaker 3: through those invisible codes you brought up, the security identifiers,
- 2:15Speaker 3: I mean sid is basically a unique value of variable length,
- 2:19Speaker 3: and it serves as the ultimate indisputable identifier of a trustee.
- 2:23Speaker 1: Okay, I want to unpack the mechanics of this a
- 2:25Speaker 1: bit because before we look at how a forensic expert
- 2:29Speaker 1: actually reads one of these digital fingerprints, we need to
- 2:32Speaker 1: understand how the operating system uses it during just like
- 2:36Speaker 1: a normal.
- 2:37Speaker 4: Tuesday, right, the day to day operations.
- 2:39Speaker 1: Exactly, you sit down, you log in your password clears
- 2:42Speaker 1: what is actually happening under the hood with this SID.
- 2:44Speaker 3: So when you successfully authenticate, the system doesn't just pass
- 2:48Speaker 3: your name along to the desktop. It performs a database
- 2:51Speaker 3: look up. Yeah, the system retrieves your specific mathematical SID
- 2:56Speaker 3: from its database and it places that SID into.
- 3:00Speaker 4: An active data structure. This is called an.
- 3:02Speaker 2: Access token access token.
- 3:04Speaker 4: Right.
- 3:05Speaker 3: You can think of the SID as the permanent record
- 3:07Speaker 3: locked in the vault, while the access token is the
- 3:10Speaker 3: active carrier of that identity for your current temporary session.
- 3:14Speaker 2: Oh I see.
- 3:14Speaker 1: So the SID is like a permanently assigned social security
- 3:17Speaker 1: number for your digital profile, and the access token is well,
- 3:22Speaker 1: it's like the VIP badge you're handed at the door
- 3:24Speaker 1: of a highly secure building.
- 3:25Speaker 3: Yes, that's a perfect analogy and taking that VIP badge
- 3:28Speaker 3: ida step further. Think about how you move through a secure.
- 3:31Speaker 2: Building, right, You have to scan in everywhere exactly.
- 3:34Speaker 3: You don't walk around handing everyone your original Social Security card.
- 3:38Speaker 3: You tap your temporary VIP badge against the scanner at
- 3:41Speaker 3: every single inner door. And that is exactly what happens
- 3:44Speaker 3: inside Windows.
- 3:45Speaker 2: So every action requires a badge.
- 3:47Speaker 3: Tap, every single one. Every time you interact with the system,
- 3:51Speaker 3: say you double click a secure file or try to
- 3:54Speaker 3: change a network setting, or attempt to delete a folder,
- 3:57Speaker 3: the operating system does not ask for your password again.
- 4:00Speaker 4: It checks that access token.
- 4:01Speaker 1: Wow.
- 4:02Speaker 3: Yeah, that token, which contains your SID, holds the complete
- 4:06Speaker 3: manifest of your user rights, your group memberships, and your privileges.
- 4:10Speaker 1: So if I try to enter the system thirty two folder,
- 4:12Speaker 1: it's literally flashing the badge at the bouncer. The OS
- 4:16Speaker 1: looks at the folder's desk list, looks at my token's
- 4:19Speaker 1: SID and says, you know, nope, your SID doesn't have
- 4:21Speaker 1: the privileges for that denied.
- 4:23Speaker 3: That is the exact mechanism. Yeah, but here's the most
- 4:26Speaker 3: crucial architectural rule about SID and that this is where
- 4:29Speaker 3: it becomes the total foundation for all forendic analysis.
- 4:32Speaker 2: Okay, lay it on me.
- 4:33Speaker 3: A security principle gets a single sid for life in
- 4:36Speaker 3: a given domain.
- 4:37Speaker 1: Wait when you say for life, do you mean for
- 4:39Speaker 1: the life of the human employee or like the life
- 4:42Speaker 1: of the machine.
- 4:43Speaker 3: The life of the domain itself. Really, there are absolutely
- 4:45Speaker 3: no exceptions to this. Let's say you have an employee
- 4:48Speaker 3: named John Smith. John works at the company for five
- 4:50Speaker 3: years and he leaves right the IT department deletes John's account. Well,
- 4:56Speaker 3: if a security identifier has been used to identify John's account,
- 4:59Speaker 3: that specific string of numbers can never ever be used
- 5:03Speaker 3: again to identify another user or group. It is permanently burned.
- 5:07Speaker 1: Wait wait, wait, If a company has like a thousand
- 5:10Speaker 1: employees churning every year, isn't that incredibly wasteful? What if
- 5:13Speaker 1: they hire a new guy named John Smith the very
- 5:16Speaker 1: next week and give him the exact same j Smith
- 5:18Speaker 1: user name. Does he not inherit the old permissions?
- 5:21Speaker 4: He absolutely does not.
- 5:22Speaker 3: Oh wow, and you've actually hit on the core reason
- 5:25Speaker 3: forensics teams love this no reuse role. Think about the alternative. Okay,
- 5:29Speaker 3: imagine a scenario where you are called in to investigate
- 5:32Speaker 3: a massive data breach and you are looking at an
- 5:35Speaker 3: audit log from.
- 5:36Speaker 4: Three years ago.
- 5:38Speaker 3: The log shows that a critical financial database was deleted
- 5:41Speaker 3: by a specific identifier.
- 5:43Speaker 2: Oh, I see where this is going.
- 5:44Speaker 4: Right.
- 5:45Speaker 3: If the system recycled identifiers and that SID had been
- 5:48Speaker 3: passed around to three different employees since the deletion, your
- 5:51Speaker 3: audit trail is completely worthless. You would have no way
- 5:54Speaker 3: to prove which John Smith deleted the database.
- 5:57Speaker 2: I see.
- 5:57Speaker 1: It completely eliminates reasonable doubt. Exactly by permanently retiring the SID,
- 6:03Speaker 1: the operating system ensures absolute historical accuracy, like it locks
- 6:07Speaker 1: in the chain of evidence. If I see that SID
- 6:10Speaker 1: in a log file from five years ago, I know
- 6:13Speaker 1: with mathematical certainty exactly who it belonged to, regardless of
- 6:16Speaker 1: how many new people with the same name have joined.
- 6:18Speaker 3: Since precisely all properties of the principle are permanently fused
- 6:22Speaker 3: to that one unique SID. So, now that we understand
- 6:26Speaker 3: the gravity of what SID represents, we really should look
- 6:30Speaker 3: at what it actually looks like to the naked eye.
- 6:32Speaker 1: Yeah, let's do that, because if you pull a memory
- 6:34Speaker 1: dump file during a cyber investigation, what is actually staring
- 6:37Speaker 1: back at you?
- 6:38Speaker 4: Right?
- 6:38Speaker 3: Well, if I'm looking at raw data, it's highly structured.
- 6:41Speaker 3: When an SID is displayed in its textual format, it
- 6:45Speaker 3: encapsulates a hierarchical notion of an issuer and an identifier.
- 6:48Speaker 1: Okay, so it's not just a random jumble of letters,
- 6:51Speaker 1: not at all.
- 6:53Speaker 3: Visually, it usually looks like a long string of characters
- 6:56Speaker 3: starting with a capital S, followed by dashes separating sequences.
- 7:00Speaker 2: Of numbers like S one something.
- 7:03Speaker 3: Yes, exactly, But the S and the dashes are literal strings.
- 7:07Speaker 3: They don't have actual mathematical value. Oh really, Yeah, they're
- 7:11Speaker 3: just formatting elements added so human investigators can read the
- 7:15Speaker 3: data without their eyes crossing. That's nice of them, very considerate.
- 7:19Speaker 3: The actual payload of the SID is in the numbers
- 7:22Speaker 3: between those dashes, and it breaks down into three main components. First,
- 7:27Speaker 3: right after the S and the version number, you have
- 7:29Speaker 3: a six byte identify our authority field.
- 7:32Speaker 2: Identify our authority.
- 7:33Speaker 4: Huh.
- 7:34Speaker 2: That sounds like the agency issuing the passport or something.
- 7:37Speaker 3: That's a perfect way to conceptualize it. It describes the top
- 7:39Speaker 3: level system that owns and issue the SID. Okay, Following
- 7:43Speaker 3: that authority, you have a series of sub authority values.
- 7:46Speaker 3: There can be anywhere from one to fourteen of these
- 7:48Speaker 3: sub authorities in the string, And.
- 7:50Speaker 1: What kind of scale are we talking about here? Like,
- 7:52Speaker 1: how big can these sub authorities get?
- 7:54Speaker 4: Well, they are each thirty two bit values.
- 7:57Speaker 1: Okay, let's pause and contextualize that for a second for
- 7:59Speaker 1: the listener. A thirty two bit value means we aren't
- 8:02Speaker 1: just talking about a few hundred IDs. Each one of
- 8:05Speaker 1: those sub authorities can hold over four billion unique combinations.
- 8:10Speaker 4: Over four point two billion, to be exact.
- 8:12Speaker 2: That is massive.
- 8:13Speaker 3: The scale is absolutely massive. And finally, the string ends
- 8:17Speaker 3: in a single thirty two bit relative identifier or RD
- 8:21Speaker 3: for short r D.
- 8:22Speaker 1: Okay, I understand the theory, but in practice, how does
- 8:25Speaker 1: this structure guarantee global uniqueness? Like if two completely different
- 8:29Speaker 1: issuing authorities on opposite sides of the world accidentally hand
- 8:33Speaker 1: out the exact same relative identifier at the end of
- 8:35Speaker 1: the string, wouldn't we have a collision?
- 8:38Speaker 3: You would think so, But no, The brilliant combination of
- 8:41Speaker 3: the identifier authority value and those massive thirty two bit
- 8:44Speaker 3: sub authority values prevents collisions entirely.
- 8:47Speaker 1: So it's similar to like global numbers, two people can
- 8:51Speaker 1: have the exact same seven digit phone number, say five
- 8:54Speaker 1: five five zero one ninety nine. But if one has
- 8:57Speaker 1: a New York area code and the other has alone
- 9:00Speaker 1: in country and airy code, they are completely distinct globally.
- 9:04Speaker 4: That is the exact logic.
- 9:05Speaker 3: Yeah, the authority and sub authorities act as an incredibly specific,
- 9:10Speaker 3: mathematically unique area code for the domain. Right when a
- 9:14Speaker 3: Windows domain is created, it generates a unique identifier for itself.
- 9:18Speaker 3: Within that specific domain, the authority issues a given relative
- 9:22Speaker 3: identifier the suffix only once.
- 9:25Speaker 1: But if the prefix is globally unique, why do we
- 9:27Speaker 1: even need the suffix to be strictly managed locally? Like,
- 9:30Speaker 1: couldn't the local machine just generate random suffixes.
- 9:33Speaker 3: It's all about distributed efficiency. I mean, you don't want
- 9:35Speaker 3: a local computer in Ohio having to ping a central
- 9:38Speaker 3: global server every single time it needs to create a
- 9:40Speaker 3: temporary guest account just to check if a random number
- 9:43Speaker 3: has been used somewhere in Tokyo.
- 9:44Speaker 2: Oh yeah, that'd be terribly slow.
- 9:46Speaker 4: Right.
- 9:46Speaker 3: So, by guaranteeing the prefix is globally unique, the local
- 9:49Speaker 3: system only has to worry about keeping its own internal
- 9:52Speaker 3: list of suffixes in order. Combine a globally unique prefix
- 9:56Speaker 3: with a strictly managed local suffix and you have an
- 9:59Speaker 3: identifier that will never be duplicated anywhere in the world.
- 10:01Speaker 2: It's so elegant.
- 10:02Speaker 1: All right, Let's zoom in on that first major piece
- 10:06Speaker 1: of the puzzle, the six byte identify our authority feel
- 10:09Speaker 1: the issuing agency you mentioned. This tells us who owns
- 10:12Speaker 1: the SID. Yes, it does, instead of just listing them off.
- 10:14Speaker 1: How does the system actually categorize these different authorities.
- 10:18Speaker 3: Well, Windows NT defines several primary identifier authorities, and they're
- 10:22Speaker 3: represented by single digits. Let's look at them as a
- 10:25Speaker 3: spectrum of trust, starting from the absolute bottom.
- 10:28Speaker 4: At the bottom, first, we.
- 10:29Speaker 3: Have the value zero. This is the null SID authority.
- 10:33Speaker 3: The textual representation is S one zero zero.
- 10:36Speaker 2: No, meaning like a ghost, a group with no members.
- 10:41Speaker 4: Basically, yeah.
- 10:42Speaker 1: Why would an operating system fundamentally need a void placeholder
- 10:46Speaker 1: to function securely?
- 10:47Speaker 3: It is heavily utilized for Failsas imagine, a system process
- 10:51Speaker 3: tries to check the permissions of a critical file but
- 10:53Speaker 3: the file's creator profile has been completely corrupted or a
- 10:58Speaker 3: hard drive sector failed.
- 11:00Speaker 2: That happens all the time, right.
- 11:01Speaker 3: The operating system can't just crash, and it certainly can't
- 11:04Speaker 3: leave the file permissions blank. That would be a massive
- 11:06Speaker 3: security hole.
- 11:07Speaker 2: Oh, so it assigns it to the void exactly.
- 11:10Speaker 3: It defaults the file's ownership to the null SID. It
- 11:13Speaker 3: safely locks the file down because by definition, no user
- 11:17Speaker 3: can ever log in as the null SID.
- 11:19Speaker 2: That makes perfect sense. It's the ultimate quarantine zone. So
- 11:22Speaker 2: what sits above the quarantine zone?
- 11:24Speaker 3: Moving out the trust spectrum, we have the broad categories.
- 11:28Speaker 3: Value one is the world SID authority written as S
- 11:31Speaker 3: one one.
- 11:31Speaker 4: Zero the world.
- 11:33Speaker 3: Yeah, this identifies a group that includes all users. It
- 11:36Speaker 3: is the everyone group, which includes anonymous users and guests. Then,
- 11:40Speaker 3: distinct from the world is value two. That's the local
- 11:42Speaker 3: SID authority S one two zero.
- 11:45Speaker 1: So if value one is anybody who can ping the
- 11:47Speaker 1: server of the Internet, value two has to be the
- 11:49Speaker 1: person physically sitting in the chair at the terminal.
- 11:52Speaker 4: You've got it it.
- 11:52Speaker 3: It identifies users who log onto terminals locally and are
- 11:56Speaker 3: physically tangibly.
- 11:57Speaker 4: Connected to the system.
- 11:59Speaker 2: Makes sense.
- 12:00Speaker 3: Now, moving past the broad groups, we get to the builders.
- 12:04Speaker 3: Value three is the security creator SID authority the builders.
- 12:08Speaker 2: How does this authority work?
- 12:09Speaker 3: This authority manages inheritable access. For instance, S one three
- 12:13Speaker 3: zero is the creator owner ID. Think of it as
- 12:16Speaker 3: a dynamic placeholder. Okay, Like how when you, the user,
- 12:20Speaker 3: create a brand new spreadsheet on your desktop, the system
- 12:23Speaker 3: uses this creator owner SID to automatically grant you full
- 12:27Speaker 3: control over that file. It ensures that the active creation
- 12:30Speaker 3: automatically confers the rights of ownership without you having to
- 12:33Speaker 3: manually configure permissions every single time you save a new document.
- 12:36Speaker 1: Okay, So we have zero for the null quarantine, one
- 12:39Speaker 1: for the world, two for the local terminal, and three
- 12:41Speaker 1: for the creator. Does value four represent the network?
- 12:45Speaker 4: Actually?
- 12:45Speaker 3: Value four is the security non unique authority. And this
- 12:48Speaker 3: is a fascinating piece of trivia for reverse engineers. It
- 12:51Speaker 3: is completely unused by Windows.
- 12:53Speaker 2: Nt wait, unused, like they just skipped it pretty much.
- 12:56Speaker 1: It's like finding a sealed off room in houses blueprints.
- 12:59Speaker 1: It's just they plan to build something there, maybe an
- 13:01Speaker 1: old feature that got scrapped during development, but now it's
- 13:05Speaker 1: just dead space in the architecture.
- 13:07Speaker 3: That is an incredibly accurate way to view it. It
- 13:10Speaker 3: is reserved space that remains empty, just a ghost of
- 13:14Speaker 3: an architectural plan. So the system jumps straight to value five,
- 13:18Speaker 3: which is the Security and t authority. Ah okay, And
- 13:21Speaker 3: this one is the heavy lifter. It describes the vast
- 13:24Speaker 3: majority of accounts that are managed by the Windows NT
- 13:27Speaker 3: security subsystem itself. Finally, value nine is the resource manager
- 13:32Speaker 3: authority utilized for third party resource managers.
- 13:35Speaker 1: So as an investigator, I don't even need to read
- 13:37Speaker 1: the whole string initially, just glancing at that first single
- 13:40Speaker 1: digit after the S and the one tells me immediately
- 13:43Speaker 1: if I am looking at a physical local user, a
- 13:45Speaker 1: system process, or a quarantine file that saves a massive
- 13:49Speaker 1: amount of time during incident response.
- 13:50Speaker 3: Oh, absolutely, it's all about rapid triage. But if the
- 13:54Speaker 3: identifier authority tells us the issuing agency, we need to
- 13:57Speaker 3: look at the very end of the string to see
- 13:58Speaker 3: exactly who this specific user is.
- 14:01Speaker 1: Right, the relative identifier, the RID the suffix of our
- 14:04Speaker 1: digital phone number. Let's talk about the VIPs of the system.
- 14:08Speaker 1: How does the system organize these suffixes?
- 14:11Speaker 3: Well, Windows has a very strict demarcation line for allocating rids.
- 14:15Speaker 3: Whenever a new regular human user account is created on
- 14:18Speaker 3: a domain, Windows allocates RD starting at the number one thousand.
- 14:22Speaker 3: Oh I see, so the first employees is one thousand,
- 14:25Speaker 3: the next is one thousand and one, and so on.
- 14:27Speaker 1: Meaning any RD with a value of less than a
- 14:30Speaker 1: thousand is totally segregated from the general population.
- 14:33Speaker 3: Yes, anything under one thousand is considered reserves, strictly for special,
- 14:36Speaker 3: well known accounts. These are the built in identities that
- 14:39Speaker 3: the operating system relies on to function, and the ultimate VIP.
- 14:42Speaker 3: The absolute top of the pyramid is the RID of
- 14:45Speaker 3: five hundred.
- 14:45Speaker 1: The five hundred What does five hundred grant you?
- 14:47Speaker 3: All Windows accounts with the RID of five hundred are
- 14:50Speaker 3: the built in administrator accounts in their respective issuing authorities.
- 14:53Speaker 2: Okay, let's put this into a forensic context.
- 14:56Speaker 1: If I'm an investigator analyzing a packet capture or a
- 14:58Speaker 1: memory dump, and I I see an SID string that
- 15:01Speaker 1: ends in DASH five zero zero zero systematically deleting audit
- 15:06Speaker 1: logs or compressing massive amounts of proprietary data to be
- 15:09Speaker 1: shipped out of the network. That's not just an interurn
- 15:12Speaker 1: clicking the wrong.
- 15:13Speaker 4: Button, not at all.
- 15:14Speaker 3: Spotting that five hundred rid engaging in unauthorized behavior is
- 15:19Speaker 3: a terrifying moment in any forensic timeline. I bet it
- 15:22Speaker 3: means you aren't just dealing with a compromised user account.
- 15:25Speaker 3: Whoever is controlling that session has the keys to the
- 15:28Speaker 3: entire kingdom. They can bypass almost any security protocol because
- 15:32Speaker 3: the system recognizes them as the ultimate authority.
- 15:35Speaker 1: It's a chilling scenario, but understanding how cleanly it's laid
- 15:38Speaker 1: out is empowering. It's all just structured numbers. This brings
- 15:42Speaker 1: up a highly practical question, though. Now that we know
- 15:45Speaker 1: how to read these codes, how do developers actually use
- 15:48Speaker 1: them when building automation.
- 15:49Speaker 4: That's a great question because I.
- 15:51Speaker 1: Imagine typing out S one, five, twenty one, and like
- 15:54Speaker 1: twenty more digits every time you write a PowerShell script
- 15:56Speaker 1: would be exhausting and honestly super prone to typos.
- 15:59Speaker 3: It would be and there is a major architectural trap
- 16:02Speaker 3: to avoid here. It's what security professionals call the programmer's
- 16:06Speaker 3: dilemma or the localization track.
- 16:08Speaker 2: Localization track.
- 16:10Speaker 3: Yeah, most applications never actually need to work directly with sids, right,
- 16:14Speaker 3: They let the operating system handle the complex translation. But
- 16:18Speaker 3: sometimes a programmer writing a forensic tool or an automated
- 16:22Speaker 3: security script does need to reference a specific well known SID,
- 16:26Speaker 3: like that built in administrator we just talked about.
- 16:29Speaker 1: Let me guess the temptation is to just write the
- 16:32Speaker 1: human readable name in the code, just type out quote
- 16:34Speaker 1: unquote built in administrator and assume the operating system will
- 16:37Speaker 1: translate it into the DASH five zero zero SID on
- 16:41Speaker 1: the back end.
- 16:42Speaker 3: That is the exact assumption many novice developers make, and
- 16:46Speaker 3: the results could be completely catastrophic. Really, think about how
- 16:49Speaker 3: Windows is deployed globally. In the United States, the English
- 16:52Speaker 3: version of the Windows operating system indeed has a well
- 16:55Speaker 3: known SID mathematically linked to the name built an administrator.
- 16:59Speaker 1: Oh oh, I see exactly where this is going. If
- 17:01Speaker 1: I take that perfectly written script and I deploy it
- 17:04Speaker 1: to a corporate branch in France, the localized name on
- 17:07Speaker 1: that machine is administrator.
- 17:09Speaker 3: Yes, exactly, or in Spain it's administrator. If your script
- 17:13Speaker 3: is hard coded to look for the exact English string
- 17:16Speaker 3: built in administrator, and it runs on an international version
- 17:19Speaker 3: of Windows, the script will completely crash. The system will
- 17:23Speaker 3: search its local database, find no natch for the English word,
- 17:26Speaker 3: and just throw an error.
- 17:27Speaker 2: That is wild.
- 17:28Speaker 1: You could have a masterpiece of cybersecurity code, completely logic sound,
- 17:32Speaker 1: and it fails to stop a breach in a different
- 17:34Speaker 1: country just because the programmer relied on a localized word
- 17:37Speaker 1: instead of the universal math.
- 17:39Speaker 3: That is precisely why it is an absolute mandate and
- 17:41Speaker 3: secure development to use pre defined functions that build the
- 17:45Speaker 3: SID from mathematical constants rather than using plaintext names. The
- 17:49Speaker 3: SID numbers are universal, right S one five, three, two, five,
- 17:52Speaker 3: four four will always resolve to the local administrators group
- 17:56Speaker 3: whether the server rack is sitting in a data center
- 17:59Speaker 3: in Ohio to Berlin.
- 18:01Speaker 1: The machine doesn't care about the language. It only understands
- 18:04Speaker 1: the math. Do not trust the text, trust the SID.
- 18:07Speaker 1: That is such a vital lesson.
- 18:09Speaker 3: It's really the only way to ensure your tool scale globally.
- 18:12Speaker 1: All Right, this has been an incredibly deep dive into
- 18:15Speaker 1: the invisible architecture that governs everything we do on our machines.
- 18:19Speaker 1: But before we close out today's deep dive, we need
- 18:22Speaker 1: to test these new forensic skills. We've thrown a lot
- 18:25Speaker 1: of complex numerical structures out there today for you.
- 18:28Speaker 3: Let's see how well the mental picture holds up.
- 18:30Speaker 1: Okay, let's put me in the shoes of the investigator.
- 18:33Speaker 1: I'm looking at a security log and I see a
- 18:36Speaker 1: SID that reads S one two zero. Now, based on
- 18:39Speaker 1: what you just taught me, the S and the one
- 18:41Speaker 1: are standard formatting the actual identifier authority?
- 18:45Speaker 2: Is that too?
- 18:46Speaker 4: Correct?
- 18:46Speaker 1: So wait, don't tell me. Zero was the null SID,
- 18:48Speaker 1: the void we use for corrupted files. One was the
- 18:51Speaker 1: world SID. Literally, everyone including anonymous network pings, right, So
- 18:55Speaker 1: two has to be the local authority. It corresponds to
- 18:58Speaker 1: the user who is physical at the terminal, tangibly connected
- 19:02Speaker 1: to the machine. Am I reading the matrix rate?
- 19:04Speaker 4: You were reading it perfectly.
- 19:06Speaker 3: The identifying authority with the value of two is local,
- 19:09Speaker 3: and it is used exclusively for that local group. It's
- 19:12Speaker 3: amazing how quickly those intimidating strings of numbers start to
- 19:16Speaker 3: tell a clear story once you understand the syntax.
- 19:19Speaker 1: It really is now to close this out. We've spent
- 19:21Speaker 1: this entire time talking about the rigid mathematical rules of
- 19:25Speaker 1: this system, particularly the absolute permanence of the single SID
- 19:30Speaker 1: for life rule.
- 19:31Speaker 3: Yes, the foundational rule that SID can never ever be
- 19:34Speaker 3: recycled within a domain.
- 19:36Speaker 4: Right.
- 19:36Speaker 1: I want to leave the listener with a scenario to
- 19:38Speaker 1: ponder something that pushes the boundaries of what we've learned today.
- 19:42Speaker 1: We know that the relative identifier the RID at the
- 19:45Speaker 1: end of the string is a thirty two bit value.
- 19:47Speaker 1: You mentioned earlier that this allows for over four billion
- 19:51Speaker 1: unique area.
- 19:51Speaker 4: Yeah, four point two billion.
- 19:53Speaker 2: Now for human employees.
- 19:54Speaker 1: A company is never going to hire four billion people
- 19:57Speaker 1: running out seems mathematically impossible.
- 19:59Speaker 4: In a traditional human context.
- 20:00Speaker 1: Yes, absolutely, But what if we aren't talking about humans.
- 20:04Speaker 1: What if a massive, decades old enterprise network is infected
- 20:08Speaker 1: by a poorly written automated rogue script, A script that
- 20:12Speaker 1: is actively creating and then deleting thousands of temporary service
- 20:16Speaker 1: accounts every single minute of every single day for years
- 20:20Speaker 1: on end, slowly chewing through that thirty two bit limit.
- 20:23Speaker 3: H It's a scenario that keeps system architects awake at night.
- 20:28Speaker 1: What happens when that mathematical absolute, the unbreakable rule that
- 20:31Speaker 1: a SID can never be reused meets the chaotic reality
- 20:35Speaker 1: of a system pushed to the absolute brink. If that
- 20:38Speaker 1: domain finally issues its four billionth SID, does the entire
- 20:41Speaker 1: global network just refuse to let anyone new log in ever?
- 20:45Speaker 2: Again?
- 20:46Speaker 1: Would the architecture simply collapse under the weight of its
- 20:48Speaker 1: own security rules?
- 20:49Speaker 4: Well, that is the ultimate stress test.
- 20:51Speaker 2: I'll leave you to chew on that one.
- 20:52Speaker 1: When you sit down tomorrow morning and type in your password,
- 20:54Speaker 1: remember the computer isn't greeting you by name. It's querying
- 20:57Speaker 1: a database pulling a permanent, unrepeatable string of numbers and
- 21:01Speaker 1: handing you your digital VIP badge for the day until
- 21:05Speaker 1: next time, Keep diving deep