Jump to content

Is the Data on Your SSD Secure?

 

Wow, floored. I did not know this at all... is there a way around this? I am sure someone has come up with a program that deals with this issue, no?

 

Source:

http://gizmodo.com/how-secure-is-the-data-on-your-ssd-1339934694

Never trust a man, who, when left alone with a tea cosey... Doesn't try it on. Billy Connolly
Marriage is a wonderful invention: then again, so is a bicycle repair kit. Billy Connolly
Before you judge a man, walk a mile in his shoes. After that, who cares? He's a mile away and you've got his shoes. Billy Connolly
Link to comment
https://linustechtips.com/topic/57534-is-the-data-on-your-ssd-secure/
Share on other sites

Link to post
Share on other sites

Damn you are just pumping the forum with topics  :D

#LinusKitchenTips /// "Better than useless" - Linus Sebastian

LTT Holy bible: Code Of Conduct

Project Toaster [My Silver NCASE M1 V2 Build-log] 

Main Rig
 Case: Fractal Design Define R5 CPU: INTEL 
i5 3570k Cooler: CM Hyper 212 Evo Mobo: Maximus V Gene Z77 GPU: Gigabyte GTX 970 G1 Gaming (w/ 0% fan mode) RAM: Corsair Dominator Platinum 2x8GB 1600mHz Storage: OCZ VERTEX 4 256GB PSU: Corsair AX860 Monitor: ASUS PB278Q 1440p 27" Headphones: QPAD QH-90 Laptop
Macbook Pro Retina 13" i5 256Gb Early 2015
Phone
Oneplus One 64GB Sandstone Black
Link to post
Share on other sites

Damn you are just pumping the forum with topics  :D

Someone wants the news reporter badge.. :)

i5 4670k | Sapphire 7950 | Kingston 120GB SSD | Seagate 1TB | G.Skill Ripjaw X Series 8GB

PB238Q | Steelseries Sensei | Ducky DK9087 | Qck Heavy

Build Log: http://linustechtips.com/main/topic/44902-from-imac-to-my-own-creation/

Link to post
Share on other sites

Deleting files may not mean they're gone

 

The same goes for HDDs. Deleting just means the OS knows it can write over the sector(s).

 

overwriting them isn't safe

 

You have to rewrite an HDD sector about 5 times before previous data is no longer readable.

 

a thorough scrub is at the whim of a micro controller, not the user

 

And the data in an HDD is dependent on a mechanical arm on a bearing not breaking, and the platters that move at about 40 km/h at the edge not wearing out the bearing or being even a fraction off balance after getting knocked about in transit.

AMD Ryzen 7800 X3D, MSI B650 Project Zero, Antec C5, Gigabyte RTX 4080 Super Aero

 

Nikon D500 | Nikon 300mm f/4 PF  | Nikon 200-500 f/5.6 | Nikon 50mm f/1.8 | Tamron 70-210 f/4 VCII | Sigma 10-20 f/3.5 | Nikon 17-55 f/2.8 | Tamron 90mm F2.8 SP Di VC USD Macro | Neewer 750II

Link to post
Share on other sites

The same goes for HDDs. Deleting just means the OS knows it can write over the sector(s).

 

 

You have to rewrite an HDD sector about 5 times before previous data is no longer readable.

These points are covered in the video. The problem here is that the PC has no idea what the SSD controller does with its commands, so even if you tell it to rewrite 1000 times there is still a chance the controller will simply say "nope, ill just rewrite that bit instead"

Respect the Code of Conduct!

>> Feel free to join the unofficial LTT teamspeak 3 server TS3.schnitzel.team <<

>>LTT 10TB+ Topic<< | >>FlexRAID Tutorial<<>>LTT Speed wave<< | >>LTT Communies and Servers<<

Link to post
Share on other sites

These points are covered in the video. The problem here is that the PC has no idea what the SSD controller does with its commands, so even if you tell it to rewrite 1000 times there is still a chance the controller will simply say "nope, ill just rewrite that bit instead"

 

If a manufacturer had a firmware or controller that arbitrarily rewrites data which needs to be retained, then that manufacturer wouldn't last very long. OCZ's handling of the Sandforce controller debacle nearly put them out of business.

 

You should have a back-up of all your data run at least once a week on a separate drive anyway, so any lost data is restorable in a matter of minutes (even if it hits the OS)

AMD Ryzen 7800 X3D, MSI B650 Project Zero, Antec C5, Gigabyte RTX 4080 Super Aero

 

Nikon D500 | Nikon 300mm f/4 PF  | Nikon 200-500 f/5.6 | Nikon 50mm f/1.8 | Tamron 70-210 f/4 VCII | Sigma 10-20 f/3.5 | Nikon 17-55 f/2.8 | Tamron 90mm F2.8 SP Di VC USD Macro | Neewer 750II

Link to post
Share on other sites

If a manufacturer had a firmware or controller that arbitrarily rewrites data which needs to be retained, then that manufacturer wouldn't last very long. OCZ's handling of the Sandforce controller debacle nearly put them out of business.

did you even fully watch the video?

there is a thing called wear leveling: http://en.wikipedia.org/wiki/Wear_leveling

 

which means the controller can simply move stuff around instead of overwriting, or overwrite the same bit over and over again if that part of the ssd is still the bit with the best quality.

 

so there is a large chance that when you tell the ssd to write data to a specific sector the chip will say "hmmm, that part is already worn a bit, lets write to that empty and healthy bit of the ssd instead" meaning sector you wanted to erase remains untouched.

Respect the Code of Conduct!

>> Feel free to join the unofficial LTT teamspeak 3 server TS3.schnitzel.team <<

>>LTT 10TB+ Topic<< | >>FlexRAID Tutorial<<>>LTT Speed wave<< | >>LTT Communies and Servers<<

Link to post
Share on other sites

did you even fully watch the video?

there is a thing called wear leveling: http://en.wikipedia.org/wiki/Wear_leveling

 

which means the controller can simply move stuff around instead of overwriting, or overwrite the same bit over and over again if that part of the ssd is still the bit with the best quality.

 

so there is a large chance that when you tell the ssd to write data to a specific sector the chip will say "hmmm, that part is already worn a bit, lets write to that empty and healthy bit of the ssd instead" meaning sector you wanted to erase remains untouched.

 

Why is that a bad thing? Or have I totally misunderstood what you mean?

AMD Ryzen 7800 X3D, MSI B650 Project Zero, Antec C5, Gigabyte RTX 4080 Super Aero

 

Nikon D500 | Nikon 300mm f/4 PF  | Nikon 200-500 f/5.6 | Nikon 50mm f/1.8 | Tamron 70-210 f/4 VCII | Sigma 10-20 f/3.5 | Nikon 17-55 f/2.8 | Tamron 90mm F2.8 SP Di VC USD Macro | Neewer 750II

Link to post
Share on other sites

Why is that a bad thing?

It isn't, unless you want to erase your data, as in no data at all. but as you cant control which sectors are written to when erasing its very difficult to do this.

The problem here isn't retaining data but removing it completely. 

 

with a hdd you do a secure erase, writing bogus data to all sectors a couple times but because of wear leveling you cant be sure that it has write to all sectors with a SSD which means data will still be on parts of the ssd after a secure erase.

Respect the Code of Conduct!

>> Feel free to join the unofficial LTT teamspeak 3 server TS3.schnitzel.team <<

>>LTT 10TB+ Topic<< | >>FlexRAID Tutorial<<>>LTT Speed wave<< | >>LTT Communies and Servers<<

Link to post
Share on other sites

Why is that a bad thing? Or have I totally misunderstood what you mean?

 

Did you even watch the video man? Seriously? lol

 

It isn't, unless you want to erase your data, as in no data at all. but as you cant control which sectors are written to when erasing its very difficult to do this.

The problem here isn't retaining data but removing it completely. 

 

with a hdd you do a secure erase, writing bogus data to all sectors a couple times but because of wear leveling you cant be sure that it has write to all sectors with a SSD which means data will still be on parts of the ssd after a secure erase.

 

So Looney, has anyone come up with a program that gets around this issue yet? Is there any ways of temporarily overriding wear levelling?

Never trust a man, who, when left alone with a tea cosey... Doesn't try it on. Billy Connolly
Marriage is a wonderful invention: then again, so is a bicycle repair kit. Billy Connolly
Before you judge a man, walk a mile in his shoes. After that, who cares? He's a mile away and you've got his shoes. Billy Connolly
Link to post
Share on other sites

Have they tested this?

 

The easiest way is to write zeros, fill the drive with data, write zeros again, and see how many times they have to do this for it to matter.

Intel 4670K /w TT water 2.0 performer, GTX 1070FE, Gigabyte Z87X-DH3, Corsair HX750, 16GB Mushkin 1333mhz, Fractal R4 Windowed, Varmilo mint TKL, Logitech m310, HP Pavilion 23bw, Logitech 2.1 Speakers

Link to post
Share on other sites

It isn't, unless you want to erase your data, as in no data at all. but as you cant control which sectors are written to when erasing its very difficult to do this.

The problem here isn't retaining data but removing it completely. 

 

with a hdd you do a secure erase, writing bogus data to all sectors a couple times but because of wear leveling you cant be sure that it has write to all sectors with a SSD which means data will still be on parts of the ssd after a secure erase.

But even if some sectors weren't erased wouldn't the those sectors only contain a small portion of any meaningful chunk of data, given how the controller writes randomly to the available NAND?

Link to post
Share on other sites

Have they tested this?

 

The easiest way is to write zeros, fill the drive with data, write zeros again, and see how many times they have to do this for it to matter.

there is no set number as it depends on the controller and the state of the ssd what is done to the sectors, that is the main problem here.

 

But even if some sectors weren't erased wouldn't the those sectors only contain a small portion of any meaningful chunk of data, given how the controller writes randomly to the available NAND?

people who secure erase want their data GONE.

o0 its only a small piece of data that is left out...

What if that piece of data turned out to be the encryption key for your other storage.

chases of this happening are small but they should be nonexistent in this case.

Respect the Code of Conduct!

>> Feel free to join the unofficial LTT teamspeak 3 server TS3.schnitzel.team <<

>>LTT 10TB+ Topic<< | >>FlexRAID Tutorial<<>>LTT Speed wave<< | >>LTT Communies and Servers<<

Link to post
Share on other sites

Yeah I've known about this since SSDs came out, the conclusion back then was the only way to be sure that your data is secure is to use full disc encryption right from the start (i.e. new SSD > install OS > encrypt entire disc) that way all the data written to the drive is in an encrypted form, then if it gets stolen/sold any recoverable data (even after a drive wipe) would be encrypted nonsense.

 

Also give this a read about using the ATA Secure Erase command to properly erase an SSD http://www.kingston.com/en/community/articledetail?ArticleId=10

Link to post
Share on other sites

Yeah I've known about this since SSDs came out, the conclusion back then was the only way to be sure that your data is secure is to use full disc encryption right from the start (i.e. new SSD > install OS > encrypt entire disc) that way all the data written to the drive is in an encrypted form, then if it gets stolen/sold any recoverable data (even after a drive wipe) would be encrypted nonsense.

 

Technically drive encryption can be broken given enough time.... not idea but its possible. I agree with looney though, regardless of the chance you dont want there to be any chance of any of your data getting out. I mean for me in 99.999999999999999999999999999999999% of my usage case I dont care but corporations are not like that and more out of morbid curiosity I would like to know.

Never trust a man, who, when left alone with a tea cosey... Doesn't try it on. Billy Connolly
Marriage is a wonderful invention: then again, so is a bicycle repair kit. Billy Connolly
Before you judge a man, walk a mile in his shoes. After that, who cares? He's a mile away and you've got his shoes. Billy Connolly
Link to post
Share on other sites

Technically drive encryption can be broken given enough time.... not idea but its possible. I agree with looney though, regardless of the chance you dont want there to be any chance of any of your data getting out. I mean for me in 99.999999999999999999999999999999999% of my usage case I dont care but corporations are not like that and more out of morbid curiosity I would like to know.

 

Encryption is better than nothing though, but check my edit though the ATA Secure Erase command is a specification that SSDs use to properly erase a drive just as long as the specification is properly implemented, people are still thinking in a HDD state of mind when it comes to drive erasure, now we have to think in SSD terms, you don't overwrite the data you just tell the SSD to erase the all the blocks.

Link to post
Share on other sites

The only way to really erase a drive is to use a sledgehammer.

Interested in Linux, SteamOS and Open-source applications? Go here

Gaming Rig - CPU: i5 3570k @ Stock | GPU: EVGA Geforce 560Ti 448 Core Classified Ultra | RAM: Mushkin Enhanced Blackline 8GB DDR3 1600 | SSD: Crucial M4 128GB | HDD: 3TB Seagate Barracuda, 1TB WD Caviar Black, 1TB Seagate Barracuda | Case: Antec Lanboy Air | KB: Corsair Vengeance K70 Cherry MX Blue | Mouse: Corsair Vengeance M95 | Headset: Steelseries Siberia V2

 

 

Link to post
Share on other sites

What If I loaded Linux from a USB and reformatted the drive than used "that" command that creates a random bit file of the size to fill the drive? Wouldn't that just completely "remove" all of the files except the previous windows file locations?

Sent from my iPhone using Tapatalk - now Free

Link to post
Share on other sites

I keep my SSD open to all intruders and I voluntarily give out my I.P. address, real address, bank account and routing numbers, credit card information and social security number.

 

I also keep pictures of the babies in the family on there and give those out as well so people can exploit those pictures...

 

because I am just so balla' that I don't need security. I trust my balla'ness to keep me secured

 

I am glad that in this very technical and mature conversation I was able to lend my balla' skills

I get 60 frames at 1080p on a dual core APU. Ask me how.

AMD FX 8350 CPU / R9 280X GPU / Asus M5A97 LE R 2.0 motherboard / 8GB Kingston HyperX Blue 1600 RAM / 128G OCZ Vertex 4 SSD / 256G Crucial SSD / 2T WD Black HDD / 1T Seagate Barracude HDD / Antec Earthwatts 650W PSU / Coolermaster HAF 922 Case

Link to post
Share on other sites

This.  If you need data gone physically destroy the drive.  A disc with holes in it that's bent in 15 different ways isn't going to be recovered.

 

And if your drives get seized by the NSA they have the backdoor keys to unencrypt your full disc encryption anyway so that doesn't matter.

 

The only way to really erase a drive is to use a sledgehammer.

Intel 4670K /w TT water 2.0 performer, GTX 1070FE, Gigabyte Z87X-DH3, Corsair HX750, 16GB Mushkin 1333mhz, Fractal R4 Windowed, Varmilo mint TKL, Logitech m310, HP Pavilion 23bw, Logitech 2.1 Speakers

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×