The Wordfence Threat Intelligence team recently discovered an interesting malware variant that appears in the file system as a normal WordPress plugin, often with the name ‘WP-antymalwary-bot.php’, and contains several functions that allow attackers to maintain access to your site, hide the plugin from the dashboard, and execute remote code. Pinging functionality that can report back to a Command & Control (C&C) server is also included, as is code that helps spread malware into other directories and inject malicious JavaScript responsible for serving ads.
This malware was first discovered by one of Wordfence’s security analysts during a site clean on January 22, 2025. A malware signature was developed on January 24, 2025 and released to Wordfence premium customers within three days after undergoing our QA process. Customers using the free version of Wordfence received the same signature on February 26, 2025 after a 30 day delay. New versions of the malware have since surfaced, all which are detected by the malware signature released back in January. However, for added protection Wordfence released a firewall rule on April 23, 2025 to all Wordfence paid users preventing execution of the file. Site owners using the free version of the Wordfence plugin will receive the same added coverage on May 23, 2025.
Source and more details: https://www.wordfence.com/blog/2025/04/interesting-wordpress-malware-disguised-as-legitimate-anti-malware-plugin