T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:298- Finding
Undeclared Access to Persistent Agent Memory
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:298; related permission declaration atclawhub.json:10
Vulnerability Type: Undeclared persistent-memory access and least-privilege violation
Risk Level: MediumVulnerable Code
English rendering of the instruction at
SKILL.md:298:markdown 1. Use `memory_search` to search historical records related to the current topic.The declared tool permissions at
clawhub.json:10are:json "tools": ["web_search", "web_fetch", "sessions_spawn"],Technical Analysis
The Skill directs the Agent to query persistent historical memory through
memory_search, but that capability is absent from the package's declared tool list. Searching prior conversations or stored research is not necessary to complete a fresh web-research request and therefore exceeds the minimum privileges represented by the metadata.This creates a transparency and access-control mismatch: users or reviewers relying on
clawhub.jsonwould expect only web searching, web fetching, and sub-agent creation, while the runtime instructions additionally request access to cross-session state. Topic-based retrieval may return private context from earlier sessions and incorporate it into the current research process.The reviewed instructions do not explicitly direct the Agent to transmit retrieved memory to an external service. Therefore, direct network exfiltration of historical memory is not established. The confirmed risk is unauthorized or unexpected retrieval and reuse of persistent information.
Attack Path
- A user requests research on a topic that overlaps with information stored in Agent memory.
- The Skill follows
SKILL.md:298and invokesmemory_search. - The search retrieves historical records associated with that topic, despite
memory_searchnot being declared inclawhub.json. - Retrieved content is introduced into the current ...[truncated 891 chars]
- Remediation
View remediation
Remediation Suggestions
- Add
memory_searchto the declared tool list inclawhub.jsonso package metadata accurately represents runtime capabilities. - Require explicit user consent before searching historical memory. A fresh research request should default to no memory access.
- Provide a clearly documented option such as “continue previous research” that enables memory retrieval only when selected by the user.
- Restrict searches to records created by this Skill rather than searching general Agent history.
- Display the date and identity of any historical report before loading its contents.
- Prevent retrieved historical content from being included in web-search queries unless the user separately approves that disclosure.
- Mark historical material in the final report and avoid copying sensitive details not required for the current task.
- Update both English and localized documentation to disclose memory access, cache-state writes, sub-agent delegation, and report storage behavior.
- Add
