T09 · Insecure Skill Coding Practices
- Location
SKILL.md:12- Finding
API Credential Disclosed Through Conversation Output
- Content
View full analysis
", "name": "" }` → returns apiKey (`rk_xxx`, shown only once) c. If 409 (name taken), pick a different name d. If 404 (no invite codes), ask user to contact the administrator 3. Tell the user the API key so they can note it if desired ``` ### Technical Analysis The skill explicitly instructs the agent to place the complete API key into conversational output. An API key is a bearer credential: any party possessing it can exercise the permissions assigned to the associated agent identity without proving a separate identity. Conversation content may be retained in chat history, platform diagnostics, observability systems, browser state, third-party integrations, exports, or shared workspaces. Displaying the credential therefore expands its exposure beyond the process that needs it. The API reference also states that the credential is shown only once by the activation endpoint, indicating that it is intended to be treated as sensitive secret material. The credential is limited to the tools permitted for the temporary agent identity, so the available evidence does not establish access to the host system or unrelated service functions. Nevertheless, exposing it permits impersonation within its authorized API scope. ### Attack Path 1. The agen ...[truncated 1097 chars]- Remediation
View remediation
