TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

DigitalHax – Allows you to recover data from "Destroyed" Digital Ocean VM

53 pointsby gregimbaover 11 years ago

9 comments

zagiover 11 years ago
Hi, Ben from DigitalOcean here - just to give you guys an update. This method will no longer work on a newly created droplet.<p>We&#x27;ve now default scrub_data to ON for both web interface and API as we look at making this process permanent. Additionally, we&#x27;ve re-engineered the way we&#x27;re provisioning disks and access to previously written data is no longer possible.<p>We&#x27;ve taken all steps in favor of security currently and will build a permanent solution that favors security and caution moving forward.
评论 #6989792 未加载
评论 #6989284 未加载
评论 #6989659 未加载
sneakover 11 years ago
So, this is going to overwrite lots of data on the block device you&#x27;re trying to recover data from, resulting in a lot of repeated information and erasure of recoverable stuff. The correct answer is to redirect the output, and make find.sh output the gzipped data so you can pipe that to your local disk never touching the remote end.<p>Edit: Here&#x27;s the code. <a href="https://github.com/gregimba/DigitalHax/pull/1" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gregimba&#x2F;DigitalHax&#x2F;pull&#x2F;1</a>
评论 #6988549 未加载
FiloSottileover 11 years ago
This is a cute PoC of how much easy it is, but with freely available forensic tools like, say, PhotoRec is possible to extract much more meaningful and diverse data (entire files, images, database files...) that by simply running strings.<p>So, don&#x27;t take it as the maximum damage one can get.
sukakaover 11 years ago
how long does dd take? Could use an estimate. Ran dd for around 10 minutes this morning and got 500,000 lines, and it was still running.<p>update: finished in around 12 minutes. out.txt is around 10gb.<p>update: out.txt is around 54 million lines from wc -l out.txt. I&#x27;m using less with command [line number]G to poke around. I have an NYC1 droplet, and there&#x27;s a lot of junk not mine.. text in other languages and python which i don&#x27;t use
评论 #6988452 未加载
评论 #6988434 未加载
jamesbrownuhhover 11 years ago
As a user of Digital Ocean (amongst others) I find it hard to get too excited about this. When I destroy a droplet (VM) I already have the option to scrub the discs before deletion.<p>If I choose not to use that (and I never have on any of the hundreds of machines I&#x27;ve created and later torn down) it&#x27;s because there is nothing of any sensitivity on them. If someone wants to resurrect gigabytes of entirely boring and transient log data from what I was last doing, they&#x27;re welcome to!<p>I can only really see this being a concern for people who were storing sensitive information on a cloud instance which they then removed and chose NOT to scrub. In which case, they already have larger issues than this one. &quot;Problem with user, not with cloud.&quot;
评论 #6990503 未加载
rdlover 11 years ago
This is a case where only &quot;aggressive full disclosure&quot; got a company to respond. Which is why I&#x27;m generally only willing to go through &quot;responsible disclosure&quot; for companies which have shown themselves to be reasonable in the past, or in exceptional cases where the vulnerability is impossible to end users to mitigate, and&#x2F;or causes exceptionally grave harm.
jonahxover 11 years ago
In what circumstances will this work? Are you recovering data from other customers? If so, will this work even if the other customer has deleted their VM using the recommended procedure?
评论 #6988457 未加载
kanzureover 11 years ago
Approximately how much would it cost in DigitalOcean time to cover 10%, 50%, 90% of their data?
revelationover 11 years ago
Instead of installing apache2 you might consider just using scp.
评论 #6988524 未加载