PEERSTITCH is a memory-resident ARM64 implant deployed via FortiManager CVE-2024-47575 and FortiOS CVE-2025-61624, targeting 500+ managed FortiGate firewalls at a telecom MSP. Attackers exploited FortiManager (CVE-2024-47575) to steal configs and crypto material for 500+ FortiGate firewalls. They used stolen credentials for VPN access, pushed packet sniffers, and escalated privileges via CVE-2025-61624 to deploy PEERSTITCH, a ptrace-based memory injector hooking miglogd and iked daemons. PEERSTITCH uses covert inter-process memory sharing and Apache mod_md ACME abuse for C2, evading disk and network detection.
Memory injection
2 posts
Unit 42 Uncovers PEERSTITCH, a Stealthy FortiGate Implant Dissecting a PHP web server rootkit A Linux rootkit targets BIG-IP APM via CVE-2025-53521, injecting a fileless PHP web shell into Apache memory and providing a local socket backdoor. The implant hooks Apache's APR module loader to inject a web shell into PHP file memory mappings, bypassing disk-based detection. It also creates a local UNIX socket backdoor to /bin/bash. The malware uses RC4 for string obfuscation and custom ELF loading to execute before the host process main().