PEERSTITCH Malware Targets FortiGate via CVE-2024-47575

PEERSTITCH: Stealthy Implant Hits FortiGate via Chained CVEs

CRITICAL
October 15, 2026
14m read
MalwareVulnerabilityThreat Actor

Related Entities

Threat Actors

CL-STA-0954UNC5820

Other

PEERSTITCH

CVE Identifiers

Full Report

Executive Summary

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.

Threat Overview

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.

Technical Analysis

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.

Attack Chain

  1. Initial Access: The attacker exploits CVE-2024-47575 (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.
  2. Credential Access & Reconnaissance: The attackers brute-force credentials from the exfiltrated configuration files. They then use these legitimate credentials to establish SSL/VPN sessions from external staging infrastructure (23.240.77.233, 47.18.167.159). They also deploy packet sniffer configurations to map the network and intercept traffic.
  3. Privilege Escalation & Deployment: The attacker, now with administrative access, exploits CVE-2025-61624. They create a malicious 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.
  4. Malware Execution: The executed script downloads the PEERSTITCH components from a C2 server (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.

MITRE ATT&CK Mapping

Impact Assessment

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:

  • Loss of Confidentiality: Sensitive network configurations, cryptographic keys, and credentials were stolen.
  • Compromised Integrity: The ability to deploy a root-level implant allows attackers to modify system behavior, intercept traffic, and maintain long-term, stealthy control.
  • Widespread Exposure: Since the victim is a managed service provider, the compromise of its central management platform exposes all of its clients to follow-on attacks.
  • Evasion of Defenses: The memory-resident nature of PEERSTITCH makes it exceptionally difficult to detect with traditional file-based scanners and network monitoring tools, leading to long dwell times.

IOCs — Directly from Articles

The following indicators of compromise were identified in the source report.

Type
IP Address
Value
45.32.41.202
Description
Attacker infrastructure for initial compromise
Type
IP Address
Value
198.199.122.22
Description
Attacker infrastructure (modified)
Type
IP Address
Value
23.240.77.233
Description
External staging and C2 infrastructure
Type
IP Address
Value
47.18.167.159
Description
External staging infrastructure
Type
URL
Value
hxxp[:]//23.240.77.233:8085/
Description
PEERSTITCH payload download URL
Type
Other
Value
FMG-VMTM23017412
Description
Serial number of rogue FortiGate appliance
Type
File Name
Value
.tm
Description
Name of exfiltrated configuration archive

Cyber Observables — Hunting Hints

Security teams may want to hunt for the following patterns, which could indicate related activity:

Type
Log Source
Value
FortiManager Event Logs
Description
Look for device registration events from unknown or external IP addresses.
Context
SIEM, Log Management
Type
Event ID
Value
FortiManager device registration
Description
Specifically hunt for new devices named localhost or with unusual serial numbers.
Context
SIEM queries on FortiManager logs
Type
File Path
Value
FortiManager file system
Description
Search for unusually named archive files, especially hidden files like .tm.
Context
File Integrity Monitoring, Manual Inspection
Type
Command Line Pattern
Value
system auto-script with ../ in name
Description
Audit FortiOS configurations for auto-script objects containing path traversal attempts.
Context
Configuration review, CLI audit
Type
Network Traffic Pattern
Value
Outbound connections to IOC IPs
Description
Monitor for any traffic from management interfaces to the listed attacker IPs.
Context
Firewall logs, Netflow, IDS/IPS
Type
Process Analysis
Value
sshd, httpslvpn
Description
Perform memory analysis on FortiGate appliances to detect unexpected hooks or patches.
Context
EDR, Memory Forensics

Detection & Response

Detecting this threat requires moving beyond traditional file and network signature-based methods.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

Mitigation

Organizations using Fortinet products should take immediate action to mitigate this threat.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

Timeline of Events

1
September 1, 2024
Initial intrusion against a telecommunications organization occurred, exploiting CVE-2024-47575.
2
October 14, 2026
Unit 42 published its research on the PEERSTITCH malware and associated campaign.
3
October 15, 2026
This article was published

MITRE ATT&CK Mitigations

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.

Audit

M1047enterprise

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.

D3FEND Defensive Countermeasures

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.

Timeline of Events

1
September 1, 2024

Initial intrusion against a telecommunications organization occurred, exploiting CVE-2024-47575.

2
October 14, 2026

Unit 42 published its research on the PEERSTITCH malware and associated campaign.

Sources & References

Unit 42 Uncovers PEERSTITCH, a Stealthy FortiGate Implant
Unit 42 (unit42.paloaltonetworks.com) •October 14, 2026

Article Author

Jason Gomes

Jason Gomes

• Cybersecurity Practitioner

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.

Threat Intelligence & AnalysisSecurity Orchestration (SOAR/XSOAR)Incident Response & Digital ForensicsSecurity Operations Center (SOC)SIEM & Security AnalyticsCyber Fusion & Threat SharingSecurity Automation & IntegrationManaged Detection & Response (MDR)

Editorial Standards & Analyst Review

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.

Tags

PEERSTITCHFortiGateFortiManagerCVE-2024-47575CVE-2025-61624Memory-Resident MalwareARM64Nation-State ActorThreat ResearchCL-STA-0954

📢 Share This Article

Help others stay informed about cybersecurity threats

🎯 MITRE ATT&CK Mapped

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.

🧠 Enriched & Analyzed

Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.

🛡️ Actionable Guidance

Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.

🔗 STIX Visualizer

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 Generator

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.