I recently had an opportunity to do some testing on the iPad, I wanted to evaluate the methods for performing forensics and the ability for someone to recover data off of the device. Apple’s security implementation on the iOS platform is pretty abysmal. In this post I will talk a little about the iOS platform and go over some of the techniques I used to pull data off the device. I have a few more tricks that aren’t mentioned here, and hopefully I will get a chance to type those up in the near future.
All of this information is available out there somewhere, but I didn’t find a nice complete guide of how to get at the data without permanently jailbreaking the device. None of this is original research, and I don’t have any association with any of the software developers and hackers that built these tools.
The premise is that when performing forensics you should modify the device as minimally as possible. This isn’t always possible, but with iOS it is particularly difficult because accessing the data requires a jailbroken kernel and a few *nix utilities. The most common approach (at least when doing an acquisition in the field) is to use a boot disk, load an operating system into RAM and then perform the data capture.
Before getting into the details, and they are not for someone that is not technically inclined, I want to talk a little about iOS.
Some common misconceptions about iOS (iPhone and iPad):
It isn’t a PC.
- Well, it sort of isn’t, it’s a Mac, but aside from marketing distinctions it most certainly is a Unix computer–just with a interface that doesn’t allow you to do anything other than what you are told.
- According to Apple’s sales numbers, people like having a limited user interface and no control over the computer they are using.
- This leads to a assumption that the device is simple–it is not.
- It’s Darwin, essentially a trimmed down version of Mac OS X with Springboard instead of Finder.
- Once you load up some tools, you can do most things that any other Unix system can do.
Data isn’t stored on the device, everything is in the “cloud” or stored elsewhere.
- No, it has a hard drive (solid state.)
- Most applications cache everything you view, you have no control over this, once again the decisions have been made for you.
- It tracks your location (this recently made the news.)
- It has to keep a log of what you type to make predictive typing work. Yes, it logs what you type.
It’s encrypted, your data is safe.
- Technically it is encrypted, but Apple did such a poor job of implementing the key management, the encryption is rendered completely useless.
- There IS a second layer of encryption that is new in the 4.x releases of iOS, so far it only applies to mail.app.
- Calendars ARE NOT encrypted–how much email is embedded in calendar requests in a corporate environment? You might be surprised.
- Unless you can decrypt the keychain, you can’t get access to these files (in theory this can be done, but who knows if the videos posted to youtube are real.)
- Only applies if 4.x was installed from scratch. Upgraded your iPad/iPhone from 3.x? Your data is still plaintext.
That said, Apple actually got something right: remote wipe works like a champ. As long as your device is turned on, and on a network, you might be able to stop someone from stealing information off of it.
Tools I found useful: Continue reading »