429 points · by aforensics · 6y ago · 141 comments
This is only half-true. Any secure encryption is going to result in ciphertext that is indistinguishable from random data.
In cases where the ciphertext is designated by a header or file format, then it's trivial to know that something is encrypted. Then there are cases where we can try to forensically determine that there's encrypted data via the existence of an encryption tool (e.g. VeraCrypt).
If you wipe a disk with random data, for example, then it would be relatively difficult to determine whether or not the disk is encrypted (implying that there are no headers on it). In fact, one method of wiping disks is to generate a random encryption key and encrypt a stream from /dev/zero to fill the disk (https://wiki.archlinux.org/index.php/Dm-crypt/Drive_preparat...).
This tool is making use of a VeraCrypt hidden volume which is a rather really interesting application of plausible deniability in cryptography. Essentially, this let's you have two volumes where both are encrypted, but each has a different key. In this setup, you'd put some files on one of the volumes to make it appear that it's your "used" volume. On the other "hidden" volume, you'd place the real files you want to keep safe.
In a case where the government is demanding that you release your encryption keys, you would give up the keys to the "fake" volume. Unless you divulge the keys to the "real" volume, the attackers wouldn't necessarily know that it exists.
Unless there's evidence of you using one (maybe chat logs or google searches asking for help on using it, for example), there's no reason for anyone to suspect you use it.
The VeraCrypt documentation explains the technical details (https://www.veracrypt.fr/en/Hidden%20Volume.html) well enough.
A new SSD with very little data in the filesystem isn't going to have many, many sectors filled with random bytes. They're going to be blank instead.
A used drive will have free sectors (not used by the filesystem) containing unencrypted contents of old files that have since been deleted or something. This is also not random data. Chunks of movies, pictures, applications and music will be identifiable, easily.
While that's technically true it feels a bit like a moot point because if you have random data that cannot be attributed to any other application (such as large volumes of randomness) then it's a reasonable conclusion that you've just detected an encrypted volume.
> In a case where the government is demanding that you release your encryption keys, you would give up the keys to the "fake" volume. Unless you divulge the keys to the "real" volume, the attackers wouldn't necessarily know that it exists.
Unless they inspect the storage properties (either physically or how it registers itself on the host) and see that it's a 1TB drive with only a 500GB mountable volume. Again, it wouldn't be a forgone conclusion that the individual has other hidden volumes but it would be suspicious enough to warrant further investigation / interrogation.
As always though, it really depends on the risk level you're trying to protect yourself against.
It's possible Tor and Tails is dangerous software to use in certain states. But if they can safely use it, it's here for them.
I am not sure what you mean here - properly encrypted data is indistinguishable from random data ...
1. Each filesystem lives within an allocated area and knows not to overwrite its neighbors' data.
2. Some filesystems (the real ones) are privileged and know their actual allocated area. Others (the decoys) think they own areas of the storage volume that contain hidden data and therefore have the potential to overwrite the hidden filesystems if they are written to.
In the case of (1), you need to be able to explain why your computer has unallocated areas filled with pseudorandom data. That is never going to pass the plausibility test, imo.
In the case of (2), a lot of effort needs to be put into making the decoys look normal while not letting them overwrite the hidden data. There are a number of strategies you could use here that would work, but it will never be as convenient or simple as dual-booting and the more convenient you try to make it, the less innocent a hard drive will appear under close inspection.
Does such a thing already exists for an Ubuntu setup ?
Most of the people we're talking about just run off the shelf forensics software and have minimum actual expertise (the government doesn't pay well enough for legitimate experts doing it by hand).
But then again, very few people are crazy enough to modify computer hardware to protect their information. So both sides of this coin might be largely fictional.
The people doing the cloning / data theft would have to know about your particular model. Obviously, you encrypt the second drive, that in itself contains a hidden partition in case they do discover it.
IT specialists are expensive and it would be shame if we waste that on something benign as airport security which was mainly established by paranoia and the wish to save face.
An what exactly are they targeting? Are they looking for howToBlowUpAnAirplane.txt? Just some industrial espionage? Just some display of authority? I don't really get what would prompt these measures.
Was there ever anything they found on a device someone took on a plane?
journalists, I heard
We're finally sharing our github with the world. This post is the first announcement of our project apart from our thus-far non-populated subreddit. No one's discovered us yet. We've only told one person in the world before right now. We're new to developing and we're very humble and willing to learn, so any suggestions and help is welcome.
What we aren't as humble about is the potential we think this application has. HiddenVM allows full-scale anti-forensic use of any desktop OS. (No longer just Tails.) If you place your installed files inside good deniable encryption like VeraCrypt, it means that no digital trace of your chosen OS is left on your hard drive or can be forensically proven to exist. That is significant.
There are many reasons why you may want to use HiddenVM. Some use cases include:
- You're a spy protecting national security and you need to leave no digital trace on the hard drive of the computer you just used.
- Law enforcement agents conducting sensitive investigations.
- Diplomats, politicians, and military personnel.
- Whistle-blowers needing to safely carry their information in any situation.
- Activists, dissidents, political asylum seekers, and journalists in need of stronger protection of their information from corrupt governments when their equipment is forcibly seized. (We know that the risk of the rubber hose remains a complex problem and limitation of encryption.) Now that you can use Windows once you set it up inside Tails, keeping your data private could become easier for you.
Border agents forcibly invade our privacy and potentially steal our secrets with no respect to who we are or what our rights are. We need tech solutions to protect our data. More use cases include:
- Lawyers carrying sensitive client information.
- People in business protecting their IP or trade secrets.
- Tactics in fighting against corporate espionage. It could be expensive or impossible to sue for someone's unlawful intrusion into your data. Easier to technologically prevent them in the first place.
- Protect your basic privacy and dignity for any of the one thousand other reasons why privacy matters.
- You travel a lot and you want to use Windows/macOS/Linux in a way that prevents malware code from being forcibly installed inside your operating system simply because you entered a country.
- Digital currency: store a more private Bitcoin wallet. Secure your assets against unwanted and unwarranted access. When data literally is money you have a lot to lose.
- Domestic violence victims, and people in other dangerous situations in life.
Data privacy is a human right. If you don't want someone searching your naked body and violating your dignity in that way, why should your data be any different? Airport border agents not only perform a full digital strip search, but they're also potentially stealing your data or implanting spyware and malware without you knowing. It is a devastating act.
Using Tails should never be reason to suspect you are a criminal or a spy. It also protects basic data privacy and democracy. Tails should become a standard USB that anyone who values their digital safety carries around in their briefcase, bag, purse or wallet. We hope our application increases the size of the Tails user base.
Thank you for your interest. We invite you to rip apart our assertions and code (but with courtesy), try out HiddenVM, and contribute to our project.
Sincerely, aforensics
1. Pictures.
> What we aren't as humble about is the potential we think this application has.
So you're not humble? Ditch the marketing goofiness. You think it has major potential. Be humble or don't. It's inessential to conveying what HiddenVM is.
> Like Tor, Tails, or Whonix, HiddenVM can be used for bad purposes
Unnecessary. You're already on the back foot.
> - You're a spy
This isn't a normatively 'good' reason.
> Activists, dissidents, political asylum seekers, and journalists (like Laura Poitras)
Don't cite a specific person unless that person is endorsing the product.
> Using Tails should never be reason to suspect you are a criminal or a spy. It protects basic data privacy and democracy.
Don't lead with a user story that exactly matches the stereotype, then. You're walking right into it.
"According to one former UBS banker, managers gave the private-wealth team specially encrypted laptops that could be easily deleted in case U.S. authorities barged in. “They told us about the computers, ‘if ever you run into problems in the U.S. with the IRS, just push button X twice, and everything will be deleted,’ ” said the banker. “It was like James Bond.”"
https://www.cnbc.com/2015/04/30/why-did-the-us-pay-this-form...
For a VeraCrypt volume, setting up an outer volume with convincing files and providing the decoy password may be effective.
Whether the mere possession of a Tails USB adversely affects your situation is a matter that remains to be discussed at length. There is clearly no one situation that applies to everyone.
HiddenVM's potential to provide deniability is about cryptographic deniability, not human deniability. Software can only do so much. If humans are suspicious, software alone cannot change their minds.
If someone has your VeraCrypt volume password, the volume can be unlocked by them using via any Tails stick but potentially any other operating system. What HiddenVM does is reduce digital forensic evidence of using that volume quite fundamentally.
> Also, is it possible to have tails on one usb and a veracrypt drive on a seperate USB drive?
Yes. It may be faster if you make your computer's internal SSD to be one entire partitionless hidden VeraCrypt volume.
> How would that effect deniability at, say, a border?
We want to be careful about making claims about deniability, and it's still a field we have a lot to learn about at HiddenVM. Someone more knowledgeable might dare to answer this. We already give two examples on the github page. Your situation is unique and only you can know what deniability strategy works best.
If you get in trouble, just swallow.
If you want you don't even need to wipe your install and have a bit more time to spend, you can dual boot and remove the other boot option temporarily from GRUB / MBR or whatever the windows equivalent was.
Or fetch out a few github repos if you don't want to install steam games. :)
This doesn't strike me as a selling point? Surely the default should be to have the VM traffic all go over Tor?
Cool project though.
The point of running this on Tails is to prevent the use of forensic tools inside the decoy OS to unearth what's underneath.
Snatching defeat from the jaws of victory.
I'm not sure if the entropy analysis of that free space can suggest that there's something funky about that free space or not.. Because usually free space is either actual info just marked as deleted, or info reset to zeros by some pro active wiping of the free space. So, having a bunch of whacky data that doesn't look like any kind of file, can probably be used as a tell tale sign? No?
Unless you're thinking your attacker would exclude you from torture for "yielding" the password.
I would think if they are capable of torturing you than they wouldn't stop at a polite confession.
The idea is that they’ll stop torturing you because they don’t know of the existence of the hidden volume.
(In practice I suspect it leaves some subtle queues, but maybe perfect for a border crossing )
But as sibling commenters describe, if sufficiently motivated, there's no reason that an authoritarian state wouldn't just keep torturing you anyway. :(
(Good) Encryption is a (secure) mechanism for obscuring data, surely?
I imagine the only way to detect a volume would be to have it decrypted (enforced by law enforcement), to take the supposed volume type and files within and then re-encrypt with the same data. If your volume and the supposed clone are different, it would suggest that you have hidden another volume within.
At this point setting up a secure connection to a device in a secure location is way easier than trying to protect your data against someone with physical access.
You can also get your collaborators to revoke access if you fear you might be 'compromised', although ultimately it's hard to protect a system against yourself.
1) they might not believe you, and
2) that’s still true even if the reason you don’t have a key is because you don’t actually have a secret encrypted partition — or whatever — to supply a decryption key for
So the best thing to do is avoid being in a situation where someone is allowed to do that in the first place.
I'm sure advanced configurations with well-crafted decoys and steganography can help combat that, but as we can see, encryption can only take you so far and it's only one element of the picture.
That's a double edged sword though - imagine you give up, surrender the password and are then being asked to unlock a hidden volume, which you don't have.
Then you position your friends over multiple jurisdictions so that they cannot legally compel all of them to play along.
Otherwise, no. When they have you they can just torture you to death for whatever reason or no reason at all.
[0] https://en.wikipedia.org/wiki/Rubberhose_(file_system) [1] https://en.wikipedia.org/wiki/Deniable_encryption
that, and i believe AMT is still a thing