Detecting the infected device
These devices-turned-botnet will still function correctly for the unsuspecting owner, apart from the occasional sluggish bandwidth, and their botnet behavior may go unnoticed indefinitely.
Webroot.com: Source Code for Mirai IoT Malware Released
This tells us how the device changes its behavior. Occasional sluggish bandwidth is unfortunately a really bad indicator to be on the lookout for. The other thing Mirai does is to block ports to avoid monitoring tools to detect it.
These two features can be looked for. The first needs a very sophisticated network traffic monitoring solution and intricate knowledge about what kind of traffic you expect in your network. If your IoT device does not communicate via a WiFi connection but over 3G or other mobile telecommunication standards you are pretty much out of luck because you cannot monitor those. At least not easily and in most jurisdictions not legally.
The second Mirai feature is the thing Incapsula also scans for. If the ports are closed there is a possible Mirai infection. Since rebooting temporarily frees the device from Mirai's clutches the change in port availability in the time after a reboot can be taken as a very likely sign that the device has been compromised.
Do keep in mind, that Incapsula does not provide certainty but only gives your information about devices that are possible targets and devices that might have been infected. This is why it is important to realize that the Mirai however powerful attacks it can field it is not an unbeatable enemy on a small scope, it's even easy to prevent infections.
The next two sections will show that detecting is way too much effort compared to securing a device in the first place or securing your device on a hunch.
Recapturing your device
However, Mirai acts as an end point for a bot net and the worm is not changing the persistent memory of the IoT device. I.e. the firmware is not infected. This is the reason why a reboot and an immediate password change gives you back control over your device.
Infected systems can be cleaned by rebooting them, but since scanning for these devices happens at a constant rate, it’s possible for them to be reinfected within minutes of a reboot. This means users have to change the default password immediately after rebooting, or prevent the device from accessing the internet until they can reset the firmware and change the password locally.
Webroot.com: Source Code for Mirai IoT Malware Released
Prevent being compromised in the first place
Mirai does not hack your devices!
Mirai continuously scans the internet for IoT devices and logs into them using the factory default or hard-coded usernames and passwords.
Webroot.com: Source Code for Mirai IoT Malware Released
Mirai uses factory default logins to compromise your devices. Change the password before giving your IoT device any Internet connection for the first time and you'll live in a Mirai free zone.
If your device password cannot be changed and it's a potential Mirai target consider switching to the competition.