Credential Access
- Category
- Privilege Escalation
- Confidence
- 70% confidence
- Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
- Content
go // persistingSource wraps a refreshing TokenSource and re-saves the token to disk // whenever .Token() yields a newer one (an access-token rotation after a // refresh). x/oauth2 handles refresh-token rotation internally; we only need to // persist the result so the on-disk access token stays fresh between runs // (GOAL.md §8 — ghealth doesn't do this; we should). type persistingSource struct { base oauth2.TokenSource
