T1 A leaked bearer credential used from the attacker's own network
Stopped at the network path. Residual reach: the code.
- Exposure
- Personal access tokens, SSH keys and OAuth tokens are valid from any address.
- Attack path
- The secret surfaces in a public repository, a build log, a laptop backup or a third-party breach, and the holder clones from their own infrastructure. In April 2022, OAuth user tokens issued to the Heroku and Travis CI integrations were stolen and used to download private repositories from a number of organisations.
- Impact
- Source code and the secrets embedded in it are taken, and those secrets become a pivot into cloud accounts. In the 2022 case an access key found inside downloaded repositories was used against a package registry.
- Where GitHub stops
- Token expiry, fine-grained tokens, single sign-on authorisation of tokens and secret scanning all limit a token's lifetime and scope. None of them limits where a valid token may be used, with the one exception of the Enterprise Cloud IP allow list.
- What InstaSafe changes
- On Server there is no route to the appliance without an authorised agent session, so the token cannot be presented at all. On Cloud the allow list holds the gateway's egress address and only authenticated, posture-checked agents reach the gateway.
- Residual
- A credential used from an authorised device, whether by an insider or by malware on an enrolled endpoint. Tokens held by allow-listed third-party applications, used from those applications' own infrastructure.