Back to skill

Security audit

Datadog MCP

Security checks for vulnerabilities and agentic risk

Overview

This Datadog MCP skill is coherent, but users should review it because its setup can expose Datadog credentials through an unvalidated site value and an unpinned local npm package.

Prefer the remote Datadog-hosted MCP endpoint with narrow toolsets and least-privilege application keys. Avoid the local npx transport unless you pin and review the package version. Only use documented Datadog DD_SITE values, rotate keys if they may have been used with an untrusted site value, and require explicit approval before enabling or using workflow execution.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (2)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/validate.sh:30
Finding

Datadog Credentials Can Be Transmitted to an Attacker-Controlled Host

Content
View full analysis
Remediation
View remediation
&2 exit 1 ;; esac ``` The exact hostname mapping should be verified against current official Datadog documentation before implementation. ]]>

T08 · Insecure Dependencies

Warning
Location
SKILL.md:46
Finding

Unpinned Community npm Package Is Downloaded and Executed with Datadog Credentials

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (9)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
87% confidence
Finding

The README advertises access to logs, traces, incidents, dashboards, infrastructure data, and workflow execution, but does not clearly warn that these capabilities may expose sensitive production telemetry or trigger remote actions in Datadog. In this skill context, that omission matters because agents may be granted broad observability access and action permissions, increasing the chance of unintended data disclosure or operational changes.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
90% confidence
Finding

The README instructs users to run npx datadog-mcp-server without pinning a specific package version. This creates a supply-chain risk because users may fetch whatever version is current at execution time, including a compromised or breaking release, which is especially sensitive here because the tool is expected to handle Datadog API and application keys.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
76% confidence
Finding

The skill documents shell-based setup commands but does not declare any explicit tool scope such as permissions or allowed-tools. In an agent environment, this can cause the skill to be used with broader execution capability than intended, increasing the chance of command execution or environment secret exposure during setup.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
86% confidence
Finding

Using npx datadog-mcp-server without pinning a version allows whatever package version is current at execution time to be fetched and run. This creates a supply-chain risk where a compromised package release or unexpected upstream change could execute arbitrary code and access Datadog credentials passed on the command line.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The security notes state that API keys grant read access, but the skill also advertises workflow automation tools that may inspect or execute workflows. This can mislead users into treating provided credentials as low-risk read-only secrets when the effective capabilities may include operational actions, increasing the risk of unauthorized changes or automation execution in production.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The setup documentation instructs users to place Datadog API and application keys into shell environment variables and to pass them on the command line as header arguments, but it does not warn that both mechanisms can expose secrets through shell history, process listings, debug logs, or inherited environments. In this skill context, the risk is elevated because the credentials grant access to production observability data, which may include sensitive operational and incident information.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This reference documents access to logs, traces, hosts, incidents, dashboards, and monitors without warning that these data sources routinely contain sensitive operational metadata, personal data, secrets, or internal topology. In the context of a production Datadog integration, omission of privacy and data-handling warnings makes unsafe use more likely and can lead to unnecessary exposure or exfiltration of sensitive information.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The documentation states that the server can infer intent from arbitrary natural-language prompts and choose tools automatically. In a skill with access to production observability data, this broad invocation model increases the chance of overbroad data access, unintended tool execution, and prompt-driven misuse because users are not guided to constrain scope, tool choice, or sensitive-query handling.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
70% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/validate.sh (reported line 42)May include surrounding context.

sh
# Validate API key
check "API key valid"
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" \
  "https://api.${DD_SITE}/api/v1/validate" \
  -H "DD-API-KEY: ${DD_API_KEY}")
if [ "$HTTP_CODE" = "200" ]; then pass; else fail "HTTP $HTTP_CODE"; fi

Static analysis

No suspicious patterns detected.