[dm-crypt] cryptsetup with Python subprocess + pipes
PoliceTerror at dyne.org
Fri Jun 24 18:33:37 CEST 2016
You obviously did not look at the example because the data is not hidden
The way it works is that you have a slab with multiple possible volumes
at various offsets. To decrypt a volume, you need to know the offset and
the password. An attacker cannot delete the volume because he does not
know the offset.
These offsets are stored in a hashmap array. The password is hashed
using scrypt, then the array is indexed. The value at that index is then
decrypted using the password to get the offset.
So all the user needs is a password. With that, the software can find
the index, use the password to get the volume's index within the slab
and then decrypt it.
About a well engineered solution: today I just found VeraCrypt which
actually works well. I encourage people to try it. It can create hidden
> What I would like to see is a plausible deniability technique
> that is not just a worthless tech-demo, but where the
> "plausible" part was actually well engineered with regards
> to how things work in the real world and that is not limited
> to a very small amount of steganographically hidden data.
> So far, none exists.
> The thing is, for an incompetent attacker it is already
> enough to just remove a partition from the partition table
> and re-create it at need in the same place. For a competent
> attacker, the things that exist today just provide probable
> cause that you are trying to hide something and hence make
> things worse.
> As it is, these tools are of negative worth, as they give
> users a false sense of security.
> Also refer to FAQ 5.18 for my analysis of the status-quo.
> The paper by Schneier et. al. I reference provides an
> excellent in-depth analysis of the problems with the idea
> of plausible deniability in a real OS environment.
> On Fri, Jun 24, 2016 at 14:16:05 CEST, Police Terror wrote:
>> Here's the tool:
>> Mostly proof of concept for now.
>> Would be cool in the future to work something better out by hacking
>> cryptsetup itself. Maybe if there's headerless volumes (that just look
>> like random data).
>> Multiple deniable Linux installs would be a killer feature.
>> Milan Broz:
>>> On 06/24/2016 11:56 AM, Police Terror wrote:
>>>> Ahhh yes! Thank you Diagon and Milan.
>>>> I've added now the -q switch.
>>>> I looked at the pycryptsetup but 2 things:
>>>> 1. It's not Python 3
>>>> 2. It's an extra dependency and not in the repos.
>>> Fedora has both Python3 and 2 builds but other
>>> distros do not compile it probably.
>>> (It was designed for Anaconda installer mainly.)
>>> dm-crypt mailing list
>>> dm-crypt at saout.de
>> dm-crypt mailing list
>> dm-crypt at saout.de
More information about the dm-crypt