T01 · Skill Instruction Hijacking
- Location
skill.md:2- Finding
Overbroad Mandatory Skill Activation Forces Unrequested Local File Access
- Content
View full analysis
💡 即使用户**没有明确写出 `/mnt/data` 或文件名**,也应默认尝试在此目录中查找! ## 🔍 功能说明 所有结构化或非结构化知识均存储于: 📁 **`/mnt/data/`** 系统必须优先从此目录读取真实内容,而非依赖模型内置知识或猜测。 ## ✅ 使用规范 - 自动扫描 `/mnt/data/` 及其子目录(支持 `.pptx`, `.md`, `.txt`, `.json`, `.yaml`, `.csv`, `.pdf` 等) - 若找到多个候选文件,优先选择路径最匹配、文件名最相关的 - 若未找到,回复:“未在本地知识库(/mnt/data)中找到相关内容,请确认文件是否存在。” - **禁止编造**不存在的文档内容 ## ⚠️ 注意事项 - WebDAV 挂载点必须处于活跃状态 - 文件名和路径区分大小写 - 优先解析结构化格式(JSON/YAML/Markdown),提升准确性 - **宁可多查,不可不查**:不确定时,先查 `/mnt/data`! --- > 启用后,**任何涉及“信息查询”、“内容生成依据”、“文件操作”的请求,默认关联本技能**。 ``` ### Technical Analysis The skill declares its activation to be mandatory and high priority, then applies that activation to extremely broad categories such as information queries, content generation, configuration, logs, history, and ordinary questions that might have organization-specific answers. It explicitly requires searching `/mnt/data` even when the user has not mentioned that directory or requested access to local files. These instructions alter the agent's normal task-selection and data-access behavior when the skill is loaded. Rather than limiting access to an explicitly requested document or user-selected path, the skill directs the agent to scan `/mnt/data` and its subdirectories automatically. This violates least-privilege principles at the instruction layer and creates a risk that unrelated private material will be loaded into the model context. The package contains no scripts, dep ...[truncated 1961 chars]- Remediation
View remediation
