Back to skill

Security audit

Homebrew Package Manager

Security checks for vulnerabilities and agentic risk

Overview

This Homebrew skill is a straightforward guide for package management commands, with expected local system changes but no hidden execution or unrelated behavior.

Install only if you want the agent to help with Homebrew commands. Treat install, upgrade, and uninstall requests as real changes to your Mac, confirm exact package or cask names before running them, and review troubleshooting output such as brew config before sharing it externally.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (4)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill recommends brew install and related package-management actions without clearly warning that these commands change the local system by installing software, pulling dependencies, and potentially altering PATHs or applications. In an agent skill context, omission of modification warnings can lead users to authorize impactful actions without understanding side effects, especially when package names or casks may be user-supplied.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The uninstall guidance omits that brew uninstall removes installed software and can disrupt developer workflows, dependent tooling, or user applications. In a skill designed to help execute package-manager commands, failing to call out destructive behavior increases the chance of accidental or socially engineered removal of important packages.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

md
## Notes
- All brew commands require Homebrew to be installed
- Xcode Command Line Tools are required for building from source
- Some packages may prompt for sudo password
- Different packages have different installation times
- Package names are case-insensitive but shown lowercase by convention

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
85% confidence
Finding

brew config exposes environment and system configuration details such as installation paths, toolchain locations, CPU architecture, and related setup metadata. In troubleshooting contexts, users may paste this output into chats or logs, so omitting a privacy warning can lead to unnecessary disclosure of host information.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.