• On GameFAQs: The top 10 most terrifying PC games
advertisement
June 2, 2008 12:00 AM PDT

Preparing your iPhone for resale

by Ben Wilson
  • Font size
  • Print
  • 1 comment

Reselling your used iPhone can be risky business if the device contains sensitive data. Normal restore and wipe procedures don't fully delete user daa from the iPhone. In fact, iPhones sold as refurbished units may contain personal data from their previous owners that, with a little leg-work, is readily accessible by new owners. These data include email, images, contacts and more.

With a new iPhone model expected to debut in a matter of days or weeks, many current-generation iPhone owners are looking to unload their devices on eBay or elsewhere, potentially triggering a flood of unintentional personal data release. Fortunately, there is a method that, while time consuming, will significantly decrease the chance of new owners culling stored data from used iPhones.

Jonathan Zdziarski, the author of the "iPhone Open Application Development" and an iPhone Forensics Manual for Law Enforcement who has done most of the research on recovering ostensibly deleted data from refurbished or resold iPhones, has now published information on safely deleting information from the devices, making them appropriate for resale.

Zdziarski says:

"What I will share, however, is the way in which I wipe my own devices before I resell them, which I believe the consumer has a right to do. Mind you, I make no guarantees about this and accept no responsibility for you hosing your iPhone. This is what works for me: 

He describes the process as follows:

  1. "Perform a full restore, but be sure to set the device up as a "new phone", rather than restore from a backup (of course). This destroys the live file system only, but isn't really necessary. I do this to be extra safe that no writes to the device occur after wiping (and if they do, will not include any of my personal data).
  2. "Jailbreak the device using something like iLiberty and obtain shell access via ssh.
  3. "Find a copy of 'umount' for the iPhone. This can be found on the RAM disk, or in other places. Don't ask me for it. Now force both mount points into read-only mode:
    • # umount -f /private/var
    • # mount -o ro /private/var
    • # mount -o ro /
  4. "NOTE: The GUI will be non-responsive when /private/var is mounted read-only, so be sure not to try and use it. 
  5. "Wipe both partitions clean by copying /dev/zero over them. Ideally, /dev/random would be better, but it will heat up the CPU considerably and take a much longer period of time. Unless you are trying to hide information from the CIA or some other organization with the resources to perform low-level NAND recovery, a single /dev/zero wipe will suffice:# cat /dev/zero > /dev/rdisk0s2; cat /dev/zero > /dev/rdisk0s1
  6. "Force the device into recovery mode (Home Power until "Connect to iTunes") and then perform another full restore.
  7. "If you are paranoid about a low-level NAND recovery, use /dev/random and repeat these steps about seven times - or simply take a sledge hammer to the device.

Zdziarski adds:

"The entire process takes a considerable amount of time - perhaps an hour or two if you get good at it. It's not something anyone is going to be able to pull off if they hear sirens approaching, and so essentially this is only useful for legitimate consumers selling their devices. I'd also recommend wiping any devices you might happen to purchase, to prevent someone else's incriminating evidence from haunting you should the device ever be examined. "

Feedback? info@iphoneatlas.com.

Recent posts from iPhone Atlas
Motorola, RIM leading, with Apple on the rise
Tales2Go: Get on-demand audiobooks for children
iCatchall: 27 apps for free--Monday only
Caps lock--David's iPhone tip of the week
HouseKeeper app reminds you to do forgotten chores
App Genie: 27 apps for 99 cents
Apple extends iTunes Web previews to apps
Possible proof surfaces that iPad supports a camera
Add a Comment (Log in or register)
by thearne3 June 2, 2008 4:09 PM PDT
I've looked around the Web and cannot find a umount binary that works for Firmware 1.1.4. Any hints??

Thanks!
Reply to this comment

Search iPhone Atlas

advertisement
Click Here

About iPhone Atlas

iPhone Atlas helps you navigate the ins and outs of Apple iPhone ownership with how-tos, troubleshooting information, news, reviews, and more. Got a tip? Want to contact us? E-mail iphoneatlas@cnet.com.

Add this feed to your online news reader

iPhone Atlas topics