Back to skill

Security audit

terminal-screenshots

Security checks for vulnerabilities and agentic risk

Overview

This is a documentation-only skill for using VHS to create terminal screenshots and recordings, with disclosed install and demo commands but no hidden code or persistence.

Install only from package managers or container images you trust, approve sudo and Docker commands explicitly, and review any tape file before running it because VHS executes typed commands even when Hide prevents them from appearing in the recording.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (12)

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 · SKILL.md (reported line 44)May include surrounding context.

md
baseurl=https://repo.charm.sh/yum/
enabled=1
gpgcheck=1
gpgkey=https://repo.charm.sh/yum/gpg.key' | sudo tee /etc/yum.repos.d/charm.repo
sudo dnf install vhs ffmpeg
# Also install ttyd: https://github.com/tsl0922/ttyd/releases

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · README.md (reported line 10)May include surrounding context.

md
## What's This For?

When AI agents need to:
- Create terminal screenshots for documentation
- Record animated GIFs of CLI demos
- Generate video tutorials for command-line tools
- Produce consistent, reproducible terminal visuals

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · README.md (reported line 42)May include surrounding context.

md
brew install vhs

# Fedora/RHEL
sudo dnf install vhs ffmpeg

# Or use Docker
docker run --rm -v $PWD:/vhs ghcr.io/charmbracelet/vhs demo.tape

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

md
brew install vhs

# Fedora/RHEL
sudo dnf install vhs ffmpeg

# Or use Docker
docker run --rm -v $PWD:/vhs ghcr.io/charmbracelet/vhs demo.tape

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

md
brew install vhs

# Fedora/RHEL
sudo dnf install vhs ffmpeg

# Or use Docker
docker run --rm -v $PWD:/vhs ghcr.io/charmbracelet/vhs demo.tape

Rp1

Medium
Category
MCP Rug Pull
Confidence
75% confidence
Finding

Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
75% confidence
Finding

Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The statement that the agent will 'automatically use this skill' when creating screenshots or recordings describes broad, implicit activation criteria. In an agent framework, overly broad auto-invocation can cause the skill to run in contexts the user did not intend, increasing the chance of unnecessary command execution or unsafe chaining with other tools.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The documentation frames hidden setup/cleanup as a way to produce 'clean output' while including a hidden cleanup command that runs rm temp-files. Hiding destructive actions from the recording can normalize unsafe patterns and cause accidental deletion if readers copy the example without understanding what is being removed.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill explicitly recommends hidden cleanup with cd - && rm temp-files and gives no warning about data loss, path safety, or ensuring the target is disposable. Because the command is both destructive and hidden from the rendered output, users may copy it into real workflows and delete files unintentionally.

Content

No source excerpt is available for this finding.

Tool Parameter Abuse

Low
Category
Tool Misuse
Confidence
15% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · README.md (reported line 45)May include surrounding context.

sudo dnf install vhs ffmpeg

Or use Docker

docker run --rm -v $PWD:/vhs ghcr.io/charmbracelet/vhs demo.tape

text

## Documentation

Tool Parameter Abuse

Low
Category
Tool Misuse
Confidence
15% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

sudo dnf install vhs ffmpeg

Or use Docker

docker run --rm -v $PWD:/vhs ghcr.io/charmbracelet/vhs demo.tape

text

## Documentation

Static analysis

No suspicious patterns detected.