PivotC2: When the Firewall Becomes the Attacker's Beachhead
A January-patched FortiGate flaw, CVE-2025-25249, is being exploited to plant a Node.js RAT on the firewall itself, and from there to reach Active Directory, browser passwords, and Exchange mailboxes on the network behind it
Date: September 9, 2026 Primary Source: SOCRadar · SecurityWeek · CISA

Executive Summary
- What: Attackers are exploiting CVE-2025-25249, a heap-based buffer overflow in the FortiOS and FortiSwitchManager
cw_acd(CAPWAP) daemon, to install PivotC2, a custom Node.js remote access trojan built for post-exploitation on FortiGate appliances. (SecurityWeek) (GBHackers) - Who is affected: FortiGate firewalls running FortiOS below 7.6.4, 7.4.9, 7.2.12, or 7.0.18, all FortiOS 6.4 releases, and FortiSwitchManager below 7.2.7 or 7.0.6. (SecurityWeek) (Tenable)
- Severity: Fortinet rates it CVSS 7.3 (High); NVD scores it 9.8 (Critical). It is unauthenticated and network-reachable. (The Hacker News) (CrowdSOC) CISA added it to the Known Exploited Vulnerabilities (KEV) catalog on September 9, 2026, with a federal remediation deadline of September 12. (CISA) (The Hacker News)
- Action required: Upgrade FortiOS and FortiSwitchManager to fixed releases. Block inbound CAPWAP (UDP 5246) on internet-facing interfaces. Check
/tmp/for.i.js, and if you find it, rotate every credential the firewall stored. - The honest scope note: White Cloud Security runs no agent on a FortiGate, so it does nothing to stop the exploit or PivotC2 on the appliance. Where it applies is the internal Windows and Linux hosts the attacker pivots to, where the credential stealers, tunnelers, and dropped tools have to run.
Overview
The fix for CVE-2025-25249 has been available since January 2026. Fortinet's advisory, FG-IR-25-084, was published on January 13. (SecurityWeek) (Tenable) Eight months later, the SOCRadar Threat Research Unit reported that a financially motivated, Russian-speaking threat actor has been exploiting it since at least July 2026. (SecurityWeek) (The Hacker News)
The numbers are large. SOCRadar's findings, as reported by SecurityWeek, SecurityOnline, and GBHackers, say the actor's target list contained more than 30,000 FortiGate IP addresses. (SecurityWeek) (SecurityOnline) (GBHackers) The Hacker News reported the figure as more than 3,000. (The Hacker News) We give the 30,000 figure more weight because more outlets report it, but readers should know that the reports differ. The count of confirmed infections is the same everywhere: 178 devices running PivotC2. Infections were concentrated in the United States, followed by Chile, Colombia, and the United Kingdom. (GBHackers) (CrowdSOC)
The firewall wasn't the end goal. In at least two U.S. organizations, the actor used the compromised FortiGate as a launch point into the internal network and stole data. (SecurityWeek) Researchers also say PivotC2's code has unusually detailed inline comments and usage guidance, and they believe it was written with AI assistance. That means a financially motivated crew is now shipping appliance implants that look like nation-state tooling. (GBHackers) (CrowdSOC)
Threat Summary
| Field | Detail |
|---|---|
| CVE ID | CVE-2025-25249 |
| CVSS Score | 7.3 (Fortinet) · 9.8 (NVD) (The Hacker News) (CrowdSOC) |
| Weakness | CWE-122 heap-based buffer overflow in the cw_acd CAPWAP daemon (Tenable) |
| Affected products | FortiOS 6.4 (all), 7.0.0–7.0.17, 7.2.0–7.2.11, 7.4.0–7.4.8, 7.6.0–7.6.3; FortiSwitchManager 7.0.0–7.0.5, 7.2.0–7.2.6 (Tenable) |
| Fixed versions | FortiOS 7.6.4, 7.4.9, 7.2.12, 7.0.18; FortiSwitchManager 7.2.7, 7.0.6 (SecurityWeek) |
| Attack vector | Network — unauthenticated crafted CAPWAP packets to UDP 5246 (GBHackers) |
| Exploited in the wild | Yes — since at least July 2026; CISA KEV added September 9, 2026 (The Hacker News) (CISA) |
| Patch available | Yes — January 2026 (advisory FG-IR-25-084) (SecurityWeek) (Tenable) |
| Malware | PivotC2 v0.2.3, a Node.js RAT (CrowdSOC) |
| Scale | >30,000 IPs targeted (SOCRadar, via SecurityWeek) or >3,000 (The Hacker News); 178 infected (SecurityWeek) (The Hacker News) |
| Attribution | Russian-speaking, financially motivated cybercrime actor (SecurityWeek) |
Technical Analysis
How the Attack Works
- Exploit the CAPWAP daemon (T1190, Exploit Public-Facing Application). The actor uses an exploit binary named
fortirun.bin, driven by Bash and Python automation scripts, to send crafted CAPWAP packets to UDP 5246. (GBHackers) As summarized by CrowdSOC, the exploit leaks memory addresses with CAPWAP Discovery Requests to defeat ASLR, grooms the heap, and then sends an "Image Data" message with false size fields. That overflows the buffer and gives the attacker a write-what-where primitive and code execution. (CrowdSOC) - Reverse shell and stager (T1059.007, JavaScript). A reverse shell runs a Base64-encoded JavaScript one-liner through Node.js on the appliance. The stager fetches an encrypted second stage from attacker infrastructure. (GBHackers) (SecurityOnline)
- Install PivotC2. The second stage is XOR-decrypted with the key
pivot, written to/tmp/.i.js, and run as a background process. (GBHackers) - Harvest the firewall (T1552, Unsecured Credentials). PivotC2's
--automode registers the victim, collects FortiGate configurations, interfaces, and virtual domains, pulls the device-specificfsv_sync.datsecret file, and decrypts stored credentials: VPN pre-shared keys, SSL-VPN passwords, LDAP bind secrets, wireless passwords, and administrator accounts. It then extracts internal network ranges and starts scanning them. (GBHackers) (CrowdSOC) - Pivot inside (T1090, Proxy; T1572, Protocol Tunneling). PivotC2 provides interactive shells, SOCKS5 and HTTP proxying, port forwarding, and CIDR-range scanning, which turns the firewall into a relay into the network it's supposed to protect. (The Hacker News)
Payload and Impact
In the two confirmed U.S. intrusions, the actor went well past the appliance. Reported activity includes internal SSH tunneling and reverse SSH relays, Active Directory enumeration (T1087.002), browser credential theft from Chrome and Edge (T1555.003), RDP registry modifications that enabled pass-the-hash (T1112, T1550.002), Tor-based proxying, and exfiltration of Exchange mailbox archives to attacker cloud storage on Wasabi S3 (T1567.002). (CrowdSOC) (GBHackers)
The stolen LDAP bind secrets and VPN credentials are a problem even after the firewall is cleaned. They're valid credentials into the directory and the remote-access perimeter, and they stay valid until someone rotates them.
Why Traditional Defenses Struggle
- Nobody runs EDR on the firewall. Network appliances are closed systems. Most organizations have no endpoint agent, limited logging, and no way to see a Node.js process running from
/tmp. - The patch was old, so it was assumed done. A January fix with a vendor severity of 7.3 may never have been treated as urgent. Organizations still on FortiOS 6.4 have no fixed release in that branch at all. (Tenable)
- The pivot uses real credentials. Once the actor has LDAP and VPN secrets decrypted from the firewall's own configuration, the next logins are authenticated. Identity-based detection sees a valid account.
- Traffic comes from a trusted address. Connections from the firewall's internal interface are normal. Scanning and proxying from it blend into management traffic unless you're specifically looking.
- Custom, AI-assisted tooling has no history. PivotC2 is new, purpose-built code, so reputation- and signature-based detection has little to match on.
How White Cloud Security Trust Lockdown Stops This
We'll start with what White Cloud Security doesn't do here.
White Cloud Security does not protect the FortiGate. No White Cloud Security agent runs on a FortiGate. The exploit, the reverse shell, PivotC2, and the configuration and credential harvesting all happen on an appliance where application control isn't present. The only fixes for the appliance are Fortinet's patch, reducing exposure, and rotating credentials.
What White Cloud Security governs is the internal Windows and Linux hosts the attacker reaches next. That's where the two U.S. intrusions turned a firewall compromise into data theft.
Least-Privilege Zero-Trust App Firewall
White Cloud Security (WCS) Trust Lockdown™ enforces Default-Deny Zero-Trust Application Control: only applications, libraries, and scripts explicitly approved for an endpoint are permitted to execute. Here is how that maps to the chain:
| Attack step | White Cloud Security control |
|---|---|
1–3. CAPWAP exploit, reverse shell, PivotC2 installed at /tmp/.i.js on the FortiGate |
Not covered. No agent runs on the appliance. Patch and restrict UDP 5246. |
| 4. Firewall configuration and credentials decrypted | Not covered. This happens on the appliance. Rotate every stored secret. |
| 5. Proxying and scanning from the firewall into internal subnets | Not covered. Network segmentation and internal traffic monitoring apply here. |
| Logins to internal hosts with stolen LDAP, VPN, or domain credentials | Not covered. Identity controls, MFA, and credential rotation apply here. |
| SSH tunneling, reverse relays, or Tor clients dropped onto internal Windows or Linux hosts | Denied at execution. A tunneler or Tor binary that no administrator approved has no handprint entry and doesn't run. |
| AD enumeration with dropped tools | Denied at execution if the attacker brings their own enumeration binaries or scripts. If they use built-in approved tools, this is only limited to the degree policy restricts those tools. |
| Chrome and Edge credential theft | Denied at execution when performed by a dropped credential-stealing executable or script, which is the usual method. |
| RDP registry changes to enable pass-the-hash | Partially covered. A dropped tool is denied. A change made with an approved built-in such as reg.exe by an administrator-level account isn't blocked by execution control. |
| Exchange mailbox archive exfiltration to cloud storage | Denied at execution if the upload relies on an unapproved sync or transfer utility. Not covered if the attacker uses an approved application or the network path alone. |
The pattern is the same as in any edge-device breach. The appliance falls, and then the attacker needs software to run on the hosts behind it. Default-deny makes every unapproved tunneler, stealer, and transfer utility fail at the moment of execution, whichever account launches it.
Handprint Identity
White Cloud Security identifies files by handprint: SHA-1, SHA-256, SHA-512, MD5, CRC32, and file length. A browser-credential stealer renamed to look like a Chrome helper, or a tunneler dropped in a folder that looks like a system directory, is still denied, because policy evaluates what the file is, not its name or location. That matters especially against AI-assisted tooling, which can be recompiled or re-generated quickly, producing new hashes on every build. A detection signature has to have seen a build before. A default-deny policy only has to not have approved it. Legitimate updates to the software you do run reach hosts through Trust Profiles based on administrator-approved code-signing certificates.
At White Cloud Security, we continue to track and report new hacking methods and tools — not just because of its immediate threat, but because patterns of reuse often expose the playbooks of these cybercriminal groups.
To state the limit plainly: this is containment of the pivot, not protection of the firewall. White Cloud Security doesn't patch FortiOS, doesn't run on the FortiGate, and doesn't stop an attacker who can reach their goal with valid credentials and approved built-in tools. Application control doesn't replace patching, MFA, credential rotation, network segmentation, EDR, or backups. It's the layer that decides whether the tools a firewall intruder brings with them can run on your servers and workstations.
Recommended Mitigations
- Upgrade now. Move FortiOS to 7.6.4, 7.4.9, 7.2.12, or 7.0.18 or later, and FortiSwitchManager to 7.2.7 or 7.0.6 or later. FortiOS 6.4 has no listed fixed release, so plan a migration. (SecurityWeek) (Tenable)
- Close the door. Block inbound UDP 5246–5249 (CAPWAP) and disable fabric services on internet-facing interfaces. Wireless controller traffic has no reason to be reachable from the internet. (GBHackers)
- Check for compromise. From the FortiGate CLI, check for
/tmp/.i.jsand unexpected Node.js processes, and look for sessions to the IP addresses listed below. (GBHackers) (CrowdSOC) - If you find artifacts, rotate everything the firewall knew. That includes FortiGate administrator, VPN, SSL-VPN, LDAP bind, wireless, and IPsec credentials, plus any domain accounts used for LDAP integration. (GBHackers)
- Hunt inside. Look for unusual SSH tunnels, Tor traffic, access to browser credential stores, RDP-related registry changes, and large mailbox exports or uploads to cloud storage such as Wasabi.
- Enforce default-deny application control on internal Windows and Linux servers and workstations, so the tools a firewall intruder needs for the next stage are denied at execution.
Indicators of Compromise
The indicators below come from SOCRadar's research as republished by GBHackers and CrowdSOC. SOCRadar's own report was not reachable when we checked, and file hashes for fortirun.bin and the PivotC2 client are documented there but not reproduced in the coverage we could verify. (GBHackers) (CrowdSOC)
146.103.99[.]177(C2, port 8443)46.151.29[.]58hxxps://146[.]103[.]99[.]177:8443/0c5b76709523(second-stage payload URL)/tmp/.i.js(PivotC2 implant on the appliance)fortirun.bin(exploit binary name)- XOR key
pivot(second-stage decryption)
Key Takeaways
- CVE-2025-25249 was patched in January 2026 and has been exploited since at least July. CISA added it to KEV on September 9, 2026. (CISA) (The Hacker News)
- 178 FortiGates were confirmed infected with PivotC2. Reports differ on how many IPs were targeted: more than 30,000 per SOCRadar via SecurityWeek, more than 3,000 per The Hacker News. (SecurityWeek) (The Hacker News)
- The firewall is a credential vault. PivotC2 decrypts VPN, LDAP, and admin secrets, so patching without rotating credentials leaves the attacker's access in place.
- White Cloud Security doesn't protect the appliance. There's no agent on a FortiGate, and the fix is Fortinet's patch.
- White Cloud Security would help block the pivot. Default-deny execution control on internal hosts would deny the unapproved tunnelers, credential stealers, and transfer tools the actor used to turn a firewall compromise into data theft.
References
- SOCRadar — "CVE-2025-25249 Exploitation Delivers PivotC2, a FortiGate Post-Exploitation RAT"
- SecurityWeek — "Fortinet Code Execution Flaw Exploited in PivotC2 RAT Attacks," September 10, 2026
- CISA — "CISA Adds Four Known Exploited Vulnerabilities to Catalog," September 9, 2026
- The Hacker News — CISA KEV additions covering Cisco, Citrix, and Fortinet flaws, September 2026
- GBHackers — "Hackers Exploit Critical FortiGate Flaw to Deploy AI-Assisted PivotC2 RAT"
- Tenable — CVE-2025-25249
- CrowdSOC — "CVE-2025-25249: A Patched FortiGate Flaw Is Now Delivering a Custom RAT Called PivotC2," September 9, 2026
- SecurityOnline — "PivotC2 FortiGate RAT Drives Firewall Compromises"
- Fortinet PSIRT — FG-IR-25-084
Further Reading
- Helldown Ransomware Exploits Zyxel Firewalls: Containing the Payload at Execution
- SharePoint CVE-2026-65660: The "Spoofing" Bug That Turned Out to Be Remote Code Execution
- Three CVSS 10.0 Flaws in ServiceNow: When the Workflow Platform Becomes a Remote Console
- Lazarus Turns a Fake Job Offer into a Windows Kernel Zero-Day: Operation Dream Job and CVE-2026-68820
Fortinet, FortiGate, FortiOS, and FortiSwitchManager are trademarks of Fortinet, Inc. Microsoft, Exchange, and Edge are trademarks of Microsoft Corporation. Chrome is a trademark of Google LLC. None of these companies are affiliated with, or endorse, White Cloud Security, Inc. Technical details of CVE-2025-25249 and PivotC2 are drawn from the sources linked above. Trust Lockdown™ is a trademark of White Cloud Security, Inc.