Analyzing a malicious Raspberry Pi Bash script
Script Known
On the VirusTotal website, a malware analysis service, 25 of 57 scanners detect the script as malware [10]. The "First Seen in the Wild" date cited there is June 13, 2017; the first upload to VirusTotal is dated June 14, 2017. The Linux.MulDrop.14 script is detected by 16 of 56 virus scanners [11]. However, this version of the LinuxMulDrop.14 [3] was uploaded to VirusTotal for the first time by me.
A random test to determine whether these login attempts actually came from Raspberry Pis shows by means of the SSH banner that it is without question the Raspbian operating system.
Conclusions: Lessons Learned
The firewalls in an enterprise or organization should only allow incoming connections to resources that are explicitly approved or centrally managed. Moreover, SSH servers must always be especially secured, because the SSH port is subject to many brute force attacks on passwords.
Additionally, it is very useful to deploy hacker tools – especially ZMap – to search for open ports in your own IP address range. A Raspberry Pi is suitable as a scanner for this purpose. Special vulnerability scanners (e.g., OpenVAS/Greenbone [12]) can also search specifically for services with default passwords. Administrators always should change default passwords, because they cannot rule out early on that the system will not be accessible on the Internet at some point.
The sudo
configuration common today, and which is especially open on the Raspberry Pi, is not suitable for computers that are reachable from the Internet. An adapted (i.e., hardened) configuration must be imported before production release.
As the example proves, active Linux malware does exist – here in an incarnation for Raspbian – and can cause trouble and extra work for admins. Linux is by no means resistant to malicious software. This malware is still active and still produces log entries day after day.
Infos
- Rasp Pi misused for mining: https://erawanarifnugroho.com/2017/08/25/raspberry-pi-exploited-cryptocurrency-mining.html
- Linux.MulDrop.14: https://vms.drweb.com/virus/?i=15389228
- Funtimes-ninja: https://github.com/funtimes-ninja/malware/blob/master/01b728eb3aa7560ec3e36eae9077cc31b057c0b65cf44f3b252393f274ea758c
- Hashcat: https://hashcat.net/hashcat
- Hashcat benchmarks: https://gist.github.com/epixoip/a83d38f412b4737e99bbef804a270c40
- ZMap: https://zmap.io
- SSHPass: https://sourceforge.net/projects/sshpass
- PF_RING: https://www.ntop.org/products/packet-capture/pf_ring
- Undernet: https://en.wikipedia.org/wiki/Undernet
- QgEliheu signature: https://www.virustotal.com/#/file/6d1fe6ab3cd04ca5d1ab790339ee2b6577553bc042af3b7587ece0c195267c9b/detection
- Linux.MulDrop.14 signature: https://www.virustotal.com/#/file/c931e216f6c106257b5bdd1a24a23219083f37155f70b5c22e5e893ac6c1ab4a/detection
- OpenVAS: http://www.openvas.org/index.html
« Previous 1 2 3
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
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.
-
Kodi 21.0 Open-Source Entertainment Hub Released
After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.
-
Linux Usage Increases in Two Key Areas
If market share is your thing, you'll be happy to know that Linux is on the rise in two areas that, if they keep climbing, could have serious meaning for Linux's future.
-
Vulnerability Discovered in xz Libraries
An urgent alert for Fedora 40 has been posted and users should pay attention.
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.