Latest / CyberCode Academy / Course 22 - Digital Forensics: RAM Extraction Fundamentals | Episode 5: Forensic Access and RAM Extraction with Inception
Transcript
- 0:00Speaker 1: I want you to picture a scenario. It's a classic
- 0:04Speaker 1: locker room mystery, but it's purely digital. Okay, you're a
- 0:07Speaker 1: forensic analyst. You've just arrived on site, or maybe you're
- 0:10Speaker 1: back in the lab and they hand you a laptop.
- 0:13Speaker 1: And this isn't just any laptop. It belongs to a
- 0:15Speaker 1: major suspect. It's the Holy Grail. It's sitting right there,
- 0:20Speaker 1: powered on. You can hear the fan humming, the little
- 0:23Speaker 1: lightest flickering. You know with absolute certainty that inside its
- 0:27Speaker 1: temporary memory, the RAM is the key evidence.
- 0:30Speaker 2: Could be anything, decryption, keys, chat logs.
- 0:33Speaker 1: Exactly, stuff that was never saved to the disc. It's
- 0:36Speaker 1: just floating in there. But you have one massive glaring problem.
- 0:41Speaker 2: You're staring at a log D screen.
- 0:43Speaker 1: Exactly, a password prompt blinking cursor just sitting there mocking you.
- 0:47Speaker 1: And here's the real dilemma, and it's a painful one.
- 0:49Speaker 1: You obviously don't know the password. But you also can't
- 0:52Speaker 1: just pull the plug, right, You.
- 0:54Speaker 2: Can't force a restart. That's the fundamental volatility problem.
- 0:58Speaker 1: Unpacked that a little volatility.
- 1:00Speaker 2: So if you restart that machine, you cut the power
- 1:02Speaker 2: to the RAM, and RAM is volatile. Memory. The second
- 1:05Speaker 2: the power is gone, all that data just.
- 1:09Speaker 1: Vanishes, like burning the documents you're trying to read.
- 1:12Speaker 2: Precisely, you've destroyed the crime scene just by trying to
- 1:15Speaker 2: get in the door.
- 1:16Speaker 1: You're stuck. You to get past that lock screen to
- 1:19Speaker 1: save the data in the RAM, but the lock screen
- 1:21Speaker 1: is stopping you. It's a classic catch twenty two unless
- 1:26Speaker 1: you know a little trick.
- 1:27Speaker 2: It definitely feels like magic when you see it happen,
- 1:30Speaker 2: but it's actually a fascinating quirk of hardware. It's a
- 1:33Speaker 2: forensic technique using a tool called inception.
- 1:36Speaker 1: And that's what we're going to dive into today. We're
- 1:39Speaker 1: going to walk through how to bypass a password on
- 1:41Speaker 1: a live running system, trick it into letting you in,
- 1:44Speaker 1: and do it all without leaving a permanent mark on
- 1:46Speaker 1: the hard drive.
- 1:47Speaker 2: Well, let's get into it.
- 1:48Speaker 1: First. Off, that name inception. You can't help but think
- 1:51Speaker 1: of the movie right Entering Dreams, planting ideas. Is that
- 1:55Speaker 1: just a clever name or is there a real technical parallel.
- 1:58Speaker 2: Oh, the name is very intentional and it's actually pretty accurate.
- 2:01Speaker 2: If you think about the movie's plot. They go into
- 2:04Speaker 2: someone's mind to plant a single idea a seed that
- 2:08Speaker 2: changes their reality. Right, Well, this tool does the digital equivalent.
- 2:12Speaker 1: Of that, but instead of a dream, we're talking about Yeah,
- 2:15Speaker 1: what the computer's memory exactly.
- 2:17Speaker 2: The tool targets the computer's volatile memory. It plants a seed,
- 2:22Speaker 2: which is really a small patch of code that tricks
- 2:25Speaker 2: the operating system's logic.
- 2:26Speaker 1: How does it trick it?
- 2:28Speaker 2: It basically tells the kernel, Hey, you know that password
- 2:30Speaker 2: the user just typed the one it's totally wrong. Yeah,
- 2:33Speaker 2: that's actually the right one.
- 2:34Speaker 1: Wait. So it doesn't find the real password. It doesn't
- 2:37Speaker 1: like crack it no.
- 2:39Speaker 2: And that is a huge distinction for anyone in cybersecurity.
- 2:42Speaker 2: Cracking can take forever. This doesn't care what the real
- 2:44Speaker 2: password is. It could be one twenty three or a
- 2:47Speaker 2: sixty four character nightmare. It modifies the part of the
- 2:50Speaker 2: system that checks the password.
- 2:52Speaker 1: That's wild. So it just accepts anything you type.
- 2:55Speaker 2: Anything you could type abc, you could type open sesame.
- 2:59Speaker 2: The system logic has been changed to always say, yep,
- 3:01Speaker 2: that's correct, you're not picking the lock. You're convincing the
- 3:04Speaker 2: doorman you're on the list.
- 3:05Speaker 1: Okay. That is incredibly powerful. But before we get to
- 3:08Speaker 1: the how the software, let's talk about the where I'm
- 3:12Speaker 1: guessing I can't just do this on any laptop in
- 3:14Speaker 1: the world with a USB mouse right. There has to
- 3:17Speaker 1: be a specific vulnerability, correct.
- 3:20Speaker 2: And this isn't a bug in Windows or mac os.
- 3:22Speaker 2: It's a feature of the hardware itself. The exploit relies
- 3:27Speaker 2: on something called DMA.
- 3:29Speaker 1: DMA direct memory access. I see that on spec sheets.
- 3:32Speaker 1: It's usually sold as a good thing, a feature for speed.
- 3:34Speaker 2: It is a good thing for efficiency. Normally, the CPU,
- 3:38Speaker 2: the processor is like a really strict bouncer. It checks
- 3:41Speaker 2: every piece of data coming in from your keyboard, a
- 3:43Speaker 2: USB drive.
- 3:44Speaker 1: Everything goes through the boss exactly.
- 3:46Speaker 2: But some high speed connections, like for video editing, they
- 3:49Speaker 2: need to move data so fast they can't wait for
- 3:51Speaker 2: the CPU. They need like a VIP entrance directly into
- 3:54Speaker 2: the system's memory. They get to skip the line, They
- 3:56Speaker 2: skip the CPU entirely. They access RAM directly. Direct memory
- 4:01Speaker 2: access FireWire was the big one, and now Thunderbolt. These
- 4:04Speaker 2: ports can read and write to memory without the OS
- 4:07Speaker 2: even really knowing.
- 4:08Speaker 1: So that convenience feature is also a massive security hole.
- 4:11Speaker 2: For a consumer, it's convenience. For a forensic analyst, it's
- 4:15Speaker 2: an open door to use inception. The target machine must
- 4:19Speaker 2: have a FireWire or a thunderbolt port, and your machine,
- 4:23Speaker 2: the forensic system needs one too, so you can connect them.
- 4:25Speaker 1: Okay, that's where it gets confusing with new laptops. Though
- 4:28Speaker 1: I see a USBC port that oval shape, Does that
- 4:31Speaker 1: mean it's vulnerable because USBC is just the plug, right.
- 4:34Speaker 2: That's a great point and a huge source of confusion.
- 4:37Speaker 2: USBC is just the connector. You have to look at
- 4:39Speaker 2: the little symbol next to the port. If it's just
- 4:41Speaker 2: the normal USB symbol, you're probably safe. But if you
- 4:44Speaker 2: see that little lightning bolt, that's thunderbolt. That's thunderbol that
- 4:47Speaker 2: has DMA, that is your way in.
- 4:49Speaker 1: So if I have a super modern laptop with only
- 4:52Speaker 1: basic USBC ports, or an old one with just USB
- 4:55Speaker 1: two point zero, this is a no go.
- 4:57Speaker 2: Correct. The exploit needs that physical path. If it doesn't exist,
- 5:01Speaker 2: you can't do it.
- 5:02Speaker 1: All Right, So we've got the concept planting an idea
- 5:05Speaker 1: in memory, we've got the hardware DMA port. Let's talk
- 5:08Speaker 1: about the toolkit. Do I need to go buy some
- 5:11Speaker 1: expensive proprietary software for this?
- 5:13Speaker 2: Not at all? And that's the beauty of the forensics community.
- 5:16Speaker 2: We're going to be using a suite called Paladin.
- 5:18Speaker 1: Paladin sounds like something out of Dungeons and Dragons.
- 5:21Speaker 2: It does, but it's a serious, industry standard tool. It's
- 5:25Speaker 2: a free forensic suite from a group called sum Uri,
- 5:29Speaker 2: and it's incredibly easy to get. You just download an isophile,
- 5:32Speaker 2: burn it to a USB drive, and you've got a
- 5:34Speaker 2: whole forensic lab in your pocket.
- 5:36Speaker 1: So just a picture. I've got my laptop, a USB
- 5:39Speaker 1: stick with Paladin on it in a thunderbolt cable. That's
- 5:41Speaker 1: the whole load out.
- 5:42Speaker 2: That's your loadout, and Paladin has tons of tools, but
- 5:45Speaker 2: for this mission, we're just pulling out the inception blade.
- 5:47Speaker 1: Okay, let's walk through it. I want to really picture
- 5:49Speaker 1: this step by stet. I'm there. I have the log
- 5:52Speaker 1: target computer and my forensic laptop. What's step one?
- 5:55Speaker 2: Step one is booting your environment. You take that Paladin USB,
- 6:00Speaker 2: plug it into your machine, not the target, and you
- 6:02Speaker 2: boot from it. It's called a live boot.
- 6:04Speaker 1: And just to be clear, that's not installing anything on
- 6:07Speaker 1: my laptop.
- 6:08Speaker 2: Nope, you're running the whole operating system right off the
- 6:11Speaker 2: USB stick. It's a clean environment. When it boots up,
- 6:15Speaker 2: you'll see a pretty standard looking desktop, you'll find a
- 6:18Speaker 2: menu for forensics.
- 6:19Speaker 1: Tools easy enough.
- 6:20Speaker 2: Inside there, you navigate to memory analysis, and right there
- 6:24Speaker 2: in the list you'll see inception.
- 6:26Speaker 1: Sounds almost too simple. You just click on it. You can.
- 6:29Speaker 2: Yeah, it'll open a terminal window. But here's a pro tip,
- 6:33Speaker 2: and it's a crucial one for anyone learning this stuff.
- 6:35Speaker 2: You need privileges.
- 6:37Speaker 1: Right. You can't just be a standard user.
- 6:38Speaker 2: Now you're trying to hijack hardware. You can't do that
- 6:41Speaker 2: as a guest. You need to be root.
- 6:43Speaker 1: You need to be the boss.
- 6:44Speaker 2: You need to be the boss. So before you do anything,
- 6:47Speaker 2: you open a terminal and type pseudo S. That's su
- 6:51Speaker 2: do space dash S.
- 6:54Speaker 1: And what does that do for people new to the
- 6:56Speaker 1: command line?
- 6:56Speaker 2: It escalates your privileges to super user. You'll see the
- 7:00Speaker 2: prompt change from like a dollar sign to a hashtag.
- 7:03Speaker 2: That means you've got god mode on your own machine,
- 7:05Speaker 2: which you need to control that thunderbolt port.
- 7:08Speaker 1: Okay, I'm root. The terminal's open. Now for the physical part.
- 7:14Speaker 2: Right now, you physically connect the two machines. You take
- 7:16Speaker 2: your thunderbolt cable, plug one in into your forensic machine
- 7:20Speaker 2: and the other into the locked target machine.
- 7:23Speaker 1: Does the target react like, does a new device pop
- 7:26Speaker 1: up appear?
- 7:27Speaker 2: Usually no, And that's what's so scary about it. Because
- 7:29Speaker 2: of DMA, the OS on the target might not even
- 7:32Speaker 2: register that anything was plugged in. It just keeps humming along,
- 7:36Speaker 2: totally unaware. A bridge has been built right into its brain.
- 7:39Speaker 1: That is deeply unsettling. Okay, cables connected back to my screen?
- 7:43Speaker 1: What do I type?
- 7:44Speaker 2: The command is simply incept, just insect just incept, hit enter.
- 7:48Speaker 2: The tool starts up. Now it needs a little help.
- 7:51Speaker 2: It will stand the connection and ask you to identify
- 7:54Speaker 2: the operating system.
- 7:55Speaker 1: So it'll ask me if it's Windows or a MAC.
- 7:57Speaker 2: Yep, It'll give you a list like press one for
- 7:59Speaker 2: Windows eight, press two for Windows seven, press five for MACOSX,
- 8:03Speaker 2: something like that.
- 8:04Speaker 1: What if I don't know, I'm just looking at a
- 8:05Speaker 1: locked screen.
- 8:06Speaker 2: You can usually make an educated guess from the look
- 8:08Speaker 2: of the login screen. But and this is important, this
- 8:11Speaker 2: is where the risk is.
- 8:12Speaker 1: What happens if I guess wrong? I tell it is
- 8:15Speaker 1: a MAC when it's a PC.
- 8:16Speaker 2: If you pick the wrong one, the tool might try
- 8:18Speaker 2: to patch the wrong place and memory. And if you
- 8:21Speaker 2: write garbage data into a critical part of the kernel.
- 8:25Speaker 2: The system will crash, the blue screen of death exactly,
- 8:28Speaker 2: or kernel panic on a Mac. The target machine reboots
- 8:31Speaker 2: and poof, all that evidence in RAM is gone forever.
- 8:35Speaker 1: Well, high stakes, you really have to be careful. You do.
- 8:39Speaker 2: But let's say you get it right. You select the
- 8:40Speaker 2: right number.
- 8:41Speaker 1: You hit enter, and what do I see? Describe the
- 8:43Speaker 1: drama for me?
- 8:44Speaker 2: It's actually really cinematic. For just text. You'll see a
- 8:47Speaker 2: line pop up that says DMA shields are down.
- 8:50Speaker 1: No way, DMA shields are down. That's straight out of
- 8:52Speaker 1: a sci fi movie. I love that.
- 8:54Speaker 2: It's great. Right, then it'll say attacking. You'll see a
- 8:56Speaker 2: little progress bar ticking up. This is the moment. It's
- 8:59Speaker 2: in ject that code, searching for the exact spot in
- 9:02Speaker 2: memory that handles password validation. Just overwriting that logic, and
- 9:06Speaker 2: when it finishes, you get the golden message, Patch verified successful.
- 9:11Speaker 1: Patch verified. So at this exact moment, the idea has
- 9:14Speaker 1: been planted, The target is inceptioned.
- 9:17Speaker 2: Correct, the memory is altered, the lock is broken, even
- 9:20Speaker 2: though the screen on the target machine looks.
- 9:22Speaker 1: Exactly the same. Okay, Step four the breach. What's next?
- 9:26Speaker 2: You unplug the cable. Don't need it anymore. You turn
- 9:28Speaker 2: away from your machine and you face the target laptop.
- 9:31Speaker 2: You're looking at that same password.
- 9:33Speaker 1: Prompt, the one I couldn't get passed before.
- 9:35Speaker 2: And now you type anything, literally anything anything password twelve
- 9:40Speaker 2: threety four let me in doesn't matter. The part that
- 9:42Speaker 2: checks it has been patched to always say true.
- 9:45Speaker 1: So I type podcast rules, I hit.
- 9:48Speaker 2: Enter, and what and the desktop loads. You're in. If
- 9:52Speaker 2: you attacked an admin account's login prompt, you're now logged
- 9:55Speaker 2: in as the admin. Full control.
- 9:57Speaker 1: That is just so effective, it feels almost too easy.
- 10:01Speaker 1: But and this is a big but, what happens if
- 10:04Speaker 1: I reboot machine?
- 10:05Speaker 2: Then the magic spell breaks? Remember this all happened in
- 10:08Speaker 2: RAM volatile memory. We never touched the hard drive. We
- 10:11Speaker 2: didn't change the actual password file.
- 10:13Speaker 1: So if I reboot, the original password is back exactly.
- 10:16Speaker 2: The system reloads the original unpatched code from the disc.
- 10:20Speaker 2: Your podcast rules password won't work anymore.
- 10:22Speaker 1: That brings up a critical point. Then the goal isn't
- 10:25Speaker 1: just to get in, it's to save that data. So
- 10:28Speaker 1: once I'm in, what's the first move?
- 10:31Speaker 2: Triage and preservation? First, you make sure the computer doesn't
- 10:35Speaker 2: go to sleep. Wiggle the mouse, change the power settings.
- 10:39Speaker 2: Then you plug in a separate drive and run a
- 10:42Speaker 2: tool to dump the entire contents of RAM to a file.
- 10:45Speaker 1: You're saving the state of the brain exactly.
- 10:47Speaker 2: You capture the RAM, then you can start looking for
- 10:49Speaker 2: the evidence. You've opened the doors just long enough to
- 10:52Speaker 2: save everything inside before the house gets demolished.
- 10:54Speaker 1: This is so powerful, but I can't help but feel
- 10:57Speaker 1: like we're well, you're hacking.
- 10:59Speaker 2: I mean, technically you are. It's a direct memory access exploit.
- 11:02Speaker 2: You're using a hardware vulnerability to bypass authentication.
- 11:06Speaker 1: So if I'm a professional, just knowing how to type
- 11:08Speaker 1: incept isn't enough, right, I have to be able.
- 11:11Speaker 2: To defend this absolutely. In forensics, validation is everything. You
- 11:15Speaker 2: can't just use a tool and say, well, the podcast
- 11:17Speaker 2: told me it works.
- 11:17Speaker 1: So what does validation look like?
- 11:19Speaker 2: Practice and documentation. You set up a test lab, you
- 11:22Speaker 2: get a spare laptop, you password protect it, and you
- 11:25Speaker 2: break into it yourself. You document every step, you prove
- 11:29Speaker 2: you know what the tool is doing.
- 11:30Speaker 1: Why is that so important?
- 11:32Speaker 2: It's about being able to defend your actions in court.
- 11:35Speaker 2: A defense attorney will ask did you hack my client's computer?
- 11:40Speaker 2: You need to be able to explain I used a
- 11:42Speaker 2: validated forensic procedure to preserve volatile evidence that would have
- 11:47Speaker 2: otherwise been lost.
- 11:48Speaker 1: Yeah, there's another layer too, forensic integrity. We said we
- 11:51Speaker 1: patched the memory. That means we changed the evidence.
- 11:54Speaker 2: That's a very sharp observation. The golden rule of forensics
- 11:57Speaker 2: is do no harm. But inception works by act of
- 12:00Speaker 2: writing to memory, So.
- 12:01Speaker 1: We are contaminating the crime scene in a way.
- 12:04Speaker 2: Yes, it's a necessary trade off. You're altering the ram
- 12:06Speaker 2: in order save the ram. The key is transparency. You
- 12:09Speaker 2: have to document it.
- 12:10Speaker 1: If you have to leave a note saying I.
- 12:12Speaker 2: Was here exactly in your report you state I used
- 12:16Speaker 2: inception to gain access. That way, if another analyst sees
- 12:19Speaker 2: weird artifacts in the memory dump, they know it was
- 12:21Speaker 2: your entry method, not something the suspect did.
- 12:24Speaker 1: It's just fascinating how fragile this can all be. We
- 12:27Speaker 1: think of our passwords as these iron gates, but if
- 12:29Speaker 1: the hardware has a side door, the gate doesn't even matter.
- 12:33Speaker 2: That's the huge takeaway for anyone learning this stuff. Security
- 12:36Speaker 2: is all about layers. A strong password is a great layer,
- 12:40Speaker 2: but physical security is layer one. If I can touch
- 12:43Speaker 2: your machine and it has the right port I might
- 12:46Speaker 2: be able to bypass all your software protection.
- 12:48Speaker 1: Okay, let's do a quick review question before we wrap up.
- 12:51Speaker 1: I want to see if everyone was paying attention. Let's
- 12:53Speaker 1: do it all right. Here's the scenario. You're in the lab,
- 12:55Speaker 1: use inception on a laptop. It works, patch verified, You
- 12:59Speaker 1: unplug the cable, You type podcast rules, and you're in
- 13:02Speaker 1: desktop is active. So far, so good, But then you
- 13:05Speaker 1: have to move the laptop, so you shut it down
- 13:07Speaker 1: completely and get to the new location. You power it
- 13:10Speaker 1: back on. The login screen appears and you type podcast rules.
- 13:14Speaker 1: The question is does it unlock?
- 13:17Speaker 2: I hope everyone is shouting no at their speakers right now.
- 13:20Speaker 1: The answer is absolutely not.
- 13:23Speaker 2: Nope, because you shut it down. That patch only existed
- 13:26Speaker 2: in volatile memory. When you cut the power, the seed
- 13:30Speaker 2: we planted was gone. The computer reloaded its original instructions
- 13:33Speaker 2: from the hard drive. You're locked out again, and if you.
- 13:36Speaker 1: Hadn't dumped the RAM before you shut it down, you
- 13:38Speaker 1: lost your chance.
- 13:39Speaker 2: All that evidence is gone forever.
- 13:42Speaker 1: It really hammers home the volatile part of volatile memory.
- 13:46Speaker 1: It's a fleeting chance.
- 13:47Speaker 2: It is, and it leaves you with a final provocative thought.
- 13:50Speaker 2: We all trust a lock screen we see that password field,
- 13:53Speaker 2: and we feel secure. But of a simple cable and
- 13:56Speaker 2: a free piece of software can whisper a lie into
- 14:00Speaker 2: your computer's memory and make it open right up. How
- 14:03Speaker 2: secure is your machine really as long as it's left running.
- 14:07Speaker 1: Something to think about next time you walk away from
- 14:08Speaker 1: your desk. Thanks for listening to this deep dive.
- 14:11Speaker 2: Stay curious,