ghtier
← All keys & policies
Key·user

Web session cookie

Tier 0 · CriticalControl

Why Tier 0

Acts as the signed-in account in the browser, with everything that account can do, including its settings. For an organization or enterprise owner, that is control of the organization or enterprise. It was issued after the password and 2FA, so a stolen cookie skips both.

The cookie that keeps a person signed in to GitHub in the browser.

Available on: Every setup. Source

Attack path

Infostealer malware copies browser cookies. Replayed elsewhere, the session is already past the password and 2FA, and SSO for the organization may still be valid. The attacker can then create tokens, add SSH keys or change settings as that person.

Mitigations

Detect

Alert on org.sso_response, business.sso_response, business.revoke_sso_session in the audit log (the closest events GitHub logs).

Related permissions

GitHub Docs: Viewing and managing your sessions