Back to skill

Security audit

域名DNS

Security checks for vulnerabilities and agentic risk

Overview

This DNS operations skill is not malicious, but it asks for broad command and file authority while giving unclear boundaries for high-impact live DNS changes.

Install only if you are comfortable reviewing every action before it runs. Use narrowly scoped DNS-provider tokens, avoid administrator execution, require explicit confirmation for record, zone, nameserver, registrar, import, and export changes, and prefer read-only or dry-run checks before any live DNS mutation.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
Findings (1)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:21
Finding

Overly Broad File and Command Execution Permissions

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 21–24
Related Locations: SKILL.md, lines 178–180 and 193
Vulnerability Type: Excessive tool permissions and unsafe privilege guidance
Risk Level: Medium

Vulnerable Code

yaml
tools:
- read
- exec
- write

Technical Analysis

The Skill requests generic file-read, file-write, and command-execution capabilities even though its stated purpose is managing domains and DNS records through cloud-provider APIs. It does not define restrictions on executable commands, command arguments, filesystem paths, destination hosts, or DNS zones.

Lines 178–180 further advertise general file processing, API integration, and system-command execution. Although line 171 claims that commands should be allowlisted and executed in a sandbox, the project contains no implementation that enforces either control. Line 193 also recommends retrying operations with administrator privileges when filesystem permissions are insufficient. Such escalation is generally unnecessary for provider API operations and can increase the consequences of an unsafe generated command.

The declaration does not independently grant operating-system privileges; the actual exposure depends on how the hosting agent interprets the tool list. If the host grants these tools without additional policy enforcement, the Skill can act with all filesystem and process privileges available to the agent.

Attack Path

  1. A user or attacker supplies a crafted DNS-management instruction containing shell syntax, a malicious path, or misleading operational steps.
  2. The agent loads the Skill and exposes the declared read, write, and exec tools.
  3. Because the Skill defines no enforceable command, argument, path, hostname, or provider allowlist, the agent may translate the instruction into an unrestricted filesystem or shell operation.
  4. The operation reads or modifies files unrelated to DNS ...[truncated 1209 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove exec and generic filesystem permissions unless they are strictly required for a documented DNS workflow.
  2. Prefer direct, typed integrations with Cloudflare, DNSimple, and Namecheap APIs instead of constructing shell commands.
  3. If command execution is unavoidable, enforce a fixed allowlist of executable paths and subcommands. Pass arguments as arrays and prohibit shell interpolation, redirection, command substitution, and metacharacters.
  4. Restrict file access to explicitly approved working directories. Resolve canonical paths and reject traversal, symlink escapes, absolute paths outside the workspace, and writes to executable or system locations.
  5. Restrict outbound traffic to documented HTTPS API endpoints and validate TLS certificates.
  6. Require explicit confirmation before DNS record creation, modification, deletion, zone transfer, or other destructive or billable operations.
  7. Use provider tokens limited to the necessary account, zone, operation, and lifetime. Do not use account-wide administrative credentials.
  8. Remove the recommendation to run as administrator. Permission errors should instead be resolved by narrowing the operation or assigning the minimum required resource permission.
  9. Implement the claimed sandbox and allowlist controls in enforceable host policy or code rather than relying on documentation.
  10. Add audit logging with secret redaction and tests proving that unapproved commands, paths, hosts, and shell metacharacters are rejected.
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (5)

Vague Triggers

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

The activation condition is overly broad and includes unrelated operational scenarios, making it likely that the skill will be selected outside its intended DNS/domain context. Because the skill declares powerful tools such as exec and write, over-selection can lead to inappropriate execution, changes, or credential exposure during tasks that should have used a narrower, safer skill.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill does not clearly warn that modifying live DNS records can break email delivery, web availability, certificate validation, or domain delegation. In the context of an automation skill with execution capability, omission of this warning makes accidental production-impacting changes more likely and reduces the chance that agents or users will seek confirmation before acting.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill is presented as a domain/DNS operations tool, but the description broadens its scope to unrelated system monitoring, log analysis, alerting, and deployment management. This scope inflation can cause an agent to invoke the skill in contexts far beyond DNS administration, increasing the chance of unnecessary command execution or credential use under false assumptions about the skill’s purpose.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The document claims the skill is unsuitable for complex decision scenarios while simultaneously advertising advanced orchestration features such as conditional branching, retries, scheduling, and distributed execution. These contradictions can mislead operators and agents about the skill’s autonomy and operational reach, resulting in unsafe reliance or execution in higher-risk workflows.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
82% confidence
Finding

The usage section provides generic steps but does not define when the skill should be invoked or what safe inputs look like. Without specific trigger scope or examples, agents may infer broad authority and execute domain-affecting operations with insufficient validation, especially given the presence of exec/write capabilities.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.