Why disk encryption is not secure

these days we storing our peronal data such as passwords documents pictures online activity and everything else on laptop because when we use disk encryption we think nobody can read them without knowing the password. imagine you lose your macbook and the mugger will access all these information without knowing password...

what you feel ? what you do ? think about it

well thats true. disk encryption actually is not secure as we think , if somebody attack us we are dead !

just look at this article , it describe a software that decrypt windows encrypted disks , of course it doesn't mean the software don't work on mac...

problem is virtual memory. when decryption key is on RAM its safe because if power disconnect it go away But when Mac do virtual memory and swap RAM data on hard drive, it make disk encryption useless because it may swap part of RAM data which contain decryption key ... (i think cellphones and tablets are same as well)

Apple must do something to prevent swapping part of the RAM which contain decryption key ... or if you can't then just disable virtual memory when we enable full disk encryption.

i can't understand why richest company on planet earth don't wanna fix it 😟

Posted on Dec 28, 2012 12:18 PM

Reply
17 replies

Dec 28, 2012 10:25 PM in response to gozillagirl

Enable a firmware password on your Mac and you should be good to go. Apple's firmware password should block DMA access through Firewire and give you security from such attacks. The firmware password on older systems can be reset by changing the hardware configuration; however, doing this will destroy the memory contents anyway so its in effect the same thing. Newer systems have a more secure firmware password.

Dec 28, 2012 11:50 PM in response to Topher Kessler

Enable a firmware password on your Mac and you should be good to go. Apple's firmware password should block DMA access through Firewire and give you security from such attacks. The firmware password on older systems can be reset by changing the hardware configuration; however, doing this will destroy the memory contents anyway so its in effect the same thing. Newer systems have a more secure firmware password.

i said we don't care about firewire attacks because they are limited to laptop be on with key on RAM (a laptop on with key on ram always can leak the key by a cold boot attack so no need to anything for it, we already know to make our data safe we have to turn off device when we finish our work). problem is virtual memory that store key on hard drive and attacker any time even when laptop is off can recover the disk key. it make disk encryption just a fake option to spoof people think their data is safe when its actually not !


This is not sometihng that needs to be fixed. Its a part of a technology that gives it a performance boost. There currently are ways to block the potential breach it offers, which Apple includes both in OS X and in its hardware.


This is not something that needs to be fixed ???!!!!! are you apple employee ? 😀

its not part of technology , because we store very sensetive data on laptop , maybe some people just play angri birds with their device but we have very important data on our laptops which if somebody get physical access to device without a real disk encryption we are f***ed ! i don't want performance boost if it make my entire life compromise !

There currently are not ways to block the potential breach it offers... the fix is simple, just not swap the disk key on hard drive which apple software developers don't do that, the hardware fix which don't effect performance is using TPM to store key on the TPM (i don't know current macbooks have TPM or not) but we know apple don't do anything with TPM now ...

i think if apple don't want to fix it then tell people that the disk encryption they offer is fake so people know that should not store any sensetive data on their gadgets.

Dec 29, 2012 12:13 AM in response to gozillagirl

Its true that virtual memory allows RAM contents to be stored on the hard drive; however, with an encrypted disk this contents of the disk are encrypted. FileVault encrypts everything on the drive, including system files, your files, applications, and temporary files like virtual memory page outs. Therefore, while your concern is reasonable, FileVault has this angle covered and the RAM contents that are written to the hard drive are perfectly safe.


In addition, the virtual memory pageouts themselves are encrypted separately from FileVault, so even they cannot be easily scoured for data if the main hard drive happens to be unlocked for access to them. There are two layers of encryption that protect the issue you seem to be so concerned about.

Dec 29, 2012 5:05 AM in response to Topher Kessler

Its true that virtual memory allows RAM contents to be stored on the hard drive; however, with an encrypted disk this contents of the disk are encrypted. FileVault encrypts everything on the drive, including system files, your files, applications, and temporary files like virtual memory page outs. Therefore, while your concern is reasonable, FileVault has this angle covered and the RAM contents that are written to the hard drive are perfectly safe.


In addition, the virtual memory pageouts themselves are encrypted separately from FileVault, so even they cannot be easily scoured for data if the main hard drive happens to be unlocked for access to them. There are two layers of encryption that protect the issue you seem to be so concerned about.

encrypting page files is a good idea but i don't think so OS x actually do that (maybe enginiers in software department say so bcoz they never say we are fail guys) because RAM data must be accesable anytime very fast, doesn't matter its on RAM itself or on hard drive so its i think not encrypted (if page files are encrypted then perhaps it don't boost performance).

maybe Lion really do somthing about this problem, as OS x source code is closed nobody can check its security flaws and the only way is apple pay some security lab to test it if page files in hard drive are secure or not and make announcement to make me calm down.. (because we herd its not )

i wonder does iOS have same problem too ? because we lose cellphones/tablets much more than laptops... and these days with mobile applications people having lots of personal data on their mobile gadgets. however we just need Mac get fixed soon as its more seroius than mobile devices 😟 (i personally saved all my family online banking data on my desktop ! because we don't trust papers as mac provide disk encryption)

Dec 29, 2012 7:44 AM in response to gozillagirl

Yes OS X does encrypt the VM file. OS X used to not do this, but in OS X 10.7 Lion Apple switched to having the VM file encrypted by default. You can disable this in Lion and I believe also in Mountain Lion by running the following Terminal command:


sudo defaults write /Library/Preferences/com.apple.virtualMemory DisableEncryptedSwap -boolean yes


You can also disable the system's dynamic pager by removing or otherwise disabling the following launch daemon in OS X; however, this is not wise to do, but if you are paranoid about the presence of a swapfile then you can do this.


/System/Library/LaunchDaemons/com.apple.dynamic_pager.plist


However, the above steps and concerns are completely unnecessary with a FileVault volume, since the use of CoreStorage's encryption routines has the drive fully encrypted underneath the OS. The encryption keys are present in RAM when the drive is unlocked and you are logged in, but if and when this information is written to the hard drive in a VM file this file will be encrypted just like any other file in the system. This is how the new FileVault works, and why it is such an improvement over the last FileVault.


If you are concerned about FireWire DMA snooping to get around this and recover encryption keys, then you can take several steps. The first is to run the above mentioned "pmset" command to have the system destroy encryption keys in memory when put in hibernate modes, even though this is redundant with FileVault already encrypting any keys that would be written to the hard drive.


Secondly, in more modern Macs the Intel chips used have DMA-blocking components (an I/OMMU) that can be invoked by the OS, so when you have a screen lock or some other software features enabled then FireWire DMA is blocked. Granted this needs proper programming and in the past Apple did make a mistake in early releases of Lion that allowed DMA access despite screen locks, but this has been largely addressed by now.


Lastly, by enabling a firmware password on the system it should disable FireWire DMA in all situations, which should effectively block any DMA access. Even older firmware passwords that could be reset manually are effective here since to reset them you will have to shut down the system and thereby clear any RAM contents.


In essence, while your concern is valid, you are overlooking a number of options that are both automatically invoked or which can be manually set to keep your system secure from the attack scenario you are imagining.

Dec 29, 2012 8:58 AM in response to gozillagirl

Topher are you sure they fixed the problem in new lion ? because if it was so easy perhaps an open source tool like trucrypt did same to encrypt memory files which they are not doing now.

maybe because if encrypt swap file on hard then to decrypt and use it we have to use same amount of RAM so how an encryoted swap file help saving RAM and performance ? (i hope you be right but you know companies like you always deny problem because thats how it works , the iphone had clear antena problem and you said hehe no you holding it wrong in your hand 🙂 )

Dec 29, 2012 11:32 AM in response to gozillagirl

The problem with DMA access through FireWire was addressed with OS X 10.7.2 (see about half-way down the page here, at "CVE-2011-3215": http://support.apple.com/kb/HT5002).


As for the possibilities of breaking an encryption scheme, there may be ways to get around them but this is the case with any security measure, be it FileVault and TrueCrypt or any other encryption, or a password authentication routine; however, the known issues with FileVault that have been discussed have been widely (if not completely) taken care of.


I agree Apple has at times frustratingly denied problems and skirted issues instead of being outright honest about mistakes, but they have to play a Public Relations game. Apple employees likely wont pony up any information either for fear of being fired or whatnot, so its a difficult situation for the end user to get a feel of where and when problems have been taken care of. However, we do have community forums and independent investigations that in part make up for any lack of information from Apple.


Encrypted swap is not going to affect performance much, if at all.


Here is Apple's statement on why it has resorted to always using encrypted swap in OS X 10.7 and higher: http://support.apple.com/kb/HT5002


You mention "companies like you," but I do not work for Apple at all, and have no relation to the company. This is the case with most people on this message board, which is set up by Apple for anyone to join and discuss problems.

Dec 29, 2012 10:00 PM in response to gozillagirl

gozillagirl, I think you might find a computer forensics course interesting! There are a few ways to avoid storing an encryption key in RAM, and therefore in virtual/paged memory.


A few weeks ago I stumbled upon a research article* about a measure that prevents forensic investigators from retrieving the encryption key from (encrypted) virtual memory in a cold boot attack, which works with all Intel processors made in the last decade. In a nutshell, the authors disabled SSE for all user-level processes and stored the encryption keys in the processor's XMM registers (special high-speed memory cells meant to store operands for multimedia instructions) on the processor, and never in main memory. That way, if you shut down a computer with full-disk encryption, the keys in the CPU registers are lost and a forensic investigator could no longer take out the hard drive and recover the encryption key from virtual memory.


Have a wonderful evening!


* Tilo Müller, Andreas Dewald and Felix C. Freiling, "AESSE: A Cold-boot Resistant Implementation of AES", EUROSEC '10 Proceedings of the Third European Workshop on System Security, p. 42-47, 2010.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Why disk encryption is not secure

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.