Back to skill

Security audit

Edu Video Generator

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent educational-video generator, but it includes unsafe code patterns and setup commands that users should review before installing.

Review this skill before installing. Use it only in an isolated project environment, pin dependency versions and lockfiles, remove disableWebSecurity unless you have a narrow documented need, replace new Function with a strict arithmetic parser, sanitize any SVG before rendering it, and avoid broad kill/network troubleshooting commands unless you have verified the exact target.

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

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:1417
Finding

Arbitrary JavaScript Evaluation Through Content Expressions

Content
View full analysis
{ const val = vars[name]; if (val === undefined) { console.warn(`⚠️ 未知变量: $${name}`); return 0; } return val; }) .replace(/π/g, 'Math.PI'); // 使用 Function 构造函数(比 eval 稍安全) try { const fn = new Function('return ' + expr); return fn(); } catch (e) { console.warn(`⚠️ 表达式解析失败: ${expr}`); return 0; } } return value; } ``` ### Technical Analysis The documented implementation builds JavaScript source code from values originating in `content.json` and evaluates it with the `Function` constructor. Variable substitution does not constrain the rest of the expression to arithmetic syntax. Any JavaScript syntax surrounding a `$variable` reference remains intact and is compiled. The `Function` constructor is not a safe alternative to `eval`; both provide dynamic code execution. The documentation incorrectly labels this implementation as safe, making it likely that generated projects will adopt the vulnerable pattern. The code executes in the Remotion Chromium rendering context. It does not, by itself, demonstrate direct operating-system shell execution, but it can execute arbitrary browser-context JavaScript with the capabilities available to rendered project code. ### Attack Path 1. An attacker supplies or modifies a project’s `scripts/content.json`, such as through a shared video template or imported content package. 2. The attacker places a JavaScript expre ...[truncated 1074 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/render.mjs:54
Finding

Chromium Web Security Disabled During Video Rendering

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
references/setup.md:6
Finding

Mutable and Unpinned Third-Party Dependencies Are Executed During Setup

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (24)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- [ ] 复制布局组件库 `components/layouts.js` 到 `src/components/`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- [ ] 复制布局组件库 `components/layouts.js` 到 `src/components/`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- [ ] 复制布局组件库 `components/layouts.js` 到 `src/components/`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
> - 使用 `config.js` 统一参数管理

Unvalidated Output Injection

High
Category
Output Handling
Confidence
96% confidence
Finding

The example injects SVG/HTML content directly with dangerouslySetInnerHTML={{ __html: svg }} after loading formula output from JSON. If an attacker can influence the SVG payload—via formula source, a compromised rendering step, or tampered JSON—they may inject active HTML/SVG constructs, leading to XSS-like script execution in preview UIs or unsafe renderer behavior depending on the environment.

Content

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

md
opacity: Math.min(1, frame / 10),
      transform: `scale(${0.85 + progress * 0.15})`,
    }}
    dangerouslySetInnerHTML={{ __html: svg }}
  />
);

Unvalidated Output Injection

High
Category
Output Handling
Confidence
95% confidence
Finding

This second example again inserts raw SVG markup via dangerouslySetInnerHTML, here after string manipulation of width/height attributes. The transformation does not sanitize the payload, so any malicious markup already present in scaledSvg is preserved and rendered, creating the same injection risk in environments that display or process the resulting DOM.

Content

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

} );

```

支持的 LaTeX 语法

Ae4

Medium
Category
analysis-evasion
Confidence
80% confidence
Finding

Suspicious Unicode normalization or mixed-script content

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This markdown file contains core instructional content in Chinese, beginning with the main principles section, while the skill description does not state that the skill is region-specific or limited to Chinese-speaking users. Under the language/locale policy, forcing a specific language without user opt-in or justification is a natural-language policy violation.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The documentation explicitly presents a resolveValue design that builds an expression string from content values and executes it with new Function('return ' + expr). If content.json or other upstream content is attacker-controlled, this becomes arbitrary code execution in the Node.js generation pipeline, and the skill context makes it more dangerous because it encourages automated processing of user-authored video/script content.

Content

No source excerpt is available for this finding.

Ae4

Medium
Category
analysis-evasion
Confidence
80% confidence
Finding

Suspicious Unicode normalization or mixed-script content

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

This file contains user-visible strings such as "圆的面积" and "圆的面积公式" and sets the font family to "Noto Sans CJK SC", which together force a specific language/locale experience. The policy requires flagging language or locale constraints when they are imposed without user opt-in or documented justification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

This file contains natural-language descriptions in Chinese and repeatedly hard-codes the Chinese-specific font family "Noto Serif CJK SC" across components. Under the policy, forcing a specific language/locale without opt-in can be a violation when no alternative or justification is provided.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

This markdown file contains user-facing instructions exclusively in Chinese, and there is no indication that the skill is region-specific or that users can opt into another language. Under the stated policy, forcing a specific language without user choice is a natural-language policy violation.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
90% confidence
Finding

The documentation instructs users to execute npx create-video@latest, which pulls and runs remote code at install time and always tracks the newest release rather than a reviewed, fixed version. If the upstream package or its dependency chain is compromised, users following the setup guide could execute attacker-controlled code on their machines.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
71% confidence
Finding

The guide suggests npx remotion studio src/index.ts, which executes a package via npx without pinning an explicit version in the command. Although this is somewhat mitigated if the project already has local dependencies installed, unpinned npx usage can still resolve unexpected versions or fetch code from the registry in some environments.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

This markdown file contains user-facing instructional content exclusively in Chinese, and there is no indication that the skill is region-specific or that users may opt into this locale. Per the policy, forcing a specific language without user choice can be a natural-language policy violation.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The skill is described as generating educational videos with Remotion/React templates, but this file also provides operational shell commands to kill processes, modify IPv6 loopback configuration, and change executable permissions. Those host-administration capabilities are not justified by the stated purpose of a video-generation skill and extend beyond normal templating guidance.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The troubleshooting guide recommends pkill -f chrome-headless, which can terminate processes based on a broad pattern match without warning the user to verify targets first. In operational environments this may kill unrelated browser/rendering jobs, disrupt other users or tasks, and cause loss of unsaved work.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The document advises kill -9 <PID> as the default remediation after finding a listening process, but SIGKILL forcefully terminates a process without cleanup and no warning is provided about impact or safer alternatives. This can corrupt temporary state, interrupt legitimate services, and create avoidable data loss or service disruption if the wrong PID is chosen.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The script renders Remotion content with Chromium launched using disableWebSecurity: true, which disables important browser protections such as same-origin restrictions. If any composition, asset URL, or embedded page content is influenced by untrusted input, this can enable cross-origin data access or unintended network interactions during rendering. In a video-generation skill, this capability is not clearly necessary and increases risk without a strong justification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This JavaScript file contains user-facing documentation and console messages entirely in Chinese, such as the usage instructions and error output. The file does not offer an alternative language or indicate that the skill is intentionally limited to a Chinese-speaking or region-specific context, which creates a language-policy concern.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

This JavaScript file contains natural-language instructions and runtime console messages entirely in Chinese, including the usage guide and error/output text. Under the language/locale policy, forcing a specific language without opt-in or documented regional justification is a policy concern.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
98% confidence
Finding

This troubleshooting guide forces a specific language for all users and does not indicate that the skill is region-specific or provide an alternative language option. That is a natural-language locale policy concern under the rule for language/locale constraints without user opt-in.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The file contains user-facing natural-language comments entirely in Chinese, such as the configuration guidance and browser/port notes. This imposes a specific language on maintainers or users of the skill without any opt-in or documented locale constraint, which matches the language/locale policy violation criteria.

Content

No source excerpt is available for this finding.