Back to skill

Security audit

zc-douyin-xiazai-txt

Security checks for vulnerabilities and agentic risk

Overview

This Douyin downloader is mostly purpose-aligned, but it can make unvalidated network requests to arbitrary URLs before confirming they are Douyin links.

Review this skill before installing or running it. Use it only with links you trust, preferably genuine Douyin share links or modal IDs, because crafted input could cause the machine running the skill to contact unrelated internal or external URLs. A safer version should validate Douyin hosts, block private and loopback addresses, limit redirects, and pin dependencies in an isolated environment.

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

T09 · Insecure Skill Coding Practices

Error
Location
douyin.js:23
Finding

Unrestricted Outbound Requests Allow Blind Server-Side Request Forgery

Content
View full analysis
{ const parsedUrl = new URL(url); const client = parsedUrl.protocol === 'https:' ? https : http; const opts = { method: options.method || 'GET', headers: { ...HEADERS, ...options.headers } }; const req = client.request(url, opts, (res) => { // Handle redirects if (res.statusCode >= 300 && res.statusCode < 400 && res.headers.location) { httpRequest(res.headers.location, options) .then(resolve) .catch(reject); return; } let data = ''; res.on('data', chunk => data += chunk); res.on('end', () => { resolve({ statusCode: res.statusCode, headers: res.headers, body: data, url: url }); }); }); req.on('error', reject); req.setTimeout(30000, () => { req.destroy(); reject(new Error('Request timeout')); }); if (options.body) { req.write(options.body); } req.end(); }); } ``` ```javascript async function parseShareUrl(shareText) { const modalIdMatch = shareText.match(/(?:modal_id[=:])?(\d{16,})/); if (modalIdMatch) { const modalId = modalIdMatch[1]; return await getVideoInfoByModalId(modalId); } const urlMatch = shareText.match(/https?:\/\/[^\s]+/); if (!urlMatch) { throw new Error('No valid share URL found'); } let shareUrl = urlMatch[0]; shareUrl = shareUrl.replace(/[\.,;!?,。!?]+$/g, ''); const response1 = await httpRequest(shareUrl); const finalUrl = response1.url; ``` ### Technical Analysis The Skill accepts the first HTTP or HTTPS URL found in caller-controlled input and s ...[truncated 2600 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
SKILL.md:22
Finding

Unpinned Mutable Whisper Dependency Installation

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (7)

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
- **Node.js**(用于执行 `douyin.js`)。

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill invokes shell-capable local binaries and Node.js scripts, but the manifest does not declare an explicit tool scope such as permissions or allowed-tools. This weakens security boundaries because a host may permit broader execution than users expect, increasing the risk of unintended command execution or misuse of local system capabilities.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
87% confidence
Finding

The skill content is predominantly written in Chinese for the functional description, usage instructions, warnings, and notes, while the file title is bilingual. This creates a language/locale constraint for users without stating that the skill is Chinese-only or offering an alternative language, which fits the policy's language-choice concern.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The code hard-codes a Chinese language preference in outbound headers via Accept-Language: 'zh-CN,zh;q=0.9'. This imposes a specific locale choice without offering the user any language selection or documenting a justified region-specific constraint.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
99% confidence
Finding

The Whisper invocation hard-codes --language zh, which forces transcription into Chinese regardless of user preference. This is a natural-language policy concern because the skill does not provide any opt-in, selection mechanism, or documented justification for restricting language.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Low
Category
Not specified by scanner
Confidence
77% confidence
Finding

The manifest description presents the skill as using local ffmpeg and Whisper for downloading, extraction, and transcription, but the documentation shows the actual workflow depends on invoking a separate Node.js script (douyin.js) for video info lookup and download. While network access and external tooling are expected for a Douyin downloader, the stated implementation scope is narrower than the documented behavior.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

The inline comment says the implementation uses spawnSync to call ffmpeg, while the file also defines a separate ffmpeg runner using spawn at L118-L138 that is never used. This creates intent/documentation confusion about how ffmpeg execution is actually handled in the skill and can mislead maintainers reviewing process-execution behavior.

Content

No source excerpt is available for this finding.