Perfctl: Stealthy malware targeting Linux servers
1–10 of 53 posts
Re: Perfctl: Stealthy malware targeting Linux servers
#2> "Aqua Nautilus researchers aim to shed light on a Linux malware that, over the past 3-4 years, has actively sought more than 20,000 types of misconfigurations in order to target and exploit Linux servers. If you have a Linux server connected to the internet, you could be at risk. In fact, given the scale, we strongly believe the attackers targeted millions worldwide with a potential number of victims of thousands, it appears that with this malware any Linux server could be at risk.
...
- It utilizes rootkits to hide its presence.
- When a new user logs into the server, it immediately stops all “noisy” activities, lying dormant until the server is idle again.
- It utilizes Unix socket for internal communication and TOR for external communication.
- After execution, it deletes its binary and continues to run quietly in the background as a service.
- It copies itself from memory to various locations on the disk, using deceptive names.
- It opens a backdoor on the server and listens for TOR communications.
- It attempts to exploit the Polkit vulnerability (CVE-2021-4043) to escalate privileges.
In all the attacks observed, the malware was used to run a cryptominer, and in some cases, we also detected the execution of proxy-jacking software. During one of our sandbox tests, the threat actor utilized one of the malware’s backdoors to access the honeypot and started deploying some new utilities to better understand the nature of our server, trying to understand what exactly we are doing to its malware."
The article goes into more depth of the attack flow, what the malware does, and how they detected it.
Re: Perfctl: Stealthy malware targeting Linux servers
#3Re: Perfctl: Stealthy malware targeting Linux servers
#4Does uefi secureboot help or not at all?
The attack takes place after boot, so maybe at best UEFI secureboot could prevent persistence of the malware, but I don't think it'd even achieve that, as the malware adds popular Linux utilities that were modified to serve as user land rootkits, and runs them by modifying the ~/.profile script. That script is ran when the user logs in (it starts the malware first, and then everything that's supposed to run on the server after), and I don't believe UEFI secureboot has any protections against ~/.profile script modifications or rootkits ran after boot.
Re: Perfctl: Stealthy malware targeting Linux servers
#5From the article: > "Aqua Nautilus researchers aim to shed light on a Linux malware that, over the past 3-4 years, has actively sought more than 20,000 types of misconfigurations in order to target and exploit Linux servers. If you have a Linux server connected to the internet, you could be at risk. In fact, given the scale, we strongly believe the attackers targeted millions worldwide with a potential number of vict…
Re: Perfctl: Stealthy malware targeting Linux servers
#6Does uefi secureboot help or not at all?
UEFI won't help here. But keeping your system up to date and limiting the system to the necessary functionality will help you.
Re: Perfctl: Stealthy malware targeting Linux servers
#7And of course the privilege escalation is done by a polkit vulnerability...
Re: Perfctl: Stealthy malware targeting Linux servers
#8Re: Perfctl: Stealthy malware targeting Linux servers
#9Does uefi secureboot help or not at all?
See the mitigation section in the article: https://www.aquasec.com/blog/perfctl-a-stealthy-malware-targ... UEFI won't help here. But keeping your system up to date and limiting the system to the necessary functionality will help you.
Re: Perfctl: Stealthy malware targeting Linux servers
#10are there any scripts or steps to 100% detect perfectl yet?
I assume it starts by detecting a continuous 100% utilization of the cpu’s.