Article View: alt.privacy.anon-server
Article #227199Re: TrueCrypt USERS -- PHEAR TEH DRAMs !!!1!!
From: Guy Macon
Date: Mon, 11 Aug 2008 08:40
Date: Mon, 11 Aug 2008 08:40
84 lines
6066 bytes
6066 bytes
nemo_outis wrote: >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.) >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). >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.) >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! >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. One extra step is needed to make the above "bit twiddling" method completely undetectable by examining the HD. As described, one could do a frequency analysys on the parity bits. A normal DDD would have a frequency distribution that looks random. One with ASCII text in the parity bits would be quite non-random -- every 8th bit would be a 0, for example. This is easily overcome, of course, by encrypting the message before putting it in the parity bits. Side channels are a real problem for high security systems. You can leak information out of a supposedly secure facility by spinning up disks and letting them go to sleep, thus slowly sending bits to someone at the power plant monitering how much electricity your facility is using at any given moment. -- Guy Macon <http://www.GuyMacon.com/>
Technical Details
Message-ID:
<O6Odnar5esV4ZwLV4p2dnAA@giganews.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!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mailReferences:
<e4f14$489724b6$9023@news.teranews.com> <1ae446a64e406114b45ce991034fde6b@pseudo.borked.net> <Xns9AF176463EEF1pqwertyu@64.59.135.159> <s36q949cjsk2l2397916f2pd1eigr77fk1@4ax.com> <Xns9AF57ABDAF775pqwertyu@64.59.135.159>Show Full Headers
Complete Article Headers
Message-ID: <O6Odnar5esV4ZwLV4p2dnAA@giganews.com> Subject: Re: TrueCrypt USERS -- PHEAR TEH DRAMs !!!1!! Date: Mon, 11 Aug 2008 08:40:03 +0000 From: Guy Macon <http://www.GuyMacon.com/> References: <e4f14$489724b6$9023@news.teranews.com> <1ae446a64e406114b45ce991034fde6b@pseudo.borked.net> <Xns9AF176463EEF1pqwertyu@64.59.135.159> <s36q949cjsk2l2397916f2pd1eigr77fk1@4ax.com> <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!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 11 Aug 2008 03:40:04 -0500 Newsgroups: alt.privacy.anon-server,alt.privacy Organization: <http://www.GuyMacon.com/> Lines: 84 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-rJLCdDN2/xLvG01lW4Z+Xk1/zKNhiwOSirX0xzg92MuSPH7RJHAUbrXsFjXAAB4JFrsSoaU3qXXUZzI!jO6MwwV0020xlUCjbmv9kUkNViBmrutEuUeHUOaXy/u4Who3cAMylvNafE95x7A= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39