T08 · Insecure Dependencies
- Location
SKILL.md:12- Finding
Mutable and Unverified npm Dependencies Enable Supply-Chain Compromise
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
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.
SKILL.md:12Mutable and Unverified npm Dependencies Enable Supply-Chain Compromise
Referenced artifact was not completely inspected
node src/index.js play "Living Room" "pink floyd comfortably numb"
Referenced artifact was not completely inspected
node src/index.js play "Living Room" "pink floyd comfortably numb"
Referenced artifact was not completely inspected
node src/index.js play "Living Room" "pink floyd comfortably numb"
Referenced artifact was not completely inspected
node src/index.js play "Living Room" "pink floyd comfortably numb"
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.
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.
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.
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.
"format:check": "prettier --check \"**/*.{js,md}\""
},
"dependencies": {
"brave-search": "^0.9.0",
"sonos": "^1.15.0"
},
"devDependencies": {
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.
},
"dependencies": {
"brave-search": "^0.9.0",
"sonos": "^1.15.0"
},
"devDependencies": {
"prettier": "^3.2.5",
Dependencies lack version pinning, allowing potential malicious package updates. Consider pinning versions.
"sonos": "^1.15.0"
},
"devDependencies": {
"prettier": "^3.2.5",
"@clawhub/skill-audit": "^2.1.0"
},
"keywords": ["sonos", "brave-search", "clawhub-skill"],
Dependencies lack version pinning, allowing potential malicious package updates. Consider pinning versions.
},
"devDependencies": {
"prettier": "^3.2.5",
"@clawhub/skill-audit": "^2.1.0"
},
"keywords": ["sonos", "brave-search", "clawhub-skill"],
"author": "sonos-music-search-skill contributors",
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.
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.