Article View: alt.privacy.anon-server
Article #227176Re: TrueCrypt USERS -- PHEAR TEH DRAMs !!!1!!
From: nemo_outis
Date: Sat, 09 Aug 2008 18:03
Date: Sat, 09 Aug 2008 18:03
95 lines
6160 bytes
6160 bytes
A. Lurker <abuse@localhost.com> wrote in news:s36q949cjsk2l2397916f2pd1eigr77fk1@4ax.com: > On Tue, 05 Aug 2008 17:37:36 GMT, "nemo_outis" <abc@xyz.com> wrote: ... > For one thing, the WDE encryption scheme wouldn't necessarily preserve > the parity of a given sector, especially since the data is usually > written to disk in 4KB or larger blocks. I don't think you quite grasp the method. It is *trivially easy* for Windows to create a chosen-plaintext block such that the corresponding encrypted block written to the HD (whether 512 or 4096 bytes) is odd or even. Even in the worst case it would take Windows only a few tries to "adjust" such a plaintext block so that it produces the right parity in the encrypted block. And this could be done with most of the plaintext block still available for "ordinary" data - Windows would only need to reserve a few "twiddling bits" in the plaintext (the really "chosen" part) to enable it to get the parity it wanted in the encrypted block if its first try isn't right. Conceptually (there are shortcuts which eliminate the actual writing, readback, etc.) the scheme is: create plaintext block, let Truecrypt encrypt it and write it to the HD, read it back, if the read-back encrypted block does not have the desired parity then twiddle a bit in the chosen-plaintext block. Repeat until the desired parity is achieved on the encrypted block written to the HD. (On average this will only take Windows about .5 bit twiddles per block to get the parity it wants. Hell, half the time it will already be the correct parity without doing any twiddling.) > Second, it wouldn't > necessarily preserve the order of the blocks. Even if you could > determine that a given block indicated a 1 being leaked, you would > have no way of knowing where in the sequence that 1 appears. It is *trivially easy* for Windows to ensure that the blocks are written sequentially as a contiguous group - Windows has full knowledge of the hard disk allocation structure, and the ability to manipulate where its data is written on it. Truecrypt does NOT control sector (block) allocation, the OS does, and it's trivially easy for the OS to get a contiguous series of blocks for its purposes (e.g, as a contiguous file). Hell, Windows even exposes this ability to application programs as part of its defrag support APIs (if you want to study how to do this, have a look at the source code for CONTIG.EXE from sysinternals). > Third, > the pages written to disk would have to somehow be larger than the > memory pages to accommodate the leaked information. No. Windows gets to choose the plaintext (i.e. contents) of each block it wants to store in memory and eventually write. As explained earlier, even in the worst case Windows only needs to reserve a few bits/bytes for "twiddling" to adjust the plaintext data so that it encrypts odd or even as it prefers. Reserving, say, 4 bytes of each 512 (or 4096) bytes for this purpose, would mean that Windows has less than 1 chance in 4 billion of failing to be able to force the (encrypted) parity it wants. The other 508/4092 bytes can be used for "real data." Files containing "extra bytes" in their internal schema are by no means unusual. All kinds of applications as well as the OS have files with scads of "metadata" in their (often undocumented) file formats beyond the bare "real data" payload. (Save an MS Word file that just says "Hi Mom" and it will be over 23 kB on HD - an immense amount of metadata, much of it undocumented as to form and purpose. It's trivial to dedicate some of this metadata space for twiddling to get the desired encrypted parity.) ... > Most important, all the Byzantine bit twiddling is completely > unnecessary. The WDE runs as a driver under control of the OS. The OS > could simply bypass the driver and write the leaked information > directly to the disk anywhere it chooses. The only proviso is that the > OS could not modify the disk in a way that would cause the boot loader > to fail. Of course, the OS could just "clobber and overwrite" the encryption scheme on part of the HD in order to leak the key. But this is detectable. My "bit twiddling" method is *completely undetectable* by examining the HD - because, even though information has been leaked, this has been done while being in *complete conformance* with Truecrypt's encryption scheme. Anyone recomputing plaintext and the corresponding encrypted blocks to check Truecrypt's encryption will find no evidence of tampering with Truecrypt's encryption - since indeed there hasn't been any! Regards, PS This issue of side channels isn't just some hare-brained idea that popped into my head. Anderson, for instance, in Security Engineering discusses how such side channels are the bane of even the most secure systems, and discusses how even the NSA is stretched to deal with them.
Technical Details
Message-ID:
<Xns9AF57ABDAF775pqwertyu@64.59.135.159>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.20140712.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!64.59.134.4.MISMATCH!pd7cy3no!pd7cy4no!shaw.ca!pd7urf2no.POSTED!53ab2750!not-for-mailReferences:
<e4f14$489724b6$9023@news.teranews.com> <1ae446a64e406114b45ce991034fde6b@pseudo.borked.net> <Xns9AF176463EEF1pqwertyu@64.59.135.159> <s36q949cjsk2l2397916f2pd1eigr77fk1@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <Xns9AF57ABDAF775pqwertyu@64.59.135.159> Subject: Re: TrueCrypt USERS -- PHEAR TEH DRAMs !!!1!! Date: Sat, 09 Aug 2008 18:03:57 GMT From: "nemo_outis" <abc@xyz.com> References: <e4f14$489724b6$9023@news.teranews.com> <1ae446a64e406114b45ce991034fde6b@pseudo.borked.net> <Xns9AF176463EEF1pqwertyu@64.59.135.159> <s36q949cjsk2l2397916f2pd1eigr77fk1@4ax.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.20140712.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!64.59.134.4.MISMATCH!pd7cy3no!pd7cy4no!shaw.ca!pd7urf2no.POSTED!53ab2750!not-for-mail X-Trace-PostClient-IP: 70.72.89.161 Newsgroups: alt.privacy.anon-server,alt.privacy Organization: erewhon User-Agent: Xnews/5.04.25 Lines: 95 NNTP-Posting-Host: 64.59.135.176 X-Complaints-To: abuse@shaw.ca X-Trace: pd7urf2no 1218305037 64.59.135.176 (Sat, 09 Aug 2008 12:03:57 MDT) NNTP-Posting-Date: Sat, 09 Aug 2008 12:03:57 MDT