T09 · Insecure Skill Coding Practices
- Location
scripts/generate.js:3- Finding
Unvalidated API Base Override Can Exfiltrate API Credentials and Music Prompts
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill mostly does what it claims, but an undocumented endpoint override can send the user's MakebestMusic API key and prompts to an arbitrary server if the runtime environment is influenced.
Review this skill before installing. It needs a MakebestMusic key and will send your music prompts to the service. Only use it in an environment where other tools or workspace configuration cannot set MBM_API_BASE, or ask the publisher to remove or validate that override so credentials are sent only to the official HTTPS MakebestMusic API.
scripts/generate.js:3Unvalidated API Base Override Can Exfiltrate API Credentials and Music Prompts
scripts/query.js:3Unvalidated Status API Destination Can Exfiltrate API Credentials and Music Identifiers
The skill instructs the agent to execute local Node.js scripts that use an API key and make outbound network requests, but it does not declare any explicit tool scope such as allowed-tools or permissions. This creates an authorization and review gap: the skill appears less privileged than it really is, making it easier to run code and access secrets without clear operator awareness or policy enforcement.
The skill explicitly supports asynchronous generation and later status checks ('How's my song going?'), which implies persistence of external task identifiers across turns. If session/task state is not clearly scoped to the initiating user or conversation, another user or session could query or surface someone else's generation results, causing cross-session data leakage.
---
name: text-to-music
description: AI music generation assistant powered by MakebestMusic. Use when user wants to create AI-generated music, songs, or audio tracks. Perfect for content creators, musicians, and anyone wanting custom AI music. Triggers on requests like "create a song", "generate music", "makebestmusic", "AI music", "write a melody", etc.
version: 1.2.0
metadata:
openclaw:
The trigger phrases are broad and include common requests like 'create a song' and 'generate music,' which can cause the skill to activate in loosely related contexts. Over-broad invocation increases the chance that the agent will unnecessarily run code, use the configured API key, or send user content to a third-party service when the user did not clearly intend to use this integration.
The setup instructions direct users to "MBM官网", introducing Chinese-language guidance in an otherwise English skill without stating that the skill is China-specific or giving users a language/locale option. This can violate language/locale policy expectations when a skill implicitly assumes a specific language context without opt-in.