T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:42- Finding
Overbroad Access to Sensitive Workspace State
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 31–32, 42–47, 103–106, and 137–139
Vulnerability Type: Excessive read, write, and optional command-execution privileges
Risk Level: MediumVulnerable Code Snippets
markdown | Verify organization | Read all core files |markdown | 4 | **user.md** | User context | User's info, preferences, infrastructure | | 5 | **memory.md** | Long-term memory | Important events, key configs, workflows | | 6 | **tools.md** | Technical configuration | Endpoints, hosts, commands, services |markdown | `read` | Read core files | Required | | `write` | Modify core files | Required | | `edit` | Fix specific sections | Optional | | `exec` | Verify file status, backup | Optional |text 2. Is it already somewhere else? → Check all 6 core filesTechnical Analysis
The Skill directs an agent to read every core workspace file during organization and duplication checks. These files may contain personal information, persistent memories, infrastructure details, endpoints, hosts, commands, and service configuration.
This access pattern does not follow least privilege. A task involving one specific file does not ordinarily require access to all user, memory, and technical configuration data. The Skill also declares write access as required and command execution as optional without defining granular boundaries, explicit user authorization, secret redaction, or controls that restrict access to the minimum files necessary.
No network transmission or deliberate exfiltration is specified. The risk instead arises because sensitive information is unnecessarily loaded into the active agent context, where it could be exposed through subsequent output, untrusted instructions, compromised tools, logs, or unrelated processing.
Attack Path
- A user invokes the Skill for a narrow task, such as reorganizing or editing one core Markdo ...[truncated 1464 chars]
- Remediation
View remediation
Remediation Suggestions
- Apply least privilege by reading only the file explicitly requested by the user.
- Perform duplication checks incrementally rather than loading all core files by default.
- Require explicit user authorization before accessing
user.md,memory.md, ortools.md. - Redact secrets, credentials, tokens, private endpoints, and personal data before placing file contents in agent context.
- Separate permissions by operation so read access does not automatically imply write access.
- Avoid
execwhen native, constrained file-management tools can perform the operation. - If command execution is unavoidable, use fixed commands, fixed workspace paths, argument validation, and an explicit allowlist.
- Require confirmation before modifying identity, memory, behavioral, or technical configuration files.
- Document which files were accessed and changed without logging their sensitive contents.
