Tuesday, November 12, 2024
HomeCyber Security NewsLinux Malware perfctl Attacking Millions of Linux Servers

Linux Malware perfctl Attacking Millions of Linux Servers

Published on

Malware protection

Researchers have uncovered a sophisticated Linux malware, dubbed “perfctl,” actively targeting millions of Linux servers worldwide.

This malicious software exploits over 20,000 types of server misconfigurations, posing a significant threat to any Linux server connected to the internet.

The malware’s stealthy nature and advanced evasion techniques make it particularly challenging to detect and mitigate.

- Advertisement - SIEM as a Service

The Rise of Perfctl: A New Threat in the Cyber Landscape

The perfctl malware has been a growing concern in developer forums and online communities for the past few years.

It has been linked to numerous incidents involving compromised Linux servers. The malware’s name derives from its ability to blend in with legitimate system processes, making it harder for administrators to identify.

By combining elements from standard Linux tools like “perf” (a performance monitoring tool) and “ctl” (indicating control), the malware authors have crafted a seemingly innocuous name that masks its malicious intent.

Analyse Any Suspicious Links Using ANY.RUN’s New Safe Browsing Tool: Try for Free

Understanding Perfctl’s Architecture and Attack Flow

According to the Aqua Nautilus reports, Perfctl is designed with multiple execution layers to ensure persistence and evade detection.

Once it exploits a vulnerability or misconfiguration, the main payload is downloaded from an attacker-controlled server. Initially named “httpd,” this payload copies itself into various locations on the disk, using deceptive names to avoid detection.

It also employs rootkits to hide its presence and opens a backdoor for TOR communications.

<img src="https://example.com/image2.jpg" alt="Attack Flow Diagram" style="width:100%;height:auto;">

The malware’s attack flow involves several sophisticated techniques:

  • Rootkit Deployment: Perfctl uses rootkits to hook various system functions, modifying their behavior to conceal its activities.
  • Persistence Mechanisms: It modifies scripts like ~/.profile to ensure they run during user login and maintain their presence on the server.
  • Defense Evasion: The malware suspends its activity when a new user logs in, resuming only when the server is idle.

Exploiting Vulnerabilities: The Polkit Case

One of perfctl’s key strategies is exploiting known vulnerabilities like CVE-2021-4043 in Polkit to escalate privileges on the infected server.

This allows the malware to access root, significantly increasing its potential impact. In many cases, perfctl has been used to run cryptominers, draining system resources and causing performance issues.

The entire attack flow
The entire attack flow

Impact on Linux Servers: Cryptomining and Proxy-Jacking

The primary impact of perfctl is resource hijacking through cryptomining activities. The malware deploys a Monero cryptominer (XMRIG), which consumes significant CPU resources, leading to system slowdowns.

Additionally, some attacks have involved proxy-jacking software, further exploiting the compromised servers for financial gain.

<img src="https://example.com/image4.jpg" alt="Cryptomining Traffic" style="width:100%;height:auto;">
Compromised website serves as download server
Compromised website serves as download server

Detection and Mitigation Strategies

Detecting perfctl requires vigilance and robust monitoring systems. Key indicators include unusual spikes in CPU usage and unexpected network traffic patterns.

Administrators should inspect directories like /tmp, /usr, and /root for suspicious binaries masquerading as system files.

Monitoring network traffic for TOR-based communications can help identify potential infections. Perfctl often communicates with external IPs associated with cryptomining pools or proxy-jacking services.

Regularly check system utilities like ldd, top, lsof, and crontab for unauthorized modifications. These utilities may be replaced with trojanized versions by the malware.

As perfctl evolves, staying informed about its tactics and applying proactive security measures are crucial for protecting Linux servers.

To mitigate this threat, it is essential to regularly patch vulnerabilities, restrict file execution in writable directories, and deploy advanced anti-malware solutions.

Free Webinar on How to Protect Small Businesses Against Advanced Cyberthreats -> Free Registration

Divya
Divya
Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Latest articles

10 Best DNS Management Tools – 2025

Best DNS Management Tools play a crucial role in efficiently managing domain names and...

Sweet Security Announces Availability of its Cloud Native Detection & Response Platform on the AWS Marketplace

Customers can now easily integrate Sweet’s runtime detection and response platform into their AWS...

Researchers Detailed Credential Abuse Cycle

Cybercriminals exploit leaked credentials, obtained through various means, to compromise systems and data, enabling...

New Android Malware SpyAgent Taking Screenshots Of User’s Devices

SpyAgent, a newly discovered Android malware, leverages OCR technology to extract cryptocurrency recovery phrases...

Free Webinar

Protect Websites & APIs from Malware Attack

Malware targeting customer-facing websites and API applications poses significant risks, including compliance violations, defacements, and even blacklisting.

Join us for an insightful webinar featuring Vivek Gopalan, VP of Products at Indusface, as he shares effective strategies for safeguarding websites and APIs against malware.

Discussion points

Scan DOM, internal links, and JavaScript libraries for hidden malware.
Detect website defacements in real time.
Protect your brand by monitoring for potential blacklisting.
Prevent malware from infiltrating your server and cloud infrastructure.

More like this

Researchers Detailed Credential Abuse Cycle

Cybercriminals exploit leaked credentials, obtained through various means, to compromise systems and data, enabling...

New Android Malware SpyAgent Taking Screenshots Of User’s Devices

SpyAgent, a newly discovered Android malware, leverages OCR technology to extract cryptocurrency recovery phrases...

Tor Network Suffers IP Spoofing Attack Via Non-Exit Relays

In late October 2024, a coordinated IP spoofing attack targeted the Tor network, prompting...