Security in IoT: Why you as a user are helpless and how you as a manufacturer can do it better

Security in IoT: Why you as a user are helpless and how you as a manufacturer can do it better

The Internet of Things - short IoT - the ability of your coffee machine to upload coffee directly to the Wi-Fi and the ability of the refrigerator to download supplies 😉 - is full of security risks, as Bruce Schneier reveals in his blog. In this post, I first want to present the current situation and then suggest countermeasures to manufacturers of IoT devices that make the Internet of Things safe anyway. And that's 100% - if desired.

Finding 1: Networking brings more benefits than risks

No matter how dangerous IoT is: remote maintenance of power plants saves technicians several hours of time in case of a failure, which they would otherwise need to travel to the power plant. Often, the power plants are hundreds of kilometers away from the engineering firms. The losses due to failure in case of a breakdown can therefore be estimated in the millions.

In other areas, IoT also brings more benefits than risks: if the device works, it is used - if it no longer works (because it was hacked and misused as a zombie), it is simply no longer used.

Finding 2: Secure systems are possible, but not always practical

Contrary to common belief, it is actually possible to create secure systems. However, one must be skilled at it. Bruce Schneier holds the same opinion, although he has a very pessimistic attitude toward whether IoT manufacturers will actually take measures. Often, it is also a question of price, as many customers pay nothing for their security.

Furthermore, the security of a system is not discernible at first glance. Only a profound analysis beneath the surface, using the source code, or with special port scanners, reveals the unintended access points.

Thus, IT security is an economic trade-off. Sometimes it makes sense to simply purchase insecure systems because the price difference to a secure system does not outweigh the potential damages. You can follow a similar approach by taking out a cyber insurance policy. Mirko Bubig from Gewerbe-Profi has written an interesting article on this. According to the 80/20 rule, with which you achieve 80% of the security with only 20% of the effort, you can do thatResidual risk of 20% (=80% of the effort) simply insure it.

Finding 3: Talking about security is not always desired

Bruce Schneier complains that due to American copyright laws, security researchers have their hands tied. Devices may not be analyzed, and as long as the good guys are not allowed to hack the devices, the bad guys will.

This is an important point, because security research is one of the pillars of a future secure IoT. German security researchers have much broader powers than their American colleagues. Security in the IoT will only prevail when security research becomes public enough to either push manufacturers toward security updates and virus cleanups or discredit them so much that their products are discarded and, ideally, receive a sales ban.

Nevertheless, a German security researcher always faces the risk of being served with a cease and desist order for counterproductive gag orders. This too must change through new laws.

First, the basics: No systems would be insecure without a firewall

Firewalls no longer have a place in the IoT. Networks must be reachable; that is the basis for their usability. Systems that are only secure due to shielding are no longer contemporary and are not really secure. In the 2000s, there was an operating system called "Windows 2000" where all services were completely enabled over the network. We always had fun in school with shutting down the teacher's computer in the middle of class.

The lesson learned: Every access to the device must be authenticated. In other words: Usernames and passwords. There are also alternative authentication factors, but in any case, one should carefully check how and in what way these are vulnerable.

Manufacturer updates are also often insecure because they lack authentication. Attackers can use the update function of insecure devices to install their malware. Even here, one ultimately does not have full control and must rely on Residual risk again.

Systems that are only secure due to their isolation are not secure.

Measure 1: Secure factory passwords

To increase user convenience for IoT devices, default passwords are usually set. However, this poses an unpredictable security risk, as hardly any user changes the passwords as requested.

The most important measure for manufacturers should therefore be: every device gets its own password, which must be printed in the manual or on the device. The password must be mathematically independent of the device number. The last requirement is particularly important, otherwise the password is also worthless. Vodafone allowed itself this weakness - subsequently, every Wi-Fi network could be easily breached via the APP.

Measure 2: Cryptographically sign updates

Updates for IoT devices can be forged by skilled attackers and are thus an entry point for malware. On the other hand, IoT devices need updates to patch security vulnerabilities.

Updates can be retrieved via the HTTP protocol. However, the integrity of the loaded update archive must then be checked. According to the current state of the art, this is done using cryptographic signatures.Bashbundle, an open-source project by our company, allows exactly that: a few files as well as a shell script are packed into an archive and signed. On the target device, several public keys from trusted update providers are stored. A plugged-in USB stick or an HTTP download provides a package that is then checked and, upon approval, unpacked and executed.

Measure 3: Validate every input

A much subtler danger arises from the security vulnerabilities lurking in the code of the devices themselves.Buffer overflows are a significant example of how careless programming can suddenly give attackers the opportunity to take control of the computer by causing the program to crash.

We ourselves have already secured thousands of lines of third-party code against vulnerabilities such as SQL injections and remote code exploits. The reason for the existence of these security gaps was usually the ignorance or laziness of the programmer to program a mandatory sanitization or check for every user input.

Programming tools such as, for example, our open-source tool JSON Validator JSONType greatly facilitate the task for programmers to automatically generate the code for validating user input.

That was it.

If you implement the things mentioned above, there is no way left for criminals to illegally break into the IoT devices. What Bruce Schneier is brewing here is the inability and unwillingness of manufacturers to implement these few points correctly and without errors. We cannot change much regarding China. However, perhaps there are some German manufacturers who read this article and want to strengthen the "Made in Germany" brand according to the Siemens scandals also in the IoT sector.

Категории
Метки