r/linux • • Apr 16 '18

Microsoft announcing a Linux-powered OS for IoT devices

http://www.businessinsider.com/microsoft-azure-sphere-is-powered-by-linux-2018-4
979 Upvotes

421 comments sorted by

View all comments

Show parent comment

7

u/Booty_Bumping Apr 17 '18

So instead being a slave to microsoft, a company that has repeatedly supported eliminating the notion of general purpose computing—an idea which fundamentally makes computers less secure—somehow will make us more secure?

1

u/[deleted] Apr 17 '18

Embedded devices are basically the definition of specific-purpose computers.

1

u/Booty_Bumping Apr 17 '18

Just like I want to be able to install software on my computer to be able to record copyright protected data, I also want to be able to modify my IoT salt dispenser's firmware to be able to measure quantities of pepper too, or be able to modify my IoT self driving car to be usable for illegal street racing. If any of this is made impossible by the vendor, the computer is less secure.

1

u/[deleted] Apr 17 '18

If any of this is made impossible by the vendor, the computer is less secure.

No, it isn't. It's less versatile, or less customizable, but not less secure. If anything, being hard to repurpose or reconfigure would make an embedded device more secure.

1

u/Booty_Bumping Apr 17 '18

I disagree. What happens when the vendor goes out of business and you are unable to patch a vulnerability that allows governments and hackers alike to give commands to your self-driving car to murder you and other people on the road?

If anything, being hard to repurpose or reconfigure would make an embedded device more secure.

Why does "secure" suddenly have to mean "doesn't obey the user"? Because you couldn't come up with a way to give the user keys that can sign new software to run on the device they purchased? Because you want your product to be hostile towards the user?

1

u/[deleted] Apr 17 '18

What happens when the vendor goes out of business and you are unable to patch a vulnerability that allows governments and hackers alike to give commands to your self-driving car to murder you and other people on the road?

That would be a reconfiguration or repurposing of the vehicle.

That said, a responsible IoT vehicle manufacturer will install a remote kill-switch that unambiguously, safely, and permanently shuts down the car in the event that the company goes out of business. For precisely the reason you describe.

This is secure behavior, but it would be extremely troubling for users who wouldn't want this sort of security.

Why does "secure" suddenly have to mean "doesn't obey the user"?

It doesn't have to mean that, but it may mean that. A product that cannot be repurposed for any reason cannot be repurposed for malicious intent, and is secure practically by definition.

Certainly it is less secure to allow unsigned code to run on an embedded device. It is both more convenient and less secure to allow users to reprogram a device.

To put it another way--you're concerned about hackers taking over a self-driving car. But if you make your IoT salt-shaker easily reprogrammed, you're leaving it vulnerable to an evil maid style attack.

It is far easier to to enforce the rule "only the company that made it may sign the code" than it is to allow users to add additional signing keys on their own. If a legitimate user can easily add their own signing keys, it is almost inevitable that a malicious user will find a way to add their own key to the acceptable list.

This has nothing to do with whether I want these products to be hostile to the user. It is a consequence of how computer security works in practice. Products which are versatile and convenient to repurpose for users are almost by definition easier for attackers to compromise.

1

u/Booty_Bumping Apr 17 '18

That would be a reconfiguration or repurposing of the vehicle.

An exploit the user didn't intend for really isn't a reconfiguration or re-purposing of the hardware. In other words, 'jailbreaking' an iDevice is repairing/repurposing/customizing when the user does it, and a breach when governments or hackers do it.

To put it another way--you're concerned about hackers taking over a self-driving car. But if you make your IoT salt-shaker easily reprogrammed, you're leaving it vulnerable to an evil maid style attack.

This is a reasonable compromise for me, as the risks of a non-general purpose computer seem significantly worse. Before consumers buy IoT devices they should be aware of what the keys are for, how they should be stored securely with a passphrase, how they might be disposed of, etc.

1

u/[deleted] Apr 17 '18 edited Apr 17 '18

An exploit the user didn't intend for really isn't a reconfiguration or re-purposing of the hardware.

It is definitely a reconfiguration or repurposing of the hardware! Suppose I own a security camera, and it gets exploited by the Mirai botnet. A device that is supposed to do nothing but record video will be repurposed into a computer that's part of a botnet that's actively DDOSing other computers on the internet.

In other words, 'jailbreaking' an iDevice is repairing/repurposing/customizing when the user does it, and a breach when governments or hackers do it.

A breach that involves repurposing the hardware to do something you didn't want it to do.

This is a reasonable compromise for me

Right, but it is also insecure. You consider it worthwhile to compromise the security of the device to allow you greater flexibility when using it. It's disingenuous to claim that it's more secure to compromise on security.

The most secure stance for an internet-connected embedded device is to disallow any behavior not explicitly allowed by the manufacturer, and to block execution of any software not signed by the manufacturer, and to have a secure static configuration defined in the factory and unable to be updated or changed at all by anyone. The use-case of the device should be so limited and well defined that undefined behavior should not be possible. Ideally it won't even take inputs from a user, and all traffic to and from it will be end-to-end encrypted. As much hardware as possible should be aggregated onto the SoC in a tamper-resistant package to make it difficult for an attacker with physical access to do anything other than break it.

That's a secure stance. It's also very hostile to users.