Back to skill

Security audit

System Commander

Security checks for vulnerabilities and agentic risk

Overview

This skill is a Linux command helper, but it can produce unsafe copy-paste commands that modify files or allow command injection if generated output is executed.

Review generated commands manually before running them, especially when prompts or filenames may come from someone else. Do not feed this skill's output directly into an executor, and require dry runs, backups, constrained paths, and explicit confirmation before file writes, batch renames, recursive edits, or package installs.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/translate.py:111
Finding

Command and Python Code Injection Through Unsanitized Path Interpolation

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (11)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The trigger patterns are broad enough to activate on many ordinary user requests, which can cause this skill to be selected in contexts where direct system-command generation is unsafe or inappropriate. In an agentic environment, overbroad activation increases the chance of producing shell commands for ambiguous tasks, including commands that touch files or system state without sufficient safety review.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The activation guidance uses vague criteria like 'system first' and 'minimize AI inference,' which favor command generation before safety or contextual validation. That ambiguity can cause the skill to activate for tasks that involve sensitive files, privileged operations, or security-relevant changes where human confirmation should come first.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill recommends in-place text replacement (sed -i) as a normal solution without a safety warning, backup advice, or confirmation step. That is dangerous because a copied command can irreversibly modify files, and in an automated or semi-automated agent setting this can lead to unintended data corruption at scale.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The batch rename examples include executable rename commands that can affect many files and are not easily reversible if naming collisions or pattern mistakes occur. Although a dry run is shown in one example, the skill lacks a broader safety rule requiring confirmation, backup strategy, or collision checks before bulk renames.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The multi-file in-place replacement examples combine file selection with sed -i, enabling bulk destructive edits across many matching files without explicit warnings. In context, this skill is designed to optimize system-level actions, so omission of safeguards is more dangerous because users may trust and paste commands that silently alter large sets of files.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill emits destructive commands that modify files in place without any user-facing warning, dry-run behavior, or confirmation requirement. In the context of an agent skill that converts natural language to commands, this increases the chance that a user or downstream automation will execute a harmful modification believing it to be a routine text-processing action.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill generates destructive file-modification commands such as sed -i and Python code that overwrites the target file in place, but it presents itself as a general task-to-command translator without safety gating. In an agent setting, this can cause unintended data loss or unauthorized modification if natural-language input is translated and later executed without explicit confirmation.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
80% confidence
Finding

The package installation examples modify system state and may require elevated privileges, but they are presented as routine prerequisites without warning. This is lower severity than file-destruction cases, yet it can still lead users to change environments unexpectedly, especially in production, containers, or restricted hosts.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

The module docstring states it translates natural language to optimal Linux/Python commands, which imposes a specific platform choice in natural-language behavior. The file does not offer user opt-in, alternative locales/platforms, or a documented reason for this constraint.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
83% confidence
Finding

For file type detection, the skill's Python output uses subprocess.run(['file', '{file}']) instead of a direct Python-only implementation. Given the stated purpose is to translate tasks into optimal Linux/Python commands for file and text processing, embedding subprocess orchestration inside the Python variant is an unjustified extra capability rather than a direct requirement.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.