dd-agent-install-macos
Pass
Audited by Gen Agent Trust Hub on Nov 13, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONPRIVILEGE_ESCALATIONPERSISTENCEINDIRECT_PROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: Fetches the macOS Agent installer from Datadog's official domain (
install.datadoghq.com) and downloads additional skill modules from the author's GitHub repository. - [REMOTE_CODE_EXECUTION]: Downloads and executes a shell script (
install_mac_os.sh) usingbash. The script is sourced from a well-known vendor domain. - [COMMAND_EXECUTION]: Employs system commands including
sudo,sed,tee, andlaunchctlto modify the configuration file at/opt/datadog-agent/etc/datadog.yamland manage the agent service. It usesprintfpiped tocurlto securely pass credentials via standard input. - [PRIVILEGE_ESCALATION]: Requests root privileges via
sudoto perform the agent installation and update system configuration files, which is required for the skill's primary purpose. - [PERSISTENCE]: Configures a persistent system service (
com.datadoghq.agent) usinglaunchctlto ensure the agent runs across sessions. - [CREDENTIALS_UNSAFE]: Loads
DD_API_KEYandDD_APP_KEYfrom local.envor.env.localfiles. It includes validation logic to ensure keys are only sent to official Datadog API endpoints. - [INDIRECT_PROMPT_INJECTION]:
- Ingestion points: Dynamically downloads and reads
SKILL.mdfiles from thedatadog-labs/agent-skillsrepository. - Boundary markers: Includes explicit instructions that downloaded skills are reference only and cannot override user safety rules.
- Capability inventory: The skill has capabilities for file system modification, network requests, and elevated command execution.
- Sanitization: Implements a
casestatement to sanitize the skill name variable against path traversal and shell injection before processing.
Audit Metadata