Latest / CyberSecurity Summary / File System Forensics
Transcript
- 0:00Speaker 1: Imagine this. You're watching a crime drama, right, and the
- 0:04Speaker 1: detective they're dusting for fingerprints. Classic stuff.
- 0:07Speaker 2: Yeah, you see it all the time, but honestly.
- 0:10Speaker 1: In the real world today that's almost quaint, like a
- 0:14Speaker 1: rotary phone. Today, the fingerprints, they're digital and they're.
- 0:17Speaker 2: Everywhere, absolutely everywhere.
- 0:19Speaker 1: We're talking the smartphone in your pocket, the sat NAV
- 0:22Speaker 1: in your car, even your home CCTV that's running twenty
- 0:25Speaker 1: four to seven. These digital traces, they used to be
- 0:29Speaker 1: just for specific cybercrimes, but now now they're found in
- 0:33Speaker 1: almost every case. It's not just evidence anymore. It's really
- 0:37Speaker 1: an explosion of it.
- 0:38Speaker 2: It truly is. The sheer amount and well the variety
- 0:41Speaker 2: of digital devices mean pretty much any incident, you know,
- 0:44Speaker 2: from a minor theft all the way up to a
- 0:46Speaker 2: major criminal investigation, it leaves a digital footprint something that
- 0:49Speaker 2: wasn't even really conceivable a few decades back, exactly.
- 0:52Speaker 1: And for you listening in this deep dive, it's your
- 0:55Speaker 1: shortcut to getting properly well informed about this hidden world.
- 0:59Speaker 1: We're not just going to scrap it's the surface of
- 1:00Speaker 1: what information is found, No, definitely not. Our mission here
- 1:03Speaker 1: is to pull back the curtain on how it stored,
- 1:06Speaker 1: how it gets retrieved, and maybe most importantly, why understanding
- 1:11Speaker 1: those hidden mechanics, Well, why it fundamentally reshapes an investigation
- 1:16Speaker 1: and maybe even our idea of digital truth.
- 1:18Speaker 2: Yeah, and our deep dive today it's built from sources
- 1:20Speaker 2: that really focus on file system forensics. So we're going
- 1:23Speaker 2: to give you a detailed look at how data is
- 1:26Speaker 2: organized write down at its most fundamental level. We'll look
- 1:29Speaker 2: at the essential tools investigators used to uncover it and
- 1:33Speaker 2: the fascinating, sometimes pretty complex challenges that lie ahead in
- 1:37Speaker 2: this field because it's evolving so fast.
- 1:39Speaker 1: Okay, so we've painted this picture digital evidence exploding everywhere.
- 1:43Speaker 1: But here's where it starts to get tricky. The very
- 1:46Speaker 1: basic rules for collecting this evidence they've been shifting under
- 1:49Speaker 1: our feet. Let's dig into what we're calling the shifting
- 1:52Speaker 1: sands of digital evidence, because what worked maybe ten years
- 1:55Speaker 1: ago could actually compromise an entire case.
- 1:58Speaker 2: Now, that's right.
- 1:58Speaker 1: For years, the standard advice for seizing a computer and
- 2:01Speaker 1: an investigation was just dead simple, pull the plug, just
- 2:05Speaker 1: cut the power immediately. Yep, that was the gold standard.
- 2:08Speaker 2: But today doing that can be a huge mistake. Why
- 2:13Speaker 2: is that old rule suddenly so well dangerous.
- 2:17Speaker 1: What's fascinating, I think is that modern operating systems, in hardware,
- 2:20Speaker 1: they've introduced features that directly conflict with that old advice.
- 2:24Speaker 1: Think of it like this. For encrypted storage, right, the
- 2:28Speaker 1: decryption keys often only live in the computer's volatile memory.
- 2:32Speaker 1: It's RAM, basically, it's short term digital brain. Okay, So
- 2:36Speaker 1: you pull the plug, those keys just vanish instantly, and
- 2:39Speaker 1: all that data becomes a locked box, you know, permanently inaccessible.
- 2:43Speaker 1: It's like trying to open a safe after the combination's
- 2:46Speaker 1: just been wiped from the manager's memory.
- 2:47Speaker 2: Right gone forever. And people aren't just saving things locally anymore,
- 2:51Speaker 2: are they. They're using remote storage, cloud services, email, social.
- 2:55Speaker 1: Media constantly connects.
- 2:57Speaker 2: So if you yank the power, all those live connections,
- 2:59Speaker 2: all that access to potentially crucial data, it's instantly.
- 3:02Speaker 1: Lost, exactly. And this is why live data forensics or
- 3:06Speaker 1: LDF has become so critical. It lets analysts capture that
- 3:09Speaker 1: live data from a running computer system before it disappears.
- 3:12Speaker 1: But hang on, that sounds like it completely contradicts one
- 3:16Speaker 1: of the most fundamental principles of forensics, doesn't it.
- 3:19Speaker 2: It absolutely does, And this raises a really critical point.
- 3:23Speaker 2: The first principle in digital forensics. It's often called ACPO
- 3:26Speaker 2: principle one. It states that no action taken by law
- 3:30Speaker 2: enforcement agencies should change data which may subsequently be relied
- 3:33Speaker 2: upon in court. Okay, LDF, well, it inherently breaks this principle.
- 3:38Speaker 2: I mean, even just moving a mouse on a running
- 3:40Speaker 2: system leaves digital traces. So the tension there, it's very real.
- 3:44Speaker 1: So, Okay, if you're altering the data, how on earth
- 3:47Speaker 1: can it be admissible in court? Doesn't that just open
- 3:49Speaker 1: the evidence up to immediate challenge, Say you changed it?
- 3:52Speaker 2: Well, not necessarily the principles themselves, they're actually still fit
- 3:55Speaker 2: for purpose, but they kind of adapt. So while LDF
- 3:58Speaker 2: does alter data, it can be admissible in court when
- 4:01Speaker 2: you combine it with ACPO principle two, which emphasizes investigator competence,
- 4:05Speaker 2: and principle three, which demands a really thorough audit trail.
- 4:08Speaker 1: Ah okay, the paperwork.
- 4:11Speaker 2: Essentially, yeah, it means every single step taken, every command run,
- 4:14Speaker 2: every change made, it has to be meticulously documented. And
- 4:18Speaker 2: it's that meticulous record keeping that allows the court to
- 4:21Speaker 2: understand and hopefully trust, the context of the altered data.
- 4:25Speaker 2: The integrity of the whole investigation now relies on understanding
- 4:29Speaker 2: that fundamental shift in collection and then just rigorously documenting
- 4:33Speaker 2: every single step.
- 4:34Speaker 1: Right. Speaking of integrity, let's talk about maybe an unsung
- 4:38Speaker 1: hero of digital forensics. Linux. It's often called an open
- 4:42Speaker 1: source powerhouse in this field. But what does open source
- 4:46Speaker 1: actually mean? Is it just about software you don't have
- 4:48Speaker 1: to pay for.
- 4:49Speaker 2: That's a common misconception. To really get open source, it
- 4:52Speaker 2: helps to contrast it with closed source software. So imagine
- 4:55Speaker 2: I write a simple Hello World program and see.
- 4:57Speaker 1: Right, okay.
- 4:58Speaker 2: With closed source, i'd give you the compile executable file.
- 5:01Speaker 2: You can run it, sure, but you can't see the
- 5:03Speaker 2: underlying code. You can't change it. It's like a mystery
- 5:05Speaker 2: box that just well does its thing right.
- 5:08Speaker 1: You just trust it works exactly.
- 5:10Speaker 2: With open source, though, I give you the actual c
- 5:13Speaker 2: program file, the source code. You can read it, you
- 5:15Speaker 2: can understand exactly what it does, and you can even
- 5:17Speaker 2: modify it if you've got the skills. Richard Stallman, the
- 5:21Speaker 2: founder of the Free Software Foundation. He famously said that
- 5:24Speaker 2: free in open source means free as in free speech,
- 5:28Speaker 2: not free as in free beer.
- 5:30Speaker 1: Ah. That's a great distinction.
- 5:32Speaker 2: It is so while it's often free of costs because
- 5:35Speaker 2: of the lightnsing, the core idea is really the freedom
- 5:37Speaker 2: to examine, use, and modify the code.
- 5:40Speaker 1: That distinction is key. So why is this open source model,
- 5:45Speaker 1: particularly Linux, such an advantage for forensics. It seems a
- 5:49Speaker 1: bit counterintuitive that something anyone can tinker with would be
- 5:52Speaker 1: more trustworthy.
- 5:53Speaker 2: Maybe well, it's precisely because anyone can modify it, or
- 5:56Speaker 2: at least examine it, that it's often seen as more trustworthy.
- 5:59Speaker 2: There are a few big reasons. First, there's community power.
- 6:02Speaker 2: Open source projects often have these huge communities of users, developers, testers,
- 6:07Speaker 2: all working together. This collective effort often leads to new
- 6:10Speaker 2: features being introduced faster and crucially, issues being resolved much
- 6:14Speaker 2: quicker than with small proprietary teams.
- 6:17Speaker 1: So it's not just about speed then, does that community
- 6:20Speaker 1: scrutiny also directly help with the trustworthiness and accuracy of
- 6:25Speaker 1: the tools, which must be absolutely paramount when potentially lives
- 6:30Speaker 1: depend on them.
- 6:31Speaker 2: That's exactly it. More eyes on the code, more brain
- 6:33Speaker 2: solving problems. This leads directly to greater trust and correctness.
- 6:38Speaker 2: With closed source software, you're essentially relying on the developers
- 6:42Speaker 2: having got everything right, and we've all seen the infamous
- 6:46Speaker 2: blue screen of death in Windows. For example, With open source,
- 6:50Speaker 2: the community can review and fix the code at any point.
- 6:54Speaker 2: That provides a lot more confidence in the tool's accuracy, which,
- 6:57Speaker 2: as you say, is vital when people's lives might depend
- 6:59Speaker 2: on the investigation's outcome. Makes sense, and yes, cost effectiveness
- 7:03Speaker 2: is a major advantage too. Because of copyleft licensing requirements,
- 7:07Speaker 2: it's actually quite difficult to sell open source software directly,
- 7:10Speaker 2: so it's often free of cost. Now, companies can still
- 7:12Speaker 2: offer services like training or customization around these products, but
- 7:16Speaker 2: the core software itself is usually freely available. And lastly,
- 7:20Speaker 2: specifically for forensics, Linux offers great support for many file
- 7:24Speaker 2: systems by default, often much more than Windows or Mac
- 7:27Speaker 2: OS natively support, which makes it a really ideal forensic
- 7:31Speaker 2: workstation right out of the box.
- 7:33Speaker 1: So when we talk about Linux as an operating system,
- 7:35Speaker 1: what are its main parts? You hear about the kernel,
- 7:38Speaker 1: but what else makes it a functioning OS?
- 7:41Speaker 2: Yeah, good question. At its very heart is the kernel,
- 7:44Speaker 2: which was created by Linus Torvold's that's the bit that
- 7:46Speaker 2: directly controls the hardware and manages the software. Then layered
- 7:50Speaker 2: on top of that are the GNU utilities. These are
- 7:53Speaker 2: standard programs that let users control files, run programs, that
- 7:56Speaker 2: sort of thing. It's really the combination of the Linux
- 7:59Speaker 2: kernel and these GENU utilities that forms the functional operating
- 8:03Speaker 2: system we commonly just call Linux. Beyond that core, you've
- 8:06Speaker 2: got graphical desktop environments, the visual interface most people see,
- 8:10Speaker 2: and of course all the application software the end users
- 8:12Speaker 2: are most familiar with, including those powerful forensic tools we've
- 8:15Speaker 2: been mentioning.
- 8:16Speaker 1: Okay, let's get practical then. What are some basic, really
- 8:20Speaker 1: fundamental forensic commands in Linux that investigators are using day
- 8:24Speaker 1: to day. These must be like the digital equivalent of
- 8:27Speaker 1: a magnifying glass and dusting powder.
- 8:29Speaker 2: Definitely, one of the most fundamental is hashing. This is
- 8:32Speaker 2: absolutely crucial for ensuring data integrity.
- 8:35Speaker 1: Okay, how did that work? Well?
- 8:37Speaker 2: Hashing algorithms like say MD five or the Saha family.
- 8:41Speaker 2: They create a unique digital fingerprint for any piece of data.
- 8:45Speaker 2: If even a single bit is changed in a file,
- 8:48Speaker 2: its hash value will change traumatically. It's like if you
- 8:52Speaker 2: change just one letter in the entire collected works of Shakespeare,
- 8:55Speaker 2: the hash would completely change instantly, confirming even the tiniest alteration.
- 8:59Speaker 1: Wow. So if someone sends you a file and you
- 9:02Speaker 1: calculate its hash, you can instantly verify it hasn't been
- 9:04Speaker 1: tampered with since they calculated their ash. Yeah, that's powerful.
- 9:08Speaker 2: It is very powerful. Now. While some smaller hashes like
- 9:12Speaker 2: CRC threety two maybe can sometimes experience hash collisions, that's
- 9:16Speaker 2: where different inputs accidentally produce the same hash, using larger
- 9:20Speaker 2: outputs like SAHA five twelve, or maybe using multiple different
- 9:23Speaker 2: algorithms together, that greatly reduces that probability to almost zero.
- 9:28Speaker 1: Got it? What else?
- 9:29Speaker 2: Another really useful tool is hex viewers like XXD. This
- 9:33Speaker 2: lets analysts examine raw binary data, bite by byte, things
- 9:37Speaker 2: like a discs partition table for example. It's like looking
- 9:40Speaker 2: at the absolute purest form of the computer's language, the
- 9:43Speaker 2: ones and zeros represented compactly. This often requires root access, though,
- 9:47Speaker 2: using the pseudo command.
- 9:48Speaker 1: Okay, and then there's strings I've heard that's a really
- 9:50Speaker 1: really powerful one for investigators. What makes it so special?
- 9:53Speaker 1: It really is?
- 9:54Speaker 2: The strings command is deceptively simple but incredibly useful. It
- 9:58Speaker 2: displays all the printable as key carecharacters it finds within
- 10:01Speaker 2: any file, even binary file, so even.
- 10:03Speaker 1: In like an image file or a program exactly.
- 10:06Speaker 2: Even if a file is an image or an executable program,
- 10:10Speaker 2: strings can pull out any plain text that happens to
- 10:12Speaker 2: be embedded within it. And when you combine it with
- 10:14Speaker 2: EGREP for text searching, it becomes a very powerful forensic
- 10:19Speaker 2: tool for quickly finding keywords or phrases within potentially massive
- 10:23Speaker 2: amounts of raw data. That sounds incredibly useful, and the
- 10:26Speaker 2: AT option is particularly useful. It displays the bite offset,
- 10:30Speaker 2: basically the address where the text is found. This lets
- 10:33Speaker 2: an investigator navigate directly to that specific spot within the
- 10:37Speaker 2: file or the disc image using other tools.
- 10:39Speaker 1: So it's not just about finding a keyword, it's about
- 10:42Speaker 1: the context, seeing what's around it. I imagine that's crucial
- 10:45Speaker 1: when you're dealing with huge amounts of data where a
- 10:47Speaker 1: word might appear harmlessly in one place, but maybe sinatraily
- 10:51Speaker 1: in another, all hidden away in binary code.
- 10:54Speaker 2: Precisely, it's not just finding the needle in the haystack.
- 10:56Speaker 2: It's like finding a specific pollen grain on that needle,
- 10:59Speaker 2: and it's precise digital address. It's truly granular work.
- 11:04Speaker 1: That's incredible. Okay, that's a great segue into understanding the
- 11:07Speaker 1: hidden language, how computers speak in ones and zeros. I mean,
- 11:10Speaker 1: at the end of the day, it's all just zeros
- 11:12Speaker 1: and ones, right, But how do they turn that into
- 11:14Speaker 1: something we actually understand, like text or numbers.
- 11:17Speaker 2: It is all zeros and ones. But how those zeros
- 11:19Speaker 2: and ones are interpreted? That's the key. Computers, as you say,
- 11:23Speaker 2: use the binary number system base two. Humans we generally
- 11:27Speaker 2: use decimal base ten, but in computing you'll very often
- 11:31Speaker 2: encounter hexadecimal or hex, which is base sixteen. It uses
- 11:36Speaker 2: the digits zero through nine and then the letters A
- 11:39Speaker 2: through F to represent the values ten to fifteen. Hexadeesimal
- 11:42Speaker 2: is simply a much more compact way to represent binary
- 11:46Speaker 2: data for human eyes.
- 11:47Speaker 1: Okay, so it's like a shorthand exactly.
- 11:49Speaker 2: For example, the binary number ten eleven that's one zero,
- 11:51Speaker 2: one one is equivalent to eleven in our decimal system.
- 11:54Speaker 2: In hex, it would be b. It just makes reading
- 11:57Speaker 2: long strings of binary data much easier.
- 11:59Speaker 1: Okay, that makes sense. Then there's text. My computer understands
- 12:02Speaker 1: what I type, But how does it turn the letter
- 12:04Speaker 1: a into numbers and then back again.
- 12:06Speaker 2: Ah, that's where character encodings come in. They basically assign
- 12:09Speaker 2: a unique numerical code to each character. Letter's numbers, symbols
- 12:13Speaker 2: everything like a secret codebook kind of Older encodings like
- 12:17Speaker 2: ASE and ISO eight eight five nine, they were quite limited.
- 12:21Speaker 2: They worked well for English, but struggled with special characters
- 12:24Speaker 2: like maybe the A character in Spanish or other European languages.
- 12:28Speaker 2: They simply didn't have enough codes assigned for every symbol
- 12:30Speaker 2: used across.
- 12:31Speaker 1: The world, Which is where Unicode and UTF eight step in,
- 12:34Speaker 1: I guess correct.
- 12:36Speaker 2: Unicode is this huge standard that supports a vast range
- 12:39Speaker 2: of characters from pretty much all the world's writing systems.
- 12:43Speaker 2: It covers virtually every character you could imagine, and UTF
- 12:47Speaker 2: eight is a specific encoding method for Unicode. It's a
- 12:51Speaker 2: variable width encoding, which cleverly solves the storage inefficiency you'd
- 12:55Speaker 2: get if every single character took up say four bites.
- 12:58Speaker 2: UTF eight uses anywhere from one to four bytes per character,
- 13:01Speaker 2: so it adapts exactly. This makes it the de facto
- 13:05Speaker 2: standard for web pageing coding and much more. What's really
- 13:08Speaker 2: clever about UTF eight is that standard English ACI characters
- 13:11Speaker 2: ABC one, two three, they are represented identically to their
- 13:15Speaker 2: original ACI form, taking up just one byte, but more
- 13:18Speaker 2: complex characters like emojis or characters from other alphabets, they
- 13:23Speaker 2: might take two, three, or four bytes. So it's incredibly
- 13:25Speaker 2: efficient for common text, but flexible enough for global communication.
- 13:29Speaker 1: That's smart. And what about time? How do computers keep
- 13:32Speaker 1: track of that down to the you know, the millisecond
- 13:35Speaker 1: or even nanosecond, which must be crucial for an investigation
- 13:38Speaker 1: and timeline.
- 13:39Speaker 2: Time representation in computing is another fascinating area. Many systems,
- 13:43Speaker 2: especially Unix like systems like Linux and mac os, use
- 13:46Speaker 2: what's called Unix time.
- 13:48Speaker 1: Right, I've heard of that.
- 13:49Speaker 2: It's measured as a number of seconds that have elapsed
- 13:51Speaker 2: since midnight UTC on January first, nineteen seventy. That specific
- 13:55Speaker 2: moment is known as the epoch.
- 13:57Speaker 1: Okay, so just a big counter of seconds. But what
- 14:00Speaker 1: if two things happen really fast, like within the same second,
- 14:03Speaker 1: would they have the exact same time stamp? That could
- 14:06Speaker 1: be a real problem for investigators trying to figure out
- 14:08Speaker 1: the exact order of events, especially if automated processes are involved.
- 14:13Speaker 2: It absolutely could be, and it was a limitation. While
- 14:16Speaker 2: maybe not an issue for things happening at human speed,
- 14:19Speaker 2: automated processes can access or modify many files within a
- 14:23Speaker 2: single second. This meant older filesystems like say x two
- 14:27Speaker 2: to two, which only had second level granularity, couldn't always
- 14:31Speaker 2: definitively say which isn't happened first if they occurred in
- 14:35Speaker 2: the same second.
- 14:35Speaker 1: So how do they fix that?
- 14:37Speaker 2: Well, most modern implementations of UNIX time, like you find
- 14:40Speaker 2: in the XT four filesystem, for example, they now include
- 14:43Speaker 2: a nanosecond subcomponent. Nanosecond yeah, billions of a second. This
- 14:48Speaker 2: significantly improves the granularity, allowing for incredibly precise ordering of
- 14:52Speaker 2: events and file creation timestamps that can be absolutely crucial
- 14:55Speaker 2: for building an accurate forensic timeline.
- 14:58Speaker 1: That's a huge leap in precision. Okay, one more weird
- 15:02Speaker 1: term before we move on. Indian thiss. That sounds like
- 15:05Speaker 1: something out of Gulliver's Travels or I don't know, a
- 15:07Speaker 1: really obscure technical debate. What's that about?
- 15:09Speaker 2: Huh? It does sound a bit strange, doesn't it, But
- 15:12Speaker 2: it's actually crucial for correctly interpreting raw Heck's data off
- 15:16Speaker 2: a disc. Indianness is just about the order in which
- 15:20Speaker 2: computers store or read multi byte numbers. Okay, how so
- 15:25Speaker 2: imagine writing down a date. Do you write month, day
- 15:27Speaker 2: year like in the US or day month year like
- 15:29Speaker 2: in Europe. It's the same information, right, just a different order.
- 15:31Speaker 1: Gotcha.
- 15:32Speaker 2: Computers have a similar choice for numbers. Big Indian is
- 15:35Speaker 2: like writing one twenty three. The most significant bite, the
- 15:37Speaker 2: one hundred's part, comes first. Little Indian, which is more
- 15:40Speaker 2: common on PCs, is like writing three twenty one. The
- 15:43Speaker 2: least significant bite, the ones part, comes first.
- 15:45Speaker 1: So why does that matter for forensics?
- 15:47Speaker 2: Because if you pull raw data off a disc, maybe
- 15:50Speaker 2: from a critical system boot file or a timestamp field,
- 15:53Speaker 2: and you don't know the reading order, the indianness of
- 15:55Speaker 2: the system that wrote it, you'll completely misinterpret what those
- 15:59Speaker 2: bites actually report. It could be the difference between seeing
- 16:02Speaker 2: December fifth and May twelfth in a critical timestamp, just
- 16:05Speaker 2: based on reading the bytes in the wrong order.
- 16:07Speaker 1: Okay, crucial detail. Then, with that secret language sort of decoded,
- 16:12Speaker 1: let's zoom out a bit from the individual bits and
- 16:14Speaker 1: bytes to the actual landscape where all this data lives.
- 16:18Speaker 1: We're moving to the disks, partitions, and file system fundamentals,
- 16:23Speaker 1: the very architecture of digital storage. Starting with how computers
- 16:27Speaker 1: organize information physically, What are the different types of storage
- 16:31Speaker 1: and which ones are most relevant for forensics?
- 16:34Speaker 2: Right? Computer storage is usually classified into a few tiers, primary, secondary, tertiary,
- 16:39Speaker 2: and offline. Primary storage is typically RAM random access memory,
- 16:43Speaker 2: and the key thing about RAM is that it's volatile,
- 16:45Speaker 2: meaning all the information stored in it is lost as
- 16:48Speaker 2: soon as the power is removed. This is exactly why
- 16:51Speaker 2: live data forensics LDF is so critical. As we've discussed,
- 16:55Speaker 2: RAM holds so many ephemeral details about what was just
- 16:58Speaker 2: happening on the system's story, open documents, running processes, network connections,
- 17:03Speaker 2: those encryption keys we mentioned.
- 17:05Speaker 1: Stuff you lose if you just pull.
- 17:06Speaker 2: A plug precisely. Then you have secondary storage. This includes
- 17:10Speaker 2: your traditional hard disk drives HDDs and the now very
- 17:15Speaker 2: common solid state drives SSDs. This is where most of
- 17:18Speaker 2: our persistent data resides, the stuff that stays when the
- 17:21Speaker 2: power is off.
- 17:22Speaker 1: And SSDs would you're everywhere now. Because they're so fast
- 17:24Speaker 1: and efficient, they bring their own unique forensic headaches, don't they.
- 17:29Speaker 1: I've heard they can be kind of a forensic investigator's
- 17:31Speaker 1: nightmare compared to the old spinning hard drives.
- 17:34Speaker 2: They absolutely do post some unique SSD specific challenges because
- 17:38Speaker 2: of how they work fundamentally differently from HDDs see. Unlike HDDs,
- 17:42Speaker 2: the flash memory components inside an SSD can only be
- 17:45Speaker 2: written to a limited number of times before they wear out,
- 17:48Speaker 2: so to extend the drives lifespan, the SSD controller employs
- 17:52Speaker 2: techniques like were leveling. This involves intelligently moving data around
- 17:57Speaker 2: independently of the operating system just to make sure all
- 18:00Speaker 2: the memory cells get written to roughly the same amount.
- 18:03Speaker 1: So the controller is shuffling data behind the.
- 18:05Speaker 2: Scenes exactly, which makes predicting the precise physical location of
- 18:10Speaker 2: a specific piece of data for forensic analysis much harder.
- 18:13Speaker 2: You can't just assume data stays put in one physical
- 18:16Speaker 2: spot like you mostly could on an HDD.
- 18:18Speaker 1: So data might not be where the operating system thinks
- 18:20Speaker 1: it is. That sounds like a constant game of digital
- 18:23Speaker 1: hide and seek.
- 18:24Speaker 2: It can be, and it gets worse even more critically
- 18:27Speaker 2: when the operating system marks data as unallocated, which happens
- 18:31Speaker 2: when you delete a file. Modern SSDs use a function
- 18:34Speaker 2: called trim. The OS basically tells the SSD controller, Hey,
- 18:38Speaker 2: we don't need the data in these.
- 18:39Speaker 1: Blocks anymore, and the controller.
- 18:41Speaker 2: The controller can then internally mark those blocks for erasure,
- 18:44Speaker 2: often almost immediately, as part of its garbage collection routines.
- 18:47Speaker 2: This means that deleted files are much less likely to
- 18:50Speaker 2: be present and recoverable on SSDs than on traditional HDDs,
- 18:54Speaker 2: where the data just sat there until overwritten.
- 18:57Speaker 1: Wow, so deleting really means deleting much more often on
- 18:59Speaker 1: ans sat often.
- 19:00Speaker 2: Yes, And here's the real kicker for forensics. These SSD
- 19:05Speaker 2: controllers run their garbage collection routines in the background while
- 19:08Speaker 2: the drive is powered on. This means that potentially data
- 19:12Speaker 2: is changing on the device in question, even if it's
- 19:14Speaker 2: just sitting there, plugged in as evidence doing nothing.
- 19:17Speaker 1: From the OS perspective, WHOA, So the evidence is potentially
- 19:20Speaker 1: altering itself.
- 19:21Speaker 2: Exactly, which, as you can imagine, directly breaks the principle
- 19:24Speaker 2: of not altering evidence. It's a fundamental conflict that investigators
- 19:28Speaker 2: have to be acutely aware of when dealing with SSDs.
- 19:31Speaker 1: That's a huge, huge challenge to the core ideas of forensics. Okay,
- 19:35Speaker 1: so physical discs, whether HDD or SSD, they're often divided
- 19:40Speaker 1: into partitions. Why do we do that? What's the purpose
- 19:43Speaker 1: of these logical divisions?
- 19:44Speaker 2: Partitions are essentially logical divisions of a single physical disc.
- 19:49Speaker 2: They allow that one physical disc to be split into
- 19:52Speaker 2: multiple logical areas, each of These areas can then contain
- 19:56Speaker 2: a different file system or even a different operating system.
- 19:59Speaker 2: For you might have one partition for Windows and another
- 20:02Speaker 2: for Linux on the same drive, or maybe a separate
- 20:04Speaker 2: partition just for your user data.
- 20:06Speaker 1: Okay, and there are different ways these partitions are laid
- 20:09Speaker 1: out on the disc. Right, Like MBR versus GPT. What's
- 20:12Speaker 1: the practical difference there for someone investigating a system.
- 20:14Speaker 2: Yes, MBR Master Boot Record and GPTGII Partition Table are
- 20:20Speaker 2: the two main schemes used to define how partitions are
- 20:24Speaker 2: organized on a disc. MBR is the older standard. GPT
- 20:28Speaker 2: is more modern and allows for well far more partitions
- 20:31Speaker 2: on a single disk, and also provides greater space for
- 20:33Speaker 2: storing partition information compared to the very limited.
- 20:36Speaker 1: Space in the MBR, so more robust.
- 20:39Speaker 2: Generally, Yes, For an investigator, knowing which scheme is used
- 20:43Speaker 2: tells you where to look on the disc for critical
- 20:45Speaker 2: boot information and how that disc is logically structured overall.
- 20:48Speaker 1: Got it. Let's zoom in again now to the core
- 20:51Speaker 1: filesystem concepts. These are the real nuts and bolts of
- 20:55Speaker 1: how files actually live on a disc, and understanding them
- 20:58Speaker 1: can reveal hidden data. What's a cluster or block, and
- 21:02Speaker 1: why does that basic unit mate or so much?
- 21:05Speaker 2: Right? A cluster, sometimes called a block, is the basic,
- 21:08Speaker 2: smallest allocatable unit of storage within a file system. Think
- 21:12Speaker 2: of it like building blocks. Even if you have a
- 21:14Speaker 2: tiny file that's only say, one byte in size, the
- 21:17Speaker 2: filesystem has to alligate an entire cluster to store it.
- 21:20Speaker 2: That cluster might be, for instance, forty ninety six bytes, so.
- 21:23Speaker 1: One byte of data, except forty ninety six bytes of.
- 21:26Speaker 2: Space exactly the remaining forty ninety five bytes in that cluster.
- 21:30Speaker 2: The space between the end of the actual file data
- 21:32Speaker 2: and the end of the cluster. That's known as slack space.
- 21:35Speaker 1: And that's interesting because.
- 21:36Speaker 2: Because this slack space isn't necessarily empty, it can contain
- 21:40Speaker 2: data from previous files that happen to occupy this cluster
- 21:43Speaker 2: before the current file was written there. It might hold
- 21:45Speaker 2: fragments of old documents, emails, chatlogs, religual evidence that was
- 21:49Speaker 2: never fully overwritten. It can be a real gold mine
- 21:52Speaker 2: for investigators.
- 21:53Speaker 1: Wow, okay, and unallocated space. That sounds like just empty space,
- 21:58Speaker 1: But I have a feeling it's not always truly empty either.
- 22:00Speaker 2: You're right, it often isn't. Unallocated space is simply disk
- 22:04Speaker 2: space that isn't currently assigned to any active file by
- 22:06Speaker 2: the filesystem. But crucially, when a file is deleted, especially
- 22:11Speaker 2: on older hgds, less so on trim abled SSDs, its
- 22:15Speaker 2: content often isn't wiped immediately. The space is just marked
- 22:19Speaker 2: as available. The actual data might still be physically present
- 22:23Speaker 2: in that unallocated space, just waiting to be overwritten by
- 22:26Speaker 2: new data eventually.
- 22:28Speaker 1: Which is why you need a full copy exactly.
- 22:30Speaker 2: This is precisely why forensic investigators always aim to create
- 22:34Speaker 2: a bit by bit image of the device. This ensures
- 22:37Speaker 2: that all the unallocated space is captured and can be
- 22:39Speaker 2: analyzed later. If you just copied the active files, you'd
- 22:42Speaker 2: miss all that potential evidence of deleted but still recoverable files.
- 22:45Speaker 1: Makes sense, What about file fragmentation? Does that just make
- 22:48Speaker 1: file slow to load or does it complicate forensics too?
- 22:52Speaker 2: File fragmentation happens when there isn't a single large enough
- 22:55Speaker 2: continuous area on the disc to store an entire file
- 22:58Speaker 2: when it's first written or when it grows, so the
- 23:01Speaker 2: file system has to split the file into multiple pieces
- 23:04Speaker 2: or fragments, and store them in different physical locations on
- 23:07Speaker 2: the disc. Okay, while it can definitely affect performance for forensics.
- 23:11Speaker 2: It means that to recover or analyze that file, you
- 23:14Speaker 2: first have to find and correctly reassemble all those scattered fragments.
- 23:18Speaker 2: It's like putting together a jigsaw puzzle, sometimes with missing
- 23:22Speaker 2: pieces or pieces from different puzzles mixed in.
- 23:24Speaker 1: It adds complexity, right, and something called copy on write
- 23:27Speaker 1: or COWW. That sounds like maybe a way to preserve
- 23:31Speaker 1: data rather than lose it.
- 23:32Speaker 2: It is in a way copy on righte. COWW is
- 23:35Speaker 2: a strategy used in many modern file systems like APFS
- 23:38Speaker 2: and others. When a resource like a file block is
- 23:41Speaker 2: about to be modified. Instead of overwriting the original data directly,
- 23:45Speaker 2: the filesystem first makes a copy of the original block
- 23:47Speaker 2: and then writes the changes to the new block.
- 23:49Speaker 1: Ah, so the old version sticks around for a while.
- 23:52Speaker 2: Potentially yes, it means the original data might still be
- 23:55Speaker 2: present somewhere on the disc, offering the potential to discover
- 23:59Speaker 2: earlier versions of artifacts or files. This is also fundamental
- 24:03Speaker 2: to how filesystem snapshots work. The preserve a view of
- 24:07Speaker 2: the filesystem at a specific point in time by referencing
- 24:10Speaker 2: these older, unmodified blocks. These snapshots are great for backups
- 24:14Speaker 2: but also incredibly valuable for forensic analysis to see what
- 24:18Speaker 2: the system look like at a previous state.
- 24:20Speaker 1: Very cool. Finally, in this section, what's RAID? I usually
- 24:23Speaker 1: hear that mentioned in the context of big server storage
- 24:27Speaker 1: or maybe backups.
- 24:28Speaker 2: RAID stands for a redundant array of independent discs. It's
- 24:31Speaker 2: a technology that combines multiple physical disc drives into a
- 24:34Speaker 2: single logical unit that the operating system sees as one
- 24:37Speaker 2: big disc.
- 24:38Speaker 1: Why do that?
- 24:39Speaker 2: It can be done for various reasons. Sometimes it's just
- 24:42Speaker 2: to create one large, consolidated filesystem from several smaller discs.
- 24:46Speaker 2: That's RAID zero, which focuses on performance or size but
- 24:49Speaker 2: offers no redundancy. Or more commonly, it's done for redundancy
- 24:53Speaker 2: and fault tolerance. For instance, RAD one marrors data exactly
- 24:57Speaker 2: across two or more drives. If one fails, the data
- 25:01Speaker 2: is safe on the other. RAT five uses parity information
- 25:04Speaker 2: striped across drives, allowing for a single drive to fail
- 25:07Speaker 2: without any data.
- 25:08Speaker 1: Loss and for forensics.
- 25:10Speaker 2: For forensics, analyzing a RATE array means understanding how the
- 25:13Speaker 2: data is striped or mirrored across those multiple physical discs.
- 25:17Speaker 2: You often need to image all the member discs and
- 25:20Speaker 2: then use specialized software to reconstruct the original logical volume
- 25:23Speaker 2: before you can even start analyzing the filesystem on top
- 25:26Speaker 2: of it. It adds another layer of complexity.
- 25:29Speaker 1: Fascinating. Okay, let's move on and take a quick tour
- 25:31Speaker 1: of con file systems. These are like the different languages
- 25:34Speaker 1: or organizational schemes and operating systems used to manage all
- 25:37Speaker 1: these bits, bytes, clusters and partitions we've been talking about.
- 25:40Speaker 1: We'll start with the old, reliable FAT and its newer
- 25:43Speaker 1: cousin x fat sure.
- 25:44Speaker 2: The FAT file Allocation Table filesystem is well, very old
- 25:50Speaker 2: and relatively simple in its structure. It basically consists of
- 25:53Speaker 2: only three main components, the boot sector, the file allocation
- 25:56Speaker 2: table itself which tracks cluster usage, and the directory entries.
- 26:01Speaker 2: Because of its simplicity and wide compatibility, you still find
- 26:04Speaker 2: it very commonly on removable media like USB drives and
- 26:07Speaker 2: older SD cards, but it.
- 26:09Speaker 1: Had limitations, especially with file size.
- 26:11Speaker 2: Big Time FAT thirty two, the most common version, famously
- 26:15Speaker 2: had a four gigabyte limit for single files, which is
- 26:18Speaker 2: tiny by today's standards. That's where x fat comes in.
- 26:21Speaker 2: It's a newer file system, also for Microsoft, designed specifically
- 26:25Speaker 2: for larger removable media. Like modern high capacity SD cards
- 26:28Speaker 2: and USB drives.
- 26:29Speaker 1: What's the key difference?
- 26:30Speaker 2: A key improvement is its support for much larger files.
- 26:33Speaker 2: XPECT can handle files up to theoretically one hundred and
- 26:36Speaker 2: twenty eight petabytes that's pb, which is enormous. It achieves
- 26:39Speaker 2: this partly by using eight byte values to store file
- 26:41Speaker 2: sizes compared to FAT thirty two's four byte values, so
- 26:44Speaker 2: it's much better suited for things like large video files
- 26:47Speaker 2: on flash drives.
- 26:48Speaker 1: Okay, then there's the standard for Windows for a long
- 26:51Speaker 1: time now and TFS. What are it is? Defining features?
- 26:55Speaker 1: What makes it such a robust system? And what kind
- 26:57Speaker 1: of hidden details might it hold for investigation? Right?
- 27:00Speaker 2: NTFS New Technology Filesystem has been the default for Windows
- 27:05Speaker 2: for decades now, and it's a much more complex and
- 27:07Speaker 2: robust filesystem than FAT. One key feature is journaling.
- 27:12Speaker 1: What does that do?
- 27:13Speaker 2: Journaling means the filesystem records pending changes to its metadata
- 27:17Speaker 2: in a log or journal before actually committing those changes
- 27:21Speaker 2: to the main filesystem structures. This makes NTFS much more
- 27:25Speaker 2: fault tolerant. If the system crashes mid operation, it can
- 27:28Speaker 2: use the journal to recover and ensure the filesystem structure
- 27:31Speaker 2: remains consistent reducing the risk of data corruption.
- 27:34Speaker 1: That sounds important very.
- 27:35Speaker 2: NTFS also supports something called alternate data streams or ADS.
- 27:39Speaker 2: This allows multiple separate streams of data to be associated
- 27:42Speaker 2: with a single.
- 27:43Speaker 1: File name like hidden attachments.
- 27:45Speaker 2: Kind of Yeah, the main file data is in one stream,
- 27:48Speaker 2: but you can attach other hidden streams. These aren't always
- 27:51Speaker 2: visible through standard tools like Windows Explore, so they have
- 27:54Speaker 2: sometimes been used to hide information maybe malware components or
- 27:58Speaker 2: other data. Instigators definitely need to check for ADS.
- 28:02Speaker 1: So it's like a hidden digital tag or a secret
- 28:04Speaker 1: compartment within a file. Have investigators found surprising ways these
- 28:08Speaker 1: ADS are used, maybe to trace a file's origin absolutely.
- 28:11Speaker 2: For example, a common ADS you might encounter, maybe without
- 28:14Speaker 2: realizing it, is the zone dot identifier. Windows often automatically
- 28:18Speaker 2: attaches this stream to files downloaded from the Internet, and
- 28:22Speaker 2: it records information like the original URL it came from.
- 28:26Speaker 2: That can be crucial evidence for tracing malware or suspicious
- 28:29Speaker 2: documents back to their source.
- 28:31Speaker 1: Interesting. What else is key in NTFS?
- 28:33Speaker 2: Well, the heart of NTFS is the Master Filetable or MFT.
- 28:38Speaker 2: Think of it as a highly detailed database or library
- 28:40Speaker 2: catalog for every single file and folder on the volume.
- 28:43Speaker 2: Each file has an entry in the MFT.
- 28:45Speaker 1: And what information is in that entry.
- 28:47Speaker 2: Lots of metadata. It stores file attributes, including things like objectives.
- 28:52Speaker 2: These are unique identifiers UUIDs that can act like digital fingerprints,
- 28:57Speaker 2: potentially linking a file back to the specific computer it
- 28:59Speaker 2: was a real created on, even if the file itself
- 29:02Speaker 2: has been copied around. It includes creation time stamps and
- 29:05Speaker 2: even the m MASS address of the network card of
- 29:07Speaker 2: the creating machine sometimes WOW. And the MFT also holds
- 29:11Speaker 2: security descriptor attributes. These contain information like the owner and
- 29:15Speaker 2: group security identifiers sids and the access control lists acls,
- 29:20Speaker 2: which define exactly who has permission to read, write, or
- 29:23Speaker 2: execute the file, all crucial details for an investigation.
- 29:27Speaker 1: Okay, moving across to the Linux world, now we have
- 29:30Speaker 1: the EXT family of filesystems. How has that evolved over
- 29:33Speaker 1: the years and what does the latest version XT four
- 29:36Speaker 1: offer investigators?
- 29:37Speaker 2: Right, the EXT family is native to Linux. It started
- 29:41Speaker 2: with X two, which was simpler and stored file metadata
- 29:43Speaker 2: in structures called inodes. Each file or directory has an
- 29:47Speaker 2: inode containing information like permissions, time stamps, and pointers to
- 29:50Speaker 2: the actual data blocks.
- 29:51Speaker 1: But X two lacks something important, Right?
- 29:54Speaker 2: Yes, X two lacked journaling, making it vulnerable to corruption
- 29:57Speaker 2: if the system crashed during rites. So X three was
- 30:00Speaker 2: developed and its main addition was journaling, providing that resilience
- 30:04Speaker 2: similar to NTFS. X three also introduced h tree directory indexing,
- 30:08Speaker 2: which was a significant performance improvement, allowing directories to efficiently
- 30:13Speaker 2: handle millions of files, overcoming a major limitation of X
- 30:16Speaker 2: two for large file systems.
- 30:18Speaker 1: And X four is the modern standard now right, what
- 30:20Speaker 1: really makes it stand out? Especially for forensics?
- 30:23Speaker 2: Yes, xdoor is the default for many Linux distributions today
- 30:26Speaker 2: and brought several important X to four innovations. One major
- 30:30Speaker 2: change was the introduction of extents. Instead of using individual
- 30:34Speaker 2: block pointers for large files, extends to find a starting
- 30:37Speaker 2: block and a length, making storage much more efficient for
- 30:40Speaker 2: large contiguous files and simplifying.
- 30:42Speaker 1: Recovery any other key features Yeah.
- 30:44Speaker 2: Another one is inline storage for very small files, X
- 30:48Speaker 2: four can actually store the file's data directly within the
- 30:51Speaker 2: inode structure itself, saving space and eliminating the need for
- 30:54Speaker 2: separate data blocks entirely all interesting and crucially for investigators.
- 30:58Speaker 2: XT four dramatically improved timestamp granularity down to nanosecond precision.
- 31:03Speaker 2: It also officially added support for a file creation timestamp
- 31:07Speaker 2: sometimes called cre time or b time, which was often
- 31:09Speaker 2: missing or unreliable in older ext versions. This allows for
- 31:13Speaker 2: incredibly detailed timelines of filesystem events down to billions of
- 31:17Speaker 2: a second.
- 31:18Speaker 1: Nine seconds again, okay, finally in our tour, Apple's next
- 31:22Speaker 1: generation system, APFS. How does that compare? Especially given Apple's
- 31:27Speaker 1: big focus on security and user privacy.
- 31:29Speaker 2: APFS Apple filesystem was introduced relatively recently to replace their
- 31:33Speaker 2: older HFS plus filesystem on macOS iOS and other Apple devices.
- 31:37Speaker 2: A big architectural change was moving to sixty four bit enodes.
- 31:41Speaker 2: This vastly increases the theoretical number of files possible on
- 31:44Speaker 2: a volume compared to HFS plus tin essential for handling
- 31:47Speaker 2: the massive amounts of data on modern devices.
- 31:49Speaker 1: Makes sense. What about features?
- 31:51Speaker 2: Well? APFS was designed with modern hardware like SSD's and mind.
- 31:54Speaker 2: It features robust built in encryption, which can be applied
- 31:57Speaker 2: at the whole disc level or even per file. This
- 32:00Speaker 2: obviously makes forensic analysis much more challenging if you don't
- 32:03Speaker 2: have the decryption keys, a.
- 32:04Speaker 1: Big hurdle definitely.
- 32:05Speaker 2: However, APFS also has really robust snapshot creation capabilities built in.
- 32:11Speaker 2: These are used by time Machine for backups, but they
- 32:14Speaker 2: also mean that older versions of the filesystem state might
- 32:17Speaker 2: be easily accessible, which can be very useful for forensic analysis,
- 32:21Speaker 2: allowing you to roll back and see previous file versions
- 32:23Speaker 2: or system.
- 32:24Speaker 1: States interesting, anything else unique.
- 32:26Speaker 2: One other notable feature is space sharing. In APFS, multiple
- 32:31Speaker 2: logical volumes can exist within a single physical container and
- 32:34Speaker 2: share the underlying free space. This is flexible for users,
- 32:39Speaker 2: but can make tracking exact data allocation and free space
- 32:42Speaker 2: a bit more complex for forensic analysis compared to traditional
- 32:46Speaker 2: fixed partitions.
- 32:47Speaker 1: Wow, it's a lot of complex hidden infrastructure under the hood.
- 32:50Speaker 1: So how do investigators actually get to all this data,
- 32:52Speaker 1: these bits bytes in odes, MFT records without altering the
- 32:57Speaker 1: original evidence or causing more problems like those SSD changes.
- 33:01Speaker 1: What's in the investigator's toolkit acquiring and analyzing digital evidence right?
- 33:06Speaker 2: The first and absolutely critical step is forensically sound acquisition.
- 33:10Speaker 2: The goal here is to create a perfect copy of
- 33:13Speaker 2: the original storage device without changing the original in any way.
- 33:17Speaker 1: How do they guarantee that?
- 33:18Speaker 2: Primarily through the use of right blockers. These can be
- 33:22Speaker 2: specialized hardware devices that sit between the investigator's computer and
- 33:25Speaker 2: the evidence drive, physically preventing any right commands from reaching
- 33:29Speaker 2: the evidence, or they can be software based, like specific
- 33:32Speaker 2: settings and Linux that mount a device and read only mode.
- 33:35Speaker 2: At a very low level, the idea is to put
- 33:38Speaker 2: that fragile artifact, the original drive, in a protective glass case,
- 33:41Speaker 2: metaphorically speaking, before you even begin to study it.
- 33:45Speaker 1: Okay. Essential step and a core Linux command for making
- 33:48Speaker 1: that copy is DAD. I hear. That's incredibly powerful, but
- 33:52Speaker 1: maybe a little dangerous if you're not careful.
- 33:54Speaker 2: Yes. The AAD command is a classic, very powerful Linux
- 33:57Speaker 2: tool for creating raw images, which are exact bit by
- 34:01Speaker 2: dick copies of a device or partition. It's sometimes nicknamed
- 34:04Speaker 2: data destroyer if you mix up the input and output.
- 34:07Speaker 2: Uh hot, Yeah, you have to be careful, but used correctly,
- 34:11Speaker 2: it copies everything every sector, including all the unallocated space
- 34:15Speaker 2: and slack space we talked about earlier, which is vital.
- 34:17Speaker 2: You can also use options like count and skip to
- 34:20Speaker 2: copy only specific parts, allowing you to extract exact data
- 34:23Speaker 2: that is desired. For example, you could use it to
- 34:25Speaker 2: copy just the first five hundred and twelve bytes to
- 34:28Speaker 2: get the master boot record, or just the blogs belonging
- 34:30Speaker 2: to a specific partition table. Precise, very although for efficiency,
- 34:35Speaker 2: error handling and adding metadata about the acquisition process, many
- 34:39Speaker 2: forensic investigators now prefer specialized image formats like the Expert
- 34:43Speaker 2: Witness Format EWF, often created by tools other than just DD.
- 34:47Speaker 2: These formats can compress data, handle read errors better, and
- 34:50Speaker 2: store case information alongside the image data.
- 34:53Speaker 1: Okay, So once they have that pristine, forensically sound image,
- 34:56Speaker 1: that bit for bit copy, how do they start actually
- 34:59Speaker 1: picking it apart finding those hidden files, deleted remnants, or
- 35:02Speaker 1: specific pieces of metadata.
- 35:04Speaker 2: That's where analysis tools come in. A very widely used suite,
- 35:07Speaker 2: especially in the open source world, is the sleuth kit,
- 35:10Speaker 2: often abbreviated as TSK.
- 35:12Speaker 1: Okay, what does that do?
- 35:13Speaker 2: TSK is actually a collection of command line tools designed
- 35:16Speaker 2: specifically for filesystem forensics. For example, a tool called fusstat
- 35:21Speaker 2: can analyze the image and determine the filesystem type NTFS,
- 35:25Speaker 2: XT four, FAT, et cetera, and provide overall information about
- 35:29Speaker 2: the volume like block size and total blocks, so like
- 35:32Speaker 2: an initial assessment exactly. Then there's FLS, which is used
- 35:35Speaker 2: to list files and directories within the filesystem image. Crucially,
- 35:39Speaker 2: FLS can often list deleted files that still have metadata entries,
- 35:43Speaker 2: and it can even list the low level filesystem structures
- 35:46Speaker 2: themselves like inodes and ext or cnids and hfs, plus
- 35:50Speaker 2: essay showing you where things used to be or how they're.
- 35:53Speaker 1: Organized, and getting the actual data for that.
- 35:55Speaker 2: You'd use tools like astat to recover specific file metadata, timestams, permissions,
- 35:59Speaker 2: size as block pointers by referencing its inode number or
- 36:03Speaker 2: MFT entry id, and then iicat in use to recover
- 36:06Speaker 2: the actual file content itself, essentially concatenating together the data
- 36:09Speaker 2: blocks associated with that specific file or structure.
- 36:12Speaker 1: So TSK can also help put together timelines and maybe
- 36:15Speaker 1: even recover deleted files more automatically.
- 36:17Speaker 2: Indeed, TSK includes tools like mac time, which can parse
- 36:21Speaker 2: various timestamps collected from across the filesystem metadata like modified
- 36:25Speaker 2: access change times from inodes or MFT entries, and generate
- 36:29Speaker 2: incredibly detailed timelines of activity. There's also bly calls for
- 36:33Speaker 2: extracting blocks from the unallocated space, making it easier to
- 36:37Speaker 2: search that space for remnants of deleted data and scract
- 36:41Speaker 2: cover attempts to automate the recovery of deleted files by
- 36:43Speaker 2: finding their orphaned metadata and associated data blocks.
- 36:47Speaker 1: What if the metadata is completely gone, though, the filesystem
- 36:49Speaker 1: structures are corrupted, but maybe the raw data for say
- 36:53Speaker 1: a picture, is still sitting out there in unallocated space. Ah.
- 36:56Speaker 2: That's where a technique called data carving comes up.
- 36:58Speaker 1: That sounds like digital arc cheology, like trying to reconstruct
- 37:02Speaker 1: a shattered vase from its unique edge patterns.
- 37:04Speaker 2: That's a great analogy. Data carving works by bypassing the
- 37:07Speaker 2: file system entirely and instead searching for known file signatures
- 37:11Speaker 2: directly within the raw data stream of the image. These
- 37:15Speaker 2: signatures are unique sequences of bytes that typically mark the
- 37:18Speaker 2: beginning header and sometimes the end footer of specific file types.
- 37:22Speaker 2: For example, JPEG image files almost always start with the
- 37:25Speaker 2: hex bytes zero ox f ft eight and end with
- 37:28Speaker 2: zero ox f ft nine, so.
- 37:30Speaker 1: You just scan the whole image for those patterns.
- 37:32Speaker 2: Essentially, yes, carving tools scan the raw data looking for
- 37:36Speaker 2: these known headers and footers, and then extract the data
- 37:39Speaker 2: in between as a potential file. It's like looking for
- 37:41Speaker 2: specific patterns of color and texture to identify pieces of
- 37:44Speaker 2: that shattered vase. However, it's important to know that data
- 37:47Speaker 2: carving is not fully reliable. Files can be fragmented, meaning
- 37:51Speaker 2: the header and footer might be separated. By unrelated data,
- 37:54Speaker 2: or the footer might be missing entirely. Also, those byte
- 37:57Speaker 2: patterns might occasionally appear randomly within other unrelated day leading
- 38:00Speaker 2: to false positives. So car files always need careful validation.
- 38:04Speaker 1: Makes sense? Okay? Looking ahead now, with all this technology
- 38:08Speaker 1: evolving so incredibly rapidly, SSD's new file systems, encryption, what
- 38:14Speaker 1: are some of the biggest things on the horizon future
- 38:16Speaker 1: challenges in digital forensics? What keeps investigators up at night?
- 38:20Speaker 2: Well, probably the single biggest challenge is simply the data
- 38:23Speaker 2: volume problem. We've seen this vast increase in the quantity
- 38:26Speaker 2: of digital evidence phones, with terabies of storage, cloud accounts,
- 38:30Speaker 2: IoT devices, it's everywhere, right, This creates a kind of
- 38:35Speaker 2: vicious cycle because the resources available for analysis, skilled human analysts,
- 38:39Speaker 2: processing power, storage for forensic images. They haven't kept pace
- 38:43Speaker 2: more data, but limited resources to handle it efficiently means
- 38:46Speaker 2: backlogs grow and investigations can slow down.
- 38:49Speaker 1: And new file systems keep popping up too, right, Yeah,
- 38:51Speaker 1: constantly changing the rules of the game.
- 38:53Speaker 2: Absolutely. New file systems like APFS when it first appeared,
- 38:58Speaker 2: and even Extra four. Historically, they often require significant reverse
- 39:02Speaker 2: engineering by forensic researchers, especially if official documentation is scarce
- 39:07Speaker 2: or non existent. This takes a huge amount of time
- 39:09Speaker 2: and specialized skill, and there's always a risk of misinterpretation,
- 39:13Speaker 2: which has obvious implications if the findings are presented in court.
- 39:16Speaker 1: And you mentioned live data forensics earlier LDF, that comes
- 39:19Speaker 1: with its own set of ongoing challenges too.
- 39:21Speaker 2: Yes, definitely, Live data forensics revisited is a constant topic.
- 39:26Speaker 2: We already talked about how it inherently breaks ACPO Principle
- 39:29Speaker 2: one by altering data, making it impossible to realize that
- 39:32Speaker 2: principle fully. But there are other.
- 39:34Speaker 1: Risks too, sugg as like the system crashing maybe or
- 39:38Speaker 1: that crucial audit trail.
- 39:39Speaker 2: We talked about exactly. System crashes are a real possibility,
- 39:43Speaker 2: especially when performing intrusive actions like acquiring the contents of
- 39:46Speaker 2: RAM directly, which can sometimes destabilize a running system, and
- 39:51Speaker 2: maybe more fundamentally, LDF is inherently non repeatable. Unlike deadbox forensics,
- 39:56Speaker 2: where you can rerun analysis commands on a static image
- 39:59Speaker 2: multiple times and get the same result, LDF changes the
- 40:03Speaker 2: live system with every action. You can't perfectly recreate the
- 40:07Speaker 2: state later, so.
- 40:08Speaker 1: The documentation becomes even more critical.
- 40:10Speaker 2: Absolutely paramount that documentation. The ACPO audit trail becomes the
- 40:15Speaker 2: only way to verify the process, to show what was done,
- 40:18Speaker 2: when and why, because you can't simply rerun the experiment.
- 40:21Speaker 1: Okay, And then there's the elephant in the room for
- 40:23Speaker 1: any digital investigation today. Encryption. It's fantastic for user privacy obviously,
- 40:29Speaker 1: but it can be a massive hurdle, sometimes a complete
- 40:32Speaker 1: dead end for an investigation.
- 40:34Speaker 2: Encryption really is the classic double edged sword. It protects
- 40:37Speaker 2: legitimate users privacy and security, which is essential, but it
- 40:41Speaker 2: equally protects criminal communications and data from investigators if they
- 40:44Speaker 2: can't get the keys.
- 40:46Speaker 1: Are there any proposed solutions?
- 40:47Speaker 2: Well, Ideas like key escro systems have been proposed, where
- 40:52Speaker 2: decryption keys would perhaps be held by a trusted third
- 40:55Speaker 2: party under specific legal conditions, but these face huge technical
- 40:59Speaker 2: and ethical challenges. For one, criminals could simply choose to
- 41:03Speaker 2: use other encryption software or methods that aren't part of
- 41:06Speaker 2: the escrosystem. And second, there are massive privacy concerns about
- 41:10Speaker 2: governments or other entities having potential access to everyone's encrypted data.
- 41:15Speaker 2: It's a really difficult balance.
- 41:16Speaker 1: So we're kind of back to square one on that.
- 41:18Speaker 2: In many ways, and many ways yes, it remains a
- 41:21Speaker 2: major challenge and finally sort of tying a lot of
- 41:23Speaker 2: this together, there's a significant ongoing need for better standardization
- 41:27Speaker 2: and tool testing in the field, meaning developing standardized TORBA
- 41:31Speaker 2: basically large, well defined data sets of known digital evidence
- 41:35Speaker 2: containing specific artifacts. These could then be used to rigorously
- 41:39Speaker 2: test and validate the accuracy and reliability of different forensic
- 41:43Speaker 2: tools and techniques. Having such standard test sets would greatly
- 41:47Speaker 2: increase their acceptance in the courts and build more confidence
- 41:50Speaker 2: in forensic findings overall because results could be consistently replicated
- 41:53Speaker 2: and verified across different tools and laps.
- 41:56Speaker 1: Wow, what a journey that was. We've really delved deep
- 41:59Speaker 1: into the hit and structures of file systems, haven't we
- 42:02Speaker 1: From the absolute basics of bits and bytes, through the
- 42:05Speaker 1: intricate designs of different operating system formats like ntfs and
- 42:09Speaker 1: XT four and apfs, and then explore the cutting edge
- 42:12Speaker 1: techniques investigators use to try and uncover digital truths from
- 42:16Speaker 1: all that complexity. It's a world that is just constantly,
- 42:18Speaker 1: constantly changing.
- 42:19Speaker 2: It really is. The evolution is relentless. Every new app,
- 42:23Speaker 2: every new device, every new way we interact digitally, it
- 42:26Speaker 2: creates new challenges, but also potentially new opportunities for digital forensics.
- 42:30Speaker 2: And as that digital world keeps expanding, so does this
- 42:33Speaker 2: invisible landscape of information hidden beneath our everyday interactions. It's
- 42:38Speaker 2: honestly a constant race just to keep up to understand
- 42:41Speaker 2: the new hidden languages that are always emerging.
- 42:44Speaker 1: So here's something to think about as we wrap up.
- 42:47Speaker 1: Given how deeply digital evidence now intertwines with almost every
- 42:51Speaker 1: aspect of our lives, how might our growing understanding of
- 42:54Speaker 1: these invisible file systems the stuff we talked about today,
- 42:58Speaker 1: How might that reshape the very definition of truth in
- 43:00Speaker 1: a modern investigation? And maybe more intriguingly, what new hidden languages,
- 43:05Speaker 1: what new forms of digital evidence might emerge next that
- 43:07Speaker 1: will challenge even our current forensic capabilities. Think about that
- 43:11Speaker 1: for a moment. This knowledge isn't just for the tech
- 43:13Speaker 1: experts or the investigators. It's really about understanding the very
- 43:17Speaker 1: fabric of our digital existence and how those unseen layers
- 43:20Speaker 1: can reveal or sometimes conceal, the most profound stories of
- 43:24Speaker 1: our time.