macos-watchdog
Warn
Audited by Gen Agent Trust Hub on Aug 17, 2026
Risk Level: MEDIUMEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [METADATA_POISONING]: The skill includes a file named
.security-scan-passedwhich contains a hardcoded claim of safety ("Security scan passed"). This is a deceptive pattern intended to mislead automated security tools and reviewers by asserting a safety verdict that was not independently verified. - [PERSISTENCE_MECHANISMS]: The skill is designed to create persistent background processes on macOS using
launchd(LaunchAgents and LaunchDaemons). Thescripts/new-launchagent.shscript automates the installation of these persistence mechanisms, which allows code to execute automatically at user login or system boot. - [PRIVILEGE_ESCALATION]: The installation script
scripts/new-launchagent.shrequires and utilizessudo(administrative privileges) when installing system-wide LaunchDaemons or creating directories in protected system paths like/Library/LaunchDaemonsand/Library/Logs. - [INDIRECT_PROMPT_INJECTION]: The
scripts/new-launchagent.shscript generates.plistconfiguration files by interpolating user-provided command-line arguments. The script lacks robust sanitization of these arguments, which could allow for XML tag injection to insert unauthorized configuration keys or commands into the persistence file. - Ingestion points: Command line arguments
$LABEL,$PROGRAM, and$EXTRA_ARGSinscripts/new-launchagent.sh. - Boundary markers: Absent. User input is directly wrapped in XML tags within a heredoc.
- Capability inventory: File system modification (
mkdir,mv) and process management (launchctl bootstrap) with potential root privileges. - Sanitization: Incomplete. While basic regex validation exists for labels and intervals, there is no XML escaping for the program path or additional arguments.
- [EXTERNAL_DOWNLOADS]: The evaluation fixture
evals/iteration-1/eval-2-audit/fixture/broken-heal.shperforms a network request to Google's official domain (https://www.googleapis.com/generate_204) usingcurlto verify internet connectivity. This targets a well-known service and represents a standard connectivity check.
Audit Metadata