Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Malware & Threats

Linux Crypto-Miner Uses Kernel-Mode Rootkits for Evasion

A recently discovered cryptocurrency mining malware targeting Linux machines is employing kernel-mode rootkits in an attempt to make detection more difficult, Trend Micro reveals.

A recently discovered cryptocurrency mining malware targeting Linux machines is employing kernel-mode rootkits in an attempt to make detection more difficult, Trend Micro reveals.

Dubbed Skidmap, the malware can also set up a secret master password that provides it with access to any user account on the system. Many of the miner’s routines require root access, suggesting that its attack vector is the same that provided the attackers with root or administrative access to the system.

The threat installs itself via crontab, after which the installation script downloads the main binary. It decreases the system’s security settings either by configuring the SELinux module to permissive mode or by disabling the SELinux policy and setting selected processes to run in confined domains.

Skidmap also provides attackers with backdoor access to the infected machine. For that, it adds the public key of the binary’s handlers to the authorized_keys file, and replaces the module responsible for standard Unix authentication with its own malicious version.

The main binary checks whether the system runs on Debian or RHEL/CentOS, and drops the miner and other components based on that.

Other Skidmap components allow it to obfuscate its activities and ensure that they continue to run.

The first of these components is a fake “rm” binary that replaces the original. This file sets up a malicious cron job to download and execute a file, but the routine would only be performed randomly, Trend Micro’s security researchers have discovered.

The second malicious component is “kaudited,” a file designed to drop and install several loadable kernel modules (LKMs). The threat uses specific modules for different kernel versions, which ensures that the dropped kernel-mode rootkits won’t crash the system.

Advertisement. Scroll to continue reading.

Additionally, the kaudited binary drops a watchdog component to monitor the cryptocurrency miner file and process.

A third module is “iproute,” destined to hook the system call getdents, which is normally used to read the contents of a directory, to hide specific files.

The final component is “netlink,” a rootkit that can alter the network traffic statistics (traffic involving certain IPs and ports) and CPU-related statistics (can hide the “pamdicks” process and CPU load).

Because of that, the malware can make the CPU load of the infected machine always appear low, which would allow it to avoid raising suspicion (high CPU usage could indicate cryptocurrency mining malware).

“Skidmap uses fairly advanced methods to ensure that it and its components remain undetected. For instance, its use of LKM rootkits — given their capability to overwrite or modify parts of the kernel — makes it harder to clean compared to other malware. In addition, Skidmap has multiple ways to access affected machines, which allow it to reinfect systems that have been restored or cleaned up,” Trend Micro concludes.

Related: WatchBog Crypto-Mining Botnet Relies on Pastebin for C&C

Related: macOS Crypto-Miner Emulates Linux

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Click to comment

Trending

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Join the session as we discuss the challenges and best practices for cybersecurity leaders managing cloud identities.

Register

SecurityWeek’s Ransomware Resilience and Recovery Summit helps businesses to plan, prepare, and recover from a ransomware incident.

Register

Expert Insights

Related Content

Cybercrime

The changing nature of what we still generally call ransomware will continue through 2023, driven by three primary conditions.

Cybercrime

A recently disclosed vBulletin vulnerability, which had a zero-day status for roughly two days last week, was exploited in a hacker attack targeting the...

Malware & Threats

The NSA and FBI warn that a Chinese state-sponsored APT called BlackTech is hacking into network edge devices and using firmware implants to silently...

Application Security

Virtualization technology giant VMware on Tuesday shipped urgent updates to fix a trio of security problems in multiple software products, including a virtual machine...

Cyberwarfare

An engineer recruited by intelligence services reportedly used a water pump to deliver Stuxnet, which reportedly cost $1-2 billion to develop.

Malware & Threats

Unpatched and unprotected VMware ESXi servers worldwide have been targeted in a ransomware attack exploiting a vulnerability patched in 2021.

Malware & Threats

Apple’s cat-and-mouse struggles with zero-day exploits on its flagship iOS platform is showing no signs of slowing down.

Cybercrime

No one combatting cybercrime knows everything, but everyone in the battle has some intelligence to contribute to the larger knowledge base.