A lot of focus on the malware itself, but not so much on the misconfigurations and vulnerabilities which enable it. Would love to see that list. Other than that, the evasion techniques look pretty traditional. And of course the privilege escalation is done by a polkit vulnerability...
Perfctl: Stealthy malware targeting Linux servers
11–20 of 53 posts
Re: Perfctl: Stealthy malware targeting Linux servers
#12From 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…
So a `lsof -iTCP` should list it, right? Is it using TCP port 9050 or a custom port?
EDIT: Ha, they are (not surprisingly) way ahead of me. From the article: "The malware continues to copy itself from memory to half a dozen other locations, with names that appear as conventional system files. It also drops a rootkit and a few popular Linux utilities that were modified to serve as user land rootkits (i.e. ldd, lsof)."
Re: Perfctl: Stealthy malware targeting Linux servers
#13A lot of focus on the malware itself, but not so much on the misconfigurations and vulnerabilities which enable it. Would love to see that list. Other than that, the evasion techniques look pretty traditional. And of course the privilege escalation is done by a polkit vulnerability...
Re: Perfctl: Stealthy malware targeting Linux servers
#14Does uefi secureboot help or not at all?
Re: Perfctl: Stealthy malware targeting Linux servers
#15Does uefi secureboot help or not at all?
Re: Perfctl: Stealthy malware targeting Linux servers
#16Re: Perfctl: Stealthy malware targeting Linux servers
#17Does uefi secureboot help or not at all?
Secure boot won't help here. In theory one could configure a system to only trust executables and DLLs signed by a trusted, external signatory (like a locally hosted package repository) but I don't know of any Linux distros that make it easy to set up something like that. You'd also need to invent something to sign scripts, because signing binaries is only a part of the problem (in theory you could set this up Powershell, I think? But I doubt many Linux systems will boot with PS in the place of /bin/sh). Once the kernel launches the init process, the rest secure boot verification chain essentially ends.
It seems to me that prevention isn't hard by simply updating old software and perhaps running antivirus software on your servers.
Re: Perfctl: Stealthy malware targeting Linux servers
#18are there any scripts or steps to 100% detect perfectl yet?
Also, it mentions that ~/.profile is modified (EDIT: and many others, actually), so IDS like AIDE, if operated correctly, should alert you on that. I don't see any mentions about attempts to circumvent locally run IDS. I wonder if/why malware author did not attempt any evasive actions here, given how much they try otherwise. Maybe cost/benefit ratio is too low?
Re: Perfctl: Stealthy malware targeting Linux servers
#19A lot of focus on the malware itself, but not so much on the misconfigurations and vulnerabilities which enable it. Would love to see that list. Other than that, the evasion techniques look pretty traditional. And of course the privilege escalation is done by a polkit vulnerability...
Re: Perfctl: Stealthy malware targeting Linux servers
#20Here is Ars Technica's write up: https://arstechnica.com/security/2024/10/persistent-stealthy...