Back to skill

Security audit

WeryAI video tool — upscaler

Security checks for vulnerabilities and agentic risk

Overview

This skill is a narrowly scoped WeryAI video upscaler, with one limited input-handling issue users should avoid by passing only the documented fields.

Install only if you intend to send public HTTPS video URLs to WeryAI and are comfortable with paid API usage. Use dry-run first, confirm before submit or wait, keep only WERYAI_API_KEY in the runtime, and pass only video_url plus optional resolution in --json.

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 (1)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/video_upscaler.js:83
Finding

Unrestricted JSON Fields Are Transmitted to the External WeryAI API

Content
View full analysis
controller.abort(), 30000); try { const res = await fetch(url, { method, headers, body: body != null ? JSON.stringify(body) : undefined, signal: controller.signal, }); ``` Submission passes the unrestricted payload directly to the fixed WeryAI endpoint: ```javascript async function submitTool(spec, payload, apiKey) { const res = await httpJson("POST", BASE_URL + spec.endpoint, payload, apiKey); if (!isApiSuccess(res)) return formatApiError(res); ``` ### Technical Analysis The declared upscaler interface requires only `video_url` and optionally accepts `resolution`. However, `buildPayload` merges the entire parsed JSON object into the request payload without rejecting or removing unknown properties. Validation subsequently checks required and recognized fields, but it does not enforce an allowlist. Consequently, arbitrary properties supplied through `--json` survive validation and are serialized into the HTTP reques ...[truncated 1682 chars]
Remediation
View remediation
!allowed.has(key)); if (unknown.length > 0) { throw new Error(`Unsupported input fields: ${unknown.join(", ")}`); } } ``` Apply the following hardening measures: 1. Run unknown-field validation immediately after parsing `--json`. 2. Build the outbound payload exclusively from `video_url` and `resolution`. 3. Preserve the existing enum and HTTPS validation after payload construction. 4. Add tests proving that unexpected fields are rejected and never appear in dry-run or submitted request bodies. 5. Keep the fixed HTTPS API origin and avoid logging the authorization header or API key. ]]>
Vulnerability Patterns
  • 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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (12)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
**Entry script:** `scripts/video_upscaler.js` (alongside this `SKILL.md`).

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
**Entry script:** `scripts/video_upscaler.js` (alongside this `SKILL.md`).

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
**Entry script:** `scripts/video_upscaler.js` (alongside this `SKILL.md`).

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
**Entry script:** `scripts/video_upscaler.js` (alongside this `SKILL.md`).

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
**Entry script:** `scripts/video_upscaler.js` (alongside this `SKILL.md`).

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
**Entry script:** `scripts/video_upscaler.js` (alongside this `SKILL.md`).

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
**Entry script:** `scripts/video_upscaler.js` (alongside this `SKILL.md`).

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
**Entry script:** `scripts/video_upscaler.js` (alongside this `SKILL.md`).

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
**Entry script:** `scripts/video_upscaler.js` (alongside this `SKILL.md`).

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
**Entry script:** `scripts/video_upscaler.js` (alongside this `SKILL.md`).

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
**Entry script:** `scripts/video_upscaler.js` (alongside this `SKILL.md`).

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
88% confidence
Finding

The skill declares that it requires environment access and network access, but it does not explicitly constrain tool scope via permissions or allowed-tools. In an agent environment, that omission can let the model invoke broader capabilities than intended, increasing the chance of unintended outbound requests or access to secrets beyond the documented workflow.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.