Latest / CyberCode Academy / Course 22 - Digital Forensics: RAM Extraction Fundamentals | Episode 3: Comparing Belkasoft and Magnet Tools
Transcript
- 0:00Speaker 1: I want you to picture a crime scene for a moment,
- 0:02Speaker 1: but not the usual kind. No yellow tape, no broken glass,
- 0:07Speaker 1: just a quiet office. There's a laptop on a desk.
- 0:11Speaker 1: It's on. You can hear the fan worrying. Now, to
- 0:14Speaker 1: most people that's just a computer, but to a digital investigator,
- 0:17Speaker 1: that machine is a ticking time ball. It really is.
- 0:20Speaker 2: It's probably the single most stressful moment in an investigation
- 0:23Speaker 2: because inside that machine, at that very second, there's a ghost.
- 0:27Speaker 1: A ghost. Okay, I'm intrigued.
- 0:28Speaker 2: Well, that's what we call it. We're talking about volatile memory,
- 0:31Speaker 2: the RAM. It's the ghost because it only exists as
- 0:34Speaker 2: long as there's power. Right now, that RAM could be
- 0:37Speaker 2: holding everything passwords, encryption keys, open chat windows, even active malware.
- 0:43Speaker 2: It's all just floating there.
- 0:44Speaker 1: The catch is the second you pull the plug, poof,
- 0:46Speaker 1: it's gone.
- 0:47Speaker 2: Gone for good. It's not like a hard drive where
- 0:50Speaker 2: you can recover deleted files. With RAM. Once the power
- 0:53Speaker 2: is cut, the data just vanishes. There's no undelete button.
- 0:57Speaker 1: Which sets the stage perfectly for today's deep dive. Our
- 1:01Speaker 1: mission is how do we catch that ghost. We're going
- 1:05Speaker 1: to get into the weeds. You know, the actual tools
- 1:07Speaker 1: and tactics for capturing RAM from a live computer. And
- 1:10Speaker 1: we're going to put two specific tools head to head.
- 1:13Speaker 2: We are in one corner we've got Belkasov's live RAM
- 1:16Speaker 2: capture and in the other the Magnet RAM capture tool.
- 1:20Speaker 1: So let's put you the listener in the scenario. You're
- 1:24Speaker 1: the investigator. You've got your USB drive in hand, the
- 1:27Speaker 1: suspects computer is running. You might only have a few minutes.
- 1:29Speaker 1: You have to pick one. Which tool do you use?
- 1:31Speaker 2: And the answer, which might be frustrating, is it depends.
- 1:35Speaker 2: It really depends on what you're more scared of in
- 1:37Speaker 2: that moment, running out of time or messing with the evidence.
- 1:40Speaker 1: Okay, let's dive into that contender. Number one, Belkasoft. This
- 1:43Speaker 1: one feels like it's built for stealth.
- 1:45Speaker 2: Oh absolutely, I call Belkasof the silent scout. The whole
- 1:48Speaker 2: idea behind it is minimalism. The tool itself is tiny.
- 1:51Speaker 2: You just, you know, put it on your USB collection
- 1:53Speaker 2: drive and this is key. You run it from that
- 1:56Speaker 2: USB drive.
- 1:57Speaker 1: Right because you never ever want to install anything on
- 1:59Speaker 1: this suspects computer itself, do you?
- 2:01Speaker 2: No? Never? That's like the prime directive of digital forensics.
- 2:05Speaker 2: Do as little harm as possible. If you run an installer,
- 2:08Speaker 2: you're just stomping all over the crime scene. So a
- 2:10Speaker 2: tool like this comes as a portable executable. You'll see
- 2:13Speaker 2: a thirty two bit version and a sixty four bit.
- 2:16Speaker 1: One, and you just match it to the machine you're
- 2:17Speaker 1: looking at. So, okay, I double clicked the sixty four
- 2:19Speaker 1: bit one. What happens? Am I getting a bunch of
- 2:22Speaker 1: crazy matrix style code?
- 2:24Speaker 2: You'd probably be a little disappointed. Then it's incredibly simple,
- 2:28Speaker 2: and I mean that in a good way. A small
- 2:30Speaker 2: gray box just pops up, no graphics. It just tells you, hey,
- 2:34Speaker 2: this machine has sixteen gigs of RAM.
- 2:37Speaker 1: I could appreciate that when your heart's pounding. You don't
- 2:39Speaker 1: want to be fumbling.
- 2:40Speaker 2: Through menus exactly, and its default setting tells you everything
- 2:44Speaker 2: you need to know about its philosophy. It automatically saves
- 2:47Speaker 2: the captured memory file to the same folder you're running.
- 2:49Speaker 1: The tool from, so straight out to my USD drive right.
- 2:52Speaker 2: It's designed to keep everything off the suspects machine. You
- 2:55Speaker 2: just click capture. It names the file with the timestamp
- 2:59Speaker 2: and saves it as a dot.
- 3:00Speaker 1: Memphile, And a dot memphile is just a raw dump right.
- 3:04Speaker 2: Yep, it's a bit for bitcopy. It's the universal standard.
- 3:07Speaker 2: Any analysis tool can read it.
- 3:09Speaker 1: Okay, that all sounds pretty straightforward. But you called it
- 3:11Speaker 1: the silent scout. What's so silent about it? You mentioned
- 3:14Speaker 1: something about its footprint.
- 3:15Speaker 2: Ah, yes, this is the aha moment for Belkasoft. We
- 3:20Speaker 2: have to talk about the observer effect.
- 3:22Speaker 1: That's the idea that just by measuring something you actually
- 3:25Speaker 1: change it.
- 3:26Speaker 2: Precisely. Let's use an analogy. Imagine a backtub filled right
- 3:29Speaker 2: to the very brim with water. That water is the
- 3:32Speaker 2: computer's ram. Now, if you want to capture some of
- 3:34Speaker 2: that water, you have to stick a cup in it.
- 3:36Speaker 2: But the second you put the cup in, what happens.
- 3:39Speaker 1: Some water spills out.
- 3:40Speaker 2: Exactly the cup displaces some of the water. In our case,
- 3:43Speaker 2: the cup is the forensic tool to capture the ram.
- 3:46Speaker 2: The tool itself has to use some ram to run,
- 3:49Speaker 2: so by definition, you are overriding a little bit of
- 3:52Speaker 2: the evidence just by being there.
- 3:54Speaker 1: So the goal is to use the smallest possible cup.
- 3:56Speaker 2: The smallest cup you want to be a ninja, and
- 3:59Speaker 2: Belkasoft is that ninja. In our tests. The memory footprint,
- 4:02Speaker 2: the amount of ran the tool itself used was between
- 4:05Speaker 2: five hundred and seventy two kilobytes and zero point seven megabytes.
- 4:09Speaker 1: Zero point seven megabytes. That's that's nothing. I mean a
- 4:12Speaker 1: blank text file is probably bigger than that.
- 4:14Speaker 2: It's microscopic. So when you're in court and some defense
- 4:17Speaker 2: experts says you contaminated the evidence, you can say I
- 4:21Speaker 2: altered less than point zero zero one percent of the system.
- 4:25Speaker 2: That's a powerful statement.
- 4:26Speaker 1: Okay, so it's the purest's choice. It's super stealthy. Yeah,
- 4:30Speaker 1: but there's always a butt. What's the trade off here?
- 4:34Speaker 2: The trade off is time. Ninjas are careful, and careful
- 4:37Speaker 2: is slow.
- 4:38Speaker 1: So let's look at the numbers. The test case had
- 4:40Speaker 1: nine gigabytes of RAM. How long did our little ninja.
- 4:43Speaker 2: Take It took about twenty five minutes.
- 4:46Speaker 1: Twenty five minutes.
- 4:47Speaker 2: Yeah, and sitting here, that sounds fine, But when you're
- 4:49Speaker 2: on site, maybe the suspect is just in the next room,
- 4:52Speaker 2: twenty five minutes feels like an eternity.
- 4:53Speaker 1: You're just sweating, staring at a progress bar.
- 4:56Speaker 2: It's agonizing. So while it's fantastic for evidence integrity, that's
- 5:00Speaker 2: is a real tactical problem.
- 5:01Speaker 1: Before we move on, I want to touch on something
- 5:03Speaker 1: you mentioned applies to both tools. This idea of kernel mode,
- 5:07Speaker 1: what is that? Why can't they just run like a
- 5:09Speaker 1: normal app.
- 5:10Speaker 2: That's a great question. Modern computers have these rings of privilege.
- 5:15Speaker 2: Ring three is user mode where your normal apps live.
- 5:18Speaker 2: They're sandbox. They have limits. Your web browser can't just
- 5:22Speaker 2: peek into your password manager's memory. That would be a
- 5:24Speaker 2: security nightmare.
- 5:25Speaker 1: Right, user mode is safe, but it's restricted exactly.
- 5:29Speaker 2: But a forensic tool needs to see everything. It needs
- 5:32Speaker 2: to read the whole system. To do that, it has
- 5:35Speaker 2: to get special permission to run in Ring zero kernel mode.
- 5:39Speaker 2: It basically gets the master keys to the whole operating system.
- 5:43Speaker 1: That sounds a little.
- 5:44Speaker 2: Risky, it's incredibly risky. If a normal app crashes, oh well,
- 5:47Speaker 2: the app closes. If a kernel mode driver crashes.
- 5:50Speaker 1: Goose screen of death.
- 5:51Speaker 2: The whole system goes down instantly. And if the system crashes,
- 5:54Speaker 2: the power cuts to the RAM and your ghost is gone.
- 5:57Speaker 1: So you're basically performing open heart surgery one wrong and
- 6:00Speaker 1: it's over.
- 6:00Speaker 2: That's a perfect way to put it. It's why you
- 6:02Speaker 2: have to use professional, well tested tools.
- 6:04Speaker 1: Okay, with that risk in mind, let's bring in the challenger.
- 6:07Speaker 1: We've seen the ninja. Now let's look at Magnet forensics.
- 6:10Speaker 2: Right. Magnet RAM capture is well, it's built with a
- 6:14Speaker 2: different goal in mind. It's still portable runs from your USB,
- 6:17Speaker 2: but right away you notice it's a bit different.
- 6:20Speaker 1: A little more polish.
- 6:20Speaker 2: Maybe it's more of a heavy hitter. It gives you
- 6:23Speaker 2: more options. For one, you can actually tell it where
- 6:25Speaker 2: to save the file. You can set a custom path.
- 6:28Speaker 1: Which is a nice little feature I guess it is.
- 6:30Speaker 2: But the killer feature, the one that makes Magnet an
- 6:33Speaker 2: essential part of the toolkit, is its ability to split
- 6:36Speaker 2: the image.
- 6:37Speaker 1: Splitting. Okay, that sounds kind of boring, but I have
- 6:40Speaker 1: a feeling it's a huge deal.
- 6:41Speaker 2: Oh it's a lifesaver. Magnet lets you chop the memory
- 6:44Speaker 2: image up into smaller chunks.
- 6:46Speaker 1: Why would I want a bunch of small files instead
- 6:48Speaker 1: of one big.
- 6:48Speaker 2: One file systems. This is a detail that trips up
- 6:51Speaker 2: a ton of new investigators. A lot of USB drives,
- 6:54Speaker 2: especially older ones you might just grab in a hurry,
- 6:57Speaker 2: are formatted with something called fat thirty two.
- 7:00Speaker 1: Ah good old fat thirty two old is the keyword.
- 7:04Speaker 2: It has a hard limit. Fat thirty two system literally
- 7:07Speaker 2: cannot handle a single file that's bigger than four gigabytes.
- 7:11Speaker 1: Oh, I see where this is going. My laptop right
- 7:13Speaker 1: now has thirty two gigs of RAM.
- 7:16Speaker 2: Exactly. If you try to dump thirty two gigs of
- 7:19Speaker 2: RAM onto that drive with Belkasoft, it will try to
- 7:22Speaker 2: write one big file, hit that four gigabyte wall and
- 7:25Speaker 2: just fail.
- 7:26Speaker 1: And you just wasted twenty five minutes to find that
- 7:28Speaker 1: out correct.
- 7:29Speaker 2: Magnet fixes this. You can tell it, hey, split this
- 7:32Speaker 2: into two gigabyte chunks. It just neatly chops up the
- 7:35Speaker 2: data so it fits on any drive. It saves them
- 7:37Speaker 2: as dmpach files, which are also standard.
- 7:40Speaker 1: That's a logitical game changer. It basically protects you from
- 7:42Speaker 1: having the wrong hardware.
- 7:44Speaker 2: It does. But let's go back to that bathtub. We
- 7:47Speaker 2: said Belkasof had a point seven megabyte footprint. How does
- 7:51Speaker 2: our heavy hitter do.
- 7:52Speaker 1: I'm guessing it's a bit heavier.
- 7:54Speaker 2: It's wearing steel toed boots, all those extra features, the
- 7:57Speaker 2: splitting logic, the nice interface that all takes up. The
- 8:00Speaker 2: footprint for Magnet was around seven to eight megabytes.
- 8:03Speaker 1: Okay, so that's literally ten times bigger it is now.
- 8:06Speaker 2: Let's be fair, eight megabytes in a thirty two gigabyte
- 8:09Speaker 2: system is still tiny, but from a purely forensic perspective,
- 8:13Speaker 2: you are altering ten times more of the crime scene.
- 8:15Speaker 1: You pay for the convenience with the bigger footprint. Okay,
- 8:18Speaker 1: but does that bigger footprint buy us anything else? What
- 8:20Speaker 1: about the speed?
- 8:21Speaker 2: And that's the other side of the coin. Magnet is fast.
- 8:24Speaker 1: Belkasoft was twenty five minutes for that nine gigabyte test.
- 8:27Speaker 2: Magnet did that same nine gigs in about ten minutes.
- 8:30Speaker 1: Wow, less than half the time.
- 8:32Speaker 2: It's a huge difference. That's fifteen minutes you get back
- 8:35Speaker 2: in a high stake situation, fifteen minutes is everything.
- 8:38Speaker 1: It's fascinating. You really can't say one is just better.
- 8:43Speaker 2: You can't. Anyone who tells you that doesn't get it.
- 8:45Speaker 2: It's about strategy. You have to read the room.
- 8:47Speaker 1: All right, Let's play a game. I'll give you a scenario.
- 8:49Speaker 1: You tell me which tool you're grabbing. Let's do it.
- 8:51Speaker 1: Scenario one, you're rating a server room in a huge
- 8:55Speaker 1: complex hacking case. The lawyers are already circling you know.
- 8:59Speaker 1: The defense is get to take apart everything you do.
- 9:01Speaker 1: Time is not an.
- 9:02Speaker 2: Issue, Belkasoft one. Why because in that scenario. My enemy
- 9:07Speaker 2: isn't the clock, it's scrutiny. I want to stand up
- 9:10Speaker 2: in court and say I use the tool with the
- 9:12Speaker 2: absolute smallest footprint possible. The extra time it takes is
- 9:16Speaker 2: nothing compared to having unassailable evidence. I need that point
- 9:20Speaker 2: seven megabyte footprint.
- 9:21Speaker 1: Okay. Scenario two, corporate job. You're in office, the suspect
- 9:25Speaker 1: just went out for a smoke. You have maybe maybe
- 9:28Speaker 1: twelve minutes before they're back at their desk.
- 9:30Speaker 2: Magnet, no question. I cannot risk getting caught because the
- 9:34Speaker 2: progress bar is only at fifty percent. I need that
- 9:37Speaker 2: data and I need to be gone in ten minutes.
- 9:39Speaker 2: I'll live with the eight megabyte footprint because the alternative
- 9:42Speaker 2: is getting nothing at all.
- 9:44Speaker 1: It really is the right tool for the right job.
- 9:46Speaker 2: Absolutely, the real pros carry both. Why would you choose?
- 9:49Speaker 1: That's a great point. Don't be a fan of one tool,
- 9:52Speaker 1: be a master the whole toolkit. Okay, before we wrap up,
- 9:55Speaker 1: let's give our listeners a little challenge, a review question.
- 9:58Speaker 1: I like it all right. Here's the scenario. You're training
- 10:01Speaker 1: a junior analyst. They have to capture thirty two gigs
- 10:04Speaker 1: of RAM from a server. They grab a USB drive
- 10:07Speaker 1: from a drawer and oh you see it's an old
- 10:09Speaker 1: one formatted with FAT thirty two. Which tool do you
- 10:12Speaker 1: tell them to use?
- 10:13Speaker 2: And why take a second think about those file systems.
- 10:17Speaker 1: What do you think?
- 10:17Speaker 2: The answer has to be magnet and the reason isn't speed.
- 10:20Speaker 2: It's the splitting capability that FAT thirty two drive has,
- 10:25Speaker 2: that hard four gigabyte file size limit. Belkasov would try
- 10:29Speaker 2: to write one giant thirty two gig file and it
- 10:32Speaker 2: would just fail. Only magnet can chop it up into
- 10:34Speaker 2: smaller pieces that will actually fit.
- 10:36Speaker 1: I hope you got that one. It's those little details
- 10:38Speaker 1: that can make or break a case.
- 10:39Speaker 2: And if I can leave you with one last thought,
- 10:41Speaker 2: it's all about that balance, right, observation versus alteration. We
- 10:45Speaker 2: know we can't measure something without changing it. The goal
- 10:48Speaker 2: isn't to be invisible, because you can't be. The goal
- 10:51Speaker 2: is just to understand your impact and to make the
- 10:53Speaker 2: most deliberate choice you can.
- 10:55Speaker 1: That's some deep stuff for digital forensics. Thanks for diving
- 10:58Speaker 1: in with us today to catch the ghost A pleasure.
- 11:00Speaker 2: See you next time,