172 points · by bdcravens · 6y ago · 78 comments
This is the line I am not willing to cross.
Do I believe that the security of Home Assistant and the plugins that surface this to web/mobile interfaces is such that I'd risk the physical security of my home and possessions to it?
I love the Pi doorbell project, and could eventually be onboard with a home security company producing a smart lock I would consider... but enabling a lock via Home Assistant to grant access to the house, disable alarms, etc (assuming HA scripts like "when the door is unlocked disable alarm to prevent false positive", etc)... I suspect my insurance company would consider this an act of me leaving the door open and granting access to people who later stole stuff and that they wouldn't pay out.
If you take your average thief, they will walk past your house and if it looks like it's worth breaking in they will do this, or go to the next house that looks easier or more promising. They won't even notice your custom smart lock solution and think it might be hackable (unless it's a common brand with a generic explain available, think of scriptkiddy hacking skill requirement). They will go for the easiest thing, like a open window, or break a small window to open the door from the inside.
Now if you have a dedicated thief that wants to rob you specifically, they might want to invest into hacking your lock. But only if the rest of your house is already a fortress, or covertness is really key. But if they really want something they might just take an axe to your door and threaten you to open your vault.
It's whether insurance pay out.
I once locked myself out of the house and called a locksmith to let me back in. He didn't even touch the lock, he just reached through the letterbox with a lever and operated the handle from the inside. I felt a bit stupid paying him to do it really, because I could totally have done that myself if only I'd thought of the idea, but of course that's easy to say once you've seen how it's done.
And once it also happened (I know...) with a secure door and lock, and although the locksmith had to break the lock he managed in under 10 minutes.
My conclusion is that residential doors and locks, even secure, expensive ones, are no match for professionals. They protect against opportunity theft and idiots.
Some of these smart locks however turn out to have MASSIVE exploits (sending out unencrypted bluetooth addresses for instance). Sure, you could research and pick a lock from a wellknown brand with proven security. The downside to software security is that there is a possibility that a hack can be developed in the future. With an old-fashioned key, the risks are pretty well known.
I'm a big fan of home automation (Home Assistant user here). I'm rather proud of my setup where I can measure, control and secure my entire house. But I'm not using smart locks. Their use cases are, in my case, very limited (I've never encountered a situation where I thought 'darnit, I wish I could open that door without a key') and therefore not worth the extra risk.
Obligatory LockPickingLawyer: https://youtu.be/XXW27KKHtc8
For hackers anywhere who don't mind traveling, perhaps a few would think "hey we already got the door unlocked, maybe we can burgle the place, too."
Far fetched, but who knows.
That said, you are probably right about insurance if you installed anything yourself without mechanisms to ensure the door is closed in all failure cases.
edit: That other insurance might be less happy with that in case of fire emergencies of course.
If someone has broken into my home, I have much bigger problems than if they've managed to break into my wifi or VPN gateway from the internet.
If you throw up HTTP basic auth on your HTTPS front end, you've now moved your risk away from bugs in HA's code, to bugs in nginx's (or whatever HTTP server you use) implementation of HTTP basic auth AND bugs in HA's code (odds of this being a real event just got smaller)
If you throw a VPN in front of all that as well, you've now moved your risk away from bugs in nginx's code, to bugs in your VPN implementation AND bugs in nginx's code AND bugs in HA's code (odds are now really small).
This is also known as defence in depth.
The secure solution is to not allow remote access and use a VPN to connect to your local network (such as WireGuard) as the commenter you replied to suggested.
Would I install it on the Raspberry PI I have Home Assistant on? And they how would I remote into it over the internet?
The main points are:
Wireguard uses fairly strong and trusted encryption; this is basically shown by the fact it managed to be mainlined. It's basically foolproof, you don't have a myriad of options to choose from that can lead to insecure configuration.
It's faster than OpenVPN and less complicated then IPSec. It's easy to tunnel all traffic or just a subset through the VPN. It should deal with roaming IP addresses fairly well (so works on a train as well as your net will).
Basically, if the only open port from the internet to your LAN is wireguard, you're probably not going to be breached by someone coming in the front door.
Obviously, if you open a cat.jpeg.exe when on you're network, your inbound firewall security is no longer going to be helping you, however there are also ways around this. I.E. you could segregate your desktop and phones from the main network, etc. But then a rouge IOT device that does need to connect to your homeassistant could cause problems, and you probably want some access too, so you probably want to setup some kind of auth...
Yeah, I guess it can get convoluted if you're not happy with some risk / work...
Once I had seen how you add a client (correct word?) to the VPN via the ssh QR code thing, my mind was a little blown and I very much felt I was in the future.
Then you use the app on phone or laptop to connect to your home lan.
It all runs in Docker, and a mini warning - the internal networking of the WG install was a little finicky for this first timer.
It seems massively easier to break into a home this side of the channel.
B) Does your home have easier ingress methods that don’t require finding the server, hacking into it, and hitting the correct button? For example, a first floor window?
I need a video doorbell with my own remote storage. but the camera sensor part and the button needs to be the only thing on the untrusted side of the door.
1. Securing the device - which in practice meant all my hardware had to be mounted inside the property of the back of the front door
2. power supply - i battled with voltage sag due to the crap thin wires i used and the long run from the plug socket
3. The video resolution was terrible, to the point of not being useful at all
It's interesting to me that in almost 10 years, only #3 is really "solved". 2 is arguably solved given the cheap high capacity lithium batteries available.My attempt back in 2011:
Linksys WRT54G, I broke out the GPIO pins to service a microswitch on the letterbox and the doorbell button. A cheap USB "spy cam" from ebay with a resolution of around 20px x 20px. It looked horrendous despite my best efforts to mount it neatly.
OpenCV existed at the time but wasn't available on this platform. Instead i read from /dev/video, converted the image to greyscale, then comparing pixel by pixel the luminosity vs. the previous saved file. If the cumulative value crosses a certain +ve or -ve threshold it treats it as motion detected - which turned out a terrible approach in practice :-)
Use 12V wall wart and a small 12V to 5V converter by the Pi.
I've found great use of these little ones:
The little stripboard daughter board in the pics is hosting an LM7805 to power the usb webcam thing because the wrt54g usb port itself was a bit of a hack https://wiki.dd-wrt.com/wiki/index.php/USB_mod_WRT54
The LM7805 works fine for low currents, but being a linear regulator wastes a lot of power which gets turned into heat once the current goes above 100mA or so.
Besides lighting and heating and cooling appliances, the use cases for a smart fridge, oven, or microwave make no sense to me.
It would be great to be able to throw a prepared casserole in the oven, go to the park with my kids, and then turn the oven on when we're about ready to head home so dinner's basically waiting for us when we get back.
Currently if I want to take the kids to the park before dinner I end up choosing between leaving earlier so there's time to make dinner, getting take out on the way home, or doing something super fast and low effort when we get back. Sometimes I use a slow cooker which provides some sort of solution but limits the type of dishes I can make.
Ahem nest.