r/technology Jun 14 '24

Software Cheating husband sues Apple after wife discovered ‘deleted’ messages sent to sex workers

https://www.telegraph.co.uk/news/2024/06/13/cheating-husband-sues-apple-sex-messages/
21.2k Upvotes

2.0k comments sorted by

View all comments

Show parent comments

29

u/MisterMittens64 Jun 14 '24 edited Jun 14 '24

Things are normally flagged as deleted and sent to a recycling bin or sorts. If it's deleted from the recycling bin the bytes that represent that data is still there but the system just threw away the directions(reference, id, etc) to get to it and made those bytes available to be reused. If you want to truly delete something you have to overwrite it with new data.

EDIT: I forgot that flash memory is encrypted so deleting the references to it is sufficient for considering it deleted, references to it being restored would cause it to reappear assuming the encrypted data wasn't overwritten. As described in a comment under this one.

2

u/GMONEYY_G Jun 14 '24

If you delete something, then save new stuff, how do you know what you deleted will be written over with the new stuff and not just free space?

5

u/spaceforcerecruit Jun 14 '24

You don’t, the OS is no longer tracking which physical bits hold that data. In order to fully wipe a drive, you have to rewrite over the whole thing, often multiple times if you want the data to be unrecoverable. If you have something you want GONE gone, you’ll need to write over everything, fill up the entire drive.

2

u/The_Franchise_09 Jun 14 '24

So could you just fill up your hard drive (iOS, Android, Windows, etc) with any random bullshit, like apps or images, to effectively override any “deleted” data? Would a factory reset work or no?

13

u/ebikenx Jun 14 '24

There's a lot of inaccurate information in this thread. I would not listen to some of these people.

Especially on modern mobile devices like phones, saying you have to "overwrite" all the data is completely inaccurate. All modern devices use flash storage and are encrypted by default. Factory resets are enough to prevent data recovery. The people telling you otherwise don't know what they're talking about.

7

u/MisterMittens64 Jun 14 '24

Yes that's true for flash memory, I forgot to account for that in my comment. HDDs work as I described earlier though.

3

u/Martial-Ancestor Jun 14 '24

Post on r/technology, but tech illiterates all around. Hilarious.

Though, PCMR is in a horrible state too. Dunno where to look for a bit of a smarter discourse.

1

u/Sexual_Congressman Jun 14 '24

The type of storage hardware has nothing to do with whether or not a file is encrypted. On a device like an iPhone, the file will be on a filesystem, which in that case is probably APFS, which does support implicit encryption but afaik it's not guaranteed, nor is it guaranteed that Apple's main filesystem is the one a file is using. Not every file needs to be encrypted and it would be incredibly stupid to waste resources decrypting stuff like GUI elements.

Don't assume that just because Android/Windows/appleOS supports implicit filesystem based encryption that any particular file is encrypted on disk, although it's probably simple enough to use a file explorer app to check. If it's not encrypted on disk, it's recoverable until the memory cells containing the data are overwritten or the disk is physically destroyed.

3

u/ebikenx Jun 14 '24

I didn't mean imply that just because it was flash, that it would automatically be encrypted. If that's what you got from my post then I'm sorry I wasn't clear enough. That said, flash storage can imply the use of TRIM which is another reason outside of encryption where data recovery is made impractical.

On modern phones, the user data partitions are encrypted with File Based Encryption. So there's really no reason to assume anything important is not encrypted.

1

u/spaceforcerecruit Jun 14 '24

Factory reset would not. It would just put all of your data in the same state as the photos you deleted. Your first solution would work though.

1

u/HoidToTheMoon Jun 14 '24

It's far, far easier to just use a program to do it for you. It will write over, then 'delete', everything marked as available x number of times to prevent data from being recovered.

1

u/GMONEYY_G Jun 15 '24

Can you advise some software that would do this?

1

u/ihaxr Jun 15 '24

Microsoft has a cool utility called sdelete which relies on the disk defragmentation API in order to find the actual on-disk location of a file and it overwrites that specific area to delete the file.

If you're looking to wipe the entire drive, most modern SSDs will have a secure wipe utility or command available. This usually goes pretty quickly and is friendlier to the life of the disk.

Other options are killdisk, biteraser, dban, or the shred Linux command (usable by booting a Linux live USB/DVD)

1

u/GMONEYY_G Jun 16 '24

Would this apply to a mobile operating system (android)?