4 ms·
Processor-level support for DRM will make future cases more interesting, https://www.virusbtn.com/virusbulletin/archive/2014/01/vb201401-SGX https://www.virusbt
by walterbell 12y ago
Processor-level support for DRM will make future cases more interesting, https://www.virusbtn.com/virusbulletin/archive/2014/01/vb201401-SGX https://www.virusbtn.com/virusbulletin/archive/2014/01/vb201...
"If software and hardware could be ‘sealed’ in some way to prevent an attacker from examining data in main memory, even if the attacker had administrator level privileges on the machine, not only could the confidentiality and integrity of data in the cloud be protected, but the algorithms and design of cloud hosted applications could also be hidden from prying eyes."
- Canada 12y agoSo far I've seen very little evidence that this will work. Unless some true mechanism can be found for remotely verifying that you are loading your code into a known environment then there's no way to know that you're running in a secure enclave in the first place. The best attempt I've seen is sending a computation to be performed by the remote side and trying to infer the state of the CPU cache based on how long it takes to answer. If the timing is off then the cache must have been in an unexpected state and therefore unexpected code must have been executing on the machine. It's clever, but not practical. What has Intel come up with that's any better? What's described in your link could simply be emulated in software. How would the remote side know the difference?
- wmf 12y agoIn SGX, each processor will have a non-extractable private key and certificate. The certificate isn't emulatable.
- walterbell 12y agoThere's a long technical discussion in the first reference given in the article. Remove the space in the link.
- comex 12y agoSGX includes microcode-based crypto which allows an enclave to both sign and encrypt things using keys based on a hash of the contents of the enclave and some master private key locked away in the CPU. I haven't looked into exactly how this works (although I'd love to defeat it some day when it's released...), but it can't be emulated in software unless you manage to extract the private key. https://software.intel.com/sites/default/files/article/413939/hasp-2013-innovative-technology-for-attestation-and-sealing.pdf https://software.intel.com/sites/default/files/article/41393...
- Canada 12y agoSo, Intel plans to embed a key, signed by some well known root key, in each CPU. I might have skipped over a step or two here, but basically the idea is that only Intel would have the necessary signing key to be able to spoof attestations? Whoever wants to run their code in the enclave would send over a sort of bootloader, which would be responsible for acquiring the signed attestation from the CPU and sending it back. If the signature is good, then the actual code to be run in the enclave can be uploaded. Something about this feels wrong... but then again if Intel wanted to backdoor its CPUs we'd all be screwed anyway, so it's hard to see how this feature could hurt. If applications want anti-virus to be able to get at their data, then they'll just have to provide an explicit interface to do that. If this becomes widely deployed, that root key would be pretty valuable!
- click170 12y agoSo long as we can insert a [Xen] Hypservisor between the OS and the processor, I'm confident someone will find a way to make it do what someone else doesn't want it to. Hypervisors aren't just for virtualizing servers, you can use them for all sorts of things, like intercepting system calls.
- walterbell 12y agoThe cited SGX analysis was written by a Qubes/Xen developer: "Intel SGX is essentially a new mode of execution on the CPU, a new memory protection semantic, plus a couple of new instructions to manage this all. So, you create an enclave by filling its protected pages with desired code, then you lock it down, measure the code there, and if everything's fine, you ask the processor to start executing the code inside the enclave. Since now on, no entity, including the kernel (ring 0) or hypervisor (ring “-1”), or SMM (ring “-2”) or AMT (ring “-3”), has no right to read nor write the memory pages belonging to the enclave."
- nitrogen 12y agoHow often is the enclave validated? Could modified DRAM be used that would return one set of data to the enclave validation, and another the rest of the time? What would have to be done to the CPU cache?
- walterbell 12y agoMore data here: http://theinvisiblethings.blogspot.com/2013/08/thoughts-on-intels-upcoming-software.html http://theinvisiblethings.blogspot.com/2013/08/thoughts-on-i... http://theinvisiblethings.blogspot.com/2013/09/thoughts-on-intels-upcoming-software.html http://theinvisiblethings.blogspot.com/2013/09/thoughts-on-i... ".. the processor automatically encrypts the content of SGX-protected memory pages whenever it leaves the processor caches and is stored in DRAM. In other words the code and data used by SGX enclaves never leave the processor in plaintext." "..once the key is obtained, it is available only within the SGX enclave. It cannot be found in DRAM or on the memory bus, even if the user had access to expensive DRAM emulators or bus sniffers. And the key cannot also be mishandled by the code that runs in the SGX enclave, because remote attestation also proved that the loader code has not been modified.."
- userbinator 12y agothe device ID, which is a 128-bit unique number tied to the processor. 15 years ago Intel tried this, and there was enough opposition that they removed the feature in later models: http://en.wikipedia.org/wiki/Pentium_III#Controversy_about_privacy_issues http://en.wikipedia.org/wiki/Pentium_III#Controversy_about_p... When SGX gets implemented in a future processor, will the users once again fight strongly against it, or will they submissively accept it without resistance, looking only at the claimed "security benefits"? I really hope it'll be the former. Reading the rest of that article and the linked Intel documents just... gives me a very bad feeling about the direction things are heading.
- walterbell 12y agoDevil is in the details, e.g. in all processors or optional? Can hardware owners set root keys? How will enclaves interact with client Hyper-v, Yosemite OS X hypervisor, html5 drm, open-source virtualization & crypto, etc.
- visarga 12y agoProtecting content from users is a failed game. This kind of protection is useless. At the very least, they need to decrypt information before it passed through our eyes and ears - that's the weak link in the chain.
- walterbell 12y agoUseless or not, it could impact x86 operating systems and would benefit from developer feedback prior to shipment of microcode in new processors. Oculus will make it more difficult to photograph the screen.
- joelanders 12y agoI think the weak link in the chain is only after decryption, but before uncompression (for lossy formats, so books excluded). See, for example, [1] and [2], where the authors look at randomness and entropy measures of I/O to find where the decrypted-but-compressed buffers are. [1] http://moyix.blogspot.de/2014/07/breaking-spotify-drm-with-panda.html http://moyix.blogspot.de/2014/07/breaking-spotify-drm-with-p... [2] https://www.usenix.org/node/182951 https://www.usenix.org/node/182951
- visarga 12y ago> If software and hardware could be ‘sealed’ in some way to prevent an attacker from examining data in main memory, even if the attacker had administrator level privileges on the machine 1. all it takes is one DRM free copy on bittorrent to make this scheme fail 2. how would they prevent me from grabbing images on the screen and turning them back into books? Or scanning a physical book. 3. blind people need to do this conversion anyway, to run the text through text to speech Remember, it only takes one DRM-free copy on filesharing to make the DRM invasion a useless failure.