Article View: alt.privacy.anon-server
Article #227171Re: TrueCrypt USERS -- PHEAR TEH DRAMs !!!1!!
From: A. Lurker
Date: Sat, 09 Aug 2008 04:44
Date: Sat, 09 Aug 2008 04:44
109 lines
7218 bytes
7218 bytes
On Tue, 05 Aug 2008 17:37:36 GMT, "nemo_outis" <abc@xyz.com> wrote: >Anon <nobody@pseudo.borked.net> wrote in >news:1ae446a64e406114b45ce991034fde6b@pseudo.borked.net: > >>>I don't fear it. I fear that Microsoft detects TrueCrypt running, >> steals the login credentials >>>and then stores them somewhere in Protected Storage so that only law >> enforcement >>>and security agencies can read the contents. Given the fact that >> TrueCrypt is unbreakable, >I wouldn't put it beyond the NSA to ask >> Microsoft for a favor. >> >>>If you really want to be safe, you should use TrueCrypt only running >> from Linux which is >>>booted off a flash-disk or CD-ROM. >> >> There was an article somewhere recently (I can't find it) about >> Microsoft cooperating with the US government in detecting certain >> things on a system. However, if you do full disk encryption, should >> not this prevent any detection? It would seem that there would have to >> be a hardware fix whereby all computer companies would have to include >> a battery enables piece of hardware to store key, etc. >> > >Sadly, full disk encryption is NOT enough, at least in principle. You >can be compromised (again, at least in principle) by your OS or ANY other >piece of software you run once you have entered your decryption key (I'll >blur over the distinction between decryption password and key since it >doesn't affect the explanation). Nor need there be a special place for >the traitor software to stash your compromised Truecrypt (etc.) key - it >can store it on your fully encrypted hard disk WHILE STILL FULLY >COMPLYING WITH THE ENCRYPTION SYSTEM. I have posted on this before but >I'll recap briefly: > >You fire up your fully encrypted system. The password (decryption key >actually) is now in memory. In principle, the OS (or any other piece of >software you run, including DLLs, etc.) could find that key. It could >then stash it for later use (i.e., after you power down) by your >adversary in a number of hidey-holes (in the HPA, as a "bad sector," in >the manufacturer's "reserved area" on the HD, in several BIOSes such as >the VGA, LAN card, etc.) but it doesn't have to - it can stash the key >right back on your fully encrypted hard disk **without** brutally >overwriting any sectors or failing to follow the encryption scheme. >Here's how: > >Let's assume, for concreteness, that Windows is the traitor software (it >makes things easier to explain) . Having harvested your Truecrypt key >from memory it must now write it somewhere. Let's assume that, as is >common, the Windows OS uses a pagefile. The pagefile is stored, fully >encrypted, like any other file on the encrypted HD, but Windows can >*still* leak the key to it using a "side channel" method. Windows does >the following: > >When Windows writes a sector of the pagefile its key leaking process >could follow (as one example of many possible alternatives) the following >convention: if the bits on the 512-byte sector are an even number, a "1" >has been leaked; if an odd number, a "0." Windows can easily and quickly >manipulate the data in the sector so that the encrypted number it writes >to a sector of the encrypted pagefile on the HD is either a 1 or a 0 as >appropriate for leaking the key. If the first bit of your key is a 1, it >leaks an even sector, if 0, an odd one. It then simply repeats this >process for enough sequential sectors to leak your full key. Notice that >the encryption scheme on your HD was never violated - Windows completely >followed the Truecrypt (etc.) encryption process even while leaking your >key! > >But, you may say, "How does the adversary know *where* on the HD Windows >has stashed the leaked key?" Easy! Windows simply uses a method similar >to that described above to write a sector odd/even "signature" that >means, "The next xxx sectors contain the key." That signature could be >the sequence "1110101000101110011001" (or any other). There will, in the >worst case, only be a few sectors whose odd/even pattern match this (but >usually just one) and so it's easy for the adversary to grab the key >which follows (worst case, the adversary has to try a few alternatives). > >QED > >Once you grasp the concept of leaking information through side channels a >million variants of this approach will spring to mind. > >Ain't life a bitch? > >Regards, Hmmm. I don't think so. 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. 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. Third, the pages written to disk would have to somehow be larger than the memory pages to accommodate the leaked information. Remember that a page in memory has it's own inherent parity and if you choose to change that, the choice represents an additional bit of information which cannot he included in the memory page without displacing one of the preexisting bits. 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. A. L.
Technical Details
Message-ID:
<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!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mailReferences:
<e4f14$489724b6$9023@news.teranews.com> <1ae446a64e406114b45ce991034fde6b@pseudo.borked.net> <Xns9AF176463EEF1pqwertyu@64.59.135.159>Show Full Headers
Complete Article Headers
Message-ID: <s36q949cjsk2l2397916f2pd1eigr77fk1@4ax.com> Subject: Re: TrueCrypt USERS -- PHEAR TEH DRAMs !!!1!! Date: Fri, 08 Aug 2008 21:44:31 -0700 From: A. Lurker <abuse@localhost.com> References: <e4f14$489724b6$9023@news.teranews.com> <1ae446a64e406114b45ce991034fde6b@pseudo.borked.net> <Xns9AF176463EEF1pqwertyu@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!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 08 Aug 2008 23:28:48 -0500 Newsgroups: alt.privacy.anon-server,alt.privacy Organization: Not Much X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 109 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 69.139.220.157 X-Trace: sv3-zYWvcLlbpVvoGn/VNlDEctM54Z1INWmoqKNIUvKzZxX07jMiH/JnZkmSeE7Boj0efXOvMWE3w/r5vw4!w5UgboNBt/cFiphR/3J6ggOzLMl8RSCzMp0QIM5lIUpdaGbb0ZyaQnOVO2yv2EoDqZGSGdJjhnKC!cJvsVItYKyENHXGkq6xX6Uz4gXDL X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net 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