T01 · Skill Instruction Hijacking
- Location
SKILL.md:30- Finding
Untrusted SiYuan Note Content Is Treated as Mandatory Agent Instructions
- Content
View full analysis
``` 3. If the guide contains Markdown rules, available tool lists, naming conventions, tag systems, database templates, or other instructions, follow them strictly. If "AI Assistant Guide" is not found, tell the user and continue with the normal operation. ``` From `references/workflow-examples.md:103-120`: ```markdown ## Workflow 5: Read "AI Assistant Guide" Before the User Task Every task that triggers this skill should follow this order: 1. Search for "AI Assistant Guide": ```bash npx siyuan-note-cli search docs "AI Assistant Guide" ``` 2. Read the guide: ```bash npx siyuan-note-cli document get ``` 3. Perform the specific user task according to the guide. ``` ### Technical Analysis The skill elevates the contents of a mutable SiYuan document into mandatory Agent instructions. It explicitly tells the Agent to follow instructions in the document “strictly” and perform the user’s task according to that document. SiYuan note content is external, mutable data and must not be assumed to have the same trust level as the skill definition or the user’s current request. No ownership validation, integrity check, trusted-document identifier, instruction allowlist, or precedence rule prevents note content from changing the Agent’s goals. This creates an indirect prompt-injection chan ...[truncated 1734 chars]- Remediation
View remediation
