T09 · Insecure Skill Coding Practices
- Location
SKILL.md:59- Finding
Documentation Encourages Committing a Long-Lived Bearer Token
- Content
View full analysis
/.env`, which the skill `.gitignore`s, but you can also paste it into your `CLAUDE.md` so future sessions auto-load it without re-pairing: ``` # In ~/.claude/CLAUDE.md or project CLAUDE.md CLAW_ALARM_API_TOKEN= ``` ``` ### Technical Analysis The documentation correctly identifies the bearer token as a cryptographic secret but then recommends placing it in files that may be committed to version control or automatically loaded into agent context. The token does not expire automatically and grants read/write access to the alarm list until pairing is explicitly reset. Committing the token to `CLAUDE.md` is particularly hazardous because this file may be: - Tracked and shared through version control. - Included in prompts or agent context. - Read by other tools, extensions, or agents. - Retained in backups, logs, forks, and repository history. The audited project does not contain the claimed `.gitignore`, so the stated protection for the local `.env` file is not presen ...[truncated 916 chars]- Remediation
View remediation
