Back to skill

Security audit

Free Resource

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent media-search downloader, but its download commands are under-scoped and can fetch arbitrary URLs or write to arbitrary local paths.

Review this before installing if the agent may process untrusted URLs or run in a sensitive network. Use environment variables instead of config.json when possible, only download URLs copied from trusted provider responses, and choose output paths in a dedicated media folder to avoid overwriting important files.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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 (4)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/pexels.ts:107
Finding

Unrestricted Pexels Download URL Enables SSRF and Arbitrary File Overwrite

Content
View full analysis
{ const resp = await fetch(url, { headers: { "User-Agent": "PexelsCLI/0.1" }, }); if (!resp.ok) { console.error(`Download failed - HTTP ${resp.status}`); process.exit(1); } const buf = await resp.arrayBuffer(); await Bun.write(output, new Uint8Array(buf)); console.error(`Downloaded: ${output}`); } ``` ```ts async function download(flags: Record) { if (!flags["--url"]) { console.error("Error: --url is required"); process.exit(1); } if (!flags["--output"]) { console.error("Error: --output is required"); process.exit(1); } await downloadFile(flags["--url"], flags["--output"]); } ``` ### Technical Analysis The `download` command passes a caller-controlled URL directly to `fetch`. It does not enforce HTTPS, restrict downloads to Pexels media hosts, resolve and reject non-public addresses, or validate redirect destinations. Consequently, the command can make HTTP requests to loopback addresses, private network services, link-local services, or cloud metadata endpoints. This network access exceeds the minimum privilege required to download media returned by Pexels. The caller also fully controls the output path. `Bun.write` can overwrite files writable by the current process, and the implementation does not restrict writes to a designated media directory or reject existing files. ### Attack Path 1. An attacker supplies a URL presented as a Pexels media resource. 2. The Agent invokes `pexels.ts download` with the attacker-controlled `--url`. 3. The script requests an internal target such as a loopback service, private network host, or metadata endpoint. 4. The response is writt ...[truncated 811 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/pixabay.ts:90
Finding

Unrestricted Pixabay Download URL Enables SSRF and Arbitrary File Overwrite

Content
View full analysis
{ const resp = await fetch(url); if (!resp.ok) { console.error(`Download failed – HTTP ${resp.status}`); process.exit(1); } const buf = await resp.arrayBuffer(); await Bun.write(output, new Uint8Array(buf)); console.error(`Downloaded: ${output}`); } ``` ```ts async function download(flags: Record) { if (!flags["--url"]) { console.error("Error: --url is required"); process.exit(1); } if (!flags["--output"]) { console.error("Error: --output is required"); process.exit(1); } await downloadFile(flags["--url"], flags["--output"]); } ``` ### Technical Analysis The Pixabay downloader accepts an arbitrary URL and sends it directly to `fetch`. No protocol, hostname, resolved-address, or redirect validation is performed. Although the declared functionality is downloading Pixabay media, the implementation can contact any destination reachable from the execution environment. The output path is also unrestricted. The complete response is buffered in memory and then written with `Bun.write`, potentially replacing an existing file that the process can modify. ### Attack Path 1. An attacker causes an Agent or user to process a crafted download URL. 2. The URL identifies an internal HTTP service, private address, localhost listener, or cloud metadata endpoint rather than a Pixabay media host. 3. `pixabay.ts download` requests that destination. 4. The response is saved to a caller-selected path. 5. The saved response can be exposed if it is later read by the Agent, while the arbitrary path can also be used to overwrite writable files. ### Impact Assessment An attacker can use the Skill proces ...[truncated 420 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/freesound.ts:86
Finding

Freesound Token Is Forwarded to an Unvalidated Download URL

Content
View full analysis
{ const headers: Record = { "User-Agent": "FreesoundCLI/0.1" }; if (token) { headers["Authorization"] = `Token ${token}`; } const resp = await fetch(url, { headers }); if (!resp.ok) { console.error(`Download failed – HTTP ${resp.status}`); process.exit(1); } const buf = await resp.arrayBuffer(); await Bun.write(output, new Uint8Array(buf)); console.error(`Downloaded: ${output}`); } ``` ```ts // Get download URL const data = await apiRequest(`/sounds/${id}/download/`, {}, token); if (!data.download_link) { console.error("Error: No download link returned. Note: OAuth2 may be required for original file downloads."); process.exit(1); } await downloadFile(data.download_link, flags["--output"], token); ``` ### Technical Analysis The `download-original` path retrieves `download_link` from an API response and passes it to `downloadFile` together with the Freesound token. `downloadFile` unconditionally adds the token to the `Authorization` header whenever the optional token argument is present. The destination URL is not checked to confirm that it uses HTTPS or belongs to an approved Freesound-controlled origin. Therefore, a malformed or compromised API response can cause the token to be transmitted to another host. The implementation also does not explicitly enforce safe behavior for cross-origin redirects. The regular preview-download path does not pass the token to `downloadFile`; the credential exposure is specific to the original-download implementation. ### Attack Path 1. The user or Agent invokes the `download-original` command. 2. The s ...[truncated 902 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Note
Location
SKILL.md:17
Finding

Plaintext API Credentials Stored in an Unprotected Project Configuration File

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (39)

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The description claims a unified tool for searching and retrieving royalty-free media across four providers and multiple media types: photos/videos (Pexels, Pixabay), audio effects (Freesound), and music/BGM (Jamendo). The code chunk only implements Pexels functionality via /search and /videos/search plus a generic file download command. There is no evidence of Pixabay, Freesound, or Jamendo API usage, nor any support for audio effects or music discovery. While the implemented Pexels photo/video search and download behavior fits part of the declaration, the overall declared description materially overstates the breadth of providers and media types supported by this code chunk, so this is a mismatch.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The code’s core behavior is narrower than the declared description. The description presents a unified royalty-free media tool across four providers and multiple media types, including audio/music sources, but this code chunk only supports Pixabay image and video search plus downloading a file by URL. The Pixabay-related portion of the description is accurate, including search filters and download functionality, but the broader multi-provider/media-library claim is not represented by this code. This is a material description-behavior mismatch because major declared capabilities and providers are absent from the implementation shown.

Content

No source excerpt is available for this finding.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/jamendo.ts search --query "background" --limit 5

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/jamendo.ts search --query "background" --limit 5

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/jamendo.ts search --query "background" --limit 5

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/jamendo.ts search --query "background" --limit 5

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/jamendo.ts search --query "background" --limit 5

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/jamendo.ts search --query "background" --limit 5

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/jamendo.ts search --query "background" --limit 5

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/freesound.ts search --query "piano"

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/freesound.ts search --query "piano"

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/freesound.ts search --query "piano"

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/freesound.ts search --query "piano"

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/freesound.ts search --query "piano"

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/freesound.ts search --query "piano"

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/freesound.ts search --query "piano"

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/pexels.ts search-photos --query "nature"

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/pexels.ts search-photos --query "nature"

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/pexels.ts search-photos --query "nature"

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/pexels.ts search-photos --query "nature"

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/pexels.ts search-photos --query "nature"

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/pixabay.ts search-images --query "nature"

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/pixabay.ts search-images --query "nature"

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/pixabay.ts search-images --query "nature"

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
bun ./scripts/pixabay.ts search-images --query "nature"

Static analysis

Detected: suspicious.env_credential_access

Environment variable access combined with network send.

Critical
Code
suspicious.env_credential_access
Location
scripts/freesound.ts:33

Environment variable access combined with network send.

Critical
Code
suspicious.env_credential_access
Location
scripts/pexels.ts:32

Environment variable access combined with network send.

Critical
Code
suspicious.env_credential_access
Location
scripts/pixabay.ts:33