201 points · by vanburen · 6y ago · 156 comments
Here’s a blog by the engineer lead on Azure Sphere that discusses Pluton: https://azure.microsoft.com/en-us/blog/anatomy-of-a-secured-...
Disclaimer: I still work at MSFT but in a different org.
From a technical standpoint, Azure Sphere's OS was built on Linux. As far as I know, there isn't anything Windows specific to Pluton. Pluton was a separate (heavily-modified) ARM M4 core which we interfaced with from the main A7 core via a secure mailbox channel, which was again OS agnostic.
This kind of decision- to use an ARM core- seem pretty questionable. That's how things always were done, but it feels like another UEFI/FAT32 situation, dragging in old encumbering legacy baggage with big IP implications, when there are available other options (RISC-V).
It feels like this decision is being made literally one year too soon. Fixing the old, archaic in to place.
When the main core wanted to talk to the Azure Sphere cloud service (from Linux user land), it would go through a remote attestation process that involved Pluton. Pluton can securely track what software was booted on the main core (called "measure boot") and it basically sends a hash of that to the cloud to prove to the cloud what software is currently running.
So I imagine the chip-to-cloud thing they're talking about is this remote attestation protocol.
Also, it's possible the term "Pluton" has been expanded to refer to more than just the M4 chip we used in Azure Sphere.
oh dear
- Was Pluton based on an RTOS or is it running on bare-metal on top of the M4? - Is the architecture on the i.MX8-based Sphere the same as the one on MT3620? - Does the Security Subsystem running on the Cortex-A's secure world have any relationship with Pluton? Is the Security Subsystem running on top of the Sphere's modified Linux kernel like the normal world is?
Thanks, cheers!
Hope that helps!
On desktops and laptops, will this device have a hardwired user-presence sensor, like Yubikeys do?
Would this device be performance-oriented enough to, for example, terminate SSL? I gather TPMs can, but only unhelpfully slowly [1]
Would it be performance-oriented enough to perform disk encryption? What about memory encryption?
[1] https://blog.habets.se/2012/02/Benchmarking-TPM-backend-SSL....
I don’t think pluton was used for disk or memory encryption, in Azure Sphere but I believe the possibility was discussed.
I’m afraid I don’t have anything more than speculation for the rest.
2. If the latter, "Every piece of software on an Azure Sphere device must be signed by Microsoft." what does the OS interface look like?
2. Pluton can check the signature of software before booting it on the A7 core.
Hope that helps!
But the Pluton I know of didn't really have any writeable storage. It had some special ROM and fuses that it uses internally for its private keys but that's basically it.
That article explicitly states that it was designed originally for the xbox. I worry that going to be a very anti-consumer, anti-free-speech, DRM heavy chip that MS want to popularise as an alternative to the (still hated in some circles) TPM. Why else would they design it for the xbox, of all things? Is it aimed to stop speculative execution attacks on a cloud server, or provide Level 4 DRM to Widevine's as-yet-unannounced competitor?
It's not particularly practical to build a DRM scheme out of a Trusted Platform Module, notably because the key attestation the TPM provides audits a particular combination of boot stages, not a particular piece of hardware. DRM vendors don't care about you updating your firmware, but they do care about videos being locked to a particular authorized piece of hardware. If you had a TPM-based DRM, you'd deauthorize your video downloads by just updating your BIOS, while videos you passed from one person to another on the same OS version would play just fine.
I imagine Pluton is trying to be a competitor to Intel ME or AMD PSP, which are things you can use to isolate software running on shared hardware. For example, Intel ME provides hardware support for Intel Software Guard Extensions, which is used to isolate DRM from the host operating system. AMD has something similar with Secure Encrypted Virtualization, which uses the PSP to set up different memory-encrypted containers for each VM that higher security rings can't access. In this case, locking down PCs from arbitrary code, like an Xbox, isn't really on the menu. What they're looking to do is carve out space in Ring 3 that Ring 0 can't touch.
Which is precisely what you would want if you were building a DRM scheme - you just aren't being imaginative enough. It's always important to keep in mind that bad actors are typically just as smart and capable as you are.
User hostile practices across the board benefit greatly from the ability to attest to the precise combination of binaries that were booted. Locked down devices are built upon that foundation - no custom ROMs, no jailbreaks, walled garden app stores, and DRM.
Unfortunately, those capabilities are a fundamental building block for securing devices in general. The same technology that can be used by an abusive manufacturer, publisher, or government to secure a device against the user can also be used by the user to secure the device against others. The key difference is in who holds the keys for the root of trust.
(To that end, some modern secure boot implementations manage to get this bit right by allowing you to specify your own set of public keys before locking down the UEFI interface with a password.)
edit: I think it is plainly incorrect to brush off fears about DRM deployment and device lock down. This technology was specifically invented for it, there is evidence and direct statements from manufacturers about this.
The Intel ME and AMD PSP, on the other hand, are proper nightmares. For that matter, so is any other "security co-processor" that operates as an unauditable black box below ring 0 (presumably this applies to both Apple's and Google's solutions).
More to come - TPM required to connect to the Internet and access news sources without any ability to store information on our own devices. Followed by rewriting historical articles to properly "sanitize" content.
I've been yelling about that for years and years and very few people seem to get it. Free as in freedom got conflated with free as in beer years ago, and FOSS today is not much more than "waaah gimme free stuff!" It's not a gift culture. It's a "take culture."
Anyone who suggests any change to FOSS culture to remedy this problem gets shouted down. Any license that tries to remedy it gets attacked as "not OSI compliant" and restricting peoples' rights.
Meanwhile commercial closed source and SaaS vendors have the resources to leave FOSS and open ecosystems in the dust in terms of features and user experience. While the license purists yell about "restrictive licenses" taking away rights, the gravity of the walled gardens becomes more and more powerful.
The choice is between free and freedom.
If the solution to making FOSS more competitive with non-FOSS is to make FOSS non-FOSS, well, that's not much of a solution.
It's very important, but it's not "everything".
> and without a good profitable business model FOSS can't afford the massive investment of time and effort required to bring a competitive user experience.
By that logic, most FOSS should not have existed at all.
> Making stuff work is only maybe 20% of the work required to build a product... sometimes less.
That's often true. It's certainly true for some of the software projects I maintain.
> Commercial closed source and SaaS vendors have the resources to leave FOSS and open ecosystems in the dust in terms of features and user experience
That's not possible even with infinite resources, because FOSS software is sometimes great, often good, and also often the only thing available.
If you really want to know the answer, here's the lead engineer explaining it en detail: https://www.youtube.com/watch?v=quLa6kzzra0
That's not something I want in my general-purpose computing device where I am the owner.
Consoles aren't general computing devices, though.
Apple disagrees with your idea of ownership, too ;) and so do the customers who Pluton is targeted at - https://www.microsoft.com/en-us/windowsforbusiness/windows10...
The whole project isn't targeted at end-users. It's IoT, businesses, hospitals, government agencies, utility companies, etc.
We need to stop seeing us (as private end users) as the centre of the world and start to acknowledge that there's hundreds of millions of PC devices out there that don't serve private end users. It's the security needs of these organisations that are addressed by this technology, not yours, not mine.
The unfortunate truth is that Windows is still the backbone of many government agencies, power plants, hospital IT, businesses and so on.
It's also a fact that most of these machines are not well managed, lack updates , aren't hardened or secured in any way and are targeted by cyber criminals on a daily basis; sometimes with grim consequences. It gets even worse when you look at IoT and the mess that manufacturers get us into (default passwords, unsecured data transfer, ...).
I see this chip in the same area as Intel's vPro, TPM 2.0, AMDs ASP (in their Ryzen PRO line), and so on; not necessarily aimed at end users (aside from the occasional buzzword) and more aimed towards businesses and government users (as part of their Zero-Trust initiative).
That's an amazing quote that should be preserved for posterity. ;-)
None of this stuff will change unless people vote with their wallets. Companies have the idea that nobody cares. I've actually heard "nobody cares about privacy and security" repeated as a mantra in multiple circles.
If the user attempts to modify the system, it will brick itself.
How long until someone has a device which can go to Netflix, social networking, etc. but doesn't have a web browser on it that can load arbitrary pages, and it's impossible to jailbreak?
Since we have no freedom of speech within FAANG properties, that would be a considerable restriction of speech...
I do always find it wryly amusing when people who identify as being on the left see that the right are the only people who need defense using free speech laws, and then happily allow private industry to restrict speech since it doesn't impact them. The shoe could just as easily be on the other foot, and may well again be one day - principles matter.
To whom, though? Everybody is praising Apple for their (admittedly quite excellent) M1 hardware and no one seems to take issue with that either.
You cannot have truly open hardware as long as (software-) patents and IP exist, simple as that. Companies need to protect their investment, since the days of comparatively simple CPUs are over and a lot of "secret sauce" is actually software and licensed IP blocks.
Since patent holders are free to select who their licensee is, they'll always target the ones with the biggest margins (see for example [1]) so mainly consumer products and thus those won't be free (as in speech) anytime soon.
[1] https://www.bloomberg.com/news/articles/2020-10-20/nokia-see...
Such a locked-down device wouldn't really be anything new, we already have Roku, Chromecast, Chromebook, and games consoles. They don't threaten the 'ordinary' PC market.
Why is it a free speech issue for a device to exist that can go to Twitter but doesn't host your blog for you?
Isn't Microsoft already doing that on a default Windows installation?
Edit: Yes, SmartScreen, enabled by default, seems to send:
Hash, name and signature for executables. (Also hashes of urls you visit (though I guess only in Edge?))
That sounds like most of what you need to build a system that can enforce what executables you're allowed to load and prevent you from attaching a debugger.
This chip is not here to protect you from compromised or malicious IoT devices, or to protect you from compromised or malicious cloud services.
This chip is here to protect the Microsoft cloud from compromised or malicious IoT devices. They would also like you to believe that the chip improves security in the cloud. In actuality it protects software running on your device from ... you. All this attestation stuff is great for DRM!
That poses a problem for marketing. They have to let it sound like it does something for you when it actually doesn't.
It's no surprise then that the marketing is basically a giant weasel word souffle with some buzzwords sprinkled on top, and a bit of name dropping.
He looked at me, with complete disbelief, saying "But why wouldn't you want your copy to be protected?" I asked him "Do you know what kind of protection this is?" to which he replied, "yes, it's a copy less likely to break".
After this incident, I started asking a lot of people if they are aware of what's special about their "copy protected" disks - and the more technical people knew it was an attempt to restrict copying, but the rest thought it was probably a good thing (it says protection, and its on the label, it must be good, or reasoning as such).
It was at that point that I started religiously using RMS style acronyms, like Digital Restriction Management, Copy Restriction, etc. and I recommend everyone does.
In Azure Sphere, Windows is nowhere in sight. The device runs a Linux Kernel.
Whether vendors can use it to restrict such things, I don't think anyone can say right now, but I would guess and hope not. The TPM does not.
well at least it needs physical access.
>Known Elements of the Palladium System:
> The system purports to stop viruses by preventing the running of malicious programs. The system will store personal data within an encrypted folder.
>The system will depend on hardware that has either a digital signature or a tracking number.
> The system will filter spam. The system has a personal information sharing agent called "My Man."
> The system will incorporate Digital Rights Management technologies for media files of all types (music, documents, e-mail communications). Additionally, the system purports to transmit data within the computer via encrypted paths
No. Pluton serves as an on-chip secure enclave for encryption keys and the like. This is unrelated to installing operating systems.
so are the trusted execution environments used by fTPMs?
>seems to have secret-management functionality for user-specified keys
AFAIK TPMs already have that functionality. random search: https://github.com/tpm2-software/tpm2-tools/blob/master/man/...
>biometrics, etc.
AFAIK some fingerprint readers already use trusted execution environments to handle authentication, so from a feature point of view there isn't really anything new here.
AMD PSP for sure is. I think I might have heard something about Intel ME being on the PCH in some cases???
Anyway seems like the point is to make it a "more hardware" TPM rather than a firmware one – i.e. the key memory would only be accessible from fixed function crypto hardware blocks.
Coincidentally, this might mean that the embedded TPM would still work after me_cleaner destroys most of the ME firmware :)
What's frightening is that - by design - the user will have little/no control or even awareness of what data is being sent or received.
CPUs with security modules controlled by MS? Who will guarantee it won't be abused against non MS systems and users?
With regards to the auditing need, can you audit a CPU down to the silicon level today?
I haven't seen evidence of this. Their OS is at least as user hostile as before and they desperately seek developers.
If I have a specific technical problem I have to slay hundreds of sales people before I find someone with real expertise.
That they aren't as dominant as before is probably due to the fact that they have few developers and need to regain some. Financially Office is probably the largest income and sure, the standard corporate AD solutions are wide spread. But their cloud tech seems to be restricted to very large companies and I haven't seen much of it.
WSL and .NET as open-source?
Their R&D budget in 2019 was twice that in 2010, meanwhile sales and marketing budget increased by 30%.
Their Productivity and Business Processes (which includes Office, Dynamics, ERP and LinkedIn) accounted for 1/3 of global sales revenue in 2019.
Sure, there are some things that have stayed the same in the last 10 years, but of all the FAANGS I would argue that MS is the company that changed the most in the last 10 years.
I'm reminded of Christopher Domas' excellent talk/s on finding undocumented X86 instructions, if there are any backdoors in a modern processor they'll probably under some hyper-obscure (register, stack etc.) state even if they did use an undocumented instruction.
And to your point about documentation vs implementation, it would not be difficult for anyone, to state one thing in the documentation and produce another thing, unless perhaps, you give access to the manufacturing facilities.
I hope they lose their investment.
I also hope all their hordes of fanboys wake up to reality now. Yes, the people that "<3 open source" and "<3 Linux" and gave you VS Code for free, will now own your CPU now and you have nothing to do about it. And then, if they change their mind and don't want you to run Linux, you won't run Linux.
It's like blaming America's analogue colour TV implementation (NTSC) when in fact PAL and SECAM haven't been invented yet (and NTSC is partially responsible for PAL even existing).
Honestly, Py2 was a PITA when handling raw data, it could corrupt your data if you don't know exactly what you are doing.
The goal was to separate (Unicode) text from binary data. It wasn't to UTF-16 though. In fact, you should just assume that text variables are encoded in Unicode points and not care whether it is UTF-16 or UTF-8 (and on Unix-like systems, it is definitely represented to UTF-8). If you are converting it into binary, at least you know what encoding is it: no "Oh no my Python code was broken on Windows/Unix" because even Py2 has already the UTF-16/UTF-8 OS split.
Instead they tried to split every function into a 'wide' (str) and a 'narrow' (bytes) version, like in Windows.
The whole idea of 'wide' strings is predicated on the idea that Unicode charpoints are only ever two bytes and that two bytes is all you ever need.
This obviously doesn't work in 2020, and the Python folks tried to roll back their broken by design code that has immediately turned into technical debt right out the gate, but the warts still exist. (Like having to choose whether you open files with 'w' or 'wb', etc. No other language does this stupid thing, I think.)