T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:38- Finding
Automatic Persistent and Shared-State Modification Without Prior Authorization
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:38; supporting policy inmemory-template.md:25
Vulnerability Type: Persistent shared-state modification beyond least privilege
Risk Level: MediumVulnerable Skill Instructions
SKILL.md:38:markdown **Write before the session ends** whenever it produced something durable: an index built, migrated, or retired; a source added to or dropped from the corpus; a chunking, embedding, retrieval or reranking parameter that was changed and measured; an eval run and its scores; a failure and the cause it turned out to be; a monthly or per-query cost; a self-hosted store or embedding server; or something the user will read again — an ingestion recipe that finally parsed a hostile format, a prompt template that held up, an architecture decision, a golden set. `memory-template.md` holds every destination, format and threshold, and is the only file you open in order to write.memory-template.md:25:markdown No permission needed; every write is announced in one line that names the file. Writes and deletions stay inside the paths declared in this skill's `configPaths`. A deletion is named in that same line, and in a shared box only rows this skill itself wrote are ever updated or removed.Technical Analysis
The Skill explicitly authorizes the Agent to perform persistent writes and deletions without obtaining prior user approval. These operations are not limited to a private, Skill-owned workspace. The declared paths include shared server, project, and finance records under:
~/Clawic/data/servers/~/Clawic/data/projects/~/Clawic/data/finances/
Automatically announcing a mutation does not provide the same protection as obtaining informed authorization before it occurs. Persistent records can affect later sessions and other Skills, while shared finance and infrastructure records may be operationally significant.
Some persistence is r ...[truncated 1670 chars]
- Remediation
View remediation
Remediation Suggestions
- Default the Skill to read-only operation unless the user explicitly requests persistence.
- Require confirmation before every deletion and before modifying any shared server, project, or finance file.
- Present the target path and an exact proposed diff before requesting approval.
- Permit automatic writes only within a dedicated Skill-owned directory such as
~/Clawic/data/rag/, and only for low-impact append-only records. - Treat changes inferred from retrieved documents, generated text, or other untrusted content as unverified until confirmed by the user or an authoritative system.
- Add atomic writes, backups, and rollback support for persistent state.
- Replace “No permission needed” with a least-privilege policy that distinguishes private append-only notes from shared or destructive mutations.
