Back to skill

Security audit

musey-music

Security checks for vulnerabilities and agentic risk

Overview

ClawScan labels the skill benign with medium confidence: its reported API, credential, and file capabilities appear purpose-aligned, though the skill has no declared tool scope and the scanner raised review notes.

The verdict is benign, not a guarantee of zero risk. Before installing, consider whether you are comfortable configuring credentials and allowing the skill to make network requests; review how its host runtime limits tool access, since the scan reports no declared tool scope. The scan reports complete Skillspector coverage, while its run also emitted serializer warnings and exited with status 1, so keep the overall medium confidence in mind.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (5)

Tainted flow: 'request' from os.getenv (line 104, credential/environment) → urllib.request.build_opener.open (network output)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.

Content

Scanner excerpt · scripts/musey.py (reported line 107)May include surrounding context.

python
request=urllib.request.Request(issuer+path,data=json.dumps(data).encode(),headers=headers,method='POST')
    opener=urllib.request.build_opener(NoRedirect())
    try:
        with opener.open(request,timeout=45) as response:
            return json.load(response)
    except urllib.error.HTTPError as error:
        try: payload=json.loads(error.read(65536))

Tainted flow: 'url' from os.getenv (line 133, credential/environment) → urllib.request.build_opener.open (network output)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.

Content

Scanner excerpt · scripts/musey.py (reported line 138)May include surrounding context.

python
created=False
    try:
        # Download tokens are scoped, short lived; never send the personal key here.
        with urllib.request.build_opener(SecureDownload()).open(url,timeout=60) as response:
            if response.headers.get_content_type() in {'text/html','application/json'}:
                raise ValueError('下载返回的内容不是音频')
            with target.open('xb') as handle:

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · references/key-mode.md (reported line 56)May include surrounding context.

md
## 手动 Key 备用方式

用户确需手动配置,可在 Musey 的 `/agent/connections` 创建 Key,并由用户本人在终端运行 `python3 <script> configure`,按隐藏提示粘贴;密钥不得发送到聊天。默认保存在 OS 用户目录 `~/.config/musey/credentials.json`(POSIX 0600),不写进 Skill 或项目。可由宿主私有环境注入 MUSEY_API_KEY/MUSEY_API_URL;其优先级高于本机文件,重新连接前应由用户处理无效的环境覆盖。

## 安装

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/musey.py (reported line 53)May include surrounding context.

python
def default_path():
    return Path.home()/'.config/musey/credentials.json'


def save_config(path, issuer, key):

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, network.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.