Back to skill

Security audit

Sonos Music Search

Security checks for vulnerabilities and agentic risk

Overview

The skill does what it says for Sonos music playback, but its mutable npm install path and unpinned dependencies mean users may install code that differs from the reviewed artifact.

Review this before installing in a sensitive environment. The current source appears aligned with Sonos music playback, but install from an exact reviewed version with a lockfile where possible, restrict BRAVE_API_KEY to this skill, and be aware that speaker listing can reveal local device names and IP addresses.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:12
Finding

Mutable and Unverified npm Dependencies Enable Supply-Chain Compromise

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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 (13)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 56)May include surrounding context.

md
node src/index.js play "Living Room" "pink floyd comfortably numb"

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 62)May include surrounding context.

md
node src/index.js play "Living Room" "pink floyd comfortably numb"

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 68)May include surrounding context.

md
node src/index.js play "Living Room" "pink floyd comfortably numb"

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 74)May include surrounding context.

md
node src/index.js play "Living Room" "pink floyd comfortably numb"

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill declares an environment-variable requirement (BRAVE_API_KEY) but does not define any explicit tool scope such as permissions or allowed-tools. This creates an authorization ambiguity where the runtime may grant broader-than-necessary access or make it unclear to users and auditors what sensitive resources the skill can access, which is especially relevant because API keys are secrets and the skill also interacts with networked Sonos devices.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The manifest describes a general 'music' search-and-play capability, which implies broader source support. In practice, the implementation constrains results to site:spotify.com/track, extracts only Spotify track IDs, and fails if the first result is not a Spotify track, so the real behavior is Spotify-specific rather than general music playback.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
80% confidence
Finding

This markdown file documents a list command that enumerates Sonos speakers and, in the programmatic API example, returns speaker host IP addresses. The description presents this as a feature but does not include any user-facing warning that the skill discovers devices on the local network and may reveal network topology information.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
94% confidence
Finding

The dependency uses a caret range, which allows newer compatible releases to be installed without explicit review. If the upstream package or one of its transitive dependencies is compromised or ships a breaking security-relevant change, future installs could pull the affected version and alter the skill's behavior.

Content

Scanner excerpt · package.json (reported line 13)May include surrounding context.

json
"format:check": "prettier --check \"**/*.{js,md}\""
  },
  "dependencies": {
    "brave-search": "^0.9.0",
    "sonos": "^1.15.0"
  },
  "devDependencies": {

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
94% confidence
Finding

The Sonos dependency is not pinned to an exact version, so installs may resolve to newer package releases automatically. This creates supply-chain risk because a malicious or vulnerable upstream release could be introduced into the skill without any code change in this repository.

Content

Scanner excerpt · package.json (reported line 14)May include surrounding context.

json
},
  "dependencies": {
    "brave-search": "^0.9.0",
    "sonos": "^1.15.0"
  },
  "devDependencies": {
    "prettier": "^3.2.5",

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
40% confidence
Finding

Dependencies lack version pinning, allowing potential malicious package updates. Consider pinning versions.

Content

Scanner excerpt · package.json (reported line 17)May include surrounding context.

json
"sonos": "^1.15.0"
  },
  "devDependencies": {
    "prettier": "^3.2.5",
    "@clawhub/skill-audit": "^2.1.0"
  },
  "keywords": ["sonos", "brave-search", "clawhub-skill"],

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
40% confidence
Finding

Dependencies lack version pinning, allowing potential malicious package updates. Consider pinning versions.

Content

Scanner excerpt · package.json (reported line 18)May include surrounding context.

json
},
  "devDependencies": {
    "prettier": "^3.2.5",
    "@clawhub/skill-audit": "^2.1.0"
  },
  "keywords": ["sonos", "brave-search", "clawhub-skill"],
  "author": "sonos-music-search-skill contributors",

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
87% confidence
Finding

The stated purpose is to search for music and play it on Sonos speakers. Adding an option to disable SafeSearch expands the skill's behavior into content-safety control, which is not mentioned or justified by the manifest's narrow music-playback scope.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

listSpeakers() returns both speaker names and local network host addresses to any caller of the exported API, exposing internal network topology information without any access control or minimization. While low severity, this information can aid reconnaissance by revealing live devices and their IPs/hosts on the user's LAN.

Content

No source excerpt is available for this finding.