Back to skill

Security audit

Crazyrouter Music Gen

Security checks for vulnerabilities and agentic risk

Overview

The skill does generate music as advertised, but it has an under-documented endpoint override that can send the API key and user prompts to another server.

Review before installing. Use this only in an environment where CRAZYROUTER_BASE_URL cannot be set by untrusted parties, use a limited Crazyrouter API key if available, avoid submitting sensitive lyrics or prompts, and choose output paths carefully because existing writable files may be overwritten.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (2)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/main.mjs:4
Finding

API Credential Disclosure Through an Unrestricted Endpoint Override

Content
View full analysis
`. 6. The request body also discloses the user's prompt, l ...[truncated 708 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/main.mjs:47
Finding

Unrestricted Server-Controlled URL Fetching and Unbounded Audio Download

Content
View full analysis
]+\.(mp3|wav|m4a|ogg|flac)[^\s"'<>]*/i) || content.match(/https?:\/\/[^\s"'<>]+audio[^\s"'<>]*/i) || (audioUrl ? [audioUrl] : null); if (urlMatch && args.output) { const url = urlMatch[0]; console.error(`Downloading audio from: ${url}`); const audioResponse = await fetch(url); if (audioResponse.ok) { const buffer = Buffer.from(await audioResponse.arrayBuffer()); await writeFile(args.output, buffer); console.error(`Saved: ${args.output} (${(buffer.length / 1024 / 1024).toFixed(1)}MB)`); ``` ### Technical Analysis The script extracts an arbitrary HTTP or HTTPS URL from an API response and fetches it without validating its destination. It does not restrict the hostname, resolve and reject private IP address ranges, enforce HTTPS, constrain redirect destinations, or verify that the response is audio data. Because the API response determines the fetched URL, a malicious or compromised API endpoint can cause the Agent host to issue requests to loopback, link-local, private-network, or cloud metadata services. This creates an SSRF primitive from the network context of the process. Although the script does not print the downloaded body directly on a successful request, it writes the response to the selected output file, allowing retrieval of internal response content where the caller can access that file. The entire response is read using `arrayBuffer()` and then copied into a Node.js `Buffer`. There is no timeout or maximum response-size limit. A remote server can therefore return a very large or indefinitely slow response, causing excessive memory consumption, process termination, storage exhaustion, or prolonged resource occupancy. The response is written to the caller ...[truncated 2020 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (2)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill description includes broad activation phrases like 'generate music', 'create a song', 'compose', and 'make audio content', which can cause the agent to invoke the skill for loosely related requests. Over-broad routing increases the chance of unnecessary external API use and unintended disclosure of user prompts to a third-party service.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill documentation does not warn that prompts, lyrics, and possibly titles are sent to the external Crazyrouter service. Users may provide sensitive or proprietary text without realizing it will leave the local environment, creating privacy, confidentiality, and compliance risks.

Content

No source excerpt is available for this finding.