Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Malware & Threats

Threat Actors Deploy WordPress Malware in ‘mu-plugins’ Directory

Sucuri has discovered multiple malware families deployed in the WordPress mu-plugins directory to evade routine security checks.

Malicious hackers have been caught hiding their WordPress malware in the ‘mu-plugins’ directory to evade routine security checks, according to a warning issued by Sucuri.

The mu-plugins, short for Must-Use plugins, are automatically loaded on every page, do not require activation, and do not appear in the standard WordPress plugin interface. This makes the directory an appealing target for threat actors already seen abusing it for stealth infections.

In February, Sucuri warned of suspicious index.php and test-mu-plugin.php files in the mu-plugins directory that contained code to execute additional payloads, resulting in backdoors being deployed on the infected sites.

Now, the company said it has found more malware hidden in the same directory, designed to redirect site visitors to external, malicious pages; to create a web shell for command execution, providing attackers with control over the website; and to inject spam content into the website.

The files, named redirect.php, index.php, and custom-js-loader.php, mimic legitimate WordPress functions. However, the site’s unusual behavior and the presence of new files in the mu-plugins directory should trigger suspicion, Sucuri said.

“Website administrators may also notice elevated server resource usage with no clear explanation, along with unexpected file modifications or the inclusion of unauthorized code in critical directories,” the company added.

Advertisement. Scroll to continue reading.

The script hidden within redirect.php executes based on whether the visitor is an administrator, a bot, or a regular user, displaying a fake browser or system update to trick the user into executing malicious code that can inject backdoors and other malware, or steal the visitor’s data.

Within the index.php file, the attackers hid a function to fetch and execute a PHP script from a remote location. The attackers, Sucuri warned, can modify the remote payload to dynamically inject new malware into the infected site.

The injection of a web shell into the compromised website, the security firm explains, provides the threat actors with remote control over the site, allowing them to execute commands, upload files, steal data, and mount other types of attacks.

The third identified malware uses JavaScript injection to replace images and modify links on the infected site, and intercept clicks to display malicious popups instead of directing the users to the intended destination.

“The ultimate goal behind these infections appears to be a mix of monetization and persistence. Each of these techniques benefits the attacker financially while keeping their payload hidden,” Sucuri said, noting that the websites might have been infected through vulnerable plugins or themes, compromised credentials, or the abuse of weak file permissions or outdated server configurations.

Related: 8,000 New WordPress Vulnerabilities Reported in 2024

Related: Hunk Companion, WP Query Console Flaws Chained to Hack WordPress Sites

Related: Critical Flaws Found in Popular Anti-Spam WordPress Plugin

Related: Critical Plugin Flaw Exposed 4 Million WordPress Websites to Takeover

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing for the latest cybersecurity threats, trends, and expert insights.

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.

Organizations are investing heavily in third-party risk management, but breaches, delays, and blind spots continue to persist. Join this live webinar as we examine the gap between how organizations think their third-party risk programs are performing and what’s actually happening in practice.

Register

Explore how attackers are using AI to scale threats and how security teams can respond with AI-driven defenses. Protecting against unmonitored use of generative AI (Shadow AI) in business units and building and enforcing AI governance frameworks.

Register

People on the Move

Opal Security has appointed CPO, CTO, VP of Field Engineering, VP of Marketing, and Head of Product and Solutions Marketing.

The Department of the Air Force has appointed Ashley Devoto as Chief Information Officer.

Bartley Richardson has been named Chief AI and Autonomous Systems Officer at CrowdStrike.

More People On The Move

Expert Insights

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest cybersecurity news, threats, and expert insights. Unsubscribe at any time.