Back to skill

Security audit

macos-cli

Security checks for vulnerabilities and agentic risk

Overview

The scanners rate this skill benign with medium confidence: they found documented macOS controls, including a few potentially sensitive actions, but no reported malicious behavior; one scanner also flagged commands that appear outside the stated purpose.

The verdict is benign, not risk-free. Before installing, consider whether you need a skill that documents sensitive macOS actions such as Keychain access and settings changes, and review the out-of-scope README installation instructions separately if you plan to use them.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Rogue AgentSelf-Modification, Session Persistence
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (8)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The commands target specialized day-sheet and tour-management functionality rather than the declared macOS applications and system-control resources. Sharing the macos command prefix does not establish that these capabilities are covered by the description. The chunk also does not follow the declared diagnostic-first and JSON-output conventions. No underlying implementation is supplied, so network access or other side effects cannot be established.

Content

No source excerpt is available for this finding.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 97)May include surrounding context.

md
- `macos info network`: Network interfaces and IP addresses. Flags: `--json`.
- `macos info power settings`: Show power management settings. Flags: `--json`.
- `macos info system`: CPU, RAM, uptime, OS. Flags: `--json`.
- `macos keychain get`: Retrieve a Keychain password. Flags: `--service` `--account` `--json`.
- `macos keychain list`: List Keychain service/account metadata (no passwords). Flags: `--query` `--json`.
- `macos location get`: Get current location (requires Location Services permission). Flags: `--json` `--timeout`.
- `macos login-items list`: List current login items. Flags: `--json`.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 97)May include surrounding context.

md
- `macos info network`: Network interfaces and IP addresses. Flags: `--json`.
- `macos info power settings`: Show power management settings. Flags: `--json`.
- `macos info system`: CPU, RAM, uptime, OS. Flags: `--json`.
- `macos keychain get`: Retrieve a Keychain password. Flags: `--service` `--account` `--json`.
- `macos keychain list`: List Keychain service/account metadata (no passwords). Flags: `--query` `--json`.
- `macos location get`: Get current location (requires Location Services permission). Flags: `--json` `--timeout`.
- `macos login-items list`: List current login items. Flags: `--json`.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 227)May include surrounding context.

md
- `macos info power sleep`: Put Mac to sleep.
- `macos keyboard key`: Send a key or shortcut (e.g. 'cmd+c', 'escape', 'return').
- `macos keyboard type`: Type text into the frontmost app. Flags: `--delay`.
- `macos keychain delete`: Delete a Keychain item. Flags: `--service` `--account` `--json`.
- `macos keychain set`: Save or update a Keychain password. Flags: `--service` `--account` `--password` `--update` `--json`.
- `macos login-items add`: Add an app to login items. Flags: `--hidden` `--json`.
- `macos login-items remove`: Remove a login item by name. Flags: `--json`.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 227)May include surrounding context.

md
- `macos info power sleep`: Put Mac to sleep.
- `macos keyboard key`: Send a key or shortcut (e.g. 'cmd+c', 'escape', 'return').
- `macos keyboard type`: Type text into the frontmost app. Flags: `--delay`.
- `macos keychain delete`: Delete a Keychain item. Flags: `--service` `--account` `--json`.
- `macos keychain set`: Save or update a Keychain password. Flags: `--service` `--account` `--password` `--update` `--json`.
- `macos login-items add`: Add an app to login items. Flags: `--hidden` `--json`.
- `macos login-items remove`: Remove a login item by name. Flags: `--json`.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 228)May include surrounding context.

md
- `macos keyboard key`: Send a key or shortcut (e.g. 'cmd+c', 'escape', 'return').
- `macos keyboard type`: Type text into the frontmost app. Flags: `--delay`.
- `macos keychain delete`: Delete a Keychain item. Flags: `--service` `--account` `--json`.
- `macos keychain set`: Save or update a Keychain password. Flags: `--service` `--account` `--password` `--update` `--json`.
- `macos login-items add`: Add an app to login items. Flags: `--hidden` `--json`.
- `macos login-items remove`: Remove a login item by name. Flags: `--json`.
- `macos mail delete`: Delete messages matching a query. Flags: `--query` `--limit` `--json`.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 228)May include surrounding context.

md
- `macos keyboard key`: Send a key or shortcut (e.g. 'cmd+c', 'escape', 'return').
- `macos keyboard type`: Type text into the frontmost app. Flags: `--delay`.
- `macos keychain delete`: Delete a Keychain item. Flags: `--service` `--account` `--json`.
- `macos keychain set`: Save or update a Keychain password. Flags: `--service` `--account` `--password` `--update` `--json`.
- `macos login-items add`: Add an app to login items. Flags: `--hidden` `--json`.
- `macos login-items remove`: Remove a login item by name. Flags: `--json`.
- `macos mail delete`: Delete messages matching a query. Flags: `--query` `--limit` `--json`.

Session Persistence

Medium
Category
Rogue Agent
Confidence
75% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · SKILL.md (reported line 204)May include surrounding context.

md
- `macos contacts update`: Update fields on an existing contact. Flags: `--first-name` `--last-name` `--organization` `--job-title` `--add-phone` `--add-phone-label` `--add-email` `--add-email-label` `--json`.
- `macos daysheets login`: Save the tour's calendar feed URL (on stdin) in the login keychain. Flags: `--json`.
- `macos defaults delete`: Delete a defaults key. Flags: `--domain` `--key` `--json`.
- `macos defaults write`: Write a value to a defaults key. Flags: `--domain` `--key` `--value` `--type` `--json`.
- `macos disk eject`: Eject a disk or volume. Flags: `--json`.
- `macos disk mount`: Mount a disk image or volume. Flags: `--json`.
- `macos disk unmount`: Unmount a volume (without ejecting the disk). Flags: `--force` `--json`.