Apple's Private Cloud Compute is nothing new ¯\_(ツ)_/¯ details below Sidenote: I think Apple is preparing...
Apple's Private Cloud Compute is nothing new ¯\_(ツ)_/¯ details below
Sidenote: I think Apple is preparing to enter the cloud service market and Kudos for making good security practices widely available from the start of the service
First logic fallacy - What Apple's blog post calls specialised mechanisms are in-fact the typical approach for cloud systems' integrity ¯\_(ツ)_/¯ x2
Here is the blog quote: "Traditional cloud services do not make their full production software images available to researchers — and even if they did, there’s no general mechanism. Some specialized mechanisms exist, such as Intel SGX and AWS Nitro attestation."
Further in the blog article we find more details about existing technology that apple reinvented, here is the quote: "Specifically, the user’s device will wrap its request payload key only to the public keys of those PCC nodes whose attested measurements match a software release in the public transparency log."
The above has been possible in the #TrustedComputing world a long time ago ¯\_(ツ)_/¯ x3. Just look up Make/ActivateCredential for #TPM 2.0 solutions.
More existing and de facto standard technology being put to work in the Apple's Cloud Compute services, here is the quote:
"And the same strict Code Signing technologies that prevent loading unauthorized software also ensure that all code on the PCC node is included in the attestation."
Total so far: ¯\_(ツ)_/¯ x4
There is more and the bottom line is that Apple's Private Compute Cloud is likely very secure, but not novel, not at all.
According to Apple they have made something new and great. Sounds like it is well made, but it is not new. Well made because the applied mechanisms are not new and well known :)
I like the Apple experience of security on consumer devices but I do not like Apple's privacy failure - The very recent fiasco with Apple's privacy on iPhones where iCloud restored deleted files without the user consent. Worrisome that a user can delete a file and then Apple can restore it against the user will, two violations in one - first breaking the choice of the user, second exposing information that the user did not want to be available.
Who knew that in 2024, Apple will stand for good security but poor privacy ¯\_(ツ)_/¯
ps: if you want to learn more about good security mechanisms like the one Apple is deploying but widely accessible on any platform, here in TPMdev we have ton of information and #tutorials on #attestation, machine identity and keys wrapping, both in video and text.
❤️
👍
💡
👏
😂
Explore More Posts
Sneak-peak at our #TPMDEV2026 Conference. One slide from each main talk. Expect the recordings soon as we are migrating to Youtube. The news from today is that we are resuming our monthly calls and we will have in-person #TPMDEV2027! Check TPM.dev for more info.
Random Number Generator (TPM2)
1. IntroductionAmong other features, Trusted Platform Modules (TPM) comes with a True Random Number Generator (TRNG) that can be used for various applications including cryptographic purposes. This RNG module serves as the source for randomness for the TPM 2.0 Chip. A RNG module in TPM2 will typically contain the following -
An entropy source and collector
State Register
A mixing func.
There can be two types of calls to the TPM’s Random Number Generator, Internal call and External Call. RNG is capable to provide enough randomness for all the internal calls made. As well as, RNG is capable of providing 32 octets of randomness as per the specification to an external call. Another thing to note here is, each call made to the RNG produces a new value irrespective of the type of call. 1.1 The source of RandomnessThe source of entropy in the TPM is the entropy collector. As the name suggests, entropy collector collects entropy from entropy sources and also removes bias. A TPM2.0 has at least one internal source of entropy. These sources can include noise, clock variations, air movement amongst other events. As depicted in Fig 1.1 the entropy collector provides input to the State Register. 1.2 Stages involved Various algorithms and process supported by TPM calls RNG for unpredictable numbers, which is actually obtained from “RNG Protected Capability”. The “Deterministic Random Bit Generator (DRBG) Protected Capability“ obtains entropy from “Entropy Protected Capability”. Along with Entropy Protected Capability, TPM2_StirRandom() can also gather entropy from other entropy sources within the same TPM. 2. Random Numbers via TPM2 ToolsIf one needs to use TPM’s RNG for other external applications, then TPM2 Tools Command Line tools can be a great option. TPM2 Tools Command : tpm2_getrandom - - hex 16 - - hex : Converts output to hexadecimal 16 : Size in bytes Now, if one wants to have additional randomness, TPM2 Tools provides a convenient utility for this purpose called tpm2_stirrandom. To inject entropy via TPM2_StirRandom() to “Entropy Protected Capability” , we can use some file or use stdin. TPM2 Tools Command : echo -n “some_random_data” | tpm2_stirrandom Note : 128 bytes can only be injected using stdin at once through stirrandom() 3. ConclusionThe TPM2 provides in a sense True Random Numbers for use. These unpredictable numbers are coming from a dedicated hardware, hence can be trusted to be given as input to Crypto Algorithms amongst other applications. TPM2 also uses this for its internal use, and TCG claims it to be as secure as the strongest algorithm that TPM supports. Also, using the RNG is pretty straight forward via TPM2 Tools. #Tutorials
The latest tpm2-tools 5.8 release addresses three GitHub security advisories. One is a heap overflow in tpm2_getekcertificate, and the other is an out-of-bounds write that happens when too many sessions are in use. I don’t have information on the third advisory. Beyond the fixes, 5.8 extends EK certificate handling. It adds the option to read EK certificates from NV RAM, introduces new EK templates and supports a marshaled quote format. https://github.com/tpm2-software/tpm2-tools/releases/tag/5.8



Comments
Start the Conversation
agree
thank you for the support, Ian