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) using bash. The script is sourced from a well-known vendor domain.
  • [COMMAND_EXECUTION]: Employs system commands including sudo, sed, tee, and launchctl to modify the configuration file at /opt/datadog-agent/etc/datadog.yaml and manage the agent service. It uses printf piped to curl to securely pass credentials via standard input.
  • [PRIVILEGE_ESCALATION]: Requests root privileges via sudo to 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) using launchctl to ensure the agent runs across sessions.
  • [CREDENTIALS_UNSAFE]: Loads DD_API_KEY and DD_APP_KEY from local .env or .env.local files. 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.md files from the datadog-labs/agent-skills repository.
  • 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 case statement to sanitize the skill name variable against path traversal and shell injection before processing.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 13, 2026, 06:29 AM