Latest / CyberCode Academy / Course 41 - Analyzing Attacks for Incident Handlers | Episode 1: Volatile Evidence, Forensic Tools, and Investigation Procedures
Transcript
- 0:00Speaker 1: Imagine you are called in to investigate a company's network.
- 0:03Speaker 1: You walk into their security operations center and I mean
- 0:07Speaker 1: their warning bells or just ringing off the hook.
- 0:10Speaker 2: Oh yeah, total panic mode.
- 0:11Speaker 1: Exactly right, because they're seeing this highly suspicious, heavily encrypted
- 0:17Speaker 1: network traffic leaving their environment and going directly to IP
- 0:20Speaker 1: addresses in Russia.
- 0:22Speaker 2: Which is obviously a massive red flag.
- 0:25Speaker 1: Right, especially because this business has absolutely zero contacts in Russia, like,
- 0:31Speaker 1: no vendors, no clients, no reason whatsoever for this data
- 0:35Speaker 1: to be making that journey.
- 0:36Speaker 2: So you sit down at the terminal to investigate.
- 0:38Speaker 1: Yeah, you sit down and you check the standard places.
- 0:41Speaker 1: You do a forensic preview of the registry. You know,
- 0:43Speaker 1: that massive central database where Windows stores all this core
- 0:46Speaker 1: configuration setting. Sure, but it looks perfectly normal. So you
- 0:49Speaker 1: examine the files on the web server.
- 0:52Speaker 3: Nothing.
- 0:52Speaker 1: You scour the hard drive for malware signatures, looking for
- 0:56Speaker 1: like any malicious executile.
- 0:58Speaker 2: File, and let me guess, it's completely clean.
- 1:00Speaker 3: Completely clean.
- 1:01Speaker 1: There is zero suspicious activity written to the physical disc
- 1:05Speaker 1: So what do you do next?
- 1:07Speaker 2: It really is it's the ultimate locker room mystery of
- 1:10Speaker 2: the digital age, because we have the fingerprints of a crime. Right,
- 1:15Speaker 2: the data is actively leaving the building. Yeah, but there's
- 1:18Speaker 2: no weapon and no intruder on the premises, or well
- 1:22Speaker 2: at least none that you can see if you're only
- 1:23Speaker 2: looking at.
- 1:24Speaker 3: The floorboards, right.
- 1:25Speaker 1: And I feel like if you were sitting at that terminal,
- 1:28Speaker 1: your very first instinct would probably be to just pull
- 1:30Speaker 1: the plug, right, isolate the machine, image the hard drive,
- 1:34Speaker 1: and figure out what.
- 1:35Speaker 2: Happened, which is the absolute worst thing you could.
- 1:37Speaker 1: Do, exactly, because if you do that, you've just destroyed
- 1:40Speaker 1: the only evidence of the crime.
- 1:42Speaker 2: Yeah.
- 1:42Speaker 1: So okay, let's unpack this. Today we are doing a
- 1:46Speaker 1: deep dive into the art and science of memory analysis.
- 1:49Speaker 2: It is such a crucial topic.
- 1:50Speaker 3: It really is.
- 1:51Speaker 1: It's the step in incident response that honestly, most people
- 1:54Speaker 1: just forget, but it's the only way to catch modern
- 1:57Speaker 1: attackers who are smart enough to you've absolutely no trace
- 2:01Speaker 1: on a physical hard drive.
- 2:02Speaker 2: Yeah. The psychological blind spot we have in cybersecurity is
- 2:06Speaker 2: actually really fascinating because when a breach happens, the traditional
- 2:10Speaker 2: reflex is to rush in and secure the physical.
- 2:13Speaker 3: Assets, right, secure the perimeter.
- 2:16Speaker 2: Yeah, we want to do data recovery, We want to
- 2:18Speaker 2: run timeline analysis, we want to just rip out the
- 2:20Speaker 2: hard drive and image it. We focus entirely on what
- 2:24Speaker 2: is saved to the disc because that's what we're taught exactly,
- 2:27Speaker 2: but in doing so we completely ignore the active, breathing
- 2:31Speaker 2: brain of the computer.
- 2:32Speaker 3: The RAM.
- 2:33Speaker 2: Yes, the RAM attackers are totally banking on us looking
- 2:36Speaker 2: in the wrong place.
- 2:37Speaker 1: So if the hard drive is completely clean and the
- 2:40Speaker 1: malware is hiding in the memory, what exactly is the
- 2:44Speaker 1: mechanism here? I mean, how does an attack happen from
- 2:47Speaker 1: start to finish without ever writing a single file.
- 2:49Speaker 3: To the hard drive.
- 2:50Speaker 2: Well, it relies on an attack chain that operates almost
- 2:53Speaker 2: entirely in the shadows of the systems volatile memory. So
- 2:56Speaker 2: think about what happens behind the screen when a user
- 2:59Speaker 2: makes a mistake. The initial exploit usually comes in through
- 3:02Speaker 2: a very traditional vector. It could be, you know, a
- 3:06Speaker 2: highly targeted phishing email with a malicious word document attached,
- 3:10Speaker 2: or maybe someone just dropped a compromise thumb drive in
- 3:12Speaker 2: the company parking lot.
- 3:13Speaker 1: Ah, the classic trojan horse. So the user opens the
- 3:17Speaker 1: document and maybe they click you know, enable macros Right,
- 3:21Speaker 1: But wait, Traditionally, wouldn't that macro just download a virus
- 3:25Speaker 1: and save it.
- 3:25Speaker 3: To the hard drug.
- 3:26Speaker 2: That is how it used to work, but modern attacks
- 3:29Speaker 2: bypass that step entirely. So instead of downloading a malicious
- 3:32Speaker 2: executable file, that macro initiates PowerShell.
- 3:36Speaker 3: Power Show, which is already on a computer exactly.
- 3:39Speaker 2: It's a legitimate, built in framework that administrators use to
- 3:43Speaker 2: manage the system every day. And because it's a highly trusted,
- 3:47Speaker 2: digitally signed Microsoft tool, your traditional antivirus software just usually
- 3:51Speaker 2: ignores it when it launches.
- 3:53Speaker 1: Oh wow, So the intruder is basically using the security
- 3:56Speaker 1: guard's own radio to open the vault.
- 3:57Speaker 2: That's a great way to put it.
- 3:58Speaker 3: Yeah.
- 3:59Speaker 2: So then this rogue PowerShell command does something called reflective
- 4:03Speaker 2: DLL injection.
- 4:04Speaker 1: The reflective DLL injection right.
- 4:07Speaker 2: Normally, when a program wants to load a library of
- 4:10Speaker 2: code like a DLL file, it reads that file from
- 4:13Speaker 2: the hard drive into the memory. But reflective injection skips
- 4:17Speaker 2: the hard drive completely.
- 4:18Speaker 3: Wait, really, it just skips it.
- 4:20Speaker 2: Totally skips it. The PowerShell script basically asks the operating
- 4:24Speaker 2: system to allocate a block of raw empty memory. It
- 4:27Speaker 2: then reaches out to the internet, pulls down the malicious code,
- 4:31Speaker 2: and maps it directly into that empty space in the RAM.
- 4:34Speaker 1: So it basically builds the weapon entirely in mid air.
- 4:37Speaker 2: Yes, it sets a promote access, It establishes a connection
- 4:40Speaker 2: with the attackers, so in our scenario those Russian IP addresses,
- 4:43Speaker 2: and it maintains that connection entirely within the active memory space.
- 4:47Speaker 3: That is wild.
- 4:48Speaker 2: And it gets worse because once that connection is established,
- 4:51Speaker 2: the initial dropper just cleans up after itself. The malicious
- 4:54Speaker 2: macro closes, the original script terminates, and all evidence of
- 4:57Speaker 2: the initial drop is just wiped clean.
- 4:59Speaker 3: Oh man.
- 5:00Speaker 2: The only thing left running exists as an in memory payload,
- 5:03Speaker 2: and this brings us to the concept of fileus malware.
- 5:06Speaker 2: The payload exists only in volatile memory, avoiding the hard
- 5:09Speaker 2: drive entirely.
- 5:10Speaker 1: Which exposes a massive systemic problem for anyone defending a network.
- 5:14Speaker 1: I mean, if incident handlers get hyper focused on imaging
- 5:18Speaker 1: the physical disc, they just let the live memory evaporate exactly.
- 5:22Speaker 2: The industry essentially suffers from a severe case of memory loss.
- 5:26Speaker 2: We really need to start taking gink Go Bloba to
- 5:30Speaker 2: remember memory forensics, right, because if you shut down that
- 5:33Speaker 2: machine to image the hard drive, the RAM loses power
- 5:38Speaker 2: and you have literally just deleted the fileus malware yourself.
- 5:41Speaker 1: You did the hacker's job for them pretty much.
- 5:43Speaker 3: Okay, so we.
- 5:44Speaker 1: Know the malware is hiding in the RAM, the random
- 5:46Speaker 1: access memory. Right, let's break down what the computer's memory
- 5:49Speaker 1: actually is, because to catch this invisible threat, you really
- 5:52Speaker 1: have to understand the environment who lives in.
- 5:54Speaker 3: Yeah.
- 5:54Speaker 2: A helpful mental model here is to think of investigating
- 5:57Speaker 2: a compromised computer kind of like a doctor Eggs examining
- 6:00Speaker 2: a patient.
- 6:01Speaker 3: Okay, I like that.
- 6:02Speaker 2: The physical body, you know, the skeleton and the organs.
- 6:04Speaker 2: That is your hard disk, the environment, the air they
- 6:07Speaker 2: are breathing, that's the network connection, the Wi Fi.
- 6:09Speaker 3: Right.
- 6:10Speaker 2: But the RAM, the RAM is the patient's active, conscious
- 6:14Speaker 2: thought process.
- 6:15Speaker 1: It's their short term memory. Anything the computer is actively
- 6:18Speaker 1: doing right this second, moving the mouse, rendering a graphic
- 6:21Speaker 1: on the screen, downloading a file, it all has to
- 6:24Speaker 1: traverse across the RAM exactly. That means the RAM is
- 6:27Speaker 1: not just running code. It is an absolute treasure trove
- 6:31Speaker 1: of highly sensitive data.
- 6:32Speaker 2: Oh it's incredible what you can find. If you can
- 6:35Speaker 2: capture the RAM of a rating system, you can pull
- 6:37Speaker 2: active browsing history, even if the user is an incognito mode.
- 6:41Speaker 1: Wait, even incognito mode, Oh yeah.
- 6:44Speaker 2: It's in the RAM, you can also recover the contents
- 6:46Speaker 2: of the clipboard. Imagine if the user just you know,
- 6:49Speaker 2: copied and pasted a sensitive master password from their password manager.
- 6:53Speaker 1: Oh wow, but wait password during twypted it on the
- 6:56Speaker 1: hard drive though, Does capturing the memory somehow bypass that encryption?
- 6:59Speaker 2: It does? And here's why. Even if your hard drive
- 7:02Speaker 2: is fully encrypted with BitLocker, or your passwords are in
- 7:05Speaker 2: a super secure vault, the central processing unit, the CPU,
- 7:09Speaker 2: cannot perform math on encrypted gibberish.
- 7:12Speaker 3: Okay, that makes sense.
- 7:13Speaker 2: So when you type in your master password to unlock
- 7:15Speaker 2: your vault, the operating system has to actually decrypt those
- 7:18Speaker 2: credentials in the RAM to verify them. If you take
- 7:22Speaker 2: a snapshot of the memory at that exact moment, those
- 7:25Speaker 2: passwords are just sitting there in plain text.
- 7:27Speaker 1: So you're basically bypassing all the encryption just by reading
- 7:31Speaker 1: the computer's mind exactly. That is amazing. So what else
- 7:35Speaker 1: is sitting in that treasure trove?
- 7:37Speaker 2: Well, you get a list of active network sockets, which
- 7:40Speaker 2: tells you exactly what computers this machine is talking to.
- 7:44Speaker 2: You get a list of every open file user generated
- 7:47Speaker 2: content that hasn't even been saved to discet and unsaved
- 7:50Speaker 2: changes to the registry.
- 7:52Speaker 3: Wow.
- 7:52Speaker 2: But most importantly for our scenario, you get a perfect
- 7:55Speaker 2: map of every running process in thread.
- 7:58Speaker 1: So, going back to our company with the suspicious Russian
- 8:01Speaker 1: network traffic, if you don't panic, and if you leave
- 8:04Speaker 1: the machine running and actually capture that live memory, you
- 8:07Speaker 1: can look through the active processes, yes, and you will
- 8:10Speaker 1: find that hidden PowerShell script running in the background.
- 8:13Speaker 2: Precisely, when you analyze that memory dump, you will see
- 8:17Speaker 2: the PowerShell process marked with anomalous characteristics like maybe it's
- 8:21Speaker 2: running with system level privileges it shouldn't have, or it
- 8:25Speaker 2: has an active network connection to an unknown.
- 8:27Speaker 3: IP and it's just sitting right there, sitting right.
- 8:30Speaker 2: There in the memory dump, you can extract the actual
- 8:33Speaker 2: script and d obfuscate the code.
- 8:35Speaker 1: Okay, let's explain that mechanism't real quick because attackers don't
- 8:38Speaker 1: just leave their code in plain English.
- 8:41Speaker 2: No, definitely not. They scramble the script using encoding techniques
- 8:46Speaker 2: like base sixty four is a really common one. So
- 8:49Speaker 2: they take commands like download malware and they turn them
- 8:52Speaker 2: into a giant wall of random letters and numbers.
- 8:56Speaker 3: Right just to bypass the security filter.
- 8:58Speaker 2: Exactly. So when you capture the memory you're often looking
- 9:00Speaker 2: at that gibberish. Deobfuscation is the process of basically reversing
- 9:05Speaker 2: that math. You translate the base sixty four back into
- 9:08Speaker 2: readable text. And once you do that, you can read
- 9:11Speaker 2: exactly what the attackers are doing.
- 9:12Speaker 3: That's incredible.
- 9:13Speaker 2: You can see the IP addresses they are connecting to,
- 9:16Speaker 2: what data they are staging to steal, and how they
- 9:18Speaker 2: are maintaining their access.
- 9:20Speaker 1: It's like catching the thief mid sentence, basically reading their
- 9:24Speaker 1: mind before they can wipe it. You know, I was
- 9:26Speaker 1: reading up on this earlier, and the term memory analysis
- 9:29Speaker 1: was actually first coined way back in two thousand and
- 9:32Speaker 1: four by a researcher investigating root kits.
- 9:35Speaker 2: Oh yeah, it's been around for a while.
- 9:37Speaker 1: Yeah, And it started out as just doing simple string searches,
- 9:40Speaker 1: like literally using the fine command to look for readable
- 9:43Speaker 1: texts inside a raw dump of memory. But now investigators
- 9:48Speaker 1: can reconstruct the entire operating system structurally from that memory dump.
- 9:52Speaker 2: Evolution of the field is just incredible. But and this
- 9:55Speaker 2: is a big but, knowing what is in RAM is
- 9:58Speaker 2: utterly useless if you look at it in a vacuum. Okay,
- 10:01Speaker 2: what do you mean well, memory analysis is incredibly powerful,
- 10:03Speaker 2: but it's really only one piece of the puzzle. We
- 10:05Speaker 2: have to contextualize it.
- 10:07Speaker 1: So how does memory fit into the broader context of
- 10:10Speaker 1: investigating a breach system.
- 10:12Speaker 2: Imagine you discover a stream and right in front of
- 10:15Speaker 2: you the water is just contaminated with toxic chemical runoff. Okay,
- 10:19Speaker 2: you can analyze that water all day long. You can
- 10:21Speaker 2: identify exactly what chemicals are in it, and that is
- 10:24Speaker 2: your memory analysis, right.
- 10:25Speaker 1: But knowing the chemical composition doesn't actually solve the problem.
- 10:29Speaker 1: To understand the full story, you have to walk a
- 10:32Speaker 1: mile upstream to find the leaking factory that actually poured
- 10:35Speaker 1: the chemicals into the water, and you also have to
- 10:38Speaker 1: walk downstream to see where that toxic sediment eventually settled
- 10:41Speaker 1: into the soil.
- 10:42Speaker 2: Ah. I love that applying this to our digital crime
- 10:46Speaker 2: scene makes perfect sense. So if I am the incident
- 10:48Speaker 2: responder and I only look at the memory capture the
- 10:50Speaker 2: water right in front of my face, I will find
- 10:53Speaker 2: that hidden PowerShell script, right, But I don't know how
- 10:56Speaker 2: the script got there, So to look upstream, I have
- 10:59Speaker 2: to examine in the network logs and the firewall to find, say,
- 11:03Speaker 2: the initial phishing email or the compromised user account that
- 11:07Speaker 2: opened the door exactly. And then to look downstream I
- 11:10Speaker 2: have to combine this with disk forensics to see if
- 11:12Speaker 2: the attacker eventually dropped like a secondary back door onto
- 11:15Speaker 2: the physical hard drive.
- 11:16Speaker 1: Yes, because if you do not look upstream and downstream,
- 11:19Speaker 1: you might remove the filess malware from memory, but completely
- 11:23Speaker 1: miss the compromised administrator account on the network.
- 11:26Speaker 2: Oh and then you make a terrible mistake by declaring
- 11:29Speaker 2: the system secure when in reality the attacker will just
- 11:32Speaker 2: walk right back in the front door an hour later.
- 11:34Speaker 3: Right.
- 11:35Speaker 1: So to manage all this context, investigators really have to
- 11:38Speaker 1: understand something called the order of volatility. Yes, this is
- 11:41Speaker 1: basically the ticking clock of incident response. It is the
- 11:44Speaker 1: life cycle of data and knowing exactly what is going
- 11:48Speaker 1: to vanish.
- 11:48Speaker 2: First, and it is so critical. When you walk up
- 11:51Speaker 2: to a compromised machine, the data on it is evaporating
- 11:55Speaker 2: at different rates. At the very top, the most volatile
- 11:58Speaker 2: data resides in the CPU registers and cash files. Okay,
- 12:02Speaker 2: this is the data the processors using right this exact
- 12:05Speaker 2: second to do math. We are talking about data that
- 12:07Speaker 2: changes in mere nanoseconds.
- 12:09Speaker 1: Oh wow, So by the time I have even sat
- 12:11Speaker 1: down at the chair. Yeah, millions of cycles of data
- 12:14Speaker 1: have already vanished. It is basically impossible to capture pretty much. Yeah,
- 12:18Speaker 1: so what is next on the list?
- 12:19Speaker 2: The middle tier of volatility includes the RAM we've been
- 12:21Speaker 2: talking about, as well as routing tables and the ARP cash.
- 12:25Speaker 1: Let's define the arp cash for a second. So ARP
- 12:28Speaker 1: stands for Address Resolution Protocol. It's essentially a temporary directory
- 12:32Speaker 1: of the computer keeps that maps virtual IP addresses to
- 12:36Speaker 1: the physical MSc addresses of other devices on the local network.
- 12:40Speaker 2: Yeah, and attackers care deeply about the arp cash. Why
- 12:43Speaker 2: is that because it tells them who else is on
- 12:45Speaker 2: the local network. They use it to pivot laterally from
- 12:48Speaker 2: one machine to another without having to route their traffic
- 12:51Speaker 2: through a central firewall that might catch them.
- 12:53Speaker 1: Ah clever, right.
- 12:55Speaker 2: And this data changes rapidly as the computer operates. But
- 12:58Speaker 2: the real danger here is power. The absolute second power
- 13:02Speaker 2: is cut to that machine. Everything in this middle tier,
- 13:06Speaker 2: the RAM, the routing tables, the ARP cash is completely
- 13:09Speaker 2: wiped out, gone forever.
- 13:11Speaker 1: So the second the fans stop spinning, the computer instantly
- 13:14Speaker 1: forgets who it was talking to. The active network connections
- 13:16Speaker 1: to Russia.
- 13:17Speaker 2: Gone completely gone.
- 13:19Speaker 1: Is the digital equivalent of a suspect swallowing a burner
- 13:21Speaker 1: phone right in front of you.
- 13:22Speaker 2: That is exactly what it is. And then at the
- 13:24Speaker 2: bottom of the list we have the least volatile data,
- 13:27Speaker 2: which is the hard disk. Now, historically, magnetic spinning platter
- 13:30Speaker 2: drives were very stable. If the system shuts down, the
- 13:33Speaker 2: data stays exactly as it was, right.
- 13:36Speaker 1: But modern solid state drives, or SSDs, they act very differently,
- 13:40Speaker 1: don't they They do.
- 13:41Speaker 2: SSDs are actually much more volatile than old platter drives
- 13:45Speaker 2: because of how they manage data internally. Okay, how so well,
- 13:50Speaker 2: flash memory cells degrade over time when you write data
- 13:52Speaker 2: to them, So to prevent any one part of the
- 13:55Speaker 2: drive from wearing out too fast, the SSD has its
- 13:58Speaker 2: own independent processor inside it that constantly shuffles data around
- 14:01Speaker 2: in the background.
- 14:02Speaker 3: Oh I see, it's called.
- 14:04Speaker 2: Where leveling and background garbage collection.
- 14:06Speaker 1: So even if you pull the plug on a computer,
- 14:08Speaker 1: or if you tell the operating system to delete a file,
- 14:11Speaker 1: the drive's own internal controller might just permanently erase those
- 14:16Speaker 1: deleted data blocks in the background a minute later, entirely
- 14:19Speaker 1: on its own.
- 14:20Speaker 2: Yes, it changes continually while powered on, so relative to RAM.
- 14:25Speaker 2: The physical disc is highly stable, sure, but investigators still
- 14:29Speaker 2: have to account for that internal garbage collection.
- 14:31Speaker 1: Right, So what does this all mean for our system
- 14:34Speaker 1: admin who's staring at the Russian data exfiltration? Because RAM
- 14:39Speaker 1: is so fragile, we really need to talk about the
- 14:41Speaker 1: practical execution of capturing it before someone accidentally destroys.
- 14:45Speaker 2: The evidence, which brings us to the golden rule of
- 14:48Speaker 2: modern incident response. And it goes against every natural instinct
- 14:53Speaker 2: you might have when you see an attack happening.
- 14:55Speaker 3: Okay, what is it?
- 14:56Speaker 2: The worst thing you can do when you suspect a
- 14:58Speaker 2: fileless brooch is turn the computer off.
- 15:00Speaker 1: You leave it running. It is actively bleeding data to Russia,
- 15:04Speaker 1: but you just leave it running. I mean that takes
- 15:06Speaker 1: serious nerves of steel.
- 15:07Speaker 2: It really does. But if it's shut down, the live
- 15:10Speaker 2: memory is gone, the file isst malware vanishes, and you
- 15:13Speaker 2: will never ever know what they took or how they
- 15:15Speaker 2: got in. Now, sometimes, if you are incredibly lucky, you
- 15:18Speaker 2: might be able to recover fragments of memory from a
- 15:21Speaker 2: hibernation file on the hard drive or a system shutdown file,
- 15:25Speaker 2: but you never want to rely on that. You absolutely
- 15:28Speaker 2: need the live.
- 15:29Speaker 1: Memory so how do we actually capture this memory without
- 15:32Speaker 1: breaking things?
- 15:33Speaker 2: There are a variety of specialized tools that incident responders
- 15:37Speaker 2: use to dump live memory safely. You might see tools
- 15:40Speaker 2: like bocus off Live Capture, Mandian Redline, or ftk immager. Okay,
- 15:45Speaker 2: these are designed to take a snapshot of the RAM
- 15:47Speaker 2: and save it to an external secure drive for offline analysis.
- 15:51Speaker 3: Wait, hold on, I'm just thinking about the mechanics of this.
- 15:54Speaker 1: Ftk imager is a software program, right, So if I
- 15:57Speaker 1: run a memory capture program on a live computer, doesn't
- 16:00Speaker 1: that program itself have to load into the computer's memory
- 16:03Speaker 1: to execute. Like, aren't I effectively overwriting and destroying a
- 16:07Speaker 1: piece of the prime scene just by trying to photograph it?
- 16:10Speaker 2: Oh, you have just stumbled onto a core tenet of forensics.
- 16:13Speaker 2: It's known as low cards exchange principle.
- 16:15Speaker 3: Loved cards exchange principle.
- 16:16Speaker 2: Yeah, it's the foundation of all forensic science, both physical
- 16:20Speaker 2: and digital. It states that every contact leaves a trace.
- 16:24Speaker 1: Ah, think of it like a detective stepping onto a pristine,
- 16:28Speaker 1: snow covered crime scene. You cannot photograph the footprints in
- 16:32Speaker 1: the snow without leaving your own footprints. To get the camera.
- 16:35Speaker 2: In place exactly. Capturing live memory requires loading a tool
- 16:39Speaker 2: into memory. It inherently overwrites a small portion of the
- 16:44Speaker 2: very evidence you are trying to collect. It allocates ram
- 16:47Speaker 2: for its own processes, It opens network handles, It alters
- 16:50Speaker 2: the environment just by existing. You cannot look at the
- 16:53Speaker 2: evidence without changing the evidence.
- 16:55Speaker 3: That is a crazy paradox. How do you solve that?
- 16:58Speaker 1: Because if I'm the investor gator and I just trampled
- 17:01Speaker 1: the snow, my evidence might be thrown out in court.
- 17:03Speaker 2: Well. As an incident responder, you have to validate and
- 17:06Speaker 2: document the footprint. You have to be prepared to document
- 17:09Speaker 2: exactly what tool you ran, when you ran it, the
- 17:12Speaker 2: exact cryptographic hash of the tool, and be able to
- 17:15Speaker 2: explain to leadership or to a jury how your capture
- 17:19Speaker 2: process altered the state of the machine. Nice you prove
- 17:22Speaker 2: that your tool over wrote a negligible known section of
- 17:25Speaker 2: memory while preserving the critical malicious artifacts.
- 17:29Speaker 1: Are there any workarounds, like a way to photograph the
- 17:32Speaker 1: snow without stepping into.
- 17:33Speaker 3: The yard at all?
- 17:34Speaker 2: There are, but they require advanced architectural preparation. If the
- 17:38Speaker 2: compromise system is a virtual machine, you can take a
- 17:41Speaker 2: snapshot of the VM from the hypervisor level.
- 17:44Speaker 1: The hypervisor being the underlying parent operating system that manages
- 17:48Speaker 1: and runs all the child virtual machines on a server.
- 17:51Speaker 2: Exactly because the hypervisor sits outside the infected virtual system's memory,
- 17:56Speaker 2: taking a snapshot from the hypervisor doesn't alter the internaling
- 18:00Speaker 2: system of the VM at all.
- 18:02Speaker 3: It's incredibly smart.
- 18:03Speaker 2: It is. Alternatively, on physical machines, you can use specialized
- 18:07Speaker 2: hardware designed to capture memory via direct memory access or DMA. Okay,
- 18:11Speaker 2: this pulls data directly from the motherboard without interacting with
- 18:14Speaker 2: the operating system, leaving virtually no footprint. But honestly, for
- 18:18Speaker 2: a standard desktop, running a tool like ftk imager from
- 18:21Speaker 2: a USB drive is usually the best practical option.
- 18:24Speaker 1: We have got it well. We have covered incredible technical
- 18:28Speaker 1: ground today. Love pull this all together and summarize the
- 18:30Speaker 1: mechanics of this investigation. If you want to catch modern
- 18:35Speaker 1: fileless attacks like our scenario with the invisible malware quietly
- 18:40Speaker 1: shipping data to unauthorized Russian servers, you cannot just look
- 18:44Speaker 1: at the.
- 18:45Speaker 2: Hard drive right, absolutely not.
- 18:46Speaker 3: The physical disc.
- 18:47Speaker 1: Will lie to you by a mission. You must capture
- 18:50Speaker 1: the live ram. You must respect the ticking clock of
- 18:52Speaker 1: the order of volatility, and crucially, you have to combine
- 18:55Speaker 1: that memory snapshot with upstream network data and downstream disc
- 18:59Speaker 1: for end to get the entire narrative.
- 19:01Speaker 3: Of the attack.
- 19:02Speaker 2: It is really the only way to move from simply
- 19:05Speaker 2: treating the symptoms of an attack to actually diagnosing and
- 19:07Speaker 2: curing the disease.
- 19:08Speaker 1: Beautifully said, Now, before we wrap up, I want to
- 19:11Speaker 1: challenge you, the listener, of a quick review exercise to
- 19:14Speaker 1: reinforce what we just explored. Let's do it next time
- 19:16Speaker 1: you were working on a device, your laptop, a server,
- 19:19Speaker 1: or even your phone. Pause and think about the order
- 19:22Speaker 1: of volatility. If the power were cut right this second,
- 19:25Speaker 1: what three critical pieces of data would vanish into thin
- 19:28Speaker 1: air instantly.
- 19:29Speaker 2: Recalling that the RAM, the routing tables, and the ARP
- 19:33Speaker 2: cache evaporate instantly is a great exercise in understanding just
- 19:37Speaker 2: how fragile our digital environments really are.
- 19:40Speaker 1: Just visualizing that fragility will completely change how you approach
- 19:43Speaker 1: digital security. And to leave you with one final provocative
- 19:47Speaker 1: thought to mull over. Okay, we talked about low cards
- 19:50Speaker 1: exchange principle right and how running a memory capture tool
- 19:54Speaker 1: leaves a small footprint in the RAM, But consider this
- 19:58Speaker 1: what happens to incident response when advanced malware is specifically
- 20:02Speaker 1: coded to monitor the system's active processes, detect when a
- 20:05Speaker 1: forensic tool like ftk imager is launched and intentionally erase
- 20:09Speaker 1: itself from RAM before the capture is even complete. Oh wow,
- 20:13Speaker 1: when the ghosts start watching back, how do.
- 20:15Speaker 3: We catch them now?
- 20:16Speaker 2: That is a chilling mechanism to think about. It basically
- 20:19Speaker 2: turns the investigation into a high speed game of cat
- 20:21Speaker 2: and mouse.
- 20:22Speaker 1: It is the ultimate invisible threat. Keep looking beyond the surface,
- 20:25Speaker 1: keep checking the memory, and we'll see you on the
- 20:27Speaker 1: next deep dive.