A leaked source-control token is used
A personal access token or CI credential is exposed โ in a public artifact, a misconfigured system, or a compromised developer machine โ and the attacker uses it to authenticate to the organisation's private repositories.
Authenticate to the source-control platform using an exposed token or credential.
- Short-lived, scoped tokens with mandatory expiry and rotation
- Secret scanning on commits and public exposure monitoring
- MFA and SSO enforcement on the source-control platform
- Token use from unfamiliar locations or automation
- Access to repositories the token owner does not normally touch
- Secret-scanning alerts for exposed credentials
- Scan for exposed tokens across public and internal surfaces
- Review token scope, lifetime and rotation practice
- Test SSO/MFA enforcement on the platform
The attacker can now read private source and its history.