Monitor and secure your home IoT appliances
Detecting Active Attacks
OpenVAS is the ideal tool for detecting and shutting down vulnerabilities before they are exploited. But tools such as OpenVAS are of little help if an attack is already underway. To detect an ongoing attack, an intrusion detection system is the best option. The best-known IDS on the open source scene is probably Suricata, and there are now quite a few Suricata heuristics descriptions for attacks on IoT devices on the web.
You will want to combine the capabilities of Suricata and OpenVAS in a smart way. If OpenVAS fails as the first line of defense in your battle against attackers, at least Suricata will tell you about attacks currently taking place. There are many signs that can unmask such an attack, such as a sudden and unexpected increase in traffic. Certain types of network traffic are also good indicators of complex attacks.
The good news is that you can now use Suricata as an application in the form of a container on the Raspberry Pi. Jason Ish provides some containers [2] for this purpose; setting them up on the Raspberry Pi itself is basically just like setting up OpenVAS. Unlike OpenVAS, however, Suricata comes as a single container, so you don't need Docker Compose. However, it is not a good idea to run Suricata on the same RaspPi as OpenVAS. The resources the mini-computer offers are simply not up to the task. To use both services, you have to invest in two Raspberry Pis; in return, though, you can look forward to a far more secure setup within your own four walls.
Look online for a description of how to get Suricata up and running on a Raspberry Pi [3]. Although the instructions refer to a version of the service compiled locally from the source code, most of the details, such as the configuration settings, can also be transferred to the variant in a Docker container. Several sites on the web offer IoT heuristics for Suricata. These rulesets are what enable the application to detect IoT-based attacks in the first place (Figure 5). Some IoT parameters can also be found in the source code for the heuristics set that comes with Suricata.
![](/var/linux_magazin/storage/images/issues/2023/271/smart-home-security/figure-5/822579-1-eng-US/Figure-5_large.png)
For Suricata to meaningfully monitor traffic on its own network, the router needs to have a mirror feature, which means that it mirrors all traffic flowing through it on one port of the device, making it appear that all the traffic is flowing through that port. If your own router does not support this feature, you might have to try a manageable switch – manageable switches usually offer a mirror feature. The details depend heavily on the local setup.
Conclusions
Home users are not completely at the mercy of vendors when it comes to security. Powerful tools from the Linux world such as OpenVAS and Suricata help to nip attacks in the bud or at least detect them while they are in progress, giving you a chance to respond. The golden standards of Internet security also apply in the context of IoT devices. Regular updates to fix bugs, smart default configurations of devices such as routers, and sensible practices such as avoiding default credentials require very little effort but are highly effective. Users of IoT devices would do well to heed these rules – at the end of the day, that is the price you pay for the convenience of having IoT appliances.
Infos
- Docker Compose file for OpenVAS: https://greenbone.github.io/docs/latest/22.4/container/index.html#docker-compose-file
- Suricata Docker Container: https://github.com/jasonish/docker-suricata
- Instructions for setting up Suricata on a Raspberry Pi: https://jufajardini.wordpress.com/2021/02/15/suricata-on-your-raspberry-pi/
« Previous 1 2
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
![Learn More](https://www.linux-magazine.com/var/linux_magazin/storage/images/media/linux-magazine-eng-us/images/misc/learn-more/834592-1-eng-US/Learn-More_medium.png)
News
-
NVIDIA Released Driver for Upcoming NVIDIA 560 GPU for Linux
Not only has NVIDIA released the driver for its upcoming CPU series, it's the first release that defaults to using open-source GPU kernel modules.
-
OpenMandriva Lx 24.07 Released
If you’re into rolling release Linux distributions, OpenMandriva ROME has a new snapshot with a new kernel.
-
Kernel 6.10 Available for General Usage
Linus Torvalds has released the 6.10 kernel and it includes significant performance increases for Intel Core hybrid systems and more.
-
TUXEDO Computers Releases InfinityBook Pro 14 Gen9 Laptop
Sporting either AMD or Intel CPUs, the TUXEDO InfinityBook Pro 14 is an extremely compact, lightweight, sturdy powerhouse.
-
Google Extends Support for Linux Kernels Used for Android
Because the LTS Linux kernel releases are so important to Android, Google has decided to extend the support period beyond that offered by the kernel development team.
-
Linux Mint 22 Stable Delayed
If you're anxious about getting your hands on the stable release of Linux Mint 22, it looks as if you're going to have to wait a bit longer.
-
Nitrux 3.5.1 Available for Install
The latest version of the immutable, systemd-free distribution includes an updated kernel and NVIDIA driver.
-
Debian 12.6 Released with Plenty of Bug Fixes and Updates
The sixth update to Debian "Bookworm" is all about security mitigations and making adjustments for some "serious problems."
-
Canonical Offers 12-Year LTS for Open Source Docker Images
Canonical is expanding its LTS offering to reach beyond the DEB packages with a new distro-less Docker image.
-
Plasma Desktop 6.1 Released with Several Enhancements
If you're a fan of Plasma Desktop, you should be excited about this new point release.