Skip to content
Tech News
← Back to articles

Hackers breach F5 BIG-IP APM devices to deploy Linux rootkit

read original get Practical Malware Analysis (No Starch Press) → more articles
Why This Matters

F5 BIG-IP APM appliances sit at the edge of enterprise networks handling VPN and access control, so a stealthy rootkit that survives upgrades and leaves no malicious code on disk is a serious blind spot for defenders. The campaign appears to chain off CVE-2025-53521, a bug F5 originally rated as denial-of-service before reclassifying it as critical RCE, underscoring how severity downgrades can lull organizations into deferring patches.

Key Takeaways
Worth a Look

Practical Malware Analysis (No Starch Press) — If reading about fileless webshells and RC4-obfuscated Linux rootkits makes you want to dig into the binaries yourself, this No Starch Press classic is the standard hands-on guide to reverse engineering malicious code. It walks through disassembly, debugging, and unpacking techniques — exactly the tradecraft Sophos and ESET researchers used to pick apart PoisonedRefresh.

See Practical Malware Analysis (No Starch Press) on Amazon → Affiliate link — we may earn a commission on purchases, at no extra cost to you. Product picked by AI based on this article; it is not a tested recommendation.

A Linux rootkit targeting devices in F5 BIG-IP APM environments can intercept PHP file loading and inject a fileless web shell directly into memory, avoiding the need to write malicious code to disk.

The malware shows signs of being a second-stage payload that was likely deployed after exploiting CVE-2025-53521, a critical remote code execution (RCE) flaw that F5 Networks reclassified from a DoS problem in March.

Sophos researchers analyzed a sample and noted that, while it enables “on-demand server-side code execution” typically associated with webshells, it achieves this through “deeper Linux- and Apache-specific tradecraft.”

During the research, Sophos learned that the same malware was analyzed by ESET, who identifies it as ‘PoisonedRefresh.’

In technical analysis published this week, Sophos says that the payload was deployed by a distinct installer or propagation component that had infected the Apache /usr/sbin/httpd executable used on BIG-IP APM systems.

The malicious installer also modified SELinux configurations and achieved persistence across BIG-IP upgrade images, Sophos researchers say.

"The second-stage sample hides key operational strings with RC4, gains execution before the host application main() function is invoked by intercepting __libc_start_main, targets Apache’s PHP module by hooking the Apache Portable Runtime (APR) module loader (apr_dso_load), and injects a PHP web shell into memory."

The rootkit starts with Apache, with the second-stage implant intercepting PHP file operations and modifying them in memory to hide a web shell in legitimate scripts (e.g., apm_css.php3, full_wt.php3, and webtop_popup_css.php3).

Sophos notes that the scripts were likely targeted because they are present in BIG-IP APM webtop environments and are less likely to trigger security alerts. Additionally, the PHP files on disk remain unchanged, significantly reducing the detection surface.

The injected webshell accepts specially formatted (“magic”) requests, decrypts their contents, executes them through PHP’s eval() function, and returns an HTTP 201 response disguised as CSS content.

... continue reading