T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:25- Finding
Unnecessary Access to Global Agent Memory
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 25–29
Vulnerability Type: Least-privilege violation through unnecessary persistent-memory access
Risk Level: MediumVulnerable Code Snippet:
markdown ### 1. 读取产品清单 从以下权威源读取 87 只产品代码: - **Primary**: `STANDARD/蚂蚁固收 + 竞品清单 (最终版).md` - **Secondary**: `MEMORY.md` - **本地**: `references/product_codes.md`The same global memory source is listed again at lines 125–129:
markdown ## 参考文件 - **产品清单**: `STANDARD/蚂蚁固收 + 竞品清单 (最终版).md` - **执行规范**: `STANDARD/固收 + 竞品监控执行规范.md` - **MEMORY**: `MEMORY.md` - **产品代码**: `references/product_codes.md`Technical Analysis
The Skill directs the Agent to read the global
MEMORY.mdfile while performing a product-list lookup. Access to persistent Agent memory is not required for this task because the package already provides the complete product list inreferences/product_codes.md.This violates least-privilege principles by expanding the Skill's data-access scope beyond the information needed to generate the report. If
MEMORY.mdcontains private conversation-derived state, user preferences, credentials, internal instructions, or unrelated operational context, that content could enter the Skill's active context.The reviewed files do not direct the Agent to transmit memory contents externally, so no confirmed exfiltration behavior was identified. The vulnerability is the unnecessary access boundary itself.
Attack Path
- A user activates the Skill by requesting a daily fixed-income product report.
- The Agent follows the documented product-source workflow.
- The Agent reads the global
MEMORY.mdbecause it is designated as a secondary authoritative source. - Unrelated persistent information becomes available in the Skill's active context.
- That information may influence subsequent analysis or inadvertently appear in generated output.
Impact Assessment
The Skill ...[truncated 437 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove both references to
MEMORY.mdfromSKILL.md. - Use only the packaged
references/product_codes.mdas the product-list source. - If an external list must be supported, require the user to provide a specific, narrowly scoped file explicitly.
- Define an allowlist of project-relative files the Skill may read.
- Prevent automatic access to global memory, conversation archives, home-directory files, or unrelated workspace content.
- Validate the local list's count, format, and uniqueness without consulting persistent Agent state.
- Remove both references to
