Latest / CyberCode Academy / Course 36 - Windows Forensics and Tools | Episode 10: Decoding Metadata and File Internals
Transcript
- 0:00Speaker 1: So picture a corporate embezzler sitting in a dimly lit
- 0:05Speaker 1: office late at night.
- 0:06Speaker 2: Oh, setting the scene right away.
- 0:08Speaker 1: Yeah, I mean, we've got it. So they've just transferred
- 0:10Speaker 1: the last of the illicit funds, right, and now it's
- 0:12Speaker 1: time to cover their tracks, right, they find the master spreadsheet,
- 0:16Speaker 1: rite click and hit delete, and then just to be
- 0:19Speaker 1: you know, absolutely certain, they right click that little trash
- 0:21Speaker 1: can icon on their desktop and hit empty the classic
- 0:24Speaker 1: double tap exactly. The screen blinks, the icon goes from
- 0:29Speaker 1: full to empty, and in their mind that document is
- 0:31Speaker 1: just vaporized, like it's a digital magic trick and they
- 0:36Speaker 1: are a ghost.
- 0:37Speaker 2: Yeah. It's a very comforting illusion for the user, honestly.
- 0:40Speaker 2: I mean, the whole interface is designed to make you
- 0:41Speaker 2: feel like you just tossed a physical document into an incinerator.
- 0:45Speaker 1: That's not what's happening at all.
- 0:46Speaker 2: Is it not even close? From an architectural standpoint. The
- 0:49Speaker 2: operating system hasn't actually destroyed anything. It's simply been quietly
- 0:53Speaker 2: building this meticulously structured dossier behind the scenes.
- 0:58Speaker 1: Which really brings us to the core emission of our
- 1:01Speaker 1: deep dive today, because for anyone working in programming or
- 1:05Speaker 1: cybersecurity or digital forensics. That empty trash can is absolutely
- 1:10Speaker 1: not a dead end.
- 1:11Speaker 2: Oh no, it's a gold mine. Right.
- 1:13Speaker 1: So we are venturing into the hidden mechanics of the
- 1:16Speaker 1: Windows operating system today to basically dismantle that magic trick.
- 1:20Speaker 1: We're going to explore the underlying architecture of the recycle bin.
- 1:24Speaker 2: Yeah, and we'll look at how the system actively manages deleted.
- 1:26Speaker 1: Files exactly, and uncover how investigators extract just this massive
- 1:32Speaker 1: amount of hidden data from pointers and metadata that well
- 1:37Speaker 1: most users assume are completely gone.
- 1:39Speaker 2: Because that disconnect between user expectation and system reality, that's
- 1:43Speaker 2: what makes this such a compelling area to study.
- 1:45Speaker 1: So true.
- 1:46Speaker 2: I mean, when someone hits delete, the standard deletion processes
- 1:49Speaker 2: don't permanently eradicate the binary data on the hard drive.
- 1:52Speaker 2: They just move it, right, Yeah, exactly. The operating system
- 1:55Speaker 2: just moves the file to a hidden system folder and
- 1:57Speaker 2: updates its internal pointers.
- 1:59Speaker 1: So the physical ones and zeros making up that file, they're.
- 2:02Speaker 2: Still perfectly intact. They're occupying the exact same physical sectors
- 2:07Speaker 2: on the disc.
- 2:08Speaker 1: Okay, but power users, and I know a lot of
- 2:10Speaker 1: you listening are power users. You know, there's a bypass
- 2:14Speaker 1: built into the.
- 2:14Speaker 2: Os AH the shift delete.
- 2:16Speaker 1: Yes, holding down the shift key while hitting delete. That
- 2:20Speaker 1: skips the recycle bin entirely.
- 2:22Speaker 2: It does change the behavior. Yeah, but I want to
- 2:24Speaker 2: be clear. It still doesn't instantly wipe the drive.
- 2:27Speaker 1: Wait, really it doesn't.
- 2:28Speaker 2: No, it just bypasses that hidden system holding folder. What
- 2:31Speaker 2: it does is it severs the primary pointer to the
- 2:33Speaker 2: file and flags that specific physical space on the hard
- 2:38Speaker 2: drive as well unallocated.
- 2:41Speaker 1: Okay, so it's basically telling the operating system, hey, this
- 2:44Speaker 1: space is now available for new data to be written
- 2:46Speaker 1: over it precisely.
- 2:48Speaker 2: But until that override actually happens, which could be minutes
- 2:51Speaker 2: or months, the.
- 2:52Speaker 1: Original data is just sitting there in.
- 2:53Speaker 2: The dark exactly. It's just sitting there waiting to be overwritten.
- 2:57Speaker 1: Wow. Okay. So, barring a shift delete, standard delution relies
- 3:00Speaker 1: on this hidden system directory to hold the files in limbo.
- 3:04Speaker 1: But the structure and location of that holding area hasn't
- 3:09Speaker 1: exactly been static over the years, has it.
- 3:11Speaker 2: No, not at all. It's undergone several major evolutions.
- 3:15Speaker 1: So if we are tracking an artifact across different areas
- 3:18Speaker 1: of hardware, where exactly is the operating system stashing these files?
- 3:24Speaker 2: Well, it mirrors the shift from older simpler file systems
- 3:28Speaker 2: too much more complex multi user environments. So if we
- 3:31Speaker 2: look back at older systems running Windows ninety five ninety eight.
- 3:35Speaker 1: Me seaking us way back.
- 3:36Speaker 2: Yeah, the holding area was a hidden folder on the
- 3:38Speaker 2: root of the drive, and it was simply called.
- 3:40Speaker 1: Recycled, just recycled, no special characters or anything.
- 3:43Speaker 2: Just recycled. But then as operating systems matured and moved
- 3:46Speaker 2: toward the NT architecture, so we're talking Windows NT two thousand.
- 3:50Speaker 1: XP naming convention shifted.
- 3:52Speaker 2: Right, it updated to recycler. But the really significant architectural shift,
- 3:56Speaker 2: the one that matters most to us today, happened with
- 3:58Speaker 2: the introduction of Windows.
- 3:59Speaker 1: Vista, and that carried through Windows seven eight and Windows ten.
- 4:02Speaker 2: Right, yes, exactly. The hidden folder was renamed to dollar
- 4:06Speaker 2: sign recycle dot bin.
- 4:08Speaker 1: So recycle dot bin, and that progression from just recycled
- 4:12Speaker 1: to recycle dot bin. That kind of tracks with the
- 4:14Speaker 1: OS becoming way more sophisticated about user profiles.
- 4:17Speaker 2: Right, Oh, absolutely. Think about the Windows ninety five days,
- 4:20Speaker 2: a family or a small office usually shared one single
- 4:24Speaker 2: desktop environment. Everyone just logged into.
- 4:27Speaker 1: The same screen, right, There was no user separation.
- 4:29Speaker 2: Yeah, but modern Windows environments are built for multiple concurrent users.
- 4:34Speaker 2: So if you have an enterprise machine shared by five
- 4:36Speaker 2: different employees and they're all deleting files, they.
- 4:39Speaker 1: Aren't just dumping their data into one massive communal pile
- 4:42Speaker 1: inside that recycled dot binfolder.
- 4:44Speaker 2: They absolutely are not. And this is where the filesystem
- 4:46Speaker 2: becomes highly organized.
- 4:48Speaker 1: So what does it do inside that folder?
- 4:50Speaker 2: Well, inside the recycle dot binfolder, the OS automatically generating subdirectories.
- 4:55Speaker 2: But these subdirectories aren't named, you know, User A or
- 4:57Speaker 2: User B.
- 4:58Speaker 1: They're named using sids. Right, Security identifiers.
- 5:01Speaker 2: We got it sids.
- 5:02Speaker 1: And for anyone who has dug into Windows permissions before,
- 5:06Speaker 1: you know, the SID is that long alphanumeric string the
- 5:09Speaker 1: OS uses to uniquely identify a specific user account or group.
- 5:13Speaker 2: Right, So the system creates a dedicated path essentially recycledt
- 5:17Speaker 2: bin slash and then the SID for every single user
- 5:21Speaker 2: who deletes a file.
- 5:22Speaker 1: Man. From a forensic standpoint, that structure is just devastating
- 5:26Speaker 1: to a suspect attempting to deny involvement.
- 5:29Speaker 2: Oh, it completely ruins their day.
- 5:30Speaker 1: I see the implications there. It completely neutralizes the whole
- 5:34Speaker 1: somebody else used my computer defense.
- 5:36Speaker 2: Exactly if a forensic investigator isolates a malicious script, or
- 5:40Speaker 2: say an illicit document inside one of those directories, the
- 5:44Speaker 2: SID acts as a cryptographic fingerprint.
- 5:46Speaker 1: Because it explicitly ties the deletion of that specific file
- 5:50Speaker 1: to the exact user session that performed the action.
- 5:53Speaker 2: It leaves absolutely no ambiguity. You don't just know what
- 5:56Speaker 2: was deleted, you know exactly whose profile was logged in
- 5:58Speaker 2: and active when that delete command was executed.
- 6:01Speaker 1: The digital trail is entirely compartmentalized by user identity.
- 6:05Speaker 2: Yeah, very robust.
- 6:06Speaker 1: Okay, so that covers the modern structure how it compartmentalizes
- 6:09Speaker 1: the files by user. But let's look backward for a
- 6:12Speaker 1: second at how the operating system actually indexed all these files.
- 6:15Speaker 2: Okay, sure, because.
- 6:16Speaker 1: If we go back to the Windows XP era, the
- 6:18Speaker 1: OS had to track the original paths of all these
- 6:21Speaker 1: deleted documents so it could offer the user that handy
- 6:24Speaker 1: little restore option. How did it manage that mapping?
- 6:29Speaker 2: Well, Windows XP utilized a highly rigid, centralized index system.
- 6:34Speaker 2: When a file was moved to the recycler folder, the
- 6:36Speaker 2: operating system basically stripped away its original name entirely.
- 6:40Speaker 1: Oh wow.
- 6:40Speaker 2: Yeah, it applied a really strict formula to rename it instead.
- 6:43Speaker 1: Okay, walk us through that formula. What did it look like?
- 6:46Speaker 2: So every deleted file was assigned a new name starting
- 6:48Speaker 2: with the letter D, which presumably stands for deleted.
- 6:51Speaker 1: Makes sense.
- 6:52Speaker 2: Next, the OS appended the original drive letter where the
- 6:55Speaker 2: file resided. So if you deleted a file from the
- 6:58Speaker 2: C drive, the new name began with DC.
- 7:01Speaker 1: Following that logic, if I deleted a file from a
- 7:03Speaker 1: secondary D drive, it would start with.
- 7:05Speaker 2: DD correct, and then after the drive letter, the system
- 7:09Speaker 2: assigned an incrementing sequential number just one, two, three, and
- 7:13Speaker 2: so forth. Okay, finally it retained the file's original extension.
- 7:16Speaker 1: Got it. So your very first deleted spreadsheet from the
- 7:20Speaker 1: C drive becomes DC one dot xlsx exactly, and a
- 7:24Speaker 1: subsequent image file deleted from that same drive becomes DC
- 7:28Speaker 1: two dot jpg.
- 7:29Speaker 2: You're tracking perfectly. That's exactly how it worked.
- 7:31Speaker 1: But that seems incredibly short sighted from a database perspective.
- 7:35Speaker 1: How so, Well, if I'm looking at a directory just
- 7:37Speaker 1: filled with files named DC one, DC two, and DC three,
- 7:40Speaker 1: all the contextual metadata is gone. It's like putting all
- 7:44Speaker 1: your trash into identical blank boxes labeled box one. Box two.
- 7:48Speaker 1: How does the computer know what's inside to restore it?
- 7:51Speaker 2: Ah? And that is where the magic ledger comes in.
- 7:53Speaker 2: That translation was handled by a massive, monolithic database file
- 7:57Speaker 2: called IFO.
- 7:58Speaker 1: Two info two.
- 7:59Speaker 2: Yeah, hidden file set directly inside the recycler folder, and
- 8:03Speaker 2: it functioned as the master ledger for the entire deletion system.
- 8:06Speaker 1: So while the physical file sat there with those generic
- 8:08Speaker 1: DC one names.
- 8:09Speaker 2: The IFO two database kept a meticulous byte level record
- 8:13Speaker 2: of their true identities.
- 8:15Speaker 1: Fascinating, So what did a single record inside that IFO
- 8:18Speaker 1: two database actually look like? Structurally?
- 8:21Speaker 2: It was a static flat file database, So every single
- 8:25Speaker 2: file sent to the BIN generated a dedicated eight hundred
- 8:28Speaker 2: byte record inside the IFO two.
- 8:31Speaker 1: Ledger, exactly eight hundred bytes.
- 8:32Speaker 2: Exactly eight intabytes. Within that fixed space, the system recorded
- 8:36Speaker 2: the file's original size, the full original file path, and
- 8:40Speaker 2: the size of the file after deletion.
- 8:42Speaker 1: I mean, the architecture makes sense for that era, but
- 8:44Speaker 1: relying on a single centralized flat file for system wide
- 8:47Speaker 1: indexing that introduces a massive vulnerability, doesn't it.
- 8:51Speaker 2: It is a textbook single point of failure. If the
- 8:53Speaker 2: IFO two file becomes corrupted, or say a user with
- 8:56Speaker 2: elevated privileges manages to target and delete that speci.
- 9:00Speaker 1: The entire recycle bin structure basically collapses into amnesia.
- 9:04Speaker 2: Exactly. The OS completely loses its mind.
- 9:06Speaker 1: Because the files themselves, the DC ones and DC two's,
- 9:09Speaker 1: they're still sitting right there in the physical sectors, totally
- 9:11Speaker 1: un alterate, but the OS has lost the map. It
- 9:14Speaker 1: can no longer associate DC one with you know, C finances,
- 9:18Speaker 1: Q four report dot xlsx yes.
- 9:21Speaker 2: From the perspective of the operating system, those files just
- 9:23Speaker 2: become unallocated orphans. The standard Windows interface will actually show
- 9:27Speaker 2: an empty recycle bin even though all those files are
- 9:30Speaker 2: still there.
- 9:30Speaker 1: That's wild. So how would you even get them back
- 9:32Speaker 1: at that point?
- 9:33Speaker 2: To recover them, you'd have to bypass the OS entirely.
- 9:37Speaker 2: You'd need data recovery software to scrape the physical hard drive,
- 9:41Speaker 2: carve out those data blocks, and manually analyze the file
- 9:44Speaker 2: signatures to figure out what they are.
- 9:46Speaker 1: That sounds like a nightmare, and having a single, highly
- 9:49Speaker 1: vulnerable database managing the state of all deleted files was
- 9:52Speaker 1: clearly a bottleneck. As storage drives grew larger.
- 9:56Speaker 2: Oh absolutely, as file operations became more frequent, it just couldn't.
- 9:59Speaker 1: Scale, which leads us to the complete architectural overhaul Microsoft
- 10:03Speaker 1: introduced with Windows Vista, Yes.
- 10:06Speaker 2: The Vista Revolution, as we often call it in forensics.
- 10:09Speaker 2: They decentralize the metadata completely.
- 10:12Speaker 1: So they completely abandon the IFO two.
- 10:14Speaker 2: Ledger threw it right out. Instead of one master database
- 10:18Speaker 2: holding everything together, Microsoft shifted to a twin.
- 10:22Speaker 1: File system a twin filesceah.
- 10:24Speaker 2: Now, whenever a file is deleted, the OS generates two
- 10:28Speaker 2: distinct files that basically travel together.
- 10:30Speaker 1: So the actual data payload and the metadata are permanently
- 10:34Speaker 1: paired up precisely.
- 10:35Speaker 2: Let's look at the payload. First, the original file is
- 10:38Speaker 2: renamed starting with the character's dollar sign R. So this
- 10:43Speaker 2: prefix is followed by a randomly generated string of alphanumeric characters.
- 10:47Speaker 2: But the crucial thing is it retains its original file extension.
- 10:51Speaker 1: Okay, So the actual data payload becomes something like dollar
- 10:54Speaker 1: followed by a randomhash dot Dutch pdf yes.
- 10:57Speaker 2: And simultaneously the system generates the metadata file. This new
- 11:01Speaker 2: file begins with a dollar sign I, so one dollar okay,
- 11:04Speaker 2: one dollars right, And the really elegant mechanism here is
- 11:08Speaker 2: that the all A file is appended with the exact
- 11:10Speaker 2: same random string of characters and the exact same file
- 11:13Speaker 2: extension as it's strolled. Our counterpart, I love this.
- 11:15Speaker 1: It's like, Okay, if we visualize this mechanism, it operates
- 11:18Speaker 1: exactly like a code check at a huge museum.
- 11:20Speaker 2: Ooh, I like that analogy.
- 11:22Speaker 1: Right, So, the dollar file is your heavy winter coat.
- 11:25Speaker 1: It contains the physical bulk, the actual data, the executable code,
- 11:29Speaker 1: or the image pixels, and it gets hung up on
- 11:31Speaker 1: a rack in the back room. Right, But the diar
- 11:34Speaker 1: file is the little paper ticket the attendant hands you.
- 11:37Speaker 1: The ticket has virtually no mass, but it contains all
- 11:40Speaker 1: the critical identifying information required to actually retrieve the coat that.
- 11:44Speaker 2: Maps perfectly to the architecture the dollar file. The ticket
- 11:48Speaker 2: contains the original file name, the full original pass, the
- 11:52Speaker 2: original file size, and the exact timestamp recording when the
- 11:55Speaker 2: file was moved to the BID.
- 11:56Speaker 1: So by decentralizing the ledger, they totally removed that sne
- 12:00Speaker 1: point of failure we saw on XP.
- 12:01Speaker 2: Exactly if one eyevor gets corrupted, you only lose the
- 12:05Speaker 2: mapping for that specific file. The rest of the bin
- 12:08Speaker 2: remains entirely intact.
- 12:09Speaker 1: Which vastly improves system stability.
- 12:12Speaker 2: I'm sure it did. But this twin file architecture also
- 12:15Speaker 2: introduce some really fascinating behavioral quarks.
- 12:17Speaker 1: Quirk like what.
- 12:18Speaker 2: Particularly regarding how the OS handles directory deletions compared to
- 12:23Speaker 2: individual file deletions.
- 12:24Speaker 1: Oh, let's explore that. Suppose an employee is trying to
- 12:29Speaker 1: cover up their tracks and decides to just delete an
- 12:31Speaker 1: entire project folder containing hundreds of documents rather than deleting
- 12:36Speaker 1: them one by one.
- 12:36Speaker 2: Happens all the time, right.
- 12:38Speaker 1: How does the dollar and dorallar system process a bulk
- 12:42Speaker 1: directory deletion.
- 12:43Speaker 2: Well, when you send a directory to the recycle bin,
- 12:46Speaker 2: the directory itself receives the dollar dollar designation with the
- 12:49Speaker 2: random character strength. Okay, however, the files nested inside that
- 12:53Speaker 2: directory are practically untouched. They retain their original file names.
- 12:58Speaker 1: Wait, so the files inside the don't get the dollary
- 13:01Speaker 1: naming convention at all.
- 13:03Speaker 2: They do not ow And even more importantly, the operating
- 13:06Speaker 2: system only generates one single laun or file for the
- 13:09Speaker 2: entire directory.
- 13:10Speaker 1: Ah, so it issues one single ticket for the entire
- 13:13Speaker 1: box of codes.
- 13:14Speaker 2: Yes, that single AR metadata file contains the original name
- 13:17Speaker 2: of the parent directory, the total size, and the exact
- 13:20Speaker 2: time stamp of the deletion command.
- 13:22Speaker 1: The forensic implications of that single ar file are massive
- 13:25Speaker 1: because in an investigation defense, attorneys often argue that a
- 13:29Speaker 1: deletion was accidental, right like, oh, it was a stray
- 13:32Speaker 1: click or an accidental dragon drop.
- 13:34Speaker 2: We hear that defense constantly, But if.
- 13:36Speaker 1: An investigator pulls the dollar file for a deleted directory,
- 13:40Speaker 1: they can basically prove intent.
- 13:42Speaker 2: It establishes an undeniable timeline. Because all the files inside
- 13:46Speaker 2: that lawllary directory share the exact same all BI metadata ticket,
- 13:50Speaker 2: the investigator can definitively state that the entire batch of
- 13:54Speaker 2: files was dumped simultaneously.
- 13:56Speaker 1: Boom now contrasts that if the user had gone into
- 13:59Speaker 1: the selectively deleted three specific spreadsheets on Tuesday and then
- 14:05Speaker 1: decided to delete the rest of the folder on Friday.
- 14:08Speaker 2: Entirely different trail. Those three spreadsheets would have been processed
- 14:11Speaker 2: individually on Tuesday. Each would possess its own distinct dollar
- 14:15Speaker 2: and dial twins stamped with Tuesday's exact time.
- 14:18Speaker 1: So they would not be grouped under Friday's batch deletion
- 14:21Speaker 1: ticket exactly.
- 14:22Speaker 2: The operating system creates a precise, unavoidable paper trail of
- 14:26Speaker 2: the user's exact methodology.
- 14:28Speaker 1: I mean, the architecture is elegant, It really is. But
- 14:31Speaker 1: let's talk about extraction for a minute. Because these IDI
- 14:33Speaker 1: files aren't plain text documents, right. A system administrator can't
- 14:37Speaker 1: just double click an EYE file, open it in notepad,
- 14:40Speaker 1: and read the original file path.
- 14:41Speaker 2: Oh no, definitely not. The idea files are written in
- 14:44Speaker 2: raw binary data.
- 14:46Speaker 1: So how do you actually read them?
- 14:47Speaker 2: Well, mostly an investigator relies on automated forensic suites like
- 14:51Speaker 2: FTK or end case, which just parts the data automatically
- 14:54Speaker 2: for you.
- 14:55Speaker 1: But if you really want to understand the underlying structure.
- 14:58Speaker 2: Then you have to examine the file in an X editor,
- 15:00Speaker 2: analyzing the raw hexadecimal code manually.
- 15:03Speaker 1: Okay, let's do that. Let's strip away the automated forensic
- 15:05Speaker 1: tools and look at the raw disk level.
- 15:07Speaker 2: I love it. Let's get into the weeds.
- 15:09Speaker 1: When we open a standard I file from say Windows
- 15:12Speaker 1: Vista seven or eight in a hex editor, what is
- 15:15Speaker 1: the exact layout of the data blocks? What are we
- 15:17Speaker 1: looking at?
- 15:18Speaker 2: The structure from that era is incredibly rigid. Every single
- 15:21Speaker 2: EYE file generated by Vistas seven or eight is exactly
- 15:24Speaker 2: five hundred and felty four bytes long. Regardless of the
- 15:27Speaker 2: file it actually.
- 15:28Speaker 1: Represents always five hundred and forty four bytes. So how
- 15:31Speaker 1: are those five hundred and forty four bytes partitioned?
- 15:34Speaker 2: It starts with an eight byte fileheader, spanning from byte
- 15:37Speaker 2: zero to byte seven, and in these operating systems, the
- 15:40Speaker 2: header value is always set to the hex value zero one,
- 15:43Speaker 2: followed by a bunch of trailing zeros.
- 15:45Speaker 1: Okay, so the one header establishes the file type what
- 15:49Speaker 1: occupies the next block.
- 15:50Speaker 2: Bytes eight through fifteen store the original file size represented
- 15:54Speaker 2: in hexadesimal.
- 15:54Speaker 1: Format, got it, and after the file size following.
- 15:57Speaker 2: That, bytes sixteen through twenty three hold the critical deleted
- 16:01Speaker 2: date in timestamp, which.
- 16:02Speaker 1: Brings up a really fascinating architectural quirk regarding how Windows
- 16:06Speaker 1: actually calculates time.
- 16:08Speaker 2: Yes, because it.
- 16:09Speaker 1: Doesn't use the Unix epook of nineteen seventy like almost
- 16:11Speaker 1: everything else does it.
- 16:12Speaker 2: No, it doesn't.
- 16:13Speaker 1: Yeah.
- 16:13Speaker 2: The Windows NT architecture utilizes what's called the filetime structure
- 16:17Speaker 2: file time. Yeah. It calculates timestamps based on the number
- 16:20Speaker 2: of one hundred nanosecond intervals that have elapsed since midnight
- 16:24Speaker 2: January first, sixteen.
- 16:25Speaker 1: Oh one, sixteen oh one. I mean, it is such
- 16:27Speaker 1: a wildly specific historical anchor point for a twenty first
- 16:30Speaker 1: century operating system.
- 16:31Speaker 2: I know it sounds crazy, but it actually aligns with
- 16:33Speaker 2: the beginning of the Gregorian calendar cycle, which was used
- 16:36Speaker 2: in the initial Windows NT design. Of course, the forensic
- 16:39Speaker 2: software automatically translates that massive, unwieldy integer back into a
- 16:45Speaker 2: readable modern date and time for us.
- 16:47Speaker 1: Good because I am not doing that math in my head.
- 16:50Speaker 2: Nobody is okay.
- 16:51Speaker 1: So we have the one header, the file size, and
- 16:53Speaker 1: the sixteen oh one based timestamp that takes us up
- 16:56Speaker 1: to bite twenty three. Right, what occupies the rest of
- 16:59Speaker 1: the five.
- 17:00Speaker 2: And forty four bytes the largest block, so spanning from
- 17:03Speaker 2: byte twenty four all the way to bite five forty three,
- 17:05Speaker 2: That entire space is reserved strictly for the original filepath
- 17:09Speaker 2: and name encoded in Unicode.
- 17:11Speaker 1: And that static five forty four byte structure just remained
- 17:14Speaker 1: the standard for years.
- 17:15Speaker 2: It did until Microsoft finally optimized it in Windows ten.
- 17:18Speaker 1: Right, So what changed in Windows ten?
- 17:20Speaker 2: Well, they maintained the core one on dollars twin philosophy,
- 17:23Speaker 2: but they refined the internal structure of the barrel file
- 17:26Speaker 2: for efficiency. They implemented two really critical change right.
- 17:28Speaker 1: It was the first one.
- 17:29Speaker 2: First, it I'll set twenty four right where the filepath
- 17:31Speaker 2: used to start. They inserted a brand new field specifying
- 17:35Speaker 2: the file name length.
- 17:36Speaker 1: Oh so, by defining the stringlined to natively within the
- 17:39Speaker 1: metadata itself, they eliminated the need for a fixed file
- 17:42Speaker 1: size entirely exactly.
- 17:44Speaker 2: An I file in Windows ten is no longer statically
- 17:47Speaker 2: locked at five hundred and forty four bytes. It is
- 17:49Speaker 2: dynamically sized.
- 17:50Speaker 1: That makes so much sense, right.
- 17:52Speaker 2: If the original file pass was short, the RYE file
- 17:55Speaker 2: is small. It only consumes the exact number of bytes
- 17:58Speaker 2: actually required to hold the path there.
- 18:00Speaker 1: That is a very logical optimization for modern storage. So
- 18:03Speaker 1: what was the second structural change?
- 18:05Speaker 2: They updated the file header. Like we said, in Vista
- 18:08Speaker 2: seven and eight, the header always started with the hex
- 18:10Speaker 2: value zer one, but in Windows ten that header field
- 18:13Speaker 2: changed to a hex value of O two.
- 18:15Speaker 1: Okay, wait, I'm looking at this from a high level
- 18:17Speaker 1: investigative perspective. Sure we are talking about a one byte
- 18:20Speaker 1: difference in a header file and a file size that varies.
- 18:24Speaker 1: If I already have the dive file, which tells me
- 18:26Speaker 1: the file name, the path, and the exact time stamp
- 18:29Speaker 1: it was deleted, why does an investigator actually care about
- 18:33Speaker 1: a single byte change from one to two.
- 18:35Speaker 2: I get that question a lot. That single byte is
- 18:38Speaker 2: critical when the filesystem has been compromised or say, partially overwritten.
- 18:43Speaker 2: Imagine you were analyzing the unallocated space on a hard drive,
- 18:47Speaker 2: so the empty sectors where data isn't actively tracked by
- 18:50Speaker 2: the filesystem anymore.
- 18:51Speaker 1: Right, the wild west of the drive.
- 18:53Speaker 2: Exactly. You run a carving tool and you extract an
- 18:56Speaker 2: orphan dive file. It has no associated dollar file anymore.
- 19:00Speaker 1: It's just a detached piece of metadata floating out there
- 19:03Speaker 1: in the void.
- 19:04Speaker 2: Yes. Now, because hard drives are often repurposed or operating
- 19:08Speaker 2: systems are upgraded in place over the years, you might
- 19:11Speaker 2: actually have artifacts from three different eras of Windows residing
- 19:15Speaker 2: in the unallocated space of a single drive.
- 19:18Speaker 1: Oh, I see where this is going.
- 19:19Speaker 2: Right. If you find an OLL file and the header
- 19:22Speaker 2: reads o's one with that static five point forty four
- 19:24Speaker 2: byte footprint, you know definitively that the deletion event occurred
- 19:29Speaker 2: under a legacy operating system installation.
- 19:31Speaker 1: But if the header reads H two and the file
- 19:33Speaker 1: size is dynamic.
- 19:35Speaker 2: You can prove the artifact was generated by Windows ten man.
- 19:38Speaker 1: That completely changes the context of the evidence. It allows
- 19:40Speaker 1: a forensic analyst to perform basically digital archaeology.
- 19:43Speaker 2: That's exactly what it is.
- 19:45Speaker 1: You're layering the artifacts chronologically based purely on the HECK structure,
- 19:49Speaker 1: even if all the primary file system pointers are completely obliterated.
- 19:52Speaker 2: It allows us to rebuild the history of the machine
- 19:55Speaker 2: deletion by deletion using the very structures that were designed
- 19:59Speaker 2: to hide the data in the first place.
- 20:01Speaker 1: The depth of engineering layered into a simple trash can
- 20:05Speaker 1: icon is honestly staggering when you lay it out like this,
- 20:08Speaker 1: it really is.
- 20:08Speaker 2: It's hidden in plane sight.
- 20:10Speaker 1: Well, before we wrap up this technical breakdown, let's run
- 20:13Speaker 1: a quick review exercise for you, the listener, just to
- 20:16Speaker 1: cement the timeline of these directory structures.
- 20:18Speaker 2: We talked about a little pop quiz. Let's do it
- 20:20Speaker 2: all right.
- 20:21Speaker 1: If you are examining a disk image and you need
- 20:23Speaker 1: to locate the deleted files in a Windows Vista environment,
- 20:28Speaker 1: which of the following route paths would.
- 20:29Speaker 2: You navigate to pay attention to the OS here this exactly.
- 20:33Speaker 1: Is it AC recycled info two, Is it BC recycler
- 20:37Speaker 1: Info two?
- 20:38Speaker 2: Okay?
- 20:38Speaker 1: Is it C crecycle dot bena or is it dcrecycler
- 20:42Speaker 1: dot benbandenna. Think about the architectural shifts we just covered.
- 20:45Speaker 2: Right, you got your answer. The correct path is c
- 20:49Speaker 2: C recycle dot ben.
- 20:51Speaker 1: Yes, let's quickly break down why the others are incorrect,
- 20:54Speaker 1: just to reinforce the whole timeline.
- 20:55Speaker 2: Sure so, PATHA that recycled directory that is a legacy
- 20:58Speaker 2: structure utilized by Windows ninety five ninety eight, and right
- 21:01Speaker 2: the old days, Path B recycler maps to the Windows
- 21:05Speaker 2: NT two thousand and XP era, which remember, is also
- 21:08Speaker 2: where you would find that highly vulnerable INFO two ledger.
- 21:11Speaker 1: We talked about a single point of failure exactly.
- 21:14Speaker 2: And finally, pathdrecycler dot ben is just a totally fabricated
- 21:18Speaker 2: path that doesn't exist in any Windows architecture.
- 21:21Speaker 1: Sure question, So we've unraveled the magic trick. Despite decades
- 21:25Speaker 1: of filesystem evolution from vulnerable single ledgers like IONFO two
- 21:30Speaker 1: all the way to decentralized dynamic one dollar twin architectures,
- 21:34Speaker 1: the fundamental behavior of the OS remains constant.
- 21:36Speaker 2: It really does.
- 21:37Speaker 1: It doesn't vaporize your data. It meticulously categorizes timestamps and archives.
- 21:42Speaker 2: It it leaves an intricate, highly structured metadata trail for
- 21:45Speaker 2: anyone who understands how to read the underlying exodescimal code.
- 21:49Speaker 1: The interface tells the user the file is gone, but
- 21:51Speaker 1: the filesystem ensures a permanent record of its existence is
- 21:54Speaker 1: left behind.
- 21:55Speaker 2: The filesystem is always watching.
- 21:57Speaker 1: Which leads us with a final, slightly provocative thought for
- 22:01Speaker 1: you to consider as we close out. Oh, if the
- 22:04Speaker 1: simple act of moving a file to a digital trash
- 22:07Speaker 1: can triggers such an exhaustive sequence of SID logging, twin
- 22:11Speaker 1: file generation and precise hex code updates, what other invisible,
- 22:17Speaker 1: highly detailed ledgers is your operating system quietly updating in
- 22:21Speaker 1: the background, right now, entirely without your knowledge.
- 22:23Speaker 2: Like I said, it rarely forgets.
- 22:25Speaker 1: Definitely something to consider the next time you try to
- 22:26Speaker 1: cover your tracks.