Trust Assessment
mac-use received a trust score of 10/100, placing it in the Untrusted category. This skill has significant security findings that require attention before use in production.
SkillShield's automated analysis identified 17 findings: 8 critical, 6 high, 3 medium, and 0 low severity. Key findings include Arbitrary command execution, Dangerous call: subprocess.run(), Dangerous call: subprocess.Popen().
The analysis covered 4 layers: Manifest Analysis, Static Code Analysis, Dependency Graph, LLM Behavioral Safety. The Manifest Analysis layer scored lowest at 0/100, indicating areas for improvement.
Last analyzed on February 13, 2026 (commit 13146e6a). SkillShield performs automated 4-layer security analysis on AI skills and MCP servers.
Layer Breakdown
Behavioral Risk Signals
Security Findings17
| Severity | Finding | Layer | Location | |
|---|---|---|---|---|
| CRITICAL | Arbitrary command execution Python shell execution (os.system, subprocess) Review all shell execution calls. Ensure commands are static (not built from user input), use absolute paths, and are strictly necessary. Prefer library APIs over shell commands. | Manifest | skills/kekejun/mac-use/scripts/mac_use.py:133 | |
| CRITICAL | Arbitrary command execution Python shell execution (os.system, subprocess) Review all shell execution calls. Ensure commands are static (not built from user input), use absolute paths, and are strictly necessary. Prefer library APIs over shell commands. | Manifest | skills/kekejun/mac-use/scripts/mac_use.py:150 | |
| CRITICAL | Arbitrary command execution Python shell execution (os.system, subprocess) Review all shell execution calls. Ensure commands are static (not built from user input), use absolute paths, and are strictly necessary. Prefer library APIs over shell commands. | Manifest | skills/kekejun/mac-use/scripts/mac_use.py:232 | |
| CRITICAL | Arbitrary command execution Python shell execution (os.system, subprocess) Review all shell execution calls. Ensure commands are static (not built from user input), use absolute paths, and are strictly necessary. Prefer library APIs over shell commands. | Manifest | skills/kekejun/mac-use/scripts/mac_use.py:553 | |
| CRITICAL | Arbitrary command execution Python shell execution (os.system, subprocess) Review all shell execution calls. Ensure commands are static (not built from user input), use absolute paths, and are strictly necessary. Prefer library APIs over shell commands. | Manifest | skills/kekejun/mac-use/scripts/mac_use.py:568 | |
| CRITICAL | Arbitrary command execution Python shell execution (os.system, subprocess) Review all shell execution calls. Ensure commands are static (not built from user input), use absolute paths, and are strictly necessary. Prefer library APIs over shell commands. | Manifest | skills/kekejun/mac-use/scripts/mac_use.py:577 | |
| CRITICAL | AppleScript Injection via unsanitized app_name The `app_name` argument, which can be user-controlled via command-line arguments (e.g., `--app`), is directly embedded into AppleScript commands without proper escaping. This allows an attacker to inject arbitrary AppleScript, which can then execute arbitrary shell commands on the macOS host. This vulnerability affects functions such as `activate_app`, `raise_window`, `key_press`, and `type_text` (via its call to `activate_app`). Implement robust escaping for `app_name` when embedding it into AppleScript strings. For example, use `quoted form of "{app_name}"` or strictly validate `app_name` against a whitelist of known applications. Ensure all `osascript` calls that use user-controlled input are properly sanitized. | LLM | scripts/mac_use.py:100 | |
| CRITICAL | AppleScript Injection via unsanitized key_combo The `key_combo` argument, which is user-controlled via the `key` command, is directly embedded into the `keystroke` AppleScript command without proper escaping. This allows an attacker to inject arbitrary AppleScript, leading to arbitrary shell command execution on the macOS host. Implement robust escaping for `key_combo` when embedding it into AppleScript strings, or strictly validate `key_combo` against a whitelist of allowed key combinations. Ensure all `osascript` calls that use user-controlled input are properly sanitized. | LLM | scripts/mac_use.py:351 | |
| HIGH | Dangerous call: subprocess.run() Call to 'subprocess.run()' detected in function 'activate_app'. This can execute arbitrary code. Avoid using dangerous functions like exec/eval/os.system. Use safer alternatives. | Static | skills/kekejun/mac-use/scripts/mac_use.py:133 | |
| HIGH | Dangerous call: subprocess.run() Call to 'subprocess.run()' detected in function 'capture_full_screen'. This can execute arbitrary code. Avoid using dangerous functions like exec/eval/os.system. Use safer alternatives. | Static | skills/kekejun/mac-use/scripts/mac_use.py:232 | |
| HIGH | Dangerous call: subprocess.run() Call to 'subprocess.run()' detected in function 'keystroke_via_osascript'. This can execute arbitrary code. Avoid using dangerous functions like exec/eval/os.system. Use safer alternatives. | Static | skills/kekejun/mac-use/scripts/mac_use.py:553 | |
| HIGH | Dangerous call: subprocess.run() Call to 'subprocess.run()' detected in function 'keycode_via_osascript'. This can execute arbitrary code. Avoid using dangerous functions like exec/eval/os.system. Use safer alternatives. | Static | skills/kekejun/mac-use/scripts/mac_use.py:568 | |
| HIGH | Dangerous call: subprocess.Popen() Call to 'subprocess.Popen()' detected in function 'cmd_type'. This can execute arbitrary code. Avoid using dangerous functions like exec/eval/os.system. Use safer alternatives. | Static | skills/kekejun/mac-use/scripts/mac_use.py:577 | |
| HIGH | Dangerous call: subprocess.run() Call to 'subprocess.run()' detected in function 'raise_window'. This can execute arbitrary code. Avoid using dangerous functions like exec/eval/os.system. Use safer alternatives. | Static | skills/kekejun/mac-use/scripts/mac_use.py:150 | |
| MEDIUM | Unpinned Python dependency version Requirement 'pyobjc-framework-Vision>=12.0' is not pinned to an exact version. Pin Python dependencies with '==<exact version>'. | Dependencies | skills/kekejun/mac-use/requirements.txt:1 | |
| MEDIUM | Unpinned Python dependency version Requirement 'pyautogui>=0.9' is not pinned to an exact version. Pin Python dependencies with '==<exact version>'. | Dependencies | skills/kekejun/mac-use/requirements.txt:2 | |
| MEDIUM | Unpinned Python dependency version Requirement 'Pillow>=10.0' is not pinned to an exact version. Pin Python dependencies with '==<exact version>'. | Dependencies | skills/kekejun/mac-use/requirements.txt:3 |
Scan History
Embed Code
[](https://skillshield.io/report/8c453a3e7b8b8e0f)
Powered by SkillShield