Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

PEERSTITCH malware

PEERSTITCH is a small Linux program that Palo Alto Networks Unit 42 found on Fortinet FortiGate firewalls.

Published
Updated
Reading Time
4 min read
Dark glass needle with red thread with red neon lines, cover art for: PEERSTITCH malware

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.

Names
NameWhere it appears
PEERSTITCHName 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.

  1. First access

    Attackers used CVE-2024-47575 through crafted requests to the FortiManager management channel on TCP port 541.[1, 2]

  2. Data theft

    After registering a device, they created a configuration archive named .tm on the FortiManager and took it out.[1]

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

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

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

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

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

  2. 23 October 2024

    Fortinet advisory for CVE-2024-47575

    Fortinet publishes FG-IR-24-423 for the FortiManager flaw and marks it known exploited. CISA adds the CVE to its Known Exploited Vulnerabilities catalog the same day.[2, 4]

  3. 14 April 2026

    Fortinet advisory for CVE-2025-61624

    Fortinet publishes FG-IR-26-122 for the FortiOS auto-script path traversal and lists it as known exploited.[3, 6]

  4. 14 October 2026

    Unit 42 report

    Palo Alto Networks Unit 42 publishes its analysis of PEERSTITCH and the intrusion cluster CL-STA-0954.[1]

  5. 16 October 2026

    CISA lists CVE-2025-61624

    CISA adds the FortiOS flaw to its Known Exploited Vulnerabilities catalog without naming any malware.[4, 7]

Related vulnerabilities

Detection and defense

  1. Patch both flaws

    Upgrade FortiManager to a fixed release listed in FG-IR-24-423 and FortiOS to a fixed release listed in FG-IR-26-122. Move branches without a fix to a supported release.[2, 3]

  2. Restrict the management channel

    Fortinet advises refusing unknown devices with fgfm-deny-unknown and allowing only expected FortiGate addresses to reach port 541. Unit 42 advises treating management interfaces with the strictest isolation.[1, 2]

  3. Treat stored secrets as exposed

    Unit 42 says credentials and certificates held on a compromised management platform stay valid until rotated. Fortinet advises changing credentials on FortiManager and on managed devices.[1, 2]

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

  5. Use the vendor signatures

    Unit 42 cites Palo Alto Networks Threat Prevention signatures 95788 and 96788 for CVE-2024-47575. CISA marks CVE-2025-61624 for forensic triage.[1, 4]

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

  1. 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.
  2. FG-IR-24-423 Missing authentication in fgfmsdFortinet PSIRT · Supports: Affected versions, workarounds, known exploited flag, publication date.
  3. FG-IR-26-122 Path Traversal in CLIFortinet PSIRT · Supports: Affected versions, known exploited flag, 14 April 2026 date.
  4. Known Exploited Vulnerabilities catalogCISA · Supports: KEV entries and dates for CVE-2024-47575 and CVE-2025-61624.
  5. CVE-2024-47575 recordNIST NVD · Supports: Description, score and affected versions.
  6. CVE-2025-61624 recordNIST NVD · Supports: Description and publication date.
  7. CISA Adds Two Known Exploited Vulnerabilities to CatalogCISA, 16 October 2026 · Supports: CVE-2025-61624 added to the catalog.
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →