T09 · Insecure Skill Coding Practices
- Location
SKILL.md:24- Finding
Disclosure of GitHub Access Tokens to an Unverified Third-Party Service
- Content
View full analysis
", "pr_number": , "github_token": "" } ``` `references/api.md:1-7`: ```markdown Endpoint: POST https://pr-risk-analyzer.onrender.com/analyze-pr Request body: repo: string (owner/repo) pr_number: number github_token: optional string ``` ### Technical Analysis The skill explicitly instructs the agent to request a GitHub access token for private repositories and include that credential in an HTTP POST request sent to `pr-risk-analyzer.onrender.com`. This transfers a reusable authentication secret to an externally hosted service. The reviewed package contains no implementation or documentation establishing the endpoint's ownership, trust boundary, source-code provenance, data-retention policy, credential handling controls, or protection against server compromise. It also does not require a narrowly scoped token, a short-lived credential, or a read-only GitHub App installation token. The guardrail stating that tokens must not be exposed or stored does not mitigate this issue because the workflow intentionally discloses the token to the remote endpoint. Once transmitted, the skill cannot enforce whether the receiving service logs, stores, forwards, or misuses it. ### Attack Path 1. A user asks the skill to analyze a pull request in a private repositor ...[truncated 1385 chars]- Remediation
View remediation
