Live data from Hacker News

Perfctl: Stealthy malware targeting Linux servers

aquasec.com

1–10 of 53 posts

Re: Perfctl: Stealthy malware targeting Linux servers

#2
From 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 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

#4
post #3

Does uefi secureboot help or not at all?

I'm not sure, outside of my expertise, but I think it might not help.

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

#5

From 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…

The CVE has a typo; the actual is CVE-2021-4034. https://nvd.nist.gov/vuln/detail/CVE-2021-4034

Re: Perfctl: Stealthy malware targeting Linux servers

#6
post #3

Does 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

#7
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...

Re: Perfctl: Stealthy malware targeting Linux servers

#9
post #6
post #3

Does 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.

In the mitigation section there is written 'Deploy Runtime Protection: Use advanced anti-malware and behavioral detection tools that can detect rootkits, cryptominers, and fileless malware like perfctl.' -- which tools can we currently use to detect perfctl?
Post reply on HN