Back to skill

Security audit

Qq Music Control

Security checks for vulnerabilities and agentic risk

Overview

This skill locally controls QQ Music playback on macOS and its behavior is mostly disclosed and proportionate to that purpose.

Install this only if you want Codex/WorkBuddy to start and control the local macOS QQ Music app. Be aware that some short trigger phrases may change playback accidentally, and some commands can launch or bring QQ Music to the foreground.

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (7)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
89% confidence
Finding

The skill explicitly instructs the agent to execute a local Python script via shell, but it does not declare any tool scope or permission boundary such as allowed shell commands. That creates an authorization gap where a skill can invoke code execution capabilities without transparent restriction, increasing the chance of unintended or expanded command execution.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The trigger phrases are broad and map to common conversational language such as '下一首', '暂停音乐', '音量', and 'play music', which raises the risk of accidental invocation during normal conversation. Because the skill can launch and control a local application through shell-executed code, false activations could cause unintended system actions without clear user intent.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/qq_music.py (reported line 73)May include surrounding context.

python
def is_qqmusic_running():
    """检查 QQ 音乐是否在运行"""
    result = subprocess.run(
        ["pgrep", "-x", QQMUSIC_APP_NAME],
        capture_output=True,
    )

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill description frames the capability as playback control, but the implementation also launches QQ Music and forcibly activates it in the foreground. That mismatch can violate user expectations, disrupt active work, and create a stealthier-than-disclosed app-control capability that is more invasive than simple media commands.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/qq_music.py (reported line 86)May include surrounding context.

python
print("QQ音乐已在运行")
        return True
    print("正在启动 QQ 音乐...")
    subprocess.run(["open", "-a", QQMUSIC_APP_NAME], check=False)
    # 等待启动
    for _ in range(10):
        time.sleep(1)

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/qq_music.py (reported line 100)May include surrounding context.

python
def activate_qqmusic():
    """将 QQ 音乐置于前台"""
    subprocess.run(
        ["osascript", "-e", f'tell application "{QQMUSIC_APP_NAME}" to activate'],
        capture_output=True,
    )

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
78% confidence
Finding

Most user-facing instructions and trigger phrases are presented only in Chinese, and the command examples imply Chinese as the default interaction language, while no language preference or opt-in is documented. Although a few English triggers are included, the skill does not explicitly state that users may choose their language or locale.

Content

No source excerpt is available for this finding.