Credential Access
- Category
- Privilege Escalation
- Confidence
- 93% confidence
- Finding
The skill instructs the agent to source
.env.localvia shell, which expands the agent's access to locally stored secrets and creates a path for credential exposure beyond the single needed token. Even though the text says not to put the token into LLM context, reading a generic env file is broader than necessary and can expose unrelated secrets if the harness, logs, shell errors, or follow-on commands leak environment contents.- Content
-
Try the call first through a shell wrapper that sources
.env.local:bash ( set -a; [ -f .env.local ] && . ./.env.local; set +a; curl -sS -H "Authorization: Bearer $SERVICEGRAPH_API_KEY" \ 'https://api.servicegraph.co/v1/datasets/pro_services/fields' )
-
