News for hackers. Stuff that matters.
Re:Mozilla debuts implementation of WebThings Gateway open-s... by tialaramex on Friday July 26, 2019 @05:58AM (#20533597)
This the closest we have so far to an answer to the point raised in the IETF 105 Technical Plenary a few days ago.

Encrypting everything means that IoT devices represent an unknown threat - your "smart" TV connects to Sourceforge and downloads... something every week. What for? Your "smart" thermostat calls the IP of the vendor, maybe to get firmware updates, but it also calls the Disney corporation - what for? You can't snoop any of this because it's using encryption with pinned keys, so MITM doesn't work. Obviously hardcore reverse engineering is possible, but it's extremely expensive. So in practice it won't get done.

But, if we can popularize a safe option, we can just flag all the unsafe approaches that are popular today. We can teach vendors that this is a bad idea and they shouldn't do it, and (cross fingers) it might go away, like X-ray shoe sizing.

Re:Mozilla debuts implementation of WebThings Gateway open-s... by degenerate on Friday July 26, 2019 @10:15AM (#20534962)
I was fascinated by your X-ray example. Here's a link for others: https://en.wikipedia.org/wiki/Shoe-fitting_fluoroscope
Re:Mozilla debuts implementation of WebThings Gateway open-s... by Shorn on Saturday July 27, 2019 @07:00PM (#20544780)
Goddammit. The comments are why I browse HN on a daily basis, but sometimes you folks are worse than Wikipedia. I know I shouldn't click that link.

/me grumpily clicks link

Re:Mozilla debuts implementation of WebThings Gateway open-s... by gcbw2 on Friday July 26, 2019 @01:45PM (#20536653)
Re:Mozilla debuts implementation of WebThings Gateway open-s... by eb0la on Friday July 26, 2019 @06:23AM (#20533710)
> if we can popularize a safe option, we can just flag all the unsafe approaches

I am not a lawyer, but I think under european privacy laws those approaches are probably ilegal, too.

If some manufacturer (probably chinese) wants to grab data from people in Europe, they must comply with EU laws even if they don't have an office in the EU.

Not beign able to sell to a huge market is probably a better tactique, but not the only one to use.

Re:Mozilla debuts implementation of WebThings Gateway open-s... by tialaramex on Friday July 26, 2019 @08:28AM (#20534223)
One of the things mentioned in that Plenary is that partial technical solutions embolden regulators and legislators.

We don't have to make everything bad impossible. We can make it a bit harder to do the wrong thing, and then the regulator says "Hey, do the easy thing these nerds recommend or else if we find you did the wrong thing you're in bad trouble".

Re:Mozilla debuts implementation of WebThings Gateway open-s... by sp332 on Friday July 26, 2019 @10:53AM (#20535225)
If you can't tell what data is being sent or retrieved, how will you prosecute them?
Re:Mozilla debuts implementation of WebThings Gateway open-s... by tialaramex on Friday July 26, 2019 @12:30PM (#20536008)
I can't tell what my 2028 model Foo Corp. Smart TV is sending to the HBO servers or why, it's technically impossible thanks to cryptography.

But a Federal Prosecutor can tell a judge these are the only Smart TVs that do that, and he thinks it's because they're violating the Tialaramex No Snooping Act of 2025, so he wants a warrant to see what HBO receives.

The warrant doesn't magically decrypt the packets - but refusing to obey the warrant is contempt of court, for which you can go to jail. An HBO employee shows the Prosecutor their database labelled "snooping" full of data from Foo Corp TVs that sure enough violates the No Snooping Act.

Re:Mozilla debuts implementation of WebThings Gateway open-s... by noobermin on Friday July 26, 2019 @05:38PM (#20538571)
In your utopian vision corporate executives actually face jail time for violating the law, that if anything seems a more difficult thing to accomplish today.
Re:Mozilla debuts implementation of WebThings Gateway open-s... by sp332 on Friday July 26, 2019 @12:36PM (#20536061)
Don't you need probable cause to get a warrant? This might be different in Europe actually... but it seems a bit thin.
Re:Mozilla debuts implementation of WebThings Gateway open-s... by tialaramex on Friday July 26, 2019 @01:08PM (#20536328)
Sure, so it depends on circumstances in the broader society. The judge needs to be convinced that on balance it's more likely the case that the prosecutor is right than not. That's all probable cause is.

In today's IoT world where basically everybody does all this potentially shady stuff sending encrypted data to who knows where, and with no legislation on the books saying they mustn't, you would not get anywhere trying to obtain a warrant.

But if things like WebThings Gateway were to make that unusual, so that as I said there aren't other Smart TVs sending mysterious stuff directly to HBO - that changes the balance of probabilities, and it also changes the incentive to regulate / legislate behaviours that are now less common and still undesirable so that what they're doing isn't just immoral it's illegal too.

Circumstances change. In 1975 the idea that you shouldn't smoke cigarettes inside a train, deep under the ground, in a crowded city, was a bit weird. By 1983 it was illegal in London. In 1985 somebody who'd cut a few corners and was lighting a cigarette on the escalator out of the Underground caused a fire in which a lot of people died (a lot of other things went wrong, but none of them would have mattered if not for the cigarette). Today when we're trying to explain that fire to children it doesn't make a lot of sense to them. They don't remember it ever being legal to smoke cigarettes inside a building - it smells bad and looks obviously dangerous - why would somebody be doing it not just inside a building but so deep underground?

Re:Mozilla debuts implementation of WebThings Gateway open-s... by FeepingCreature on Friday July 26, 2019 @01:00PM (#20536268)
In Europe, with the GDPR, you can just ask the company what they have on you.
Re:Mozilla debuts implementation of WebThings Gateway open-s... by gcbw2 on Friday July 26, 2019 @01:50PM (#20536728)
"Hey company in shenzen that i suspect is a shady front to illegal data mining business, do you have any data on me? i'm john doe, living at 123 naive st #42, phone number 555-555-555, national registry number 1234556. You can reply to me on this same email address. thank you. PS: maybe i filled this in an webform, so please do not attach this new info to all the traffic/behaviour you previously collected from your TV on this same IP address"
Re:Mozilla debuts implementation of WebThings Gateway open-s... by downrightmike on Friday July 26, 2019 @04:33PM (#20538127)
"We can teach vendors that this is a bad idea and they shouldn't do it, and (cross fingers) it might go away" If Mozilla puts the work in and the vendors have to do is copy it, then they'll copy it like everything else they use. FLOSS makes the net go round.
Re:Mozilla debuts implementation of WebThings Gateway open-s... by godelski on Friday July 26, 2019 @01:25PM (#20536468)
I'm no security expert, and maybe one can explain this to me, but why can't we just inspect the data before it is encrypted? Like isn't it gathered in some way, encrypted, then sent? And on the receiving end it has to decrypt, so we look at that (naively what files change). Unless this is all stored as encrypted I don't see why you can't do this. I mean this should prevent mitm attacks but also let those controlling devices inspect packets. Right? Or am I missing something (if so I'm legitimately interested. Lots of this stuff just seems like black box to me, and I'm sure others)
Re:Mozilla debuts implementation of WebThings Gateway open-s... by bashinator on Friday July 26, 2019 @03:47PM (#20537798)
Sure - just get a root shell prompt on your thermostat and I'd be happy to walk you through the rest.
Re:Mozilla debuts implementation of WebThings Gateway open-s... by garmaine on Friday July 26, 2019 @01:30PM (#20536501)
It is encrypted on the device. How are you going to get access to it?
Re:Mozilla debuts implementation of WebThings Gateway open-s... by godelski on Friday July 26, 2019 @01:49PM (#20536696)
My confusion is that I think there has to be a command that is encryptThisDataToBeSent(data). Can't you just look at data? Before it is encrypted? Or is data encrypted at all times? But if that's true, then the difference of sending encrypted data is kinda moot.
Re:Mozilla debuts implementation of WebThings Gateway open-s... by ripdog on Friday July 26, 2019 @01:54PM (#20536770)
If you can root the device and replace the firmware, sure. Or do extremely difficult hardmodding to tap the data buses, perhaps.

But both of those approaches are very difficult and resource-intensive. The first requires many, many hours of reverse engineering to find a security hole which allows you to write unsigned firmware to the device (or find a way to sign your own firmware and then upload it), then hack the firmware to do your snooping (good luck if the firmware updates are encrypted!).

The second is so fiddly and awkward, I've never heard of anyone actually doing it.

Re:Mozilla debuts implementation of WebThings Gateway open-s... by godelski on Friday July 26, 2019 @04:22PM (#20538047)
Okay I guess that makes sense. If I'm understanding you could get that information but you don't have access to the memory addresses unless you crack the firmware? Though in the case of Mozilla, wouldn't that be open so this wouldn't be that big of an issue?
Re:Mozilla debuts implementation of WebThings Gateway open-s... by blackflame7000 on Friday July 26, 2019 @04:37PM (#20538145)
> you could get that information but you don't have access to the memory addresses unless you crack the firmware.

Correct, from the moment the IoT device puts a packet on the line, it is encrypted end to end. This is a fundamental aspect of TLS to prevent snooping. To view unencrypted data, you have to access it prior to being sent out on the network which requires you to gain root privileges on the IoT device.

Re:Mozilla debuts implementation of WebThings Gateway open-s... by godelski on Friday July 26, 2019 @04:57PM (#20538262)
That makes sense. Thanks for the explanation!
Re:Mozilla debuts implementation of WebThings Gateway open-s... by vineyardmike on Friday July 26, 2019 @08:43PM (#20539624)
The threat comes from closed-source devices.

If these closed-source devices send un-encrypted data, you can MiTM these devices when they're on your network. But if they're encrypted, you're SOL.

Re:Mozilla debuts implementation of WebThings Gateway open-s... by ryacko on Friday July 26, 2019 @12:37PM (#20536069)
NULL ciphersuites exist for TLS, but knowing what data is sent is meaningless.

You find out after you purchase the device, are you going to send it back? What if data collection policies change?

Besides, SSH begins with encryption, how do you audit an SSH connection?

Re:Mozilla debuts implementation of WebThings Gateway open-s... by doctorpangloss on Friday July 26, 2019 @12:22PM (#20535939)
> You can't snoop any of this... Obviously hardcore reverse engineering is possible, but it's extremely expensive

The path to the platform you want looks like the iOS App Store.