Back to skill

Security audit

add narration to a video automatically

Security checks for vulnerabilities and agentic risk

Overview

This skill is coherent for creating narrated videos, but its bundled TTS script has a real command/code injection risk and sends narration text to an external TTS service.

Install only if you trust the local inputs passed to the scripts and are comfortable reviewing or fixing the TTS script first. Avoid using sensitive screen-recording content with the remote TTS path unless disclosure is acceptable, run dependencies in a virtual environment, and avoid output paths where silent overwrite would matter.

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
scripts/generate-tts.sh:19
Finding

Arbitrary Python Code Injection Through Shell Argument Interpolation

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
SKILL.md:91
Finding

Unpinned Third-Party Dependency Installation

Content
View full analysis
Remediation
View remediation
' ``` 2. Maintain a lock or requirements file that pins all transitive dependencies. 3. Generate and verify cryptographic hashes, for example with a requirements file installed using: ```bash python3 -m pip install --require-hashes -r requirements.txt ``` 4. Install dependencies in a dedicated virtual environment rather than into the system Python environment. 5. Use the official package index explicitly and review any organization-specific index or mirror configuration. 6. Regularly scan pinned dependencies for known vulnerabilities and update them through a controlled review process. 7. Avoid recommending installation with `sudo` or another privileged account. ]]>
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (5)

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The declared description presents a full workflow for turning a silent screen recording into a narrated video, including video analysis, script writing, speech synthesis, and video/audio muxing. The supplied code chunk implements only one sub-step of that workflow: converting prewritten text segments from JSON into MP3 files and concatenating them. While Edge neural TTS use is consistent with the description, the code does not process video, inspect frames, create scripts, or output a narrated video. This is therefore a material description-to-behavior mismatch for the supplied code chunk.

Content

No source excerpt is available for this finding.

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

Scanner excerpt · scripts/generate-tts.sh (reported line 54)May include surrounding context.

sh
echo "file 'silence.mp3'" >> "$CONCAT_FILE"
done
# Remove trailing silence entry
sed -i.bak '$ d' "$CONCAT_FILE" && rm -f "${CONCAT_FILE}.bak"

# Concatenate
ffmpeg -y -f concat -safe 0 -i "$CONCAT_FILE" -c:a libmp3lame -q:a 2 \

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The script sends narration text to Microsoft Edge TTS via the edge_tts library, which means potentially sensitive on-screen-derived content leaves the local environment. In a video narration skill, this is contextually important because screen recordings may contain confidential business data, credentials, or personal information, and the script provides no explicit warning, consent gate, or offline fallback at the point of transmission.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The script invokes ffmpeg with the -y flag, which forces overwriting of the output file without prompting. If the caller supplies an existing output path, or if the default generated name already exists, prior data can be silently destroyed. In this skill context the issue is operational rather than code-execution related, but it can still cause unintended loss of user files or artifacts.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
80% confidence
Finding

The script defaults to the voice value en-US-GuyNeural, which imposes a specific language/locale choice unless the caller overrides it manually. The file does not indicate that this locale default is optional by policy, offer an explicit language choice, or justify the locale restriction as region-specific.

Content

No source excerpt is available for this finding.