News for hackers. Stuff that matters.
Re:Amazon Echo Dot does not wipe personal content after fact... by haunter on Saturday July 24, 2021 @06:22PM (#27944910)
>Since the storage media in these IoT devices would not last long if true deletions were being performed constantly, “deleted” data is often simply invalidated and moved to an unused page in the block (in a process called “wear leveling”). These invalidated pages, which still contain the data, remain present until a block fills up with them and a true deletion is initiated.

>Accessing flash memory that has been factory reset in this way does require some amount of technical skill and specialized equipment, but nothing that is a real barrier to the average enthusiast working at home.

By that logic my iPhone 11, my Android phone, my Mac or my Windows PC doesn't wipe personal content either after factory reset

Feels like a bit clickbait-ish

But at least Macs have a built-in 7-pass erase option to comply with DOD standards https://techpatio.com/wp-content/uploads/2012/09/disk-utilit...

Re:Amazon Echo Dot does not wipe personal content after fact... by gojomo on Saturday July 24, 2021 @06:56PM (#27945063)
I believe iOS handles this by ensuring all flash-written data is encrypted with an on-device key.

A 'wipe' then definitively erases that key - making further overwrites of the freed data unnecessary.

If the crypto is strong, and the key never exfiltrated, then this may be even better than an explicit overwrite, which on some media (like magnetic drives) may still leave trace hints of the old data that advanced techniques could recover.

Re:Amazon Echo Dot does not wipe personal content after fact... by fpgaminer on Saturday July 24, 2021 @08:00PM (#27945445)
> If the crypto is strong, and the key never exfiltrated, then this may be even better than an explicit overwrite, which on some media (like magnetic drives) may still leave trace hints of the old data that advanced techniques could recover.

The idea that magnetic drives left readable traces behind after an overwrite is a myth (especially of modern drives; if I recall the article I'm thinking of correctly the myth may have had a _slim_ chance of being true with old drives [like 100MB days]).

Re:Amazon Echo Dot does not wipe personal content after fact... by rootw0rm on Saturday July 24, 2021 @11:52PM (#27946549)
I'm fairly certain you're correct, but the fact that various secure delete tools overwrite data multiple times probably helps propagate this myth.
Re:Amazon Echo Dot does not wipe personal content after fact... by quaintdev on Sunday July 25, 2021 @02:12AM (#27947124)
I wonder how it is even possible in those 100MB disks.
Re:Amazon Echo Dot does not wipe personal content after fact... by rebuilder on Sunday July 25, 2021 @05:24AM (#27947886)
The idea was that, since the drive head doesn’t pass over precisely the same area on the track every time it writes to the disk, the track has to be wide enough to account for this lack of precision. Thus, a single overwrite pass could leave a portion of the track’s edge unchanged and readable with an electron microscope or something.
Re:Amazon Echo Dot does not wipe personal content after fact... by Doxin on Monday July 26, 2021 @05:16AM (#27957338)
I always figured that a write wouldn't change the magnetic field 100%. Say it's 90% effective at changing the magnetic field. There's now four options:

1 overwritten by 0: 10% field strength

0 overwritten by 0: 0% field strength

1 overwritten by 1: 100% field strength

0 overwritten by 1: 90% field strength

But I guess that's not quite true.

Re:Amazon Echo Dot does not wipe personal content after fact... by pbhjpbhj on Sunday July 25, 2021 @06:56AM (#27948251)
I looked into back in the day (but not quite as far back as that), https://alicious.com/secure-drive-data-wiping/, couple of references there.
Re:Amazon Echo Dot does not wipe personal content after fact... by thefurrysquid on Sunday July 25, 2021 @03:40AM (#27947485)
Low density data, paired with not very accurate head tracking.
Re:Amazon Echo Dot does not wipe personal content after fact... by infogulch on Saturday July 24, 2021 @08:20PM (#27945539)
I agree, there is only one reasonable method to consider a drive "wiped": encrypt all data written to it with a key; wipe == destroy the key. Drives are basically little computers now, they have full-featured CPUs, OSes, memory, write caches and persistent buffers, they compress data before writing it, lie to you about where the data is (ok fine, it's a legitimate abstraction), and who knows what else. My point is that drives have become way too complex for wiping by "overwriting" "every" "block" to ever be an option again (and yes all three of those words deserve scare-quotes). The answer to this problem has become: always encrypt, lose the key to wipe. Period.
Re:Amazon Echo Dot does not wipe personal content after fact... by dan000892 on Saturday July 24, 2021 @10:46PM (#27946265)
From your comment I'm not sure if you're aware but there are two established standards that do just that:

ATA Secure Erase is an optional security feature implemented by many flash-based disk devices specifically because write degradation and overprovisioning preclude them from being wiped via overwrite as you would magnetic media.

More SSD disk controllers than you may realize have an AES encryption engine and persistent storage for the key. The controller is encrypting/decrypting on the fly transparent to the user/system. A secure erase simply rolls that key (and flags all the cells as empty).

As noted in the sibling comment, there must be trust in the device itself that the old key is unrecoverable (or the data recoverable if the prior key had been compromised).

hdparm on any linux liveusb (e.g. Clonezilla) and an eSATA dock and you can nuke a few disks a minute with two commands:

  hdparm --user-master u --security-set-pass p /dev/sdX
  hdparm --user-master u --security-erase-enhanced p /dev/sdX
hdparm has other arguments that can tell you if this is supported and how long the drive says it'll take to do it.

The other standard is TCG's OPAL. An AES media encryption key (MEK) is generated to encrypt/decrypt all data on the fly. The MEK is encrypted with a user-defined key encrypting key (KEK) and that encrypted MEK is stored on the drive. At boot the user (or some external process) needs to supply the drive with the KEK to decrypt the MEK and begin transparently decrypting/encrypting data on the fly. Splitting the disk into multiple "locking ranges" with independent MEKs and KEKs is also described in the spec enabling secure wipe of just a portion of the disk. Lose the KEK or destroy the MEK and the data is unrecoverable.

I'd say this option still requires trust in the disk itself but since TCG dictates not just the interface but also the implementation and has a corresponding certification process (as well as reliance on an off-device key), I reckon TCG OPAL devices should be more trusted than those that simply claim to implement the ATA Secure Erase command, but I haven't had an opportunity to test any.

Re:Amazon Echo Dot does not wipe personal content after fact... by infogulch on Saturday July 24, 2021 @11:02PM (#27946348)
Cool, thanks for sharing.

It's interesting that even the drives themselves use this strategy to "erase" data; it doesn't actually overwrite the cells, it just always encrypts all data that goes to cells and rotates the key when it's asked to erase. This strategy is clearly superior, it doesn't cost any wear on the cells to perform, and it's instant.

The multiple locking ranges is pretty neat, I'd never heard of that.

Re:Amazon Echo Dot does not wipe personal content after fact... by glitchc on Saturday July 24, 2021 @09:48PM (#27945956)
How can one trust it though? Presumably the key has to make its way into the drive to actually decrypt the data. How can one be sure the key was actually deleted and not archived somewhere in the controller’s storage?
Re:Amazon Echo Dot does not wipe personal content after fact... by infogulch on Saturday July 24, 2021 @10:27PM (#27946165)
Ideally, data is encrypted at the CPU (or coprocessor or TPU chip) and sent to the drive encrypted. The drive never gets the key, its only job is to store encrypted blocks correctly. In the TPU case, the TPU chip controls decryption and the key never leaves the specialized, tamper-resistant chip; wiping means sending a command to the TPU to rotate keys, thus instantly destroying any access to the data.
Re:Amazon Echo Dot does not wipe personal content after fact... by neoncontrails on Saturday July 24, 2021 @10:34PM (#27946201)
A coworker once insisted on fondling discarded drives with extremely strong magnets, then taking a power sander to the magnetized part. I wasn't sure if this was overkill or not. Is there any wisdom in this?
Re:Amazon Echo Dot does not wipe personal content after fact... by dylan604 on Saturday July 24, 2021 @11:21PM (#27946428)
Sounds like someone needing a reason to use a power sander
Re:Amazon Echo Dot does not wipe personal content after fact... by sizzle on Sunday July 25, 2021 @10:55AM (#27949581)
Yup exactly why I needed to buy my Milwaukee right angle die grinder… ask my wife ;)
Re:Amazon Echo Dot does not wipe personal content after fact... by WaxProlix on Sunday July 25, 2021 @01:35AM (#27946962)
When I worked for the UC Observatories we physically destroyed most retired drives, just in case of sensitive information. Some personal machines' drives were excepted but there was a good deal of hammering.
Re:Amazon Echo Dot does not wipe personal content after fact... by sundvor on Saturday July 24, 2021 @11:26PM (#27946443)
Well if they wanted to be 100% certain nothing could be recovered, then that is a very good way to make sure.
Re:Amazon Echo Dot does not wipe personal content after fact... by flavius29663 on Saturday July 24, 2021 @09:42PM (#27945922)
what if you just fill the whole disk with random bytes? Wouldn't that take care of it ?
Re:Amazon Echo Dot does not wipe personal content after fact... by infogulch on Saturday July 24, 2021 @10:54PM (#27946307)
You don't have access to "the whole disk". What the drive presents to the OS as an array of blocks is just an abstraction now. There are at least 3 commonly known ways that "filling" the disk with random bytes could fail to destroy the original data:

* If any part of a block is found to be corrupted for any reason, the block is transparently set aside and never used again, but its contents may still be present to read for someone that is willing to bypass the drive's firmware.

* To prevent uneven wear, ssd capacity is over provisioned which means it has more cells than what it tells the OS. In general, when you "overwrite" a block on your drive, that data likely does not actually overwrite the cell where the data used to be. The drive picks some other unused cell, writes the data there, and does some bookkeeping so it knows that this new cell is what the OS means when it asks for that block again. When the OS "fills the disk" it may not end up overwriting some of those cells due to the firmware's arbitrary wear leveling algorithm.

* Many drives have a local write buffer that uses different, faster persistent storage to temporarily save writes to the drive as it takes its time to write out cells. This is to prevent data loss in the case of a power outage. In case the drive hadn't fully written all the blocks to the main storage when it boots back up again, it finds the data in the write buffer and finishes the job. The write buffer has both of the previous issues except its even more arbitrary and depends on load profile which your random filling routine is not guaranteed to hit.

There is no such thing as securely overwriting blocks anymore, because "blocks" are a fiction presented to your OS by the drive's firmware. There is only one way to be sure the data on the drive is filled with random data: make it random to begin with, and ensure that it stays random by destroying the decryption key.

Re:Amazon Echo Dot does not wipe personal content after fact... by dylan604 on Saturday July 24, 2021 @11:23PM (#27946433)
>* If any part of a block is found to be corrupted for any reason, the block is transparently set aside and never used again, but its contents may still be present to read for someone that is willing to bypass the drive's firmware.

How useful is one block of recovered data?

Re:Amazon Echo Dot does not wipe personal content after fact... by KMnO4 on Saturday July 24, 2021 @11:33PM (#27946477)
Blocks can be up to 4mb. You could store all your passwords, private keys, contact/identity info, etc
Re:Amazon Echo Dot does not wipe personal content after fact... by dylan604 on Sunday July 25, 2021 @02:13AM (#27947131)
Really now. Last time I cared to look at any of this, it was all 4K blocks.
Re:Amazon Echo Dot does not wipe personal content after fact... by aaronmdjones on Sunday July 25, 2021 @02:36AM (#27947230)
You are confusing physical blocks (i.e. flash memory) with logical blocks (i.e. filesystems).

Edit: HDDs typically have 4K blocks though ("advanced-format drives"), but we're not talking about HDDs.

Re:Amazon Echo Dot does not wipe personal content after fact... by dylan604 on Sunday July 25, 2021 @02:50AM (#27947303)
Yeah, I honestly have not cared about how hard drives work in about 10 years since I built my last array. I have better things to do with my life than worry about this stuff. I just want to connect a drive, reformat/partition if necessary, and then go back to work. A single SSD now read/writes faster than a 16 drive array (got close in RAID0, but that's just dumb). Now, if SSDs could just get a decent volume size.
Re:Amazon Echo Dot does not wipe personal content after fact... by BenjiWiebe on Sunday July 25, 2021 @10:45AM (#27949517)
They've got what I consider decent size, it's just that the price can be a bit steep compared to an HDD, at least at quantities of 1. $700 will get you an 8TB SSD.
Re:Amazon Echo Dot does not wipe personal content after fact... by dylan604 on Sunday July 25, 2021 @11:00AM (#27949626)
8TB at blazing speeds to boot in a single device. To get decent speeds from HDD would require at least 8 drives striped together. So not only do you need 8+ HDD drives, you also need the enclosure. That would easily double the $700 for the single SSD. Luckily, with USBC/TB4, these enclosures come with the controllers built-in instead of requiring PCIe board
Re:Amazon Echo Dot does not wipe personal content after fact... by thelopa on Saturday July 24, 2021 @09:50PM (#27945964)
There could be bits of plain text data left over in over-provisioned storage set up in case a block goes bad (e.g. a flash cell that can no longer erase).
Re:Amazon Echo Dot does not wipe personal content after fact... by flavius29663 on Saturday July 24, 2021 @10:40PM (#27946229)
Would that extra cell be used unless there is a need for it? If there is a need for it, then I assume it will be a need for it when you fill the drive too.

But yeah, it depends on the manufacturer of the drive, so you don't want to take the chance, Full encryption is unbeatable.

Re:Amazon Echo Dot does not wipe personal content after fact... by dan000892 on Saturday July 24, 2021 @11:15PM (#27946408)
Flash devices maximize the longevity of the cells by wear leveling. The on-board controller maintains a map between the physical cell layout and the logical layout that's changing with every single write operation.

Extra cells are used both reactively and proactively.

Reactively: Error when erasing or write/verifying a cell? Copy contents to spare cell, flag old cell as bad, update the map, maybe complain if running low on spare cells but otherwise call it a day.

Proactively: Cells are only rated for so many erase operations which directly informs the longevity (total bytes written) of a drive. MLC cells can be written to 3,000 times and SLC 20,000 but the latter is much more expensive. For use cases where greater longevity is required (without spending SLC money), why not put a disk together that has twice as many cells as it needs and wear level across all of them? If you `dd if=/dev/zero of=/dev/sdX bs=64k status=progress` your 32GB drive and it'll complete after 32GB but you have no way of knowing how many more cells that drive has that you didn't touch.

(Also as one of the parents pointed out, disk controllers are getting smart. You don't know if it was transparently compressing data too causing you to touch even fewer cells. ATA Secure Erase is the way to go.)

Re:Amazon Echo Dot does not wipe personal content after fact... by sizzle on Sunday July 25, 2021 @10:48AM (#27949534)
I’ve always wondered this, instead of writing many passes of gibberish data that takes many hours, could I simply format the drive in seconds, encrypt the whole blank drive with a long generated password, then format and encrypt a second time in seconds and be done?

Or if I’m feeling spicy, do all this then hit it with a hammer until it’s shattered in a million pieces like my dreams of working in tech.

Re:Amazon Echo Dot does not wipe personal content after fact... by Kwpolska on Sunday July 25, 2021 @02:58PM (#27951875)
If the first encrption would encrypt the entire drive, then you’ve effectively done a 1-pass erase. It might work, but I would still prefer specialized software — perhaps the encryption method of choice would still leave some data unencrypted or untouched. The hammer method also sounds fine to me.
Re:Amazon Echo Dot does not wipe personal content after fact... by emodendroket on Saturday July 24, 2021 @09:44PM (#27945940)
Not true of older Android phones, however.
Re:Amazon Echo Dot does not wipe personal content after fact... by 8note on Sunday July 25, 2021 @01:09AM (#27946876)
If the crypto is strong, wouldnt the leftovers be equivalent to not overwriting?

The only better is less wear on the disk

Re:Amazon Echo Dot does not wipe personal content after fact... by lolthishuman on Saturday July 24, 2021 @07:29PM (#27945277)
I’ve read opsec material that no matter how many passes you do it can still be read. Hard to know for sure unless you know the stack in and out like the back of your hand.
Re:Amazon Echo Dot does not wipe personal content after fact... by jcrawfordor on Saturday July 24, 2021 @08:11PM (#27945501)
1) Modern research suggests that recovering data which has been overwritten once on magnetic media is probably not feasible due to the high density of modern magnetic storage devices and the use of dynamically aligning heads (e.g. that follow track geometry as they read) instead of absolutely positioned heads (stepper motors) that allow for more error in alignment.

2) Nonetheless, there is an appreciable risk of data remaining on the device due to non-volatile caches, remapped disk areas, and other factors that are not always well understood or disclosed by the manufacturer. Manufacturers have also been found to be unreliable in their implementation of ATA security features (e.g. embedded secure erase). As a result, with few exceptions it is U. S. government policy to permanently destroy all storage devices rather than trusting any kind of secure erasure. The typical NSA-approved method is either to degauss (surprisingly tricky to do right) and then crush, or reduce to 2mm particles with a device resembling a large, terrifying blender.

Re:Amazon Echo Dot does not wipe personal content after fact... by jfrunyon on Saturday July 24, 2021 @08:36PM (#27945605)
> As a result, with few exceptions it is U. S. government policy to permanently destroy

And as a result, (probably) Iron Mountain makes bucketloads because we don't just encrypt the drives (let's face it, that would be perfectly acceptable for 99% of US government computers - maybe Top Secret stuff deserves proper destruction).

Re:Amazon Echo Dot does not wipe personal content after fact... by kps on Saturday July 24, 2021 @08:52PM (#27945692)
> I’ve read opsec material that no matter how many passes you do it can still be read.

If that were true, we'd have infinite storage capacity.

Re:Amazon Echo Dot does not wipe personal content after fact... by taeric on Saturday July 24, 2021 @08:55PM (#27945709)
Giving some charity to the claim, I'm assuming it meant on devices you plan to dispose of.
Re:Amazon Echo Dot does not wipe personal content after fact... by neolog on Saturday July 24, 2021 @09:02PM (#27945735)
I don't see how throwing it away improves storage capacity in a way that would invalidate GP's comment
Re:Amazon Echo Dot does not wipe personal content after fact... by taeric on Saturday July 24, 2021 @10:38PM (#27946223)
The assumption isn't infinite capacity. It is recovery of the last data.
Re:Amazon Echo Dot does not wipe personal content after fact... by DSMan195276 on Sunday July 25, 2021 @01:24AM (#27946929)
Is that fundamentally different from the question of whether overwriting data can make it unreadable? If yes then you can eventually make the "last data" unrecoverable by overwriting it. And if no then presumably you can recover anything previously written to the disk, ergo infinite capacity.
Re:Amazon Echo Dot does not wipe personal content after fact... by tempestn on Sunday July 25, 2021 @02:14AM (#27947134)
Presumably the original comment meant that you can't guarantee the original data is unreadable with any finite number of overwrites, not that you can always read the original data after overwriting. I'm not saying that's true, but it's a logical interpretation that doesn't imply infinite storage.
Re:Amazon Echo Dot does not wipe personal content after fact... by Gigachad on Saturday July 24, 2021 @09:29PM (#27945869)
Even if you could find the original crypto header, You still need to know the password to unlock it. On iphones, the secure enclave will hold the decrypted key while its running but you need to enter the password after a reboot.
Re:Amazon Echo Dot does not wipe personal content after fact... by Gigachad on Sunday July 25, 2021 @12:23AM (#27946701)
Also if someone had the technical capability to do this. I would be infinitely more concerned about them having an exploit which allows them to hack my next phone and grab all the data while its running.
Re:Amazon Echo Dot does not wipe personal content after fact... by vlovich123 on Saturday July 24, 2021 @07:57PM (#27945423)
A lot of that opsec material is very dated back from when density was lower and you had a spinning disk. Do you have any that’s evidence-based that such techniques are needed for flash storage? If anything the opsec concerns are different. There’s very little that would force the controller to actually perform erase of specific blocks (eg the flash could blacklist blocks due to errors). To my knowledge that’s the primary concern, not that the data is still somehow recoverable once erased (which used to be true but I’m not sure holds for modern storage).
Re:Amazon Echo Dot does not wipe personal content after fact... by tailspin2019 on Saturday July 24, 2021 @07:41PM (#27945336)
That’s probably true but the GP is likely drawing the distinction that iOS tries to do an “unrecoverable” delete as best it can whereas presumably the Echo is not doing this (encrypting the data and then deleting the key as part of the reset).
Re:Amazon Echo Dot does not wipe personal content after fact... by nyolfen on Saturday July 24, 2021 @08:01PM (#27945451)
this does not apply to cryptoshredding or any modern storage media. even a single pass on magnetic media renders data unrecoverable.
Re:Amazon Echo Dot does not wipe personal content after fact... by wongarsu on Saturday July 24, 2021 @06:34PM (#27944972)
Concerning Windows, the help page about the factory reset states "You'll be asked to choose whether you want to erase data quickly or thoroughly. If you choose to erase data quickly, some data might be recoverable using special software. If you choose to erase data thoroughly, this will take longer but it makes recovering data less likely." [1]

Of course deleting data on an SSD is tricky due to wear-leveling, anything short of telling the drive to erase the entire disk with the secure erase command isn't guaranteed to work.

1: https://support.microsoft.com/en-us/windows/how-to-refresh-r...

Re:Amazon Echo Dot does not wipe personal content after fact... by orev on Saturday July 24, 2021 @06:36PM (#27944980)
This is why FDE is mostly the default on all of the devices you mention. The secret keys are stored in the TPM or equivalent. Most SSDs for Mac/PC also have an OEM software option to trigger a secure wipe using special software from the vendor.

The problem here is that the Echo is closed so those options aren’t available to you. However, this is also a problem on other custom devices like printers.

Re:Amazon Echo Dot does not wipe personal content after fact... by ThePowerOfFuet on Saturday July 24, 2021 @07:58PM (#27945432)
>By that logic my iPhone 11, my Android phone, my Mac or my Windows PC doesn't wipe personal content either after factory reset

Your iPhone 11 zeroizes the cryptographic key used for the user data partition. It doesn't have to wipe it per se, but rather it renders it eternally inaccessible; then it creates a new key and sets up a new filesystem right over top of the old one (which now just has random data in the unallocated space).

Re:Amazon Echo Dot does not wipe personal content after fact... by jfrunyon on Saturday July 24, 2021 @08:46PM (#27945656)
If you really think the encryption will never ("eternally") be broken, I have sad news for you: it will.
Re:Amazon Echo Dot does not wipe personal content after fact... by barsonme on Saturday July 24, 2021 @09:06PM (#27945754)
If AES is broken before your iPhone is destroyed then you have bigger problems than somebody reading your data.
Re:Amazon Echo Dot does not wipe personal content after fact... by ashtonkem on Saturday July 24, 2021 @06:25PM (#27944921)
Do you have any sources for the assertion that resetting an iOS device doesn’t remove data?
Re:Amazon Echo Dot does not wipe personal content after fact... by wrboyce on Saturday July 24, 2021 @06:29PM (#27944948)
Do iOS devices not leverage full disk encryption? In which case I’d assume simply wiping the encryption keys/fde headers would be sufficient? (Which it almost certainly does.)
Re:Amazon Echo Dot does not wipe personal content after fact... by croon on Saturday July 24, 2021 @06:33PM (#27944969)
https://www.apple.com/ca/business-docs/iOS_Security_Guide.pd...

> The “Erase all content and settings” option in Settings obliterates all the keys in Effaceable Storage, rendering all user data on the device cryptographically inaccessible.

Semantics debate around whether leaving data practically inaccessible is the same as removing it, but considering where we are, I'd say it isn't.

Granted, this is from 2018, but I doubt the defaults and concept have changed.

Re:Amazon Echo Dot does not wipe personal content after fact... by Retric on Saturday July 24, 2021 @07:21PM (#27945218)
Securely deleting the keys is safer than simply practically inaccessible. That suggests their is some impractical way to access the data, care to suggest what that might be?
Re:Amazon Echo Dot does not wipe personal content after fact... by emsy on Saturday July 24, 2021 @08:43PM (#27945634)
Overwriting flash with 0s. To be fair I think the iPhone should grant you that option (MacOs does). But to suggesting that leaving an encrypted block of data on the device is on the same level as leaving unencrypted blocks of data lying around is foolish.
Re:Amazon Echo Dot does not wipe personal content after fact... by Retric on Saturday July 24, 2021 @09:58PM (#27946010)
Overwriting flash data isn’t going to give you access to the data. It might in theory be more secure, but I would favor encryption at rest rather than simply overwriting plain text.
Re:Amazon Echo Dot does not wipe personal content after fact... by jfrunyon on Saturday July 24, 2021 @08:43PM (#27945635)
Encryption can be (and in fact certainly will be, given enough time) broken.
Re:Amazon Echo Dot does not wipe personal content after fact... by Retric on Saturday July 24, 2021 @09:55PM (#27945995)
It is possible in theory to recover some information from overwriting flash data with zeros, it’s also possible in theory for well designed modern encryption to be broken but neither of those are guaranteed at this point.
Re:Amazon Echo Dot does not wipe personal content after fact... by jfrunyon on Tuesday July 27, 2021 @12:29PM (#27974343)
Essentially every encryption scheme in history has been broken. It's a bit silly to think that "well designed modern" makes it safe. The others were all well designed and modern at one time, too. The only scheme that's truly unbreakable is a one-time pad and that's... well... not really practically useable.

Personally, that's not a risk that I would care about (especially in the context of an Echo Dot or even an iPhone), but deleting the keys will not be better than inaccessible forever.

Re:Amazon Echo Dot does not wipe personal content after fact... by vlovich123 on Saturday July 24, 2021 @08:02PM (#27945452)
Even if you didn’t have the public docs explaining this, you could make an educated guess because resetting the iOS device takes the same amount of time regardless of how much data you put on it and that time is on the order of 10s of seconds. iPhones don’t have erase speeds of 12gigabit/s - I don’t think there’s any storage technology that could do that. Also remember that Apple takes seriously the concern about the data leaking because the OS decided* to blacklist a bad block. Once a block has gone bad you probably shouldn’t rely on attempts to erase it working out.

* if I recall correctly iOS devices don’t use a traditional flash controller and Apple does that mapping themselves (it’s also largely why Apple devices have better flash performance than competitors)

Re:Amazon Echo Dot does not wipe personal content after fact... by ashtonkem on Monday July 26, 2021 @10:06AM (#27959493)
> you could make an educated guess because resetting the iOS device takes the same amount of time regardless of how much data you put on it

This is incorrect. Secure deletion should cover the entire disk no matter how much data was used before, in order to deny an attacker any information or to guide their recovery efforts. I would absolutely expect a secure deletion process to take the exact same amount of time regardless of how much data is used.

A better tell is the difference between the same model of phone with different storage sizes. A 512GB iPhone should take 2x as long to securely wipe compared to a 256GB one, assuming they’re actually overwriting the encrypted data with random noise.

> iPhones don’t have erase speeds of 12gigabit/s

It’s worth pointing out that a true secure delete is actually a write not a delete. But it’s true that your typical iPhone could not possibly overwrite its entire disk in 10s or so, although last time I did a reset it took much longer than that.

Re:Amazon Echo Dot does not wipe personal content after fact... by vlovich123 on Tuesday July 27, 2021 @10:41PM (#27979784)
> This is incorrect. Secure deletion should cover the entire disk no matter how much data was used before, in order to deny an attacker any information or to guide their recovery efforts. I would absolutely expect a secure deletion process to take the exact same amount of time regardless of how much data is used.

That's a fair point. Still, mobile devices typically employ FDE to avoid the need for scribbling over the entire flash (also improves the lifetime of the flash in that way).

> It’s worth pointing out that a true secure delete is actually a write not a delete

Flash storage doesn't work that way unless you're referring to something else. To write a block you have to erase it first (makes the block all 1s or all 0s depending on the chip). An update of a block is technically then a read/erase/modify/write (although flash translation layers will elide the first 3 steps by writing to a free block & marking the old one as GC'able). Writing random patterns into flash to my knowledge generally isn't needed anyway as it was with magnetic storage. The only purpose of writing in a secure erase scenario is to try to overwhelm the flash translation layer to force every block to be touched.

> although last time I did a reset it took much longer than that.

I haven't profiled it, but any slowness erasing an iOS device is probably because the flash storage backing the secure element is optimized for reads rather than writes. Additionally, it may be erasing various metadata/caches in the OS storage that aren't covered by the encryption key.

Re:Amazon Echo Dot does not wipe personal content after fact... by barsonme on Saturday July 24, 2021 @08:40PM (#27945623)
Macs with SSDs don’t have the 7-pass option because (from the horse’s mouth) it’s only effective for HDDs.
Re:Amazon Echo Dot does not wipe personal content after fact... by thebruce87m on Sunday July 25, 2021 @09:43AM (#27949120)
If you could reliably read data after 6 passes then HDDs would be 6 times larger with the same hardware.

There is the further belief that state sponsored actors would be able to read them, but this relies that state sponsored actors 1) have hardware capable and 2) would only go to those lengths to get the data.

Re:Amazon Echo Dot does not wipe personal content after fact... by re on Saturday July 24, 2021 @08:14PM (#27945510)
> But at least Macs have a built-in 7-pass erase option to comply with DOD standards

I recently learned that the "zero out data" options are not available in Disk Utility for SSDs. This probably fine if you were using full disk encryption, especially on modern T2-chip Macs that always encrypt the built-in storage even if you haven't enabled FileVault, but it was a little concerning when I was getting rid of an old failing Mac that had an aftermarket SSD installed without encryption enabled.

Re:Amazon Echo Dot does not wipe personal content after fact... by jeffbee on Saturday July 24, 2021 @10:08PM (#27946048)
Yes it's really annoying because they also aren't available in the UI for fusion drives. You have to go into the command line tools in recovery mode, break the fusion drive volume down into its constituent pieces, and wipe the HDD separately, then rebuilt the fusion drive manually.
Re:Amazon Echo Dot does not wipe personal content after fact... by userbinator on Saturday July 24, 2021 @08:28PM (#27945572)
Interesting note: modern high-density NAND flash ("TLC", "QLC") is so sensitive to the data patterns being written (writing zero bits causes more wear than writing 1 bits - the latter being the default non-written state of the medium) that controllers need to use a scrambling algorithm to statistically balance the number of 0 and 1 bits that are written. Earlier schemes were based on LFSRs or similar, but then I guess someone noticed that an encryption algorithm would also do a similar job, with the advantage of it being much harder to create pathological cases (look up "CD-ROM weak sector protection" for an interesting rabbithole related to that) and "self-encrypting drive" also be a good marketing point.

On the other hand, it's a nightmare for data recovery, especially the "I didn't ever mean to encrypt this drive, what do you mean you can't recover it?" situation.

There's some discussion of the older version of that scheme (not encryption-based) here: https://joshuawise.com/projects/ndfrecovery

Re:Amazon Echo Dot does not wipe personal content after fact... by aeturnum on Saturday July 24, 2021 @08:19PM (#27945533)
The clickbait-y part is that it is possible to retrieve a token from the previous user. Pretty normal as you say.

The non-clickbait is that the previous token is still valid as far as Amazon is concerned. They absolutely should have a process for invalidating tokens.

Re:Amazon Echo Dot does not wipe personal content after fact... by SV_BubbleTime on Saturday July 24, 2021 @08:26PM (#27945562)
The flash on your iPhone is nicer than cheaper embedded devices / microcontrollers. I have no idea what Echos use, but I’ve seen modern ARM micros have a 50k flash life expectancy or less.

It’s not impossible to have a flash memory without a user data eeprom that you could “burn out” (in reality make less reliable).

I have no idea if it’s true in this case, but the straight comparison / jump to iPhone 11 might also be speculative.

Re:Amazon Echo Dot does not wipe personal content after fact... by PhasmaFelis on Saturday July 24, 2021 @08:33PM (#27945594)
> By that logic my iPhone 11, my Android phone, my Mac or my Windows PC doesn't wipe personal content either after factory reset

If those work the same way, then no, they don't.

If lots of other devices have the same problem, that doesn't make it better!

Re:Amazon Echo Dot does not wipe personal content after fact... by sp332 on Saturday July 24, 2021 @06:55PM (#27945060)
There is a command you can send to the drive that will erase all data including from those extra bookkeeping areas. "ATA Secure Erase". The drive has to support it of course.
Re:Amazon Echo Dot does not wipe personal content after fact... by ekianjo on Saturday July 24, 2021 @09:43PM (#27945934)
> By that logic my iPhone 11

Don't worry about your physical iPhone, all of your data is mostly already saved for you remotely where it can never be wiped ever.