Palo Alto Networks' Unit 42 has identified a sophisticated, multi-stage intrusion campaign targeting a telecommunications managed service provider. The attackers, tracked as threat cluster CL-STA-0954 (also known as UNC5820), demonstrated advanced tradecraft by exploiting two vulnerabilities—CVE-2024-47575 and CVE-2025-61624—to deploy a novel, memory-resident malware named PEERSTITCH. The primary targets were Fortinet FortiManager and FortiGate appliances. The initial compromise led to the exfiltration of configuration data for over 500 firewalls, exposing the provider and its clients to significant risk. PEERSTITCH is an ARM64-based implant that operates entirely in memory, patching legitimate system daemons to evade detection and establish stealthy persistence.
The attack began in September 2024 when the CL-STA-0954 threat actor exploited CVE-2024-47575, a command injection vulnerability in FortiManager's management channel (TCP port 541). This allowed the unauthenticated, remote attacker to register a rogue virtual appliance and exfiltrate a configuration archive containing sensitive data from over 500 managed FortiGate firewalls. This data included cryptographic material and reversible ciphertext credentials.
After a period of extended dwell time, the attackers used the stolen credentials to gain authenticated access to perimeter firewalls via SSL/VPN. From there, they exploited a second vulnerability, CVE-2025-61624, an authenticated path traversal flaw in the FortiOS auto-script engine. This vulnerability enabled them to escalate privileges from an administrative user to root on the underlying operating system. With root access, they deployed the PEERSTITCH malware, a highly stealthy implant designed specifically for FortiGate's ARM64 architecture.
PEERSTITCH is particularly dangerous due to its design: it is memory-resident, leaves no binary on disk, opens no listening ports, and initiates no outbound connections. It functions by patching the memory of two core FortiOS daemons, sshd and httpslvpn, allowing it to intercept and manipulate traffic through legitimate processes, thereby bypassing conventional detection methods.
PEERSTITCH is a 64-bit Linux ARM64 executable written in C and statically linked against glibc. Its primary function is to act as a one-shot injector that patches the memory of legitimate processes.
FortiJump) against the FortiManager appliance from an external IP (45.32.41.202). This allows them to register a rogue device (FMG-VMTM23017412) and exfiltrate a configuration archive named .tm.23.240.77.233, 47.18.167.159). They also deploy packet sniffer configurations to map the network and intercept traffic.system.auto-script object with a name containing path traversal sequences (e.g., ../../../../setup). This allows them to write an arbitrary script to the file system and execute it as root.hxxp[:]//23.240.77.233:8085/) into the /data2/template/ directory. The main executable then patches the sshd and httpslvpn daemons in memory, establishing stealthy persistence without writing a persistent binary to disk.T1190 - Exploit Public-Facing Application: Exploitation of CVE-2024-47575 on the internet-facing FortiManager.T1005 - Data from Local System: Exfiltration of the FortiManager configuration archive.T1078 - Valid Accounts: Use of credentials recovered from the exfiltrated configuration files.T1133 - External Remote Services: Accessing internal networks via FortiGate SSL/VPN sessions.T1040 - Network Sniffing: Deployment of unauthorized packet capture configurations on managed firewalls.T1059.004 - Command and Scripting Interpreter: Unix Shell: Use of the malicious auto-script to execute shell commands for payload deployment.T1055 - Process Injection: PEERSTITCH patches the memory of legitimate sshd and httpslvpn processes.T1556 - Modify Authentication Process: By patching core daemons like sshd, the malware can intercept or alter authentication flows.The impact of this campaign is severe, particularly for the targeted telecommunications MSP and its downstream clients. The exfiltration of configuration and credential data for over 500 firewalls provides the attackers with a comprehensive blueprint of multiple network environments. This enables widespread, persistent, and difficult-to-detect access.
Key impacts include:
The following indicators of compromise were identified in the source report.
45.32.41.202198.199.122.2223.240.77.23347.18.167.159hxxp[:]//23.240.77.233:8085/FMG-VMTM23017412.tmSecurity teams may want to hunt for the following patterns, which could indicate related activity:
FortiManager Event LogsFortiManager device registrationlocalhost or with unusual serial numbers.FortiManager file system.tm.system auto-script with ../ in namesshd, httpslvpnDetecting this threat requires moving beyond traditional file and network signature-based methods.
Memory Forensics: The primary method for detecting an active PEERSTITCH infection is to perform memory analysis of FortiGate appliances. Security teams should dump the memory of the sshd and httpslvpn processes and analyze them for unauthorized modifications, hooks, or patched code segments. This can be achieved using specialized tools and techniques for embedded Linux systems.
Log Analysis: Scrutinize FortiManager logs for signs of the initial compromise. Look for unauthorized device registration events, especially from external IP addresses or with suspicious hostnames like localhost. Correlate these events with any large, unexpected data transfers from the appliance.
Configuration Audits: Regularly audit FortiOS configurations for unauthorized changes. Specifically, review system auto-script configurations for any objects that have path traversal sequences (../) in their names. This is a direct indicator of an attempt to exploit CVE-2025-61624.
Network Monitoring: While PEERSTITCH itself does not initiate outbound C2, the initial deployment does. Monitor network logs for connections from FortiGate appliances to the IOCs listed, particularly on ports like 8085. Block these indicators at the network perimeter.
Defensive techniques from the D3FEND framework, such as D3-PA - Process Analysis and D3-NTA - Network Traffic Analysis, are critical for identifying such activity.
Organizations using Fortinet products should take immediate action to mitigate this threat.
Patch Vulnerabilities: The most critical step is to apply patches for CVE-2024-47575 and CVE-2025-61624 immediately. Prioritize patching on internet-facing FortiManager appliances.
Credential Rotation: Due to the exfiltration of configuration files, all administrative and SSL/VPN credentials stored on the compromised FortiManager and its managed FortiGates must be considered compromised. A full rotation of all passwords, keys, and certificates is required.
Restrict Management Access: Limit access to the FortiManager management interface (TCP port 541) to a small set of trusted internal IP addresses. This interface should never be exposed to the public internet.
Network Segmentation: Implement network segmentation to isolate management interfaces from general user and server networks. This can prevent attackers who gain a foothold elsewhere from pivoting to critical management appliances.
Enhanced Monitoring: Implement the detection strategies outlined above, with a focus on memory analysis and deep log inspection for network appliances. Establish a baseline of normal behavior for these devices to better detect anomalies.
Applying D3FEND countermeasures like D3-SU - Software Update and D3-ACH - Application Configuration Hardening are essential long-term strategies to prevent similar attacks.
Patching CVE-2024-47575 and CVE-2025-61624 is the most critical step to prevent this attack chain.
Rotate all administrative and user credentials on FortiManager and managed FortiGates to invalidate stolen credentials.
Restrict network access to the FortiManager and FortiGate management interfaces to a minimal set of trusted hosts.
Isolate management networks from production and user networks to limit an attacker's ability to pivot.
Implement comprehensive logging and regular auditing of FortiManager and FortiGate logs to detect anomalous activities like rogue device registration.
While file-based scanning is ineffective, solutions capable of memory scanning and process analysis can help detect in-memory threats like PEERSTITCH.
Immediately apply Fortinet's security patches for CVE-2024-47575 and CVE-2025-61624 across all affected FortiManager and FortiGate appliances. Prioritization is critical: begin with internet-facing FortiManager instances, as they represent the initial access vector for this attack. Following this, patch all internal management appliances and downstream FortiGate firewalls. Establish an automated verification process to confirm successful patch deployment. Given the MSP context of the breach, service providers must ensure patches are rolled out to all client environments under their management. This single action is the most effective countermeasure to prevent the entire attack chain from initiating. It directly hardens the initial target (FortiManager) and the pivot target (FortiGate) against the specific exploits used by the CL-STA-0954 actor.
To detect an active PEERSTITCH infection, security teams must perform deep process analysis on FortiGate appliances, focusing on memory forensics. Since PEERSTITCH operates by patching the sshd and httpslvpn daemons in memory, traditional file integrity monitoring is insufficient. Implement procedures to periodically dump and analyze the memory space of these specific processes on critical FortiGate devices. Look for evidence of code hooks, unexpected memory permissions (e.g., writable and executable segments), or deviations from a known-good baseline of the process memory layout. This requires specialized tools and expertise in embedded Linux forensics. For proactive detection, consider deploying endpoint security solutions on the appliances (if supported) that are capable of runtime memory protection and analysis to detect and block process injection and in-memory patching techniques.
Beyond patching, harden the configuration of FortiManager and FortiOS to mitigate risk. First, strictly enforce network access controls for all management interfaces (e.g., FortiManager's TCP/541). These should only be accessible from a dedicated, secured management network or specific jump hosts, and never from the public internet. Second, implement rigorous change control and auditing for system auto-script configurations. Create detection rules in your SIEM to alert on the creation or modification of auto-script objects, especially those containing suspicious patterns like path traversal (../). Regularly review all administrative accounts, enforce the principle of least privilege, and use role-based access control to limit the capabilities of any single account, reducing the impact of a potential credential compromise.
Initial intrusion against a telecommunications organization occurred, exploiting CVE-2024-47575.
Unit 42 published its research on the PEERSTITCH malware and associated campaign.

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.
CyberNetSec.io uses automation to assist source monitoring, deduplication, observable extraction, and structured intelligence generation. Published analysis follows human-defined editorial standards and adds defensive context including MITRE ATT&CK, D3FEND, STIX, and Sigma where applicable. Read our editorial policy.
Help others stay informed about cybersecurity threats
Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.
Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.