T09 · Insecure Skill Coding Practices
- Location
SKILL.md:552- Finding
Bearer Session Tokens Persisted in Agent-Readable Markdown
- Content
View full analysis
``` ### Technical Analysis The workflow writes a bearer session token directly into `MEMORY.md`, an agent-readable Markdown file. This contradicts the template's statement that the file contains public identity data only. The project's own security model classifies session tokens as sensitive. A bearer token generally grants access to anyone who possesses it. Unlike a private key, no additional proof of possession is normally required. Because the agent is instructed to read `MEMORY.md` as part of its normal lifecycle, malicious prompts, untrusted web content, plugins, logs, backups, or other processes with workspace access may obtain the token. File permissions, token encryption, credential isolation, audience restrictions, and secure deletion are not specified. ### Attack Path 1. The agent completes a SIWA authentication flow. 2. The remote service returns a bearer session token. 3. The Skill appends the raw token to the `Sessions` section of `MEMORY.md`. 4. The agent later processes malicious or p ...[truncated 804 chars]- Remediation
View remediation
