T09 · Insecure Skill Coding Practices
- Location
scripts/setup.sh:95- Finding
GitHub Authentication Token Exposed Through Credential-Bearing Clone URL
- Content
View full analysis
` and its credential-bearing Git configuration on disk. This behavior also conflicts with the project's security statement that the GitHub token is used through the GitHub CLI and is never stored by the Skill. ### Attack Path 1. A local attacker monitors process arguments while setup is running, or waits for setup to fail after cloning. 2. The attacker reads the token from the process command line or from `/tmp/avenger-setup-/.git/config`. 3. The attacker submits the recovered token to GitHub. 4. GitHub resources accessible under the token's scopes can then be enumerated, read, or modified. ### Impact Assessment An attacker may obtain the privileges granted to the user's GitHub CLI token. Depending on its scopes, this can include: - Reading private repositories. - Modifying or deleting repository content. - Injecting malicious content into backup vaults. - Accessing other organization or a ...[truncated 206 chars]- Remediation
View remediation
