UC Berkeley to build open-source secure enclave using RISC-V
hackaday.com
hackaday.com
That said, the HSM itself becomes a target after a while. So the more stuff you off-load to your enclave, the larger the attack surface becomes, and now you moved your problem over.
And I am further skeptical about how much this improves on the status quo. Apple delivered a secure enclave that was essentially a blackbox. Google delivered one and is open sourcing the firmware at some point (apparently.) Now, this is going to give us an enclave with open source hardware. But in a world where there are known, novel attacks against the integrity of microchips that would make it difficult to verify even in the presence of microscope images of a decapped chip, I'm not sure if this really gives us that much reassurance that the chip does what it says. And if it did, we would never know for sure that it is free of security-sensitive bugs.
I still think this is great. Again, step above SGX and TrustZone in my opinion. But, this article makes it sound like a panacea, which I don't think is the case.
(Case in point: people have successfully attacked devices secured with enclaves, including iPhones and I assume Pixel. Doesn't matter how bad ass your gate is if it isn't surrounded by an equally strong fence. These devices should keep encryption secrets secure, but they don't 'stop hackers.')
https://developer.arm.com/products/system-ip/security-ip/cry...
https://developer.arm.com/products/system-ip/security-ip/cry...
Is that the first high-level crypto coprocessor then? I'm surprised it's taken this long.
At minimum I'd want full-disk encryption programs (veracrypt) and biometric authentication services running from an enclave. Lenovo does this for their fingerprint reader.
It would be cool to have the facilities to say "everything run by this user runs in the enclave", but I think the argument is the same as FDE - don't invite the possibility of a leak by selective encryption. All or nothing.
I find myself saying this a lot lately but I really think that stuff like this is going to lead us to chip fabs being national strategic industries in the short/medium term future.
Also we're hiring! https://www.gradient-tech.co/jobs
Keystone using existing RISC-V extensions is exciting to see, but it's frustrating that the Hack a Day article seems to confound where it begins and ends (at least today). The Keystone presentation notes that the RoT is derived from Sanctum and their docs indicate that you need to bring your own entropy and key storage, neither of which are made clear in the blog post.
This is simply another HSM implementation, and no, they don't stop hackers, there are plenty other exploits to go for.
(For one example hhttps://www.nxp.com/products/identification-and-security/sec...)
RISC-V: https://www.lowrisc.org/docs/tagged-memory-v0.1/tags/
You can think of this feature like a hardware ASan. Instead of using ASan as a design tool, you could use it as a security feature.
Capitalizing on this feature requires compiler and C lib changes. I'd bet that the support should be available in popular open source compilers before ARM ships.
I think the majority of performance cost for HW Asan will come from the additional bits stored to memory, but it was "modest" (< 5%?). A couple of additional CPU instructions during memory allocate and free, these are probably of negligible impact.
[1] https://arxiv.org/abs/1802.09517
[2] https://clang.llvm.org/docs/HardwareAssistedAddressSanitizer...
uh, no. it might be a game changer for open source, though. maybe.
All that's necessary is a way to enroll new keys, and when new keys are enrolled all the secure storage is wiped. This allows for free use of your own hardware, while also keeping secrets safe from attackers.
Leaf keys on HSMs is interesting. Personally, I view HSM and TPM stored keys about having an immutable identity for the device. Leaf keys are usually a bit more complicated - in the environments I work in, leaf keys are often tied to a service, not the host. The short lived nature also reduces the impact of ex-filtration.
Anyway, yeah, depends on the deployment and the org.
Secure enclaves are only really useful at allowing people who don't own the device from preventing those who do own it from taking certain actions.
Let's not forget that DRM also goes beyond preventing consumption of media (although that is a big application) --- it can be, and is, also used to force users to accept unwanted behaviour of software. Win10's deeply embedded telemetry is one example: It would be relatively easy to patch out if it weren't for the files being signed and "protected" by "secure" boot, and the constant barrage of updates (not all of which are for fixing remote unattended attacks, IMHO the ones which are actually important.) The situation is much worse on mobile devices.
This, exactly. Maybe that's déformation professionnelle of a kind.
You can already create a system with a dedicated HSM and run your own trusted operating system using the features of the processor. With Intel SGX you are somewhat stuck with using the HSM provided by Intel. With the BSD-licensing aren't we left in the same place as ARM processors, with the exception of producing a RISC-V processor being less expensive with regard to licensing?
I recommend using the original title: "RISC-V Will Stop Hackers Dead From Getting Into Your Computer"
Even though it's still very fallacious.