ZeroHour
Story · 4 sources · 4 articlesfirst updated ()

Fileless Linux rootkit hides PHP web shell in memory on F5 BIG-IP APM appliances via exploited CVE-2025-53521

highMalwareexploited in the wildimportance 78CVE-2025-53521
What's new: First merged summary of this story: four outlets (The Hacker News, Security Affairs, Help Net Security, CSO Online) covered Sophos's and ESET's analysis of the PoisonedRefresh fileless rootkit on F5 BIG-IP APM devices, published September 9-10, 2026, all tying the activity to exploited CVE-2025-53521.
Merged summary · glm-5.3 · rewritten as coverage arrives

Sophos and ESET detailed a fileless Linux rootkit (Linux/Agnt-IC, dubbed PoisonedRefresh) that injects a memory-resident PHP web shell into Apache on compromised F5 BIG-IP APM devices, leaving on-disk files clean and linked to in-the-wild exploitation of…

A stealthy Linux rootkit implant analyzed by Sophos (with related analysis from ESET, who dubbed it PoisonedRefresh) has been found on compromised F5 BIG-IP Access Policy Manager appliances, which serve enterprise, financial, government, and public sector deployments as federated SSO identity gateways and TLS termination points. Initial access leverages CVE-2025-53521, an unauthenticated remote code execution flaw in BIG-IP APM that triggers when an access policy is configured on a virtual server; F5 confirmed exploitation and links the activity to cluster c05d5254, and the flaw is rated CVSS 3.1 9.8, was patched in October 2025, and was added to CISA's KEV list on March 27, 2026. Shadowserver observed 795 internet-exposed endpoints vulnerable to the flaw at disclosure. A first-stage installer hidden in a modified umount binary infects /usr/sbin/httpd before Apache starts, disables or modifies SELinux configuration, and embeds itself in BIG-IP upgrade images for persistence across upgrades. The second-stage ELF intercepts __libc_start_main, hooks Apache's APR module loader (apr_dso_load), and modifies the libphp PHP module in memory so that when Apache loads three legitimate webtop scripts (apm_css.php3, full_wt.php3, webtop_popup_css.php3), an in-memory web shell is served while the on-disk files remain untouched, meaning hashes match and file-integrity monitoring passes. The web shell reads php://input, decrypts RC4-encrypted commands, and replies with HTTP 201 and a text/css content type to blend with normal traffic; the implant also exposes an interactive /bin/bash shell via an authenticated local UNIX domain socket at /run/bigtlog.pipe, avoiding TCP ports and network-based detection. Sophos published detection leads including .php3 requests, HTTP 201 responses on CSS endpoints, /proc/self/maps reads, and file, log, traffic, and SHA-256 indicators. Reports disagree on the Sophos publication date, citing September 7 versus September 8, 2026. Experts warn that compromised APM appliances could leak SSO tokens and credentials and enable lateral movement to trusted downstream applications.

  • Malware is a fileless Linux rootkit tracked as Linux/Agnt-IC, named PoisonedRefresh by ESET, targeting F5 BIG-IP APM appliances running Apache and PHP.
  • Initial access is via CVE-2025-53521, an unauthenticated RCE in BIG-IP APM when an access policy is configured on a virtual server; rated CVSS 3.1 9.8, patched October 2025, added to CISA KEV on March 27, 2026, and exploited in the wild.
  • F5 links the activity to cluster c05d5254; Shadowserver observed 795 internet-exposed endpoints vulnerable to CVE-2025-53521 at disclosure.
  • First-stage installer hides in a modified umount binary, infects /usr/sbin/httpd before Apache starts, disables/modifies SELinux configuration, and embeds itself in BIG-IP upgrade images for persistence.
  • Second stage intercepts __libc_start_main, hooks apr_dso_load, and modifies the libphp module in memory to inject a PHP web shell into three legitimate scripts: apm_css.php3, full_wt.php3, and webtop_popup_css.php3.
  • On-disk files remain unchanged, so hashes match and file-integrity monitoring and disk scans pass while the system is compromised.
  • Web shell reads php://input, decrypts RC4-encrypted commands, and replies with HTTP 201 and text/css content type; key strings are RC4-encoded.
  • An authenticated local UNIX domain socket at /run/bigtlog.pipe provides an interactive /bin/bash session without opening TCP ports.

Coverage timeline

  1. · 6d ago
    The Hacker News· 72
    F5 BIG-IP APM Malware Injects a PHP Web Shell Into Memory, Evading Disk Scans

    Sophos found F5 BIG-IP APM malware that injects a PHP web shell into Apache's memory, evading disk scans, linked to exploited CVE-2025-53521.

  2. · 6d ago
    Security Affairs· 78
    PoisonedRefresh: A Fileless Linux Rootkit That Injects PHP Web Shells Into F5 BIG-IP APM Server Memory

    Sophos details PoisonedRefresh, a fileless Linux rootkit that injects a memory-resident PHP web shell into F5 BIG-IP APM after exploitation of CVE-2025-53521.

  3. · 6d ago
    Help Net Security· 78
    Hackers deploy Linux rootkit on F5 BIG-IP APM devices, hiding web shell in memory

    Sophos analyzed a Linux rootkit, tracked as PoisonedRefresh, on hacked F5 BIG-IP APM devices hiding an in-memory web shell linked to exploited CVE-2025-53521.

  4. · 5d ago
    CSO Online· 72
    Stealth rootkit targeting F5 BIG-IP could expose enterprise identity gateways

    Sophos analyzed a stealth Linux rootkit that hides a web shell in memory on compromised F5 BIG-IP APM identity gateways, evading file-based detection.

Vulnerabilities in this storyAll →

CVEVulnerabilityCVSSEPSSFlagsAffectedExposurePublished
CVE-2025-53521
Stack-Based Buffer Overflow in F5 BIG-IP APM Enables Unauthenticated RCE

CVE-2025-53521 is a stack-based buffer overflow (CWE-121) in F5 BIG-IP's Access Policy Manager (APM) that allows remote code execution. The flaw is triggered when a virtual server is configured with an APM access policy and receives specific malicious network traffic; no authentication or user interaction is required per the CVSS 4.0 vector. An attacker who exploits it gains remote code execution on the BIG-IP device, and in observed intrusions attackers have deployed a fileless Linux rootkit (dubbed 'PoisonedRefresh') that injects a PHP web shell into server memory to evade disk-based scanning. Any F5 BIG-IP deployment with an APM access policy configured on a virtual server is potentially affected; versions that have reached End of Technical Support are not evaluated by the vendor. The vulnerability is being actively exploited in the wild — it was added to CISA's Known Exploited Vulnerabilities catalog on 2026-03-27, with active exploitation and in-memory malware campaigns confirmed in press reports, though ransomware use is unknown.

Do: Patch immediately by upgrading affected BIG-IP systems to fixed releases per F5's security advisory (note that versions in End of Technical Support will not be fixed and should be upgraded or retired), prioritizing internet-facing virtual servers with APM access policies. Because observed attacks deploy a memory-resident PHP web shell via the PoisonedRefresh Linux rootkit, disk-only scans may miss compromise — inspect running processes and memory, and hunt for suspicious PHP or rootkit activity on BIG-IP APM devices. Federal agencies must follow the required action in CISA KEV/BOD 22-01: apply vendor mitigations or discontinue use of the product if mitigations are unavailable.

9.32% KEV
  • F5 BIG-IP (BIG-IP Access Policy Manager / APM)
large≈14,000+ internet-exposed F5 BIG-IP devices (per public scan figures cited in press coverage)