Back to skill

Security audit

Tmux

Security checks for vulnerabilities and agentic risk

Overview

This skill transparently helps an agent inspect and control tmux sessions, with some expected risk if used on the wrong session.

Install only if you want an agent to inspect and control tmux sessions. Before sending keys, approving prompts, interrupting jobs, or killing a session, verify the target session/window/pane because the skill can affect active work and captured pane output may contain sensitive terminal content.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (2)

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The declared purpose emphasizes active remote control of tmux sessions and pane output scraping. This code chunk does neither: it validates arguments, selects tmux sockets, runs tmux list-sessions, optionally filters names, and formats the results. Its primary behavior is session discovery and listing, including scanning all sockets under a configured directory. That is materially different from controlling sessions or scraping pane contents, so the description does not accurately represent this code chunk.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The skill includes a destructive command to kill a tmux session without any warning, confirmation guidance, or safety guardrails. In this context, remote tmux control can affect active interactive sessions, terminate long-running jobs, and cause loss of unsaved terminal state or interruption of other agents/users sharing the same host.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.