GPT-5 finding
Overbroad secret exposure to AI process and tool sandbox increases exfiltration risk
- .github/workflows/aeon.yml
The Run step injects many secrets (GitHub, messaging, API keys) into the environment used by the LLM tool (claude) while the allowedTools include Bash(curl:*), Bash(git:*), Bash(gh:*). A prompt-compromised or misbehaving agent could exfiltrate credentials not needed for the current skill. Principle of least privilege is not enforced per-skill.
Recommendation
Scope secrets per-skill and per-channel, only exporting those required for the selected skill. Consider: (1) mapping skills to required secrets and conditionally populating env, (2) removing general-purpose curl:* from allowedTools or adding allowlisted destinations, (3) using short-lived GitHub tokens scoped to the repo, (4) masking or gating sensitive operations behind preflight authorization.