The portal or gateway may accept a forged cookie as proof of authentication, which lets an attacker open a VPN session without valid credentials. That turns a remote access convenience feature into a trust bypass. The result is unauthorized internal network entry, not just a failed login event.
Why This Matters for Security Teams
GlobalProtect override cookies are meant to reduce friction, but they only work safely when the portal and gateway treat the cookie as a tightly bound, short-lived proof of prior authentication. If validation is weak, the cookie stops being a convenience token and becomes a reusable bearer secret. That shifts the failure mode from a login issue to a remote access trust bypass, which is far more serious because it can place an attacker directly on the internal network.
This matters because remote access controls are often assumed to be perimeter-safe by default, even though the attack surface has moved to identities, tokens, and session artifacts. The same pattern appears in NHI incidents where long-lived secrets and weak validation enable unauthorized access without triggering obvious authentication failures. NHI Mgmt Group has documented how excessive privilege and poor secret hygiene continue to widen that exposure, including in the Ultimate Guide to NHIs. NIST also emphasizes that identity assurance and access control must be continuously evaluated, not treated as one-time checks, in the NIST Cybersecurity Framework 2.0.
In practice, many security teams encounter this only after an attacker has already reused a session artifact to reach internal resources, rather than through intentional testing.
How It Works in Practice
A properly validated override cookie should be bound to the right portal or gateway, associated with the correct user session, constrained by expiration, and checked against server-side state before it is accepted. The important design question is not whether the cookie exists, but whether it can be replayed, transplanted, or forged. If the appliance accepts the cookie as proof of authentication without verifying integrity and context, an attacker may be able to present a copied token and inherit access.
Operationally, teams should think about four checks:
- Integrity: the cookie must be signed or otherwise protected against tampering.
- Context binding: the cookie should be valid only for the intended portal, gateway, and session state.
- Lifetime: short TTLs limit replay value if the token is stolen.
- Server-side validation: the appliance must confirm the cookie against current authentication conditions, not just local structure.
This is the same basic lesson seen in credential exposure cases such as the Schneider Electric credentials breach and JetBrains GitHub plugin token exposure: once a bearer artifact can be reused outside its intended context, the control is no longer providing meaningful assurance. Current guidance suggests treating these artifacts as security-sensitive secrets, not just session conveniences, and logging every acceptance path so anomalous reuse can be detected quickly.
These controls tend to break down in environments that reuse cookies across clustered gateways or multiple authentication paths because inconsistent session state makes validation logic easy to misapply.
Common Variations and Edge Cases
Tighter cookie validation often increases operational overhead, requiring organisations to balance user convenience against replay resistance and support complexity. That tradeoff becomes sharper when high availability, SSO, or legacy authentication flows are layered onto the VPN platform. Best practice is evolving, but there is no universal standard for this yet: some deployments rely on strong server-side session lookup, while others depend on token signing, device posture, or both.
Edge cases matter. A cookie that is valid for one gateway should not automatically work on another unless that behavior is explicitly intended and fully risk-assessed. Cookies also become more dangerous when administrators extend their lifetime to reduce help desk tickets, because longer TTLs enlarge the replay window. Where MFA is involved, the override cookie should never silently replace the underlying assurance chain; it should reflect a completed authentication event, not weaken it.
Teams that manage both human and non-human access should apply the same discipline to reusable tokens, as poor secret governance is a recurring cause of compromise across environments. NHI Mgmt Group data shows that 71% of NHIs are not rotated within recommended time frames, which is a useful reminder that weak lifecycle controls turn temporary credentials into durable attack paths. Use the control expectations in NIST CSF 2.0 to anchor review, testing, and monitoring around identity assurance rather than assuming the cookie itself is trustworthy.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST Zero Trust (SP 800-207) and NIST AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Weak validation turns an override cookie into a reusable secret. |
| NIST CSF 2.0 | PR.AC-4 | Access validation must verify who or what is allowed to enter. |
| NIST Zero Trust (SP 800-207) | SC-7 | Replayable cookies undermine trust boundaries and session segmentation. |
| NIST AI RMF | GOVERN | Identity assurance and token governance need defined accountability. |
| OWASP Agentic AI Top 10 | Reusable bearer tokens are a common access-bypass pattern across autonomous systems. |
Validate session artifacts server-side, bind them to context, and revoke them on auth state changes.
Related resources from NHI Mgmt Group
- What breaks when package installation can execute code before review?
- What breaks when developer secrets are treated only as code security issues?
- What breaks when an operator console has no authentication on state-changing routes?
- What breaks when GraphQL validation and execution use different documents?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 19, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org