Back to skill

Security audit

AI Songwriter (Clone)

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent music-generation workflow, but it automatically uses an API key to send user lyrics to an external service and has underdisclosed callback and temporary-file behavior.

Review before installing. Only use this skill if you are comfortable with automatic, no-confirmation submission of prompts and lyrics to KIE/Suno using your API key, possible API costs, and local plaintext temp-file handling. A safer version would require confirmation before generation, use a private unique temp file or stdin, remove or disclose the callback URL, and document exactly what data is sent externally.

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 (1)

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:62
Finding

Predictable Shared Temporary File Permits File Replacement and Symlink Attacks

Content
View full analysis
Remediation
View remediation
"$lyrics_file" node "{baseDir}/scripts/generate_suno.js" "song title" "$(cat -- "$lyrics_file")" "STYLE_TAGS" ``` For stronger protection, modify `generate_suno.js` to read the lyrics directly from standard input so that no temporary file is needed. ]]>
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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)

Tp4

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The skill description promises a bounded songwriting workflow, but the detected behavior includes external callback/API task submission and execution characteristics not disclosed in the declared purpose. This mismatch is dangerous because operators and policy systems may approve the skill based on an incomplete description, while it performs materially different external actions.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The instructions write user-derived content to /tmp/suno_clone_lyrics.txt and execute a shell command with that content, yet provide no warning or safety controls. This is dangerous because file write plus shell execution creates a strong pathway for command injection, unsafe handling of untrusted text, and unreviewed outbound actions to external services.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
94% confidence
Finding

The skill references a sensitive environment credential (KIE_API_KEY) and directs external generation behavior, but it declares no explicit tool scope or permission boundaries. That creates an under-specified trust boundary where an agent may access environment data or invoke code-capable operations without clear least-privilege constraints.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill uses broad automation language such as immediately starting multi-step processing and not waiting for user confirmation, without defining clear invocation constraints. In an agent environment, that increases the risk of unintended execution, surprise external actions, and bypass of human review for operations that may incur cost or handle third-party content.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill instructs the environment to expose KIE_API_KEY without any guidance on secret minimization, storage, masking, or transmission. In a workflow that also performs external automation, undisclosed credential handling raises the risk of accidental leakage, overbroad secret exposure, or use in unapproved contexts.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
81% confidence
Finding

The manifest describes an end-user music-generation workflow, but does not mention credential management or any need to access host environment secrets. Reading API keys from process environment introduces a capability beyond the stated creative task and is not explicitly justified by the manifest text.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The manifest says the workflow '最终直接返回试听链接', implying a final user-facing output of the listening link. Instead, the code prints multiple fields for each generated track, including title, audio URL, video URL, duration, and audio ID, and does not specifically structure the result as a direct single listening-link return.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
77% confidence
Finding

The stated behavior is an uninterrupted end-to-end run that directly returns the result without waiting for user confirmation. Supplying a callback URL adds an additional asynchronous integration behavior that is not described in the manifest and is unnecessary to the polling-based flow implemented elsewhere in the file.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The script submits user-provided title, prompt, and tags to a third-party API without any notice, consent flow, or minimization, which creates a privacy and data-handling risk. In this skill's context, users may provide copyrighted lyrics, stylistic references, or sensitive creative material, making undisclosed external transmission more sensitive than in a purely local tool.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.