T01 · Skill Instruction Hijacking
- Location
SKILL.md:3- Finding
Overbroad Skill Activation Can Trigger Email Access for Unrelated Requests
- Content
View full analysis
'. To send an email: exec 'node scripts/smtp.js send --to --subject --body '. Use this skill for ANY request mentioning email, inbox, mail, messages, or unread. Always run commands with workdir set to the skill directory above. ``` ### Technical Analysis The instruction requires the agent to use this Skill for any request containing broad terms such as `messages` or `unread`. These terms are not specific to email and can occur in requests involving chat messages, application notifications, log messages, or unrelated content. Because the Skill has access to email credentials and supports reading email, modifying message flags, downloading attachments, and sending email, activating it for ambiguous requests violates least-privilege routing principles. The declared functionality only requires activation when the user explicitly requests an email operation. ### Attack Path 1. A user or untrusted prompt contains a generic phrase such as “check the unread messages.” 2. The Skill instruction directs the agent to select this email Skill without establishing that the request concerns email. 3. The agent may execute an IMAP command and expose mailbox metadata or content. 4. If the ambiguous request is interpreted as a state-changing operation, the agent may also modify message flags, download content, or send email. ### Impact Assessment The issue does not independently bypass operating-system permissions ...[truncated 405 chars]- Remediation
View remediation
