Latest / CyberCode Academy / Course 11 - Mobile Forensics Fundamentals | Episode 2: Data Acquisition, Diverse Operating Systems, and Forensic Challenges
Transcript
- 0:00Speaker 1: Welcome back to the deep dive. Just take a look
- 0:02Speaker 1: at the phone that's probably in your hand or on
- 0:04Speaker 1: the desk right now. It's not just for calls anymore,
- 0:08Speaker 1: is it. It's really a pocket sized, heavily encrypted vault.
- 0:11Speaker 1: It's got your biometrics, your location history, your private chats everything.
- 0:16Speaker 1: So for an investigator, that little device is the ultimate prize.
- 0:20Speaker 1: But it's also an armored safe built to fight back.
- 0:23Speaker 2: That's the key difference. Really. In traditional forensics, you're usually
- 0:26Speaker 2: dealing with a hard drive you could well clone. With
- 0:29Speaker 2: mobile forensics, you're fighting a live operating system, layers of encryption,
- 0:33Speaker 2: and evidence that's constantly changing or disappearing.
- 0:36Speaker 1: And that fight, that technological resistance is what we're diving
- 0:39Speaker 1: into today. We're going to unpack where the critical evidence
- 0:42Speaker 1: actually hides, how experts even attempt to get it, and
- 0:45Speaker 1: some of the well surprising legal traps that can completely
- 0:48Speaker 1: sink an investigation. Okay, so let's start with the basics.
- 0:52Speaker 1: The operating systems. We've mostly got Android and iOS and
- 0:55Speaker 1: they are fundamentally different beasts. What is it about their
- 0:58Speaker 1: architecture that makes getting so so different depending on the device.
- 1:03Speaker 2: Well, the biggest difference and it's a huge one, is it.
- 1:06Speaker 2: Android is built on top of the Linux kernel, and
- 1:09Speaker 2: for a forensic analyst, that's a double edged sword. It
- 1:12Speaker 2: means you have this incredibly powerful open foundation to work.
- 1:16Speaker 1: With, right, so under that slick user interface, it's really
- 1:19Speaker 1: just a specialized little Linux machine. So how does an
- 1:22Speaker 1: analyst talk to that kernel? You can't just open a
- 1:25Speaker 1: terminal window on a locked phone.
- 1:27Speaker 2: You can't. So they rely on something called the Android
- 1:29Speaker 2: Debugging Bridge or ADB. You should think of ADB as
- 1:32Speaker 2: the main forensic doorway. It lets an analyst connect to
- 1:36Speaker 2: the phone and run commands directly, completely bypassing the normal interface.
- 1:41Speaker 2: That is, if they have the right permissions, which usually
- 1:44Speaker 2: means you need to root the phone.
- 1:45Speaker 1: First gain total control basis.
- 1:47Speaker 2: Exactly superrouser access, and once you're in you can run
- 1:50Speaker 2: some really powerful commands, like, for instance, DM message.
- 1:53Speaker 1: It's a log, a log of what the operating system
- 1:56Speaker 1: itself has been up to pretty much.
- 1:59Speaker 2: It's like the phone's die. It shows you every driver
- 2:01Speaker 2: that loaded, every piece of hardware that woke up. It
- 2:04Speaker 2: can give you clues about tampering or you know, strange
- 2:07Speaker 2: activity that you wouldn't see otherwise.
- 2:09Speaker 1: Now Linux and Unix systems are famous for their security,
- 2:12Speaker 1: especially sandboxing. The idea that every app is in its
- 2:15Speaker 1: own little cell, unable to talk to the others. How
- 2:19Speaker 1: does that work and why is it a problem for investigators?
- 2:22Speaker 2: That isolation comes from something called SEA Linux Security Enhanced Linux.
- 2:27Speaker 2: It enforces what's called mandatory access control. It gives every
- 2:31Speaker 2: single app its own user ID and it blocks them
- 2:34Speaker 2: from interacting. Which is great, right. It's why some random
- 2:37Speaker 2: game you downloaded can't just steal your banking password.
- 2:40Speaker 1: But I've heard there's a kind of flaw in the design,
- 2:43Speaker 1: something called a covert channel.
- 2:45Speaker 2: Ah. Yes, that's the trade off. See, while the apps
- 2:48Speaker 2: are in their own sandboxes, they still have to share things.
- 2:51Speaker 2: They might both need access to your text messages, for example,
- 2:54Speaker 2: or your microphone. That's a shared.
- 2:55Speaker 1: Resource, so they're not totally isolated.
- 2:58Speaker 2: They're not access point creates a covert channel. A malicious
- 3:03Speaker 2: app can't read your banking data directly, but it can, say,
- 3:06Speaker 2: use the microphone for a fraction of a second longer
- 3:09Speaker 2: when you type the number one. A second malicious app,
- 3:13Speaker 2: also listening to the microphone, sees that tiny timing difference
- 3:17Speaker 2: and knows you typed a one. It's a way of
- 3:19Speaker 2: leaking data in tiny, tiny pieces.
- 3:21Speaker 1: That's incredible. So the flaw is really a consequence of
- 3:24Speaker 1: making the phone usable.
- 3:25Speaker 2: It's a fundamental conflict between perfect security and functionality.
- 3:30Speaker 1: And getting these malicious apps on a phone? Is that hard?
- 3:34Speaker 1: Do you need to be some master hacker?
- 3:36Speaker 2: Not always? See all Android apps or APK files have
- 3:39Speaker 2: to be digitally signed. But here's the crazy part. You
- 3:42Speaker 2: don't need to steal a signature from a big company.
- 3:44Speaker 2: You could just become an official developer yourself, sometimes for
- 3:47Speaker 2: as little as fifty dollars.
- 3:49Speaker 1: Fifty dollars do you get a trusted certificate?
- 3:51Speaker 2: Yep, and then your malicious app looks completely legitimate to
- 3:54Speaker 2: any forensic tool that's just checking for a valid signature.
- 3:57Speaker 2: It's a huge blind spot.
- 3:58Speaker 1: Wow. Okay, So the architecture is let's say complicated. Where
- 4:03Speaker 1: does the actual evidence live and how do you get
- 4:05Speaker 1: past the encryption?
- 4:06Speaker 2: This is what we call the variability problem. There's no
- 4:09Speaker 2: single answer. You've got the simcard, which might have the
- 4:12Speaker 2: subscriber ID, maybe a few old text messages, but the
- 4:15Speaker 2: real stuff, the photos, the videos, the thousands of messages,
- 4:19Speaker 2: that's all on the internal nan memory, and.
- 4:21Speaker 1: There's no standard for where things are stored on that memory.
- 4:24Speaker 2: None at all. A text message could be in one
- 4:26Speaker 2: place on a Samsung and a totally different place on
- 4:29Speaker 2: a Google Pixel. You have to know the specific model
- 4:32Speaker 2: inside now.
- 4:33Speaker 1: And as soon as you try to access that memory,
- 4:35Speaker 1: you hit the encryption wall.
- 4:36Speaker 2: You hit a solid brick wall. Full disc encryption is
- 4:39Speaker 2: standard now, and without the user's PIM or the key,
- 4:43Speaker 2: you are, for the most part, completely stuck. It's especially
- 4:47Speaker 2: true on modern iPhones, where the encryption keys are a
- 4:50Speaker 2: physically fused to the processor in what's called the secure enclave.
- 4:53Speaker 2: So even if you physically remove the memory chip, all
- 4:56Speaker 2: you have is a chip full of meaningless encrypted garbage.
- 5:00Speaker 1: Key isn't on the chip, which brings us to another problem,
- 5:03Speaker 1: volatile data RAM. If the phone is on, there's crucial
- 5:08Speaker 1: evidence in its memory. Turn it off and it's gone.
- 5:11Speaker 2: Forever, and that creates the investigator's dilemma. It's a true
- 5:15Speaker 2: catch Toney two. You sees a phone that's turned on.
- 5:17Speaker 2: If you power it down, you lose everything in RAM.
- 5:20Speaker 2: But if you keep it on, you have to keep
- 5:22Speaker 2: touching the screen to stop it from locking, and every
- 5:25Speaker 2: single touch you make alters the evidence.
- 5:28Speaker 1: So you're contaminating the crime scene just by trying to
- 5:30Speaker 1: preserve it exactly.
- 5:31Speaker 2: A defense attorney would have a field day with that.
- 5:33Speaker 2: The phone becomes this digital time bomb.
- 5:35Speaker 1: And what about the opposite end of the spectrum, the
- 5:39Speaker 1: cheap burner phones.
- 5:40Speaker 2: Oh, feature phones, they can be a total nightmare. Your
- 5:43Speaker 2: expensive sophisticated forensic tools often have no idea what to
- 5:47Speaker 2: do with them. They use proprietary, undocumented systems. There's no ADB,
- 5:51Speaker 2: no standard file system. You're often forced to go back
- 5:53Speaker 2: to square one with much more basic techniques.
- 5:56Speaker 1: Okay, so since you can't just copy and paste the files,
- 5:58Speaker 1: walk us through the process. What's this pyramid of acquisition
- 6:02Speaker 1: that investigators use?
- 6:03Speaker 2: Right? So, the basic principles of forensics always apply preserve, acquire, analyze,
- 6:08Speaker 2: and report, and you always acquire the data first. The
- 6:11Speaker 2: pyramid just ranks the acquisition methods by difficulty and reliability.
- 6:16Speaker 2: At the very bottom level one is manual acquisition. We
- 6:19Speaker 2: call it project phone.
- 6:20Speaker 1: Which sounds low tech it is.
- 6:23Speaker 2: It means you literally take a high resolution photo of
- 6:27Speaker 2: every single screen on the device, every contact, every call
- 6:30Speaker 2: log entry, every single text message.
- 6:33Speaker 1: So if there are thirty thousand text messages on a phone.
- 6:35Speaker 1: That's thirty thousand pictures. How is that even advisible? In court?
- 6:39Speaker 1: You could argue the chain of custody is broken.
- 6:41Speaker 2: It's a huge challenge. It's slow, expensive, and legally very fragile,
- 6:46Speaker 2: but sometimes it's the only option you have. Moving up.
- 6:49Speaker 2: Level two is a logical acquisition. This is much better.
- 6:51Speaker 2: It's non invasive. A tool connects to the phone and
- 6:54Speaker 2: just asks the operating system for the allocated files, like
- 6:57Speaker 2: through a backup. Friends tools, for instance, will often just
- 7:00Speaker 2: trick an iPhone into doing a normal iTunes backup because
- 7:03Speaker 2: that's a really reliable way to get call logs and messages.
- 7:05Speaker 1: Okay, that makes sense. What's next.
- 7:07Speaker 2: Level three is a file system acquisition. This goes a
- 7:10Speaker 2: bit deeper, trying to get a full copy of the
- 7:12Speaker 2: file structure, maybe even some deleted space. And then at
- 7:15Speaker 2: the top, the peak of the pyramid is level four
- 7:19Speaker 2: physical acquisition. This is the holy grail, a perfect bit
- 7:23Speaker 2: for bit clone of the entire memory chip.
- 7:25Speaker 1: But you said that's basically blocked now by encryption.
- 7:28Speaker 2: Non invasive physical acquisition is yes, which leaves the destructive
- 7:32Speaker 2: methods things like jtag where you sought or wires directly
- 7:36Speaker 2: onto the motherboard to talk to the chips, or even
- 7:38Speaker 2: more extreme chip off forensics, where you literally disorder the
- 7:41Speaker 2: memory chip from the board and put it in a
- 7:43Speaker 2: special reader.
- 7:44Speaker 1: But again, if the phone is encrypted, you've just destroyed
- 7:46Speaker 1: a very expensive device to get a chip full of
- 7:48Speaker 1: useless data.
- 7:49Speaker 2: That's the modern reality, and sometimes the biggest roadblock is
- 7:53Speaker 2: much simpler a cracked screen.
- 7:55Speaker 1: How can a cracked screens stop the whole process?
- 7:58Speaker 2: Well, all those tools like Celebrate or xroy, they need
- 8:02Speaker 2: you to interact with the phone. You have to tap
- 8:04Speaker 2: trust this computer or enter the pon code. If the
- 8:08Speaker 2: screen is shattered and the touch sensor is broken, you
- 8:10Speaker 2: can't do that. The whole investigation stops until a hardware
- 8:14Speaker 2: specialist can physically replace the screen without wiping the data.
- 8:18Speaker 2: It's a whole other skill set.
- 8:19Speaker 1: Incredible. Okay, let's shift to how these phones communicate. How
- 8:24Speaker 1: do they talk to cell towers and how can that
- 8:27Speaker 1: be intercepted?
- 8:28Speaker 2: Well, most modern cell communication is encrypted, so just listening
- 8:32Speaker 2: in is very difficult. But law enforcement can use devices
- 8:35Speaker 2: commonly known as stingrays that essentially pretend to be a
- 8:38Speaker 2: cell tower.
- 8:39Speaker 1: A fake tower. How does it trick the phone.
- 8:41Speaker 2: It's actually pretty clever. Your phone is designed to always
- 8:43Speaker 2: connect to the strongest signal available to prevent dropped calls.
- 8:47Speaker 2: The sting range just sits nearby and blasts out a
- 8:49Speaker 2: signal that's stronger than the real towers from Verizon or
- 8:52Speaker 2: AT and T. The phone automatically connects to it, thinking
- 8:54Speaker 2: it's a legitimate tower, and then.
- 8:56Speaker 1: The stingray can just read all the traffic. A man
- 8:59Speaker 1: in the middle attack.
- 9:00Speaker 2: A classic man in the middle and decrypts the traffic,
- 9:02Speaker 2: logs it and then reencrypts it and passes it on
- 9:05Speaker 2: to the real network. The user has no idea.
- 9:08Speaker 1: And when tracking a device, there are two key numbers involved,
- 9:11Speaker 1: right the phone's ID and the user's ID exactly.
- 9:14Speaker 2: You have the IMEI, which is the unique serial number
- 9:17Speaker 2: for the physical phone hardware. It never changes. Then you
- 9:20Speaker 2: have the IMSI, which is the identity of the subscriber
- 9:23Speaker 2: that's tied to your SIM card. It's a critical distinction
- 9:27Speaker 2: because someone could be using multiple SIM cards, multiple MSIs
- 9:31Speaker 2: in one burner phone with a single IMEI. You need
- 9:34Speaker 2: to track both.
- 9:35Speaker 1: Okay, and this brings us to what might be the
- 9:37Speaker 1: biggest legal land mine of all, the cloud forensic tools
- 9:41Speaker 1: can sometimes find cashed log in details on the phone
- 9:45Speaker 1: a username, password. It must be tempting to just use them.
- 9:48Speaker 2: It's incredibly tempting, and it is probably the single most
- 9:51Speaker 2: dangerous mistake and investigator can make. Even if you have
- 9:54Speaker 2: the username and password right there, you absolutely must not
- 9:57Speaker 2: use them to log into a cloud account, not a
- 10:00Speaker 2: an email, not social media, nothing, not without a completely
- 10:03Speaker 2: separate court order that is directed at the service provider
- 10:05Speaker 2: like Google or Apple.
- 10:06Speaker 1: What happens if they do it anyway, It's.
- 10:08Speaker 2: A direct violation of the Computer Abuse Act. You've essentially
- 10:11Speaker 2: just committed a federal hacking crime. All the evidence you
- 10:15Speaker 2: find becomes inadmissible fruit of the poisonous tree. It can
- 10:18Speaker 2: you get the entire case thrown out of court, no
- 10:20Speaker 2: matter what else you found on the phone.
- 10:22Speaker 1: So the data sitting on the device becomes even more important.
- 10:24Speaker 1: The metadata.
- 10:25Speaker 2: The metadata is the real treasure. GPS coordinates are baked
- 10:29Speaker 2: into photos all the time, calendar events have locations, but
- 10:33Speaker 2: one of the most overlooked sources is the phone's personal dictionary,
- 10:38Speaker 2: the spelled check history. People type in unique slang, usernames,
- 10:42Speaker 2: even password fragments. They think it's gone but the phone
- 10:46Speaker 2: remembers it to help with autocorrect, It can be a
- 10:49Speaker 2: gold mine.
- 10:51Speaker 1: So this whole deep dive really shows that mobile forensics
- 10:53Speaker 1: is just a brutal landscape. You have all this variation
- 10:56Speaker 1: between operating systems, this nearly unbreakable hardware encryption, and this
- 11:00Speaker 1: whole pyramid of techniques from taking thousands of photos all
- 11:03Speaker 1: the way up to physically ripping chips off a motherboard.
- 11:06Speaker 2: And we learned that the tech challenges go hand in
- 11:08Speaker 2: hand with these huge legal risks. One wrong move like
- 11:12Speaker 2: using a cashed password, and you could destroy your own case, right, And.
- 11:15Speaker 1: We talked about how usability choices like an Android's design
- 11:19Speaker 1: created some of these security holes. But let me flip
- 11:22Speaker 1: that around. If usability can be a threat to evidence,
- 11:25Speaker 1: why is designing a perfectly secure phone one that's completely
- 11:29Speaker 1: impossible for anyone to get into often seen as a
- 11:32Speaker 1: failure of public safety design.
- 11:34Speaker 2: That's the core of the whole debate, isn't it. If
- 11:36Speaker 2: a device is perfectly, absolutely secure, it means it's inaccessible
- 11:40Speaker 2: even with a legal warrant. It shifts the balance of
- 11:43Speaker 2: power completely. We see that with a secure enclave. While
- 11:47Speaker 2: strong encryption protects an individual's privacy, which is vital. A
- 11:51Speaker 2: system with zero possible access for law enforcement, even under
- 11:54Speaker 2: court order, puts total anonymity above justice and accountability, and
- 11:58Speaker 2: that creates a massive societal problem with no easy answer.
- 12:02Speaker 1: Something to think about, for sure. Thank you for walking
- 12:04Speaker 1: us through this. It's an incredibly complex world.
- 12:07Speaker 2: My pleasure is great to talk about it.
- 12:08Speaker 1: We'll see you next time on the Deep Dive.