Latest / CyberCode Academy / Course 36 - Windows Forensics and Tools | Episode 6: From System Hives to Forensic Analysis
Transcript
- 0:00Speaker 1: I want you to imagine a deeply hidden, totally locked
- 0:04Speaker 1: diary inside your.
- 0:06Speaker 2: Computer, right, and not just like a standard diary with
- 0:09Speaker 2: a few notes.
- 0:10Speaker 1: Yeah, exactly. This diary doesn't just record the major milestones.
- 0:13Speaker 1: I mean, it records absolutely.
- 0:15Speaker 2: Everything, every single tiny detail we're.
- 0:18Speaker 1: Talking about, like the exact hex code of the blue
- 0:21Speaker 1: you chose for your desktop background, Yeah, every Wi Fi
- 0:25Speaker 1: network your machine has ever.
- 0:26Speaker 2: Pinged, the cased passwords for your remote connections, yes.
- 0:30Speaker 1: And even the serial number of literally every single USB
- 0:33Speaker 1: drive you have ever plugged into a port.
- 0:35Speaker 2: Yeah.
- 0:36Speaker 1: It's well, it's the ultimate forensic treasure box. It really is.
- 0:38Speaker 2: And we're talking, of course about the Windows System registry, right.
- 0:41Speaker 1: It is basically your computer's central nervous system. And today
- 0:45Speaker 1: we are doing a deep dive to teach you exactly
- 0:47Speaker 1: how cybersecurity experts and you know, forensic analysts pick the
- 0:51Speaker 1: lock bypass the operating system entirely and extract its deepest secrets.
- 0:55Speaker 2: But to do that, we really have to understand why
- 0:59Speaker 2: this massive dayabase even exists in the first place, and
- 1:01Speaker 2: like how it mechanically operates under the hood.
- 1:04Speaker 1: Because it is complex, very I.
- 1:06Speaker 2: Mean, for a lot of users, the computer's just an interface, right.
- 1:08Speaker 2: You have Windows folders, you double click things. I had
- 1:11Speaker 2: graphical layer exactly. But behind that graphical layer, the operating
- 1:16Speaker 2: system is constantly querying this highly structured, hierarchical database just
- 1:21Speaker 2: to know how to behave. If you want to reconstruct
- 1:24Speaker 2: past events or understand user behavior on a machine, you
- 1:28Speaker 2: don't look at the files. You look at the registry.
- 1:31Speaker 1: So let's crack the architecture open. Because Windows wasn't always
- 1:35Speaker 1: built this way, right, If we go back to the
- 1:37Speaker 1: MS DOS days or even early Windows, configuration data was
- 1:41Speaker 1: completely decentralized. Oh yeah, the Wild West, it really was.
- 1:44Speaker 1: You had these random text files just scattered all across
- 1:47Speaker 1: the hard drive, your dot II files, autoexec, dot back, configure,
- 1:51Speaker 1: dot tease. I mean, it seems like an organizational nightmare.
- 1:55Speaker 1: If say, two different programs tried to modify hardware settings
- 1:58Speaker 1: at the exact.
- 1:59Speaker 2: Same time, it was a nightmare. That decentralized approach caused
- 2:02Speaker 2: like immense file locking and corruption issues I can imagine.
- 2:05Speaker 2: So the registry was engineered to solve that by creating
- 2:08Speaker 2: a single unified system defined database. Every piece of software,
- 2:13Speaker 2: every hardware driver, and the operating system itself is totally
- 2:17Speaker 2: forced to route configuration requests through this one central hub.
- 2:23Speaker 1: And when you map out the architecture of that hub,
- 2:25Speaker 1: it looks a lot like object oriented programming inheritance or
- 2:30Speaker 1: like an active directory tree.
- 2:31Speaker 2: It's highly nested, very much so it's a massive tree structure.
- 2:35Speaker 2: So the main folders at the very top of the
- 2:38Speaker 2: hierarchy are called hives hivesky, and inside those hives you
- 2:41Speaker 2: have subfolders called keys. Inside those are subkeys, And finally,
- 2:45Speaker 2: at the very very bottom you have the actual values
- 2:47Speaker 2: and their data.
- 2:48Speaker 1: Like a Russian nesting doll.
- 2:50Speaker 2: Exactly like that. And this tree can nest up to
- 2:52Speaker 2: five hundred and twelve levels deep.
- 2:55Speaker 1: Oh wow, is that's deep.
- 2:56Speaker 2: Yeah, it's massive, and it has strict rules governing how.
- 2:59Speaker 1: You have it right. For example, keynames have to be
- 3:02Speaker 1: printable characters and they aren't case sensitive. But crucially, you
- 3:06Speaker 1: cannot use a backslash and a key name right correct,
- 3:09Speaker 1: because the system uses the backslash to read the path
- 3:11Speaker 1: structure itself.
- 3:12Speaker 2: It's the exact same logic as standard file paths. If
- 3:16Speaker 2: you put a backslash in a folder name, the purser
- 3:19Speaker 2: thinks you're asking to move into a new directory, which
- 3:22Speaker 2: totally breaks the structural logic it makes sense. Another critical rule,
- 3:26Speaker 2: and this is especially important for international forensic analysts who
- 3:29Speaker 2: are tracking data across borders, is that key names in
- 3:33Speaker 2: the registry are never localized.
- 3:35Speaker 1: Wait, meaning they don't change languages exactly.
- 3:38Speaker 2: If you change your Windows language setting to French or Japanese,
- 3:43Speaker 2: your visible desktop folders will translate. Sure, but the underlying
- 3:47Speaker 2: registry keys remain exactly the same in English.
- 3:50Speaker 1: Oh that's fascinating.
- 3:51Speaker 2: Yeah, the actual value data inside them might localize, but
- 3:54Speaker 2: the structural path never does. It has to stay rigid.
- 3:57Speaker 1: Okay. So if the registry is structured so much like
- 4:00Speaker 1: a standard file system, I mean folders inside folders essentially,
- 4:05Speaker 1: why can't you just open up your regular file explorer,
- 4:07Speaker 1: click on the seed drive, and just browse through the hives.
- 4:11Speaker 1: Why do we need a specialized tool like the rejetted
- 4:14Speaker 1: application to even look at it?
- 4:15Speaker 2: Well, you can't browse it natively because of the sheer
- 4:17Speaker 2: velocity of the data transactions velocity. Yeah, the operating system
- 4:22Speaker 2: is continually reading and writing to this database thousands of
- 4:26Speaker 2: times per second. If you casually opened it in a
- 4:29Speaker 2: file explorer, you risk massive memory access violations.
- 4:33Speaker 1: Oh so you basically crash the computer.
- 4:35Speaker 2: Yeah, a total blue screen scenario. So to prevent that,
- 4:39Speaker 2: Windows abstracts the database behind application programming interfaces or APIs.
- 4:44Speaker 2: The system forces you to use these APIs to retrieve
- 4:48Speaker 2: or modify data safely. That tool, regit it is really
- 4:52Speaker 2: just a graphical interface built on top of those APIs.
- 4:55Speaker 2: It acts as a safety layer so you don't accidentally
- 4:57Speaker 2: crash the kernel while you're just looking at the data.
- 5:00Speaker 1: Okay, so regid it provides the safety goggles.
- 5:02Speaker 2: That's a good way to put it.
- 5:03Speaker 1: Let's put those goggles on and take a guided tour
- 5:05Speaker 1: of the five top level hives because I feel like
- 5:07Speaker 1: this is where the logic of the operating system really
- 5:09Speaker 1: reviews itself. So the first hive is HKCR or HP
- 5:14Speaker 1: classes route. I like to think of this one as
- 5:16Speaker 1: the matchmaking service.
- 5:17Speaker 2: Matchmaking is a great analogy. HKCR manages file associations and
- 5:22Speaker 2: object linking and embedding or OE.
- 5:25Speaker 1: So mechanics wise, how does that actually work? Like if
- 5:27Speaker 1: I double click a dot txt text file, how does
- 5:30Speaker 1: HKCR ensure noepad opens instead of I don't know my
- 5:34Speaker 1: web browser right?
- 5:35Speaker 2: So when you double click the file. The Windows shell
- 5:38Speaker 2: queries the HKCR hive for the dot txt extension. But
- 5:42Speaker 2: the hives don't just say, you know, use notepad. It
- 5:45Speaker 2: returns a specific program ID or progiite associated with that
- 5:49Speaker 2: extension on a D number.
- 5:51Speaker 1: Right.
- 5:51Speaker 2: Then the shell queries the hive again for that specific
- 5:54Speaker 2: project to find the exact file path to the notepad executable,
- 5:58Speaker 2: along with any command line param need it to launch it.
- 6:01Speaker 1: So it's not a simple one step look up.
- 6:03Speaker 2: No, it's a multi step verification process entirely managed by
- 6:06Speaker 2: this one hive.
- 6:07Speaker 1: So the matchmaker handles the files, but how does the
- 6:10Speaker 1: machine know who is actually clicking on those files?
- 6:12Speaker 2: That brings us to our next two.
- 6:14Speaker 1: Hives, right, HKCU, which is HKE Corentiser and HKU or.
- 6:18Speaker 2: Hq users, And these two really operate in tandem. HKU
- 6:22Speaker 2: is the master list. It contains a dedicated subkey for
- 6:25Speaker 2: the profile of every single account that is ever logged
- 6:28Speaker 2: into that computer.
- 6:29Speaker 1: But querying a massive master list. Yeah, every single time
- 6:34Speaker 1: the active user moves their mouse or like changes their
- 6:37Speaker 1: desktop background. Yeah, that's got to be computationally.
- 6:40Speaker 2: Heavy exactly, which is why HKCU exists.
- 6:43Speaker 1: Well, wait, if HKCU is holding the active users settings,
- 6:45Speaker 1: and EACHKU is holding everyone's settings. Aren't we just duplicating
- 6:49Speaker 1: a ton of data.
- 6:50Speaker 2: It looks like that, but we aren't actually duplicating data.
- 6:53Speaker 2: We are mapping a pointer.
- 6:54Speaker 1: Oh Okay.
- 6:55Speaker 2: HKCU doesn't actually store distinct files on the drive. It
- 6:58Speaker 2: basically acts as a dynamic shortcut, like a hologram sort of. Yeah.
- 7:01Speaker 2: When you log into the machine, Windows finds your specific
- 7:04Speaker 2: profile deep inside the HKU master list and actively maps
- 7:08Speaker 2: it to the HKCU root key. It's purely a performance optimization.
- 7:12Speaker 1: Got it. So when an application needs to know your
- 7:15Speaker 1: personal dark mode preference, it doesn't search the master directory.
- 7:20Speaker 2: Right, It just asks HKCU, which instantly points to your
- 7:23Speaker 2: specific data block in memory.
- 7:25Speaker 1: So when you listening to this right now, change the
- 7:27Speaker 1: mouse sensitivity for a video game, that's setting routes instantly
- 7:31Speaker 1: through the HKCU pointer right into your specific user profile.
- 7:35Speaker 2: Perfectly stated.
- 7:36Speaker 1: Okay, So the final two hives deal with the hardware itself.
- 7:39Speaker 1: We have HKCC or HKE current config and HKLM hk
- 7:45Speaker 1: local machine.
- 7:46Speaker 2: And the relationship between these two really mirrors the user hives.
- 7:50Speaker 2: HKLM is the heavyweight. It is the absolute core configuration
- 7:54Speaker 2: for the machines hardware, security, and software, regardless of who
- 7:58Speaker 2: is logged in.
- 7:59Speaker 1: And HC is the dynamic pointer for the hardware built
- 8:02Speaker 1: on the run at startup.
- 8:03Speaker 2: Precisely like if you boot a laptop while it's plugged
- 8:06Speaker 2: into a docking station with two external monitors, HKCC dynamically
- 8:10Speaker 2: extracts only the hardware profiles relevant to that specific boot
- 8:14Speaker 2: state from the massive HKLM database.
- 8:16Speaker 1: That is incredibly efficient. Now I can see how user
- 8:18Speaker 1: preferences are interesting. Yeah, but if I'm a forensic investigator
- 8:22Speaker 1: or a thread actor, I don't really care about someone's wallpaper.
- 8:25Speaker 2: No, definitely not.
- 8:25Speaker 1: I want the system core. I want the vault. So
- 8:28Speaker 1: let's break open HKLM because this is where the actual
- 8:31Speaker 1: digital forendics gold mine lives.
- 8:33Speaker 2: It really is. So inside HKLM, the data is partitioned
- 8:36Speaker 2: into subkeys. The software subkey handles application states, and the
- 8:40Speaker 2: system subkey handles hardware drivers. But the most highly targeted
- 8:44Speaker 2: partition by far is the SAM subkey. SAM stands for
- 8:48Speaker 2: Security Accounts Manager.
- 8:49Speaker 1: This is the bouncer. This is what handles local user authentication.
- 8:53Speaker 1: But it doesn't just keep a plain text file of
- 8:57Speaker 1: everyone's passwords, right, it hashes them.
- 9:00Speaker 2: Correct.
- 9:00Speaker 1: Let's talk about the mechanics of hashing for a second,
- 9:03Speaker 1: because it's fundamentally distinct from encryption.
- 9:05Speaker 2: That is a vital distinction to make. Encryption is a
- 9:08Speaker 2: two way street. You know, if you have the key,
- 9:10Speaker 2: you can decrypt the data back to its original form, right,
- 9:13Speaker 2: But a hash is a one way mathematical functions. It's
- 9:17Speaker 2: like putting a stake into a meat grinder.
- 9:19Speaker 1: I love that analogy.
- 9:20Speaker 2: Yeah, you get ground beef out, but you can never
- 9:22Speaker 2: mathematically reverse the process to get the original stake back.
- 9:26Speaker 1: So when Windows stores your password, it runs the characters
- 9:30Speaker 1: through an algorithm and stores the resulting cryptographic string exactly.
- 9:34Speaker 2: Historically, Windows used LM or land Manager hashes, which were
- 9:40Speaker 2: notoriously weak because they split passwords into these little seven
- 9:43Speaker 2: character chunks. Yikes, yeah, very easy to crack. Modern systems
- 9:48Speaker 2: use NTLM hashes. So when you type your password at
- 9:50Speaker 2: the login screen, Windows takes what you typed, runs it
- 9:54Speaker 2: through the exact same meat grinder, and then compares the
- 9:57Speaker 2: resulting output with the string stored in the SAM.
- 9:59Speaker 1: File, and if the hash is match, you are granted
- 10:02Speaker 1: access right.
- 10:04Speaker 2: The operating system never actually knows what your raw password is.
- 10:07Speaker 1: Which means if an attacker gets their hands on the
- 10:09Speaker 1: SAM file, they don't have your passwords. They just have
- 10:12Speaker 1: a list of hashes. So how do forensic tools actually
- 10:15Speaker 1: crack those?
- 10:15Speaker 2: Gearlane, brute force and rainbow tables?
- 10:18Speaker 1: Okay, break those down.
- 10:19Speaker 2: So a dictionary attack or a brute force tool essentially
- 10:21Speaker 2: guesses millions of passwords, a second hashes them and checks
- 10:25Speaker 2: if the output matches the stolen SAM hash.
- 10:28Speaker 1: Just trial and error at light speed.
- 10:29Speaker 2: Exactly, And a rainbow table is even faster. It's a massive,
- 10:34Speaker 2: pre computed database of billions of clain text passwords and
- 10:38Speaker 2: their corresponding hashes. Oh so you don't even have to
- 10:41Speaker 2: do the math, right, You just look up the stolen
- 10:43Speaker 2: hash on the table and it reveals the password that
- 10:45Speaker 2: created it.
- 10:46Speaker 1: Wow. And Nested right alongside the SAM key is another
- 10:50Speaker 1: heavily guarded vault called the LSA secrets, which falls under
- 10:53Speaker 1: the local Security Authority.
- 10:55Speaker 2: Yes, and LSA secrets operates as a protected storage enclave.
- 10:59Speaker 2: While sam M handles local account hashes, LSA secrets stores
- 11:03Speaker 2: high value cache data like what kind of data it holds? Cash?
- 11:06Speaker 2: Domain credentials, service account passwords, and even private encryption keys.
- 11:12Speaker 2: If an attacker compromises LSA secrets, they can often move
- 11:15Speaker 2: laterally across an entire corporate network rather than just controlling
- 11:19Speaker 2: the single local machine.
- 11:21Speaker 1: It's the keys to the kingdom. So the goal is clear,
- 11:24Speaker 1: get the SAM file and get the LSA secrets, But
- 11:26Speaker 1: the operating system actively defends these files very aggressively, like
- 11:31Speaker 1: the Windows NT kernel places an absolute unbreakable lock on
- 11:35Speaker 1: the SAM registry file while the operating system is running.
- 11:38Speaker 1: You can't copy it, you can't move it, you can't
- 11:40Speaker 1: even open it.
- 11:40Speaker 2: The kernel restricts access strictly to the system account, even
- 11:44Speaker 2: if you have full administrator privileges. Windows will entirely block
- 11:48Speaker 2: your attempt to interact with the raw SAM file on
- 11:51Speaker 2: the disc while the machine is awake.
- 11:52Speaker 1: So if I'm an attacker or an investigator and the
- 11:55Speaker 1: front door is completely bolted from the inside while Windows
- 11:58Speaker 1: is awake, my logical move is to break in before Windows.
- 12:02Speaker 2: Even wakes up, which is exactly what people do, which.
- 12:05Speaker 1: Leads us to the boot process and the intense arms
- 12:08Speaker 1: race between rootkits and Microsoft.
- 12:10Speaker 2: Oh, that arms race completely reshape the registry In older
- 12:13Speaker 2: generations of Windows, the boot sequence was dictated by a
- 12:16Speaker 2: simple text file called boot dot ini. It was incredibly
- 12:20Speaker 2: vulnerable and lacked complex logic, so modern Windows replace this
- 12:24Speaker 2: with a registry hive called BCD or Boot Configuration Data.
- 12:28Speaker 1: So how does BCD change the mechanics of booting.
- 12:31Speaker 2: It acts as a firmware independent abstraction layer. Older systems
- 12:35Speaker 2: relied on the BIOS, the basic input output system, which
- 12:39Speaker 2: interacted directly with the master boot record on.
- 12:41Speaker 1: The hard drive, classic legacy tech.
- 12:43Speaker 2: Exactly, modern systems use UFI, the Unified Extensible Firmware Interface.
- 12:49Speaker 2: BCD is designed to interface securely with UVFI, managing the
- 12:53Speaker 2: boot environment before the main operating system kernel even takes over.
- 12:57Speaker 1: But attackers still found a way to inject themselves into
- 13:00Speaker 1: that transition phase using rootkits. These are malicious drivers that
- 13:04Speaker 1: load into mary extremely early, hiding themselves before the anti
- 13:08Speaker 1: virus software or the rest of the registries even loaded. Yep,
- 13:11Speaker 1: so Microsoft had to introduce a bouncer to stand at
- 13:14Speaker 1: the door before the party even starts.
- 13:16Speaker 2: That bouncer is ELAM early Launch anti malware, which was
- 13:19Speaker 2: introduced in Windows eight. And to really understand ELAM, you
- 13:22Speaker 2: have to look at the start values inside the HKLM
- 13:25Speaker 2: system registry key right, because.
- 13:27Speaker 1: The registry assigns a numerical value to drivers to tell
- 13:30Speaker 1: them when to wake up exactly.
- 13:32Speaker 2: Drivers with a start value of zero, like your hard
- 13:35Speaker 2: disk controller, are absolutely critical. If they don't load, the
- 13:38Speaker 2: machine literally can't read its own hard drive.
- 13:40Speaker 1: Okay, so they go first, right.
- 13:42Speaker 2: And ELAM is the very first system kernel driver that
- 13:46Speaker 2: starts immediately after those critical bootstart drivers. It initializes before
- 13:50Speaker 2: any third party software gets a chance, So.
- 13:53Speaker 1: Its entire job is to scan every subsequent non Microsoft
- 13:56Speaker 1: driver trying to load into the kernel yes, and classifies
- 14:00Speaker 1: them as known good, known bad, or unknown. Well, wait,
- 14:05Speaker 1: if ELAM decides what's known bad, are we just giving
- 14:08Speaker 1: the operating system complete dictatorial control over what hardware you're
- 14:12Speaker 1: allowed to use.
- 14:13Speaker 2: That's a common concern, like what.
- 14:15Speaker 1: If you were a developer writing a custom kernel driver
- 14:18Speaker 1: for I don't know, a Niache piece of robotics. Does
- 14:20Speaker 1: Windows just lock you out of your own machine?
- 14:22Speaker 2: Well, it's a careful balance between security and user control.
- 14:25Speaker 2: ELAM operates based on strict initialization policies and driver signing. Okay,
- 14:29Speaker 2: so by default ELAM actually allows known, good, and even
- 14:32Speaker 2: unknown but properly signed drivers to initialize. It primarily blocks
- 14:37Speaker 2: unsigned or explicitly blacklisted malicious code.
- 14:40Speaker 1: I see.
- 14:41Speaker 2: However, a system administrator can tighten those group policies to
- 14:45Speaker 2: a really draconian level, forcing the system to reject absolutely
- 14:49Speaker 2: anything that isn't explicitly pre approved.
- 14:51Speaker 1: It's incredible how many layers of state management the registry
- 14:55Speaker 1: handles and even extends out to the cloud now right, yeah,
- 14:58Speaker 1: with hives like BBI Houser based interface. Oh yeah.
- 15:01Speaker 2: BBI is a perfect example of how the registry evolves.
- 15:04Speaker 2: As Windows integrated more immersive apps and cloud sinking, it
- 15:07Speaker 2: needed a way to track state management across trusted machines,
- 15:10Speaker 2: things like calendar sinks or time zone adjustments. So the
- 15:13Speaker 2: registry just expands to incorporate those new operational parameters.
- 15:17Speaker 1: Okay, so understanding the architecture, the hashes, and the boot
- 15:21Speaker 1: level bouncers, that's all the theory. But if you are
- 15:24Speaker 1: sitting at a computer right now, how do you actually
- 15:27Speaker 1: extract this data in practice? The fun part exactly. Yeah,
- 15:31Speaker 1: let's do a step by step walk through of a
- 15:33Speaker 1: forensic extraction. Because we already established that we aren't logging
- 15:36Speaker 1: into Windows, and we definitely aren't using rijetted right.
- 15:39Speaker 2: To extract the locked files like SAM, you have to
- 15:42Speaker 2: bypass the operating system entirely. You achieve this by booting
- 15:45Speaker 2: the physical computer from a USB drive containing an independent,
- 15:50Speaker 2: lightweight environment like a Linux distribution or a specialized forensic toolkit.
- 15:55Speaker 1: And by doing that, the primary Windows operating system on
- 15:57Speaker 1: the hard drive remains completely dorm It never wakes up,
- 16:01Speaker 1: which means the kernel never gets the chance to lock
- 16:03Speaker 1: the SAM file.
- 16:04Speaker 2: Exactly.
- 16:05Speaker 1: We're essentially putting on digital X ray goggles and examining
- 16:08Speaker 1: the hard drive while it's totally asleep.
- 16:10Speaker 2: That is exactly how it works. Once you boot into
- 16:13Speaker 2: your forensic environment, you launch a disk imaging and extraction program.
- 16:17Speaker 2: We are going to target the primary local drive, which
- 16:20Speaker 2: is usually the Sea drive.
- 16:21Speaker 1: Let's walk the listener through the file tree. Where are
- 16:24Speaker 1: we navigating to physically find these hives?
- 16:26Speaker 2: Okay, So you expand the directory structure, moving from the
- 16:29Speaker 2: root into the Windows folder, then down into system thirty two,
- 16:32Speaker 2: and finally into a folder name can fig.
- 16:35Speaker 1: So system route backslash System thirty two backslash can fig.
- 16:39Speaker 2: You got it. This directory houses the physical files for
- 16:42Speaker 2: almost all the major hives SAM security, software and system.
- 16:47Speaker 1: The only major exception is your active user profile HKCU,
- 16:51Speaker 1: which lives under system root backslash profiles backslash user name.
- 16:55Speaker 1: Right now, when you open that config folder, you don't
- 16:57Speaker 1: just see one neatly labeled SAM file. You see clusters
- 17:01Speaker 1: of files with different extensions.
- 17:02Speaker 2: And those extensions are crucial for understanding the state of
- 17:05Speaker 2: the data. The registerry utilizes a concept called atomicity to
- 17:10Speaker 2: prevent corruption during sudden power losses.
- 17:12Speaker 1: Atomicity meaning it writes changes to a transaction log.
- 17:16Speaker 2: First, exactly, So if you see a file with a
- 17:19Speaker 2: dot log extension, you are looking at the pending changes
- 17:22Speaker 2: that haven't been fully committed yet.
- 17:23Speaker 1: And if you see a dot sav extension, that's a
- 17:26Speaker 1: backup copy generated during the last major system configuration. Right again,
- 17:30Speaker 1: But the primary file, the actual complete copy of the
- 17:33Speaker 1: hive data. It has no extension at.
- 17:34Speaker 2: All, none. It is simply a file named SAM or
- 17:37Speaker 2: system with a blank extension. So in your forensic tool
- 17:41Speaker 2: you highlight that dormant, extensionless SAM file, you write, click
- 17:45Speaker 2: select export and pull it off the target drive onto
- 17:48Speaker 2: your own secure.
- 17:49Speaker 1: Media, and just like that, you've successfully stolen the vault.
- 17:52Speaker 1: But it's still unreadable raw data at this point.
- 17:55Speaker 2: Yes, it's binary, so to read it, you import that
- 17:58Speaker 2: exported file into a specialized registry viewer application. The viewer
- 18:02Speaker 2: acts as a parser, translating the raw binary data back
- 18:05Speaker 2: into that familiar nested folder structure. Oh wow, Yes, suddenly
- 18:09Speaker 2: you can navigate down through the SAM keys and view
- 18:12Speaker 2: the NTLM hashes for every single user account on the machine,
- 18:16Speaker 2: ready to be exported into a cracking tool.
- 18:18Speaker 1: You just successfully pulled the black box out of the airplane.
- 18:21Speaker 1: I mean, it's a staggering amount of data to process.
- 18:23Speaker 1: So let's synthesize everything we've covered today, do it.
- 18:26Speaker 2: We began by looking at the structural logic how Windows
- 18:29Speaker 2: replace the chaotic ms dous text files with a unified,
- 18:33Speaker 2: hierarchical database of hives, keys and values.
- 18:36Speaker 1: We explored how HKCR manages file matchmaking, how HKCU uses
- 18:41Speaker 1: pointer logic to optimize active user settings, and how the
- 18:44Speaker 1: heavyweight HKLM stores the core system hardware configurations.
- 18:48Speaker 2: We dove into the mechanics of hashing within the deeply
- 18:50Speaker 2: secured SAM vault and examined how the boot sequence transitioned
- 18:54Speaker 2: from simple text files to the BCD firmware interface.
- 18:58Speaker 1: We analyzed how ELAM acts as a pre boot bouncer
- 19:00Speaker 1: to stop root kits, and finally, we walked step by
- 19:03Speaker 1: step through the process of bypassing the dormant operating system
- 19:07Speaker 1: to physically extract the registry data. It is a massive
- 19:10Speaker 1: technical journey, but the value.
- 19:11Speaker 2: Of technical knowledge lies in application and retention. So before
- 19:15Speaker 2: we wrap up, let's test your understanding with a short
- 19:18Speaker 2: review question.
- 19:19Speaker 1: Ooh, I like it? Okay, think back to the architectural
- 19:21Speaker 1: rules of the registry structure. If you are an international
- 19:24Speaker 1: forensic investigator analyzing a machine where the operating system language
- 19:28Speaker 1: has been changed to Japanese, what happens to the names
- 19:31Speaker 1: of the underlying registry keys?
- 19:32Speaker 2: Good question?
- 19:33Speaker 1: Do they A translate into Japanese, b remain in English
- 19:37Speaker 1: or c corrupt entirely due to localization conflicts.
- 19:40Speaker 2: Consider the distinction between the graphical user interface that regular
- 19:44Speaker 2: users see and the core structural pass that the operating
- 19:47Speaker 2: system relies on to function.
- 19:49Speaker 1: So if you guessed b remain in English, you are
- 19:52Speaker 1: absolutely correct. While the visual folders on the desktop might localize,
- 19:56Speaker 1: the registry key names must remain uniform to maintain Haines
- 20:00Speaker 1: systemic integrity.
- 20:01Speaker 2: Which highlights a profound truth about this technology. The registry
- 20:05Speaker 2: does not care about presentation. It only cares about raw
- 20:09Speaker 2: historical fact, and.
- 20:11Speaker 1: That leaves you with a final thought to ponder as
- 20:13Speaker 1: we close this deep dive. We started by comparing the
- 20:15Speaker 1: registry to a locked diary at tracks every network, every
- 20:19Speaker 1: USB drive, every software preference, building an immutable record of
- 20:23Speaker 1: your behavior. If a forensic analyst were to bypass your
- 20:26Speaker 1: operating system right now and extract your dormant files, what
- 20:30Speaker 1: exact story is your computer's registry telling about your digital
- 20:33Speaker 1: life at this very moment,