Back to skill

Security audit

音潮 AI 音乐创作

Security checks for vulnerabilities and agentic risk

Overview

This skill coherently generates music through the declared YinChao service and discloses its API-key handling, network use, and optional user-directed audio upload.

Install only if you are comfortable using YinChao's external service with your API key. Local reference audio you choose for reference generation may be uploaded to YinChao, so use only files you have rights to share and avoid placing unrelated secrets in the configured key files.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • System Prompt LeakageDirect Leakage, Indirect Extraction, Tool-Based Exfiltration
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (10)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/yinchao_music.py (reported line 161)May include surrounding context.

python
cwd = Path.cwd() if cwd is None else cwd
    home = Path.home() if home is None else home
    candidates = (cwd / ".env", home / ".config" / "yinchao" / ".env")
    visited: set[Path] = set()
    for path in candidates:
        path = path.expanduser()

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · scripts/yinchao_music.py (reported line 265)May include surrounding context.

python
raise ValueError("提示词不能为空")
    if len(prompt) > max_length:
        raise ValueError(f"提示词不能超过 {max_length} 个字符")
    return prompt


def _validate_lyric(lyric: str, *, max_length: int = 3000) -> str:

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/yinchao_music.py (reported line 1071)May include surrounding context.

python
if not api_key:
        message = (
            "缺少 YINCHAO_API_KEY。请设置环境变量,或在当前目录 .env、"
            "~/.config/yinchao/.env 中配置,"
            "不要把完整 API Key 发到对话中。"
        )
        _print_cli_error(args, message)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
94% confidence
Finding

The skill instructs the agent to use environment variables, read local files such as .env and config paths, and access external network services, but it does not declare any explicit tool scope or allowed-tools boundaries. This increases the chance of over-broad execution, unintended credential exposure, or use of capabilities beyond what users would reasonably expect from a music-generation skill.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The manifest description is primarily in Chinese and does not indicate that the user may choose another language. Because the policy forbids forcing a specific language or locale without user opt-in, this is a natural-language policy issue.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
82% confidence
Finding

The user-facing guidance and behavioral instructions throughout the skill are entirely in Chinese and do not provide an opt-in or alternative language behavior. This can be interpreted as enforcing a language policy without user choice.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The delivery template and surrounding instructions are entirely prescriptive in Chinese, including exact output labels such as “版本 1”, “歌词”, and “由音潮 AI 音乐创作…生成”. This imposes a specific language/locale on user-facing responses without indicating any user opt-in or alternative language handling.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This markdown file presents all user-facing instructions in Chinese and does not indicate that users may choose another language or that the skill is intentionally limited to a Chinese-speaking context. Under the policy, forcing a specific language without user opt-in is a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

This code's docstring, CLI help text, prompts, progress messages, and result formatting are all hard-coded in Chinese, which imposes a specific language/locale on users. The file does not offer any opt-in, locale selection, or documented justification for being Chinese-only.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
93% confidence
Finding

The file presents all instructions and examples only in Chinese, with no indication that users may choose another language or locale. Under the stated policy, forcing a specific language without user opt-in is a natural-language policy concern.

Content

No source excerpt is available for this finding.