T09 · Insecure Skill Coding Practices
- Location
SKILL.md:219- Finding
Plaintext Storage of Account Passwords and Bearer Tokens
- Content
View full analysis
``` Delete the temp login file after use. Optional local credential file: ```json { "baseUrl": "https://ai-pub.pushwebly.com", "username": "alice", "password": "plain-text-password", "authorization": "Bearer ", "userId": 1 } ``` On Linux/macOS, set mode `600` after writing. ``` ### Technical Analysis The Skill instructs the agent to persist both the account password and an active bearer token in `~/.publisher/config.json` as plaintext. File mode `600` limits access by other local operating-system users, but it does not encrypt the secrets or protect them from processes running as the same user, malware, compromised development tools, home-directory backups, accidental archive inclusion, or diagnostic collection. The temporary `login.json` file also contains the plaintext password. Although the Skill says to delete it after use, it does not require secure temporary-file creation, restrictive permissions before writing, cleanup through an error-safe mechanism, or avoidance of predictable paths. An interrupted operation could leave the file behind. A stolen password may remain useful beyond the current session, whi ...[truncated 1525 chars]- Remediation
View remediation
