T09 · Insecure Skill Coding Practices
- Location
SKILL.md:163- Finding
API Credential Disclosure Through a User-Visible Export Command
- Content
View full analysis
` ``` ### Technical Analysis The Skill instructs the agent to substitute the user's Kitful API key directly into a command presented in the conversation. Although the documented command initially uses the placeholder `kit_your_key`, the preceding instruction explicitly directs replacement with the real credential. Embedding a resolved secret in agent output violates secure credential-handling practices. The API key can persist in conversation transcripts, telemetry, copied messages, screenshots, support records, or other systems that store model output. If the user executes the interpolated command, the credential may also be retained in shell history and potentially exposed through process-command-line inspection while the command is running. The external Kitful API access itself is aligned with the Skill's stated article-generation purpose. The vulnerability is specifically the unnecessary disclosure of the bearer credential in user-visible output. ### Attack Path 1. The user configures a valid `KITFUL_API_KEY` for the Skill. 2. The user requests and successfully generates an article. 3. Upon completion, the Skill instructs the agent to produce an export command containing the substituted API key. 4. The response containing the bearer credential is retained in chat history or associated logs. 5. Alternatively, the user executes the command and leaves the credential in shell history or observable process arguments. 6. A party with access to one of these record ...[truncated 673 chars]- Remediation
View remediation
