T05 · Unauthorized Access and Privilege Escalation
- Location
claw.json:7- Finding
Unnecessary File-Write Permission Violates Least Privilege
- Content
View full analysis
Vulnerability Details
File Location:
claw.json:7
Vulnerability Type: Excessive system permission
Risk Level: MediumVulnerable Code
json "permissions": ["network", "file_write"],Technical Analysis
The manifest grants the Skill permission to write files, but the reviewed functionality consists only of trading methodology, scanner criteria, and risk-management guidance. Neither
SKILL.mdnorinstructions.mddocuments a workflow that requires creating or modifying files.Granting
file_writewithout a functional requirement violates the principle of least privilege. Although the package contains no executable scripts or direct file-writing implementation, the unnecessary capability broadens the authority available when the Skill is loaded. If an adversarial prompt, compromised runtime component, or future modification causes the agent to invoke file operations, the granted permission could permit changes that are unrelated to the Skill's stated purpose.Attack Path
- A user installs or loads the Skill.
- The hosting platform grants the permissions declared in
claw.json, includingfile_write. - An adversarial instruction or compromised context induces the agent to perform a file-write operation.
- The agent writes to a location allowed by the platform's permission boundary.
- Files may be created, overwritten, or altered even though file modification is unnecessary for the documented trading-guidance task.
The exact writable scope depends on the host platform's sandbox and access-control implementation. The reviewed files do not establish that unrestricted filesystem access is available.
Impact Assessment
Successful exploitation could provide the ability to create or modify files within the runtime's authorized write scope. Potential consequences include integrity loss, corrupted user data or configuration, and preparation for follow-on attacks if security-sensitive ...[truncated 287 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove
file_writefrom the manifest because no reviewed feature requires it:json "permissions": ["network"], - Reassess whether
networkis also necessary. Retain it only if the runtime actually retrieves live market, scanner, or news data. - If network access is retained, restrict it to explicitly approved market-data and news domains where the platform supports destination allowlisting.
- If a future feature genuinely requires file output, request narrowly scoped access only when that feature is invoked. Constrain writes to a dedicated application-owned directory and prevent overwriting existing or security-sensitive files.
- Add automated manifest checks that reject permissions not mapped to a documented feature and test the Skill under a deny-by-default permission policy.
- Remove
