Researcher Demonstrates Database RCE Exploits Affecting PostgreSQL, MySQL and Oracle · 3h CISA Warns of 4 Exploited Flaws Linked to Ransomware, Cryptomining, and LLMjacking Attacks · 4h PHP Warns of Critical Security Flaws Affecting All Supported Versions, Fixes Coming November 19 · 7h 10-Year-Old NGINX HTTP/2 Flaw Lets Unauthenticated Attackers Execute Code on Servers · 17h F5 Warns 6 Critical BIG-IP Flaws Can Crash Traffic in Specific Setups, May Allow RCE · 17h CVE-2026-123633 and CVE-2026-123007: Critical NGINX HTTP/2 Vulnerabilities · 18h Critical Apache Roller RCE Flaw Under Active Exploitation, No Authentication Required · 18h Java4Shell Flaw Threatens Global Enterprises, Java Application Ecosystem · 19h How Cloudflare WAF helps protect against Java4Shell (CVE-2026-114938) · 21h Vulnerabilities in LMS software · 23h Researcher Demonstrates Database RCE Exploits Affecting PostgreSQL, MySQL and Oracle · 3h CISA Warns of 4 Exploited Flaws Linked to Ransomware, Cryptomining, and LLMjacking Attacks · 4h PHP Warns of Critical Security Flaws Affecting All Supported Versions, Fixes Coming November 19 · 7h 10-Year-Old NGINX HTTP/2 Flaw Lets Unauthenticated Attackers Execute Code on Servers · 17h F5 Warns 6 Critical BIG-IP Flaws Can Crash Traffic in Specific Setups, May Allow RCE · 17h CVE-2026-123633 and CVE-2026-123007: Critical NGINX HTTP/2 Vulnerabilities · 18h Critical Apache Roller RCE Flaw Under Active Exploitation, No Authentication Required · 18h Java4Shell Flaw Threatens Global Enterprises, Java Application Ecosystem · 19h How Cloudflare WAF helps protect against Java4Shell (CVE-2026-114938) · 21h Vulnerabilities in LMS software · 23h
🛡️
ACyber Sentinel Security Assessment Team
← Back to feed
⚡ Intelligence Report

PEERSTITCH Malware Deployed via FortiOS Flaw Bypasses Checks on Tagged VPN Sessions

PEERSTITCH Malware Deployed via FortiOS Flaw Bypasses Checks on Tagged VPN Sessions

A suspected advanced threat actor has been observed exploiting a security flaw in Fortinet FortiOS to deliver a previously unreported memory-resident ARM64 malware known as PEERSTITCH.

The attack involves the exploitation of CVE-2025-61624 (CVSS score: 5.4), a path traversal flaw in the command line interpreter of FortiOS, FortiPAM, FortiProxy, and FortiSwitchManager that could allow a privileged attacker to achieve arbitrary write or delete files via specifically crafted arguments to existing commands. It was patched by Fortinet in April 2026.

"PEERSTITCH leaves no persistent binary on disk, opens no listening ports and initiates no outbound network connections," Palo Alto Networks Unit 42 researchers Daniel Gott and Shawn Westfall said. "Instead, it communicates through traffic generated by legitimate processes on the infected host, which makes the malware resistant to conventional endpoint and network detection."

The cybersecurity company said it discovered the activity as part of its prolonged network intrusion against a telecommunications managed service provider that took place in September 2024. The multi-stage network intrusion is being tracked as CL-STA-0954 (aka UNC5820), with initial access obtained by exploiting a critical Fortinet FortiManager flaw dubbed FortiJump (CVE-2024-47575).

Cybersecurity

Following a successful compromise of the appliance, the attackers are said to have exfiltrated an archive containing running configurations, cryptographic material, and database files containing information about more than 500 managed FortiGate firewalls. Some of the harvested details are listed below -

  • The FortiManager appliance's own serial number and its management relationships to every enrolled device
  • Running configuration files for more than 500 managed FortiGate firewalls across internal infrastructure and client networks
  • Central management SQLite databases
  • An inventory listing more than 500 FortiGate serial numbers alongside their respective public IP addresses
  • Internal network topology maps, routing tables and interface configurations
  • Ciphertext administrative, local, and SSL/VPN credentials
  • Encoded cryptographic trust material, including public certificates, and private keys

The stolen information was then used to conduct network reconnaissance, establish long-term access, intercept network traffic, set up unauthorized FortiGate SSL/VPN sessions to perimeter firewalls, deploy backdoors, and exploit a separate privilege-escalation vulnerability (i.e., CVE-2025-61624) to deploy PEERSTITCH.

The malware is a 64-bit Linux ARM64 executable written in C. It includes an auto-script designed to download five components from an external server ("23.240.77[.]233:8085") -

  • pM.js, an environment preparation script (self-deleting)
  • a.js (saved as index.js), an Emscripten JavaScript runtime module
  • a.wasm (saved as index.wasm), a compiled WebAssembly binary module
  • b.js (saved as ipssem.js), a deployment orchestrator script
  • dd (saved as lldprx), a native ARM64 ELF binary injector (PEERSTITCH core)

The main phase of the attack begins after an execution delay. The orchestrator ("ipssem.js") launches "lldprx," which then serves as a process memory patching injector targeting two core FortiOS daemons: "/bin/miglogd" and "/bin/iked."

Specifically, it locates the running processes associated with the two daemons, enumerates their memory layout, attaches to them using ptrace and halts their execution using PTRACE_INTERRUPT, allocates executable memory and writes malicious code into it, and redirects execution through the injected code.

The end goal behind this hooking step is to create a "covert, memory-resident communication bridge" between the two legitimate FortiOS processes instead of using a conventional network connection or file, and use them as a cover to sidestep detection.

Specifically, the miglogd hook is equipped to recognize a marker in the data it is passing through the process. This includes two specific markers -

  • TCP port marker - 8550 (embedded within traffic data, not a listening port)
  • IP address marker - 169.254.0.1 (link-local identifier used for pattern matching)

Once this pattern is identified, it passes the associated session token or identifier to the iked daemon, whose hook later looks for that identifier while handling subsequent VPN sessions. If such a tag exists within that VPN session's injection buffer, it takes an alternative execution path, bypassing default FortiOS security validations.

Put differently, the hooks injected into the two FortiOS processes change how the VPN daemon handles particular sessions.

Besides deploying PEERSTITCH, the attackers have been observed establishing a separate command-and-control (C2) channel by leveraging the native Apache "mod_md" module on FortiGate firewalls in order to spawn an SSH-based reverse shell.

"The attackers also impersonated the FortiManager platform to pull from managed firewalls of other hosts in the targeted network," the researchers said. "The attackers demonstrated proficiency in Fortinet appliance architecture, FortiOS internals and FortiOS management protocols."

Although not definitive, it's suspected that the attackers may have exploited other flaws like CVE-2024-26009 and CVE-2024-26008 to carry out this task. However, Unit 42 emphasized that exploiting these vulnerabilities requires the device to be enrolled in FortiGate Cloud/FortiCloud SSO, which none of the affected firewalls held.

In addition, CL-STA-0954 has been identified as undertaking various measures to remove forensic artifacts through termination of syslog generation, crash log clearing, logging telemetry disruption, and automatic deletion of rogue administrator accounts and auto-script objects after execution.

"This intrusion highlights a growing threat, the weaponization of centralized edge management ecosystems to compromise downstream networks," Unit 42 said. "The discovery of the PEERSTITCH implant demonstrates the increasing technical maturity of edge-device malware."

"By operating as a one-shot injector, avoiding persistent disk artifacts and building a covert inter-process communication bridge inside process memory, the attackers achieved sustained persistence while evading traditional monitoring."

Found this article interesting? Follow us on Google News, Twitter and LinkedIn to read more exclusive content we post.

Referenced Vulnerabilities

CVE-2025-61624 CVSS 6.5 MEDIUM Analyzed
CVE-2025-61624 - Fortinet Multiple Products Path Traversal Vulnerability - [Actively Exploited]
An Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') [CWE-22] vulnerability in Fortinet FortiOS 7.6.0 through 7.6.4, FortiOS 7.4.0 through 7.4.9, FortiOS 7.2 all versions, FortiOS 7.0 all versions, FortiOS 6.4 all versions, FortiPAM 1.7.0, FortiPAM 1.6 all versions, FortiPAM 1.5 all versions, FortiPAM 1.4 all versions, FortiPAM 1.3 all versions, FortiPAM 1.2 all versions, FortiPAM 1.1 all versions, FortiPAM 1.0 all versions, FortiProxy 7.6.0 through 7.6.4, FortiProxy 7.4.0 through 7.4.11, FortiProxy 7.2 all versions, FortiProxy 7.0 all versions, FortiSwitchManager 7.2.0 through 7.2.7, FortiSwitchManager 7.0.0 through 7.0.6 may allow an authenticated attacker with admin profile and at least read-write permissions to write or delete arbitrary files via specific CLI commands.
CVE-2024-26008 CVSS 5.3 MEDIUM Analyzed
CVE-2024-26008 - Fortinet FortiOS/Proxies/SwitchManager SSL Connection Reset Denial of Service
An improper check or handling of exceptional conditions vulnerability [CWE-703] in FortiOS version 7.4.0 through 7.4.3 and before 7.2.7, FortiProxy version 7.4.0 through 7.4.3 and before 7.2.9, FortiPAM before 1.2.0 and FortiSwitchManager version 7.2.0 through 7.2.3 and version 7.0.0 through 7.0.3 fgfm daemon may allow an unauthenticated attacker to repeatedly reset the fgfm connection via crafted SSL encrypted TCP requests.
CVE-2024-26009 CVSS 8.1 HIGH Modified
CVE-2024-26009 - Fortinet FortiOS Authentication Bypass via FGFM Requests
An authentication bypass using an alternate path or channel [CWE-288] vulnerability in Fortinet FortiOS 6.4.0 through 6.4.15, FortiOS 6.2.0 through 6.2.16, FortiOS 6.0 all versions, FortiPAM 1.2.0, FortiPAM 1.1.0 through 1.1.2, FortiPAM 1.0.0 through 1.0.3, FortiProxy 7.4.0 through 7.4.2, FortiProxy 7.2.0 through 7.2.8, FortiProxy 7.0.0 through 7.0.15, FortiSwitchManager 7.2.0 through 7.2.3, FortiSwitchManager 7.0.0 through 7.0.3 allows an unauthenticated attacker to seize control of a managed device via crafted FGFM requests, if the device is managed by a FortiManager, and if the attacker knows that FortiManager's serial number.
CVE-2024-47575 CVSS 9.8 CRITICAL Analyzed
CVE-2024-47575 - Fortinet FortiManager Missing Authentication Vulnerability - [Actively Exploited]
A missing authentication for critical function in FortiManager 7.6.0, FortiManager 7.4.0 through 7.4.4, FortiManager 7.2.0 through 7.2.7, FortiManager 7.0.0 through 7.0.12, FortiManager 6.4.0 through 6.4.14, FortiManager 6.2.0 through 6.2.12, Fortinet FortiManager Cloud 7.4.1 through 7.4.4, FortiManager Cloud 7.2.1 through 7.2.7, FortiManager Cloud 7.0.1 through 7.0.12, FortiManager Cloud 6.4.1 through 6.4.7 allows attacker to execute arbitrary code or commands via specially crafted requests.