· by · 13 min read

GlobalProtect and CVE-2026-0257: spotting the VPN session that should never have existed


This is a GlobalProtect log line Rapid7 published back in May. I trimmed it and swapped the source IP for a documentation address:

GLOBALPROTECT,0,2817,2026/05/18 01:51:37,vsys1,gateway-auth,login,Cookie,,admin,US,GP-CLIENT,
203.0.113.54,0.0.0,0.0.0.0,0.0.0.0,aa:bb:cc:dd:ee:ff,,6.0.0,,Linux,"linux-64",1,,,
"Auth latency: 78ms, profile: local_auth_profile",success,...

An admin account logs in to the VPN gateway with no password, just a cookie, from a machine called GP-CLIENT whose MAC address is aa:bb:cc:dd:ee:ff. The firewall says success. Nothing in that line looks like an error or an alert. That’s the whole problem.

Why a May bug is news in October

CVE-2026-0257 isn’t new. Palo Alto published the advisory on May 13, 2026, initially scored 4.7 under CVSS v4, then bumped to 7.8 on May 29 once exploitation was confirmed. CISA added it to the KEV catalog that same day, with “Known” in the ransomware campaign column.

What changed is the October 19 update to Unit 42’s threat brief: Qilin operators (Spikey Scorpius in Palo Alto’s naming) and Inc operators (Tarnished Scorpius) are using it for initial access. ReliaQuest also ties exploitation to actors deploying Settra ransomware. Arctic Wolf had already written up several Qilin intrusions that started with this bug, all of them in June.

Timeline of CVE-2026-0257 across six dates: Palo Alto advisory on May 13 with a CVSS of 4.7, first exploitation seen by Rapid7 on May 17 from VPS hosts, CISA KEV addition on May 29 with severity raised to 7.8, Qilin intrusions in June (LSASS, NTDS, PsExec, encryption), Arctic Wolf’s “Cookie Crumbles” report on July 20, and Unit 42’s October 19 and 20 update naming Qilin, Inc and a pivot to vCenter.
Five months between the fix and the latest documented intrusions. Diagram: PurpleLog, based on Palo Alto, Rapid7, CISA, Arctic Wolf and Unit 42.

Reading the reports in order, what struck me was the gap between the first note (“limited exploitation”, medium severity) and what the intrusions looked like five months later. An authentication bypass on an internet-facing box is never “medium” from where a SOC sits. Rapid7 said as much in May: treat it as critical.

And a firewall patched in June may well have let someone in at the end of May. The patch shuts the door. It tells you nothing about who already walked through it.

The bug, in plain terms

GlobalProtect has an option called authentication override. After a real login (SAML, LDAP, RADIUS, with MFA if you’ve set it up), the portal hands the client a cookie. For as long as that cookie lives, it stands in for credentials: the client reconnects without being asked for a password or a second factor. Think bearer token. It’s off by default, but plenty of shops turn it on, because nobody likes redoing MFA every time their laptop wakes up.

Rapid7 took apart the gpsvc service (on a vulnerable PAN-OS 10.2.8 box) and the flaw fits in one sentence: the cookie is encrypted with a certificate’s public key, decrypted on the firewall with the private key, and whatever it contains (user, domain, host ID, OS, IP, timestamp) is taken at face value. No signature check, at all. Palo Alto files it under CWE-565, “Reliance on Cookies without Validation and Integrity Checking”.

That more or less holds as long as the public key stays private, which is an odd thing to rely on. If the admin reused the portal’s HTTPS certificate for the cookies, or a certificate from its chain, the public key gets served to anyone during the TLS handshake. The attacker grabs it, builds a cookie for whatever user they like, and the firewall accepts it. Rapid7’s proof-of-concept script does exactly that: it walks the certificate chain and tries each key. In their lab, the internal CA certificate was the one that worked.

Diagram comparing two paths. Legitimate path in blue: a real authentication with MFA, then the portal issues a cookie encrypted with the certificate’s public key, then the client reconnects with that cookie, auth_method equal to Cookie, no MFA. Forged path in red: the attacker pulls the public key from the portal’s TLS chain, builds a cookie with any user, host ID and OS, and the firewall decrypts and trusts it without any signature check. A box notes that both paths produce the same log line, and only the missing prior authentication tells them apart.
Same log line either way; the history is what gives the forged cookie away. Diagram: PurpleLog.

So MFA does nothing here. Unit 42 states it outright: the attackers bypass MFA to set up the VPN session. Next time someone says “we have MFA”, this is the answer: MFA guards one step of authentication, not the tokens that replace it afterwards.

What the firewall writes down

PAN-OS GlobalProtect logs (the GLOBALPROTECT log type, separate from system logs) have everything you need. The useful fields, named as in Palo Alto’s syslog documentation:

Field What’s in it What to look for
eventid event name: portal-auth, gateway-auth, gateway-register, gateway-connected… portal-auth and gateway-auth for authentication
stage connection stage: before-login, login, tunnel login
auth_method LDAP, RADIUS, SAML… or Cookie Cookie
srcuser the user a local account (admin) on a VPN that’s normally federated
machinename, hostid machine name and its ID (often a MAC) generic or junk values
public_ip client public IP a VPS provider instead of a home ISP
client_os_ver OS version reported by the client a value hard-coded by the exploit tool
status outcome success

Worth keeping in mind: every one of those fields except public_ip comes from the client, which here means from the cookie the attacker built. They’re worth exactly what the exploit tool put in them. That hurts detection (a careful operator will pick a believable hostname), but it also helps, because the first tools were clearly written in a hurry.

Rapid7 saw GP-CLIENT and DESKTOP-GP01 as machine names, the MAC aa:bb:cc:dd:ee:ff in both May waves, and a local admin account. Unit 42 adds WINDOWS-LAPTOP-001, the MAC 00:11:22:33:44:55, and, for the public tool, a client_os_ver fixed at Microsoft Windows 10 Pro 64-bit with an empty domain. Arctic Wolf saw VPN sessions from machines that simply called themselves kali.

A first rule, and it’s brittle

title: GlobalProtect Cookie Authentication With Default Client Fingerprint
id: 07989aad-e90b-4fab-8047-8abc58d67429
status: experimental
description: |
    Detects a successful GlobalProtect portal or gateway authentication by authentication override cookie
    where the client fingerprint matches values seen in CVE-2026-0257 exploitation (placeholder MAC addresses as host ID,
    generic machine names, or a local "admin" account). A legitimate cookie is issued to a real endpoint after a real login.
references:
    - https://security.paloaltonetworks.com/CVE-2026-0257
    - https://unit42.paloaltonetworks.com/active-exploitation-of-pan-os-cve-2026-0257/
    - https://www.rapid7.com/blog/post/etr-rapid7-observed-exploitation-of-pan-os-globalprotect-authentication-bypass-vulnerability-cve-2026-0257/
author: Chabnco
date: 2026-10-21
tags:
    - attack.initial-access
    - attack.t1190
    - attack.t1133
    - attack.credential-access
    - attack.t1606
    - cve.2026-0257
    - detection.emerging-threats
logsource:
    product: paloalto
    service: globalprotect
detection:
    selection_cookie:
        eventid:
            - 'portal-auth'
            - 'gateway-auth'
        auth_method: 'Cookie'
        status: 'success'
    selection_fingerprint:
        - hostid:
              - 'aa:bb:cc:dd:ee:ff'
              - '00:11:22:33:44:55'
        - machinename:
              - 'GP-CLIENT'
              - 'DESKTOP-GP01'
              - 'WINDOWS-LAPTOP-001'
              - 'kali'
        - srcuser: 'admin'
    condition: selection_cookie and selection_fingerprint
falsepositives:
    - A lab or test endpoint really named like one of the listed machine names
    - A local "admin" account legitimately used for VPN access (which deserves a conversation on its own)
level: high

It passes sigma check clean. Field names follow the PAN-OS docs; depending on how your logs land (raw syslog, a Splunk add-on, CEF into Sentinel) they’ll be renamed, so plan a pipeline or a field mapping.

Terminal capture: sigma convert to Splunk on the GlobalProtect rule produces a search with eventid IN portal-auth or gateway-auth, auth_method equal to Cookie, status equal to success, then the host ID list, the machine name list and srcuser equal to admin joined by OR with no parentheses.
Real sigma-cli output. The missing parentheses aren't a bug: in a Splunk search, OR binds tighter than AND. Capture: PurpleLog.

One thing in that conversion made me squint before I checked: not a single parenthesis around the ORs. It’s fine, because Splunk’s search command evaluates OR before the implicit ANDs, which is backwards compared to almost every other query language. If you hand-edit the search and bolt on more conditions, add the parentheses anyway. Whoever reviews it next may not have that rule memorised.

I’m under no illusions about this one. It’s an IOC rule wearing a costume: it catches lazy tooling and copy-pasted PoC code, nothing more. Still worth having for two jobs: a retro hunt over your logs back to mid-May, and a safety net for operators reusing public tooling. A Qilin affiliate who sets the hostname to LAPTOP-FIN-0231 sails right past it.

The detection that doesn’t care about fingerprints

The real signal comes from how the feature works. A legitimate cookie only exists because a real login happened first, for the same user and the same host ID. A forged cookie shows up out of nowhere. So look for successful cookie authentications with no earlier “normal” authentication for that user and host ID pair.

index=pan sourcetype=pan:globalprotect eventid IN ("portal-auth","gateway-auth") status="success" earliest=-30d
| eval real_auth_time=if(auth_method!="Cookie", _time, null())
| eval cookie_auth_time=if(auth_method=="Cookie", _time, null())
| stats min(real_auth_time) as first_real_auth min(cookie_auth_time) as first_cookie_auth
        values(public_ip) as public_ip values(machinename) as machinename by srcuser hostid
| where isnotnull(first_cookie_auth) AND (isnull(first_real_auth) OR first_cookie_auth < first_real_auth)
| convert ctime(first_cookie_auth) ctime(first_real_auth)

I don’t have a Splunk instance with GlobalProtect data to run this against, so it’s been checked for syntax and against the field names in the PAN-OS docs, not against real events. Three things to tune before trusting it:

  • The window. It has to cover at least the cookie lifetime set on the portal. If cookies live 30 days and you look back 7, everyone coming back from holiday lights up.
  • The host ID. It’s usually stable for a given machine. A reimage or a new laptop breaks the chain, but that’s rare and easy to explain at triage.
  • Local accounts. A cookie login on a local account, when your users go through SAML, deserves an alert by itself, history or not.

This is the one I’d put in production, even if it only runs hourly rather than in real time. It doesn’t depend on a single value the attacker controls.

After the VPN session: the half hour that matters

Say the session got through. Arctic Wolf describes intrusions ranging from fast, encrypt-only jobs to long operations with data shipped off to MEGA. The opening moves, though, look a lot alike. Here’s what I’d watch first on anything coming out of the VPN address pool, in roughly the order it shows up in the reports:

Signal Where you’ll see it What the reports describe
Burst of network logons from a VPN IP 4624 type 3 on servers and workstations stolen admin accounts used everywhere
RMM tools outside your process file and service creation AnyDesk in C:\PerfLogs\ and C:\Windows\Temp\, MeshAgent (\MeshUserTask task), LogMeIn, Ngrok
LSASS dump Sysmon 10, command line rundll32 comsvcs.dll, MiniDump to an .odt file
AD database copy command line on DCs ntdsutil "ifm" "create full C:\Windows\Temp\NTDS"
Remote execution 7045, PSEXESVC.exe PsExec over C$
Persistence Sysmon 13 on Run keys value named * plus six lowercase letters, pointing to C:\PerfLogs\win.exe
Log wiping 1102, 104 PowerShell loop clearing every non-empty channel

The .odt extension on the LSASS dump is a nice touch: a rule that only watches for .dmp files misses it. Watch the access to the LSASS process (Sysmon 10 and its GrantedAccess field), not the name of whatever file comes out.

The persistence trick gets its own rule, because it’s odd enough to be reliable:

title: Run Key Value Named Asterisk Plus Six Lowercase Letters
id: 5221bcac-d748-4fb0-ba08-d3db29b240fd
status: experimental
description: |
    Detects a Run or RunOnce registry value whose name is an asterisk followed by six lowercase letters,
    or a Run/RunOnce value pointing to C:\PerfLogs. Arctic Wolf observed both patterns in Qilin intrusions
    that started with CVE-2026-0257 exploitation. The asterisk prefix makes a RunOnce entry run even in Safe Mode.
references:
    - https://arcticwolf.com/resources/blog/exploitation-of-cve-2026-0257-leads-to-qilin-ransomware/
    - https://learn.microsoft.com/en-us/windows/win32/setupapi/run-and-runonce-registry-keys
author: Chabnco
date: 2026-10-21
tags:
    - attack.persistence
    - attack.t1547.001
    - detection.emerging-threats
logsource:
    product: windows
    category: registry_set
detection:
    selection_name:
        TargetObject|re: '\\CurrentVersion\\Run(Once)?\\\*[a-z]{6}$'
    selection_perflogs_key:
        TargetObject|contains:
            - '\CurrentVersion\Run\'
            - '\CurrentVersion\RunOnce\'
    selection_perflogs_details:
        Details|contains: ':\PerfLogs\'
    condition: selection_name or all of selection_perflogs_*
falsepositives:
    - Installers that register a RunOnce value with a random name (rare with this exact shape, but check before blocking)
level: high

The asterisk isn’t decoration. Microsoft’s page on Run and RunOnce keys says a RunOnce value name prefixed with * runs even in Safe Mode. Arctic Wolf talks about the Run key, where the prefix has no documented effect; either the tooling stamps it everywhere or the report simplifies. The rule covers both. I tested the regex in Python against three paths that should match (Run, RunOnce, WOW6432Node) and six that shouldn’t (a normal name, seven letters, an uppercase letter, a digit, no asterisk, a RunServices key). The asterisk in the pattern is escaped (\*); without the backslash it’s a quantifier and the pattern stops making sense.

The pivot your EDR never sees

The scariest part of Unit 42’s update is two sentences long. In one case, the attackers went straight from the VPN gateway to the vCenter appliance, turned off execInstalledOnly on the ESXi hosts (the setting that only lets binaries shipped in an installed VIB run), then pulled domain credentials offline by reading a domain controller’s virtual disk (VMDK) directly.

No 4624 on the DC. No LSASS access. No ntdsutil command line. The DC’s EDR sees nothing because nothing happens inside the guest. If your SIEM isn’t getting vCenter logs and ESXi syslog, that path is dark from end to end. The bare minimum: vCenter logins from the VPN pool, any change to VMkernel.Boot.execInstalledOnly, SSH being enabled on a host, and access to the datastores holding your DCs.

What I’d check first thing Monday

Not a magic priority list, but this order, because each step informs the next:

  1. Configuration. On the portal and every gateway, are “Generate/Accept cookie for authentication override” ticked, and with which certificate? If it’s the HTTPS cert or one from its chain, you were exposed, patched or not.
  2. PAN-OS version against the advisory’s table. Palo Alto wants every portal and gateway upgraded together, and set global-protect enable-auth-override-cookie-hmac no, meant for phased rollouts, has to go back to yes at the end. Forget that and the fix does nothing.
  3. A retro hunt back to May 13: both queries above, plus the IPs published by Unit 42, Rapid7 and Arctic Wolf.
  4. Ports 4443 and 3879 on the management IP, tested from outside. Unit 42 notes that a GlobalProtect profile tied to the management interface often exposes it to the internet without anyone realising.
  5. If a single suspicious cookie turns up, assume the domain is gone. Arctic Wolf recommends rotating admin and service accounts, and KRBTGT twice. Nothing to add, except that it’s far easier to plan before you need it.

The hard part of this kind of story isn’t technical. It’s explaining to someone who read “patched in June” in a report that the case isn’t closed. The fix is from May; the documented intrusions run into October. In between sit your GlobalProtect logs, and odds are they’re still there.

References

How I check the rules and queries published here →