263 points · by bpierre · 10y ago · 93 comments
https://github.com/jgamblin/Mirai-Source-Code/blob/6a5941be6...
2 are they? have you scanned yourself? even something from the kooky Gibson should be enough https://www.grc.com/shieldsup
I'm writing personal home automation stuff and will be wiring up a handful of IoT SmartPlugs.
With all this IoT stuff i'm starting to wonder if buying a 2nd router to isolate the IoT, or perhaps a "really good" router with features designed for monitoring IoT.
Regardless, this is a problem i won't be able to ignore. So any advice is appreciated :)
Or, if you have a non-switching hub, you can use that instead of a PC with two NICs.
The safest thing to do for home routers is to kill UPNP, so that random devices on the inside can't open listening ports to the outside.
No no no!!!! This is going about it completely the wrong way and is setting us up for failure come IPv6 (if it's not already a thing for you).
We need half-decent security practices not a temporary workaround that requires user intervention.
In this case a randomly generated password printed somewhere inside the device's box or on the device itself is enough to stop Mirai and similar dumb botnets.
An internet that requires devices to be publicly exposed to the entire internet, and directly addressable at all times, is not an internet I want to participate in.
You WILL negotiate a firewall, before learning anything about the devices I use.
ESPECIALLY if I am prevented from knowing their internals, whether by willful disclosure or unlawful reverse engineering.
I control The Spice.
I control the universe.
NAT, and uPnP, is not that. In the case of uPnP: if uPnP was SOP, wouldn't the camera (needing to be "remotely accessible" because the Internet of Crap) just make the requisite uPnP calls, likely making everything accessible?
NAT, in particular, is terrible. Trying to explain to a normal user how to establish NAT port-forwarding for devices or applications is a UX nightmare. NAT, in particular, kills off entire classes of protocol design, necessitating hacking around NAT by routing traffic through untrustable third-party servers.
NAT is further not a firewall: one anything inside your NAT gets remotely exploited, and everything else is wide open. (And that's at best; depending on the protocol in use, you might not even need remote code execution.)
(And uPnP's support in my experience has been utterly pathetic.)
How can I verify that upnp is really disabled? (I don't trust my router to do it correctly)
But even if you do that properly there is always a high chance your router will be compromised and you won't be able to fix it.
To be extra sure just treat it as such and put a firewall between it and your LAN. That requires time to configure, but may satisfy the paranoid.
How about use a firewall that's not shit to begin with.
For some people, it's just worth $150 + 10/mo to not have something else to think about.
It's common knowledge in the industry that all of these devices likely have government backdoors or (likely deliberate) critical security flaws at any moment.
Virtually all CCTV hardware comes from ruthless and unregulated Chinese markets where the goal is to obfuscate the price (and source) as much as possible, to prevent price discovery by the end user and allow 2-4x markups on the equipment by the integrator.
Usually these manufacturers will sell to separate companies for their name brand, off-brand, and offer custom branding to distributors.
Due to the obfuscstion of manufacturing source, and at the same time a desire to "stand out" amonst the rest, the industry is rife with knockoffs, third-shift products, stolen technology, unauthorized distribution, you name it.
As an example: Every single Hikvision camera on amazon.com is an illegal sale and void of any official support from Hikvision. Go ahead and try to call them with a serial number for a product you bought on amazon and see what happens. It doesn't matter that the company selling the product on amazon is also named Hikvision (its an imposter).
Point being, the surveillance camera market is so rife with corruption that you generally accept that everything is compromised.
But none of it matters, because as long as the features work and the equipment is reliable, you simply throw it all behind an isolated network and call it a day.
There is even services that scan the whole ipv4 in less than 5 minutes: https://zmap.io/
And a list of how to do it: http://www.securitynewspaper.com/2015/10/15/how-to-scan-whol...
https://nakedsecurity.sophos.com/2013/01/29/what-if-your-sec...
https://en.wikipedia.org/wiki/Universal_Plug_and_Play#Proble...
I'm somewhat curious if all those attempts count against my data cap.
There is nothing inherently wrong with port scanning and it should not, by default, be considered "abuse".
I don't see why they wouldn't. IP (which is really the layer ISPs should operate at) does not distinguish between packets that you have "requested" and unsolicited packets, being connectionless protocol and all.
These cameras are at risk because the run web servers and use UPnP to make themselves directly available on public IP addresses.
Aren't remote exploits quite rare?
I've had the same router (D-Link DSL) with the same config for a few years and never had that happen... can the be infected?!
Having traffic from the router blocked was a PITA though!
The twitter stream narrates what he configured before turning the webcam on, and give details on how things unfolded.
Only works on Axis cameras though with Axis client software I should mention.
I much prefer this model, because then I don't have to trust all these terrible cameras; simply isolate them on a private wifi network that only your Blue Iris server can reach.
Otherwise, if you get robbed, and they happen to steal your NAS, you've lost the main reason to have a security camera in the first place - to identify the perp.