T05 · Unauthorized Access and Privilege Escalation
Error
- Location
- SKILL.md:20
- Finding
- Unauthorized Inspection of Private Local Data and Agent Memory<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:20-29` **Vulnerability Type**: `T05: Unauthorized Access and Privilege Escalation` **Risk Level**: High ### Vulnerable Code ```markdown ### Phase 1: Establish Identity Anchors Before searching externally, check internal data sources for any existing info: 1. **Google Contacts/Takeout** — `grep -ri "name" data/google-takeout/Takeout/Contacts/` 2. **Google Pay transactions** — `grep -i "name" data/google-takeout/Takeout/Google\ Pay/` 3. **Call history** — `grep -i "name\|phone" data/google-takeout/Takeout/Drive/calls-*.xml` 4. **Memory files** — `memory_search` for the person's name 5. **WhatsApp/SMS history** — check message archives if available Collect all **identity anchors**: full legal name, middle name/initial, DOB, phone numbers, email addresses, physical addresses, employers. These are critical for disambiguating common names. ``` ### Technical Analysis The Skill instructs the Agent to inspect Google Takeout data, payment transactions, call logs, persistent memory, and private message archives before using public sources. These repositories can contain highly sensitive information belonging both to the user and unrelated third parties. This behavior violates least privilege because the declared functionality is public-record and web-based people research. Access to private communications, financial records, and persistent Agent state is not necessary to perform a public-record lookup. The Skill does not require explicit consent, verify authorization to inspect each source, constrain searches to user-selected files, or minimize the information extracted. The later statement that the Skill should use only publicly available information conflicts directly with these instructions and does not provide an enforceable safeguard. ### Attack Path 1. A user or attacker asks the Agent to investigate a named person. 2. The Skill loads and directs the Agent to search local Google Takeout archiv ...[truncated 865 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove all default instructions to inspect Google Takeout, payment records, call logs, private messages, and Agent memory. 2. Restrict the Skill to public and authoritative sources required by the user's specific request. 3. If private-source analysis is an intended optional feature: - Obtain explicit, informed consent for each data source. - Require the user to select the specific files or records to inspect. - Verify that the user is authorized to disclose the information. - Disable persistent-memory searches by default. - Extract only the minimum fields necessary for the stated purpose. 4. Prevent unrelated third-party data from being included in results. 5. Add an enforceable policy gate that blocks private-source access for general background-check requests. 6. Avoid retaining extracted identifiers after the active task ends. ]]>
