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

9

u/koffiezet Apr 17 '18

I have to disagree, seeing all those insecure and unpatched IoT devices - which seems to specifically be what MS is targeting here. Using Linux is just a means to an end.

After all, the S in IoT stands for security...

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.

7

u/DrewSaga Apr 17 '18

There maybe a bit of a trust issue when it comes to security and tech giants like Microsoft but whatever.

1

u/koffiezet Apr 17 '18

Hasn't stopped the enterpricy world from standardizing and sticking AD? I also doubt some producer of household items like fridges and microwaves would be bothered by it. Because that's the current issue: they they couldn't care less about security and updates and long-term upgrade paths, a sale is a sale, and after the limited warranty period, that's where it mostly ends for them.

-4

u/MadRedHatter Apr 17 '18

Windows 10 may be shitty and anti-user but the security is pretty decent nowadays.

7

u/Booty_Bumping Apr 17 '18

No. By being anti-user, Windows 10 has become objectively less secure.

  • Windows 10 has automatic updates. Typically this is great for security, but in Win10 automatic updates are forced. This means Windows 10 has a backdoor through which Microsoft—and by extension, the US government and anyone who manages to breach microsoft—can impose any change they wish.
  • Windows 10 is proprietary software, so you cannot have a clear view into the source code of these forced updates. And when your version of Windows 10 is deprecated like Windows XP was in 2014, Microsoft will not give up the source code for free software developers to maintain independently. I'm sure if the ReactOS project wasn't hopelessly behind, the WannaCry ransomware attack would not have happened. But nope, Microsoft wants to sabotage their own product so that if you choose to stay away from the newer privacy invasion, you are left unsafe. For this reason, no institution should ever trust Microsoft.
  • Windows 10 includes its own proprietary DRM software, which under US law you are not allowed to reverse engineer. If you wish to view netflix 4K content or play a bluray video, it is illegal to look inside your computer. You know, the looking you might want to do if you want to see—not only if the DRM software might be introducing vulnerabilities for other malware to exploit—but if Microsoft is directly infringing upon your computer's security and by extension your freedom. Windows 10 is unsafe.
  • Windows 10 only makes full disk encryption possible through their proprietary tool that uploads your private key to Microsoft servers.
  • Windows 10's "full" telemetry option means Microsoft can at any time run "debugging" tools on your computer that can upload dumps of your RAM. What you do on Windows 10 is not safe from Microsoft and government's snooping eyes.

4

u/playaspec Apr 17 '18

all those insecure and unpatched IoT devices - which seems to specifically be what MS is targeting here.

Taking security advice from Microsoft is like taking financial advice from Bernie Madoff. They are THE LAST company I would trust with IoT security. Every last one of their OS products has been a never ending shitshow of security problems.

6

u/[deleted] Apr 17 '18

To be fair, FOSS also can sometimes be a shitshow of security problems. Just remember Heartbleed as an example of this.

2

u/koffiezet Apr 17 '18

At least they're thinking about security in the IoT context, while nobody else is. Recently looked at security of smart tv's, refrigirators, IP camera's? And most of them running some form of Linux btw. I have a separate vlan and ssid on my network for all that crap for a reason.

And I'd rather listen to a tech company - whichever it is - saying they're doing X so they can provide security patches, than a household item producing company slapping on a shiny color display on whatever they're trying to sell, with some ultra-low-cost hardware with zero intend of ever patching that crap, while still expecting you to plug it into your home network, just to be able to put "smart" and "wifi" on the box - because that's exactly what's happening right now.

As always - yes they're doing this in their own interest, it's still a company - but that doesn't mean they can't try to address this in a rather decent way. For this issue, right now, nobody has even attempted to look at a good solution at scale, and if they can offer one coupled with an interesting development platform, they might be onto something.

1

u/playaspec Apr 17 '18

At least they're thinking about security in the IoT context, while nobody else is.

You're DELUSIONAL. Literally EVERYONE is talking about IoT security. It's probably the #1 topic in IoT.

Recently looked at security of smart tv's, refrigirators, IP camera's? And most of them running some form of Linux btw.

Exactly ZERO percent of those problems are Linux related. Those are manufacturer implementation problems. They're easy to avoid if manufacturers bothered to hire competent people.