T01 · Skill Instruction Hijacking
- Location
SKILL.md:25- Finding
Global Instruction Hijacking Forces CLAM Use for Mac Application Requests
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill openly aims to let an AI control Mac apps, but it asks for broad local automation authority with overbroad triggers and delegates execution to unaudited pip-installed code.
Install only if you are comfortable giving an AI-controlled tool access to automate local Mac apps. Use a virtual environment, review the actual clam-mac package source before granting Automation or Accessibility permissions, avoid enabling Mail/Calendar/Reminders unless needed, and require confirmation before installing wrappers, reading sensitive app data, sending messages, moving files, or changing persistent MCP/shell configuration.
SKILL.md:25Global Instruction Hijacking Forces CLAM Use for Mac Application Requests
pyproject.toml:27Unpinned Runtime Dependencies and Unauditable External Package Installation
The trigger rule says any mention of a Mac app should invoke this skill first, which is excessively broad and can cause the agent to route many unrelated or sensitive requests into a high-privilege automation path. Because this skill can install wrappers and control local apps, over-invocation increases the chance of unintended access to email, files, browser state, and other private data without a sufficiently specific user request.
The README explicitly promotes AI access to Apple Mail, Calendar, Reminders, and media/control surfaces without any meaningful warning about sensitive data exposure, destructive actions, or required trust boundaries. In the context of an agent skill whose purpose is to let AI control local applications, this omission is dangerous because users may enable broad automation/privacy permissions without understanding that an LLM or connected agent could read private content or perform unintended actions.
The README normalizes automatic app discovery, wrapper generation/installation, and agent-driven command execution as frictionless defaults, but does not clearly warn that this effectively grants an AI-driven interface broad local control over installed macOS apps. Because the skill is specifically designed for autonomous agents and MCP tooling, the lack of guardrails or operator warnings increases the risk of privacy loss, unintended side effects, and misuse through overbroad automation permissions.
The skill explicitly instructs the agent to install wrappers and read from Calendar, Mail, and Reminders, but it does not require a clear privacy notice or explicit consent before accessing those data sources. Even if framed as a helpful briefing, these apps contain sensitive personal and work information, so silent access creates a real privacy and data-minimization risk.
Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
1. Read all unread messages from Mail
2. Categorize: needs reply / FYI only / can archive
3. **Show the categorization to the user FIRST — do not take action without confirmation**
4. After user confirms: archive safe emails, mark FYI as read
5. Leave important emails untouched in inbox
Listing all files in ~/Downloads is a form of filesystem enumeration that can expose sensitive filenames, document types, installers, and timestamps. In context, the user scenario is legitimate organization of Downloads, but the instruction still encourages broad collection of local file metadata before any minimization or filtering is applied.
User says: "Clean up my Downloads folder" / "帮我整理 Downloads"
1. Use Finder to list all files in ~/Downloads (name, size, date, type)
2. Categorize: documents, images, installers, code, temp files
3. **Show the plan to the user FIRST — list what goes where**
4. After user confirms: create subfolders, move files
This is a manifest file, so vague-trigger review applies. The description 'Give any AI Agent hands to control your Mac' is extremely broad and lacks constraints on when or how the skill should be invoked, which could overlap with many generic automation requests and lead to unintended activation.
Dependency has known vulnerabilities (CVEs). Using packages with unpatched security flaws exposes the environment to known exploits.
Dependency has known vulnerabilities (CVEs). Using packages with unpatched security flaws exposes the environment to known exploits.
Dependency has known vulnerabilities (CVEs). Using packages with unpatched security flaws exposes the environment to known exploits.
Dependency has known vulnerabilities (CVEs). Using packages with unpatched security flaws exposes the environment to known exploits.
No suspicious patterns detected.