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.
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.
News
-
Thousands of Linux Servers Infected with Stealth Malware Since 2021
Perfctl is capable of remaining undetected, which makes it dangerous and hard to mitigate.
-
Halcyon Creates Anti-Ransomware Protection for Linux
As more Linux systems are targeted by ransomware, Halcyon is stepping up its protection.
-
Valve and Arch Linux Announce Collaboration
Valve and Arch have come together for two projects that will have a serious impact on the Linux distribution.
-
Hacker Successfully Runs Linux on a CPU from the Early ‘70s
From the office of "Look what I can do," Dmitry Grinberg was able to get Linux running on a processor that was created in 1971.
-
OSI and LPI Form Strategic Alliance
With a goal of strengthening Linux and open source communities, this new alliance aims to nurture the growth of more highly skilled professionals.
-
Fedora 41 Beta Available with Some Interesting Additions
If you're a Fedora fan, you'll be excited to hear the beta version of the latest release is now available for testing and includes plenty of updates.
-
AlmaLinux Unveils New Hardware Certification Process
The AlmaLinux Hardware Certification Program run by the Certification Special Interest Group (SIG) aims to ensure seamless compatibility between AlmaLinux and a wide range of hardware configurations.
-
Wind River Introduces eLxr Pro Linux Solution
eLxr Pro offers an end-to-end Linux solution backed by expert commercial support.
-
Juno Tab 3 Launches with Ubuntu 24.04
Anyone looking for a full-blown Linux tablet need look no further. Juno has released the Tab 3.
-
New KDE Slimbook Plasma Available for Preorder
Powered by an AMD Ryzen CPU, the latest KDE Slimbook laptop is powerful enough for local AI tasks.