It injects code into two running system processes and leaves no file on disk. Unit 42 ties it to an intrusion that began with a FortiManager flaw.
What it does
Palo Alto Networks Unit 42 describes PEERSTITCH as a 64-bit ARM64 Linux program that runs once. It attaches to the logging process miglogd and the VPN process iked, writes a small block of code into each, and patches a few instructions so execution jumps into that code. The hooks then pass hidden tags between the two processes, and iked takes a different path that skips some default checks.
Unit 42 says PEERSTITCH leaves no program file on disk, opens no listening ports and makes no outbound connections. The attackers kept remote access by other means. Unit 42 reports a separate reverse shell built on the Apache certificate renewal module, so that channel is not part of PEERSTITCH itself.
The report names CVE-2024-47575 in FortiManager and CVE-2025-61624 in FortiOS. Unit 42 says the intrusion occurred in September 2024 and that the attackers stayed for an extended dwell period before moving on. It does not say when CVE-2025-61624 was used or whether the flaw was still unknown at that time. Fortinet published its advisory for CVE-2025-61624 on 14 April 2026.
Names
Public sources use several names for this malware.
| Name | Where it appears |
|---|---|
| PEERSTITCH | Name used by Palo Alto Networks Unit 42 for the injector[1] |
How it spreads
Unit 42 does not describe PEERSTITCH spreading by itself. In the intrusion it reports, attackers got into a FortiManager with CVE-2024-47575, moved to FortiOS devices, used CVE-2025-61624 to gain root and then had a loader fetch five files, including the PEERSTITCH program, from a server they controlled.
How an infection runs
The order of steps in a typical infection, as the sources describe it.
First access
Attackers used CVE-2024-47575 through crafted requests to the FortiManager management channel on TCP port 541.[1, 2]
Data theft
After registering a device, they created a configuration archive named .tm on the FortiManager and took it out.[1]
Root on FortiOS
Using CVE-2025-61624 and a path traversal in the FortiOS auto-script feature, they moved from administrator access to root.[1, 3]
Staging
A loader fetched five files from a server on port 8085 into a template folder on the device, including the PEERSTITCH core, which then deleted its own file.[1]
Injection
The core attached to miglogd and iked with ptrace, wrote a 1,344 byte payload into a 16 KB memory block and patched code to redirect execution.[1]
Quiet signalling
The hooks watch traffic for set markers and pass tags between the two processes, so iked takes an alternate branch that skips default validation.[1]
Timeline
- September 2024
Intrusion
Unit 42 says the multi-stage intrusion against a telecommunications managed service provider occurred in September 2024, followed by an extended dwell period. The report gives no date for the later FortiOS stage.[1]
- 23 October 2024
- 14 April 2026
- 14 October 2026
Unit 42 report
Palo Alto Networks Unit 42 publishes its analysis of PEERSTITCH and the intrusion cluster CL-STA-0954.[1]
- 16 October 2026
Related vulnerabilities
- Vulnerability FortiManager missing authentication (CVE-2024-47575) CVE-2024-47575 is a missing authentication flaw in the FortiManager service that talks to managed firewalls. CVE-2024-47575 · Fortinet · Missing authentication for a critical function (CWE-306) in the FortiManager device management service, allowing remote code or command execution
- Vulnerability Fortinet CLI path traversal flaw (CVE-2025-61624) CVE-2025-61624 is a path traversal flaw in the command line of FortiOS, FortiPAM, FortiProxy and FortiSwitchManager. CVE-2025-61624 · Fortinet · Path traversal in the command line interpreter (CWE-22), allowing arbitrary file write or delete
Detection and defense
Look in memory, not only on disk
Unit 42 suggests hunting for anonymous 16 KB read-write-execute regions in miglogd and iked, crash logs with signal 11 events, and auto-script entries containing path traversal strings.[1]
Frequently Asked Questions
What is PEERSTITCH?
A Linux program for Fortinet FortiGate firewalls described by Palo Alto Networks Unit 42. It injects code into two running processes and leaves no file on disk.
Which Fortinet flaws does the report name?
CVE-2024-47575 in FortiManager for first access and CVE-2025-61624 in FortiOS to reach root. Unit 42 also names two lower-confidence possibilities and says it could not confirm them.
Who is behind it?
Unit 42 tracks the activity as CL-STA-0954, also called UNC5820, and says parts overlap with intrusions attributed to suspected nation-state actors. It names no state, and no government body has named PEERSTITCH.
Does it show up in file scans?
Unit 42 says PEERSTITCH leaves no persistent file on disk, so file checks alone can miss it. Its hunting advice looks at process memory and crash logs.
Is CVE-2025-61624 tied to this by CISA or Fortinet?
No. CISA lists the flaw as exploited and Fortinet marks it known exploited, but neither names PEERSTITCH. The link comes from the Unit 42 report.
Sources
- Analysis of CVE-2024-47575 intrusion and PEERSTITCH (attributed by Unit 42)Palo Alto Networks Unit 42, 14 October 2026 · Supports: Malware behaviour, flaws used, cluster name, timing, hunting advice.
- FG-IR-24-423 Missing authentication in fgfmsdFortinet PSIRT · Supports: Affected versions, workarounds, known exploited flag, publication date.
- FG-IR-26-122 Path Traversal in CLIFortinet PSIRT · Supports: Affected versions, known exploited flag, 14 April 2026 date.
- Known Exploited Vulnerabilities catalogCISA · Supports: KEV entries and dates for CVE-2024-47575 and CVE-2025-61624.
- CVE-2024-47575 recordNIST NVD · Supports: Description, score and affected versions.
- CVE-2025-61624 recordNIST NVD · Supports: Description and publication date.
- CISA Adds Two Known Exploited Vulnerabilities to CatalogCISA, 16 October 2026 · Supports: CVE-2025-61624 added to the catalog.
