Back to skill

Security audit

desktop-control-win

Security checks for vulnerabilities and agentic risk

Overview

This skill legitimately automates Windows desktop control, but it exposes powerful screen, clipboard, process, input, and VSCode extension actions without enough safeguards.

Install only if you intentionally want an agent to control your Windows desktop. Treat screenshot, clipboard-read, process-kill, keyboard/mouse input, VSCode command, and extension-install actions as sensitive; require explicit per-action approval and avoid running it elevated unless you fully trust the task and artifact source.

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

Warning
Location
SKILL.md:27
Finding

PowerShell Execution Policy Is Systematically Bypassed

Content
View full analysis
.ps1" -Action [params] ``` The error-handling guidance also explicitly recommends the bypass: ```markdown | `Script execution policy` | PowerShell execution restricted | Use `-ExecutionPolicy Bypass` flag | ``` The same flag is included throughout the documented invocation examples. ### Technical Analysis `-ExecutionPolicy Bypass` disables PowerShell execution-policy enforcement for the launched process. Consequently, the documented execution method does not apply policy warnings or signature requirements that might otherwise prevent an unauthorized, unsigned, or modified script from running. This does not independently grant elevated privileges or let an unprivileged attacker overwrite protected files. Exploitation requires an attacker, compromised process, or supply-chain actor to alter the Skill scripts or influence the referenced script location. Once that precondition exists, the bypass removes an execution-control layer that could otherwise detect or block the modified script. The concern is amplified because the Skill exposes sensitive desktop capabilities, including process termination, application launch, keyboard and mouse injection, screenshots, and clipboard access. ### Attack Path 1. An attacker or compromised process obtains write access to the Skill directory or replaces one of the referenced PowerShell scripts during installation or update. 2. The Agent follows the documented command and invokes the script with `-ExecutionPolicy Bypass`. 3. PowerShell runs the altered or unsigned script without applying the host's normal execution-policy restrictions. 4. The substituted script executes with the privileges of th ...[truncated 697 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
scripts/vscode-control.ps1:164
Finding

Unvalidated and Forced Installation of Caller-Controlled VSCode Extensions

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (12)

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

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

md
---
name: desktop-control-win
version: 1.0.0
description: "Control Windows desktop applications �� launch/close/focus/resize/move windows, simulate keyboard..."

Missing User Warnings

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The manifest advertises sensitive capabilities including clipboard reading, simulated keyboard/mouse input, process management, window control, VSCode control, and screen information capture without any explicit warning about privacy, safety, or the need for clear user confirmation. This omission is dangerous because these capabilities can expose sensitive data, interfere with active user sessions, or perform unintended actions on behalf of the user if the skill is invoked without strong transparency and consent expectations.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The run-command path focuses a VSCode window, opens the command palette, types attacker-controlled command text, and presses Enter using SendKeys. This creates a UI-injection primitive that can execute arbitrary VSCode commands in the user's session, potentially opening terminals, running tasks, invoking extensions, changing settings, or triggering workspace actions without meaningful validation.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The skill explicitly supports taking full-screen and window screenshots but does not warn that screenshots may capture sensitive information such as credentials, private messages, tokens, or unrelated application data visible on screen. In an agent-executed desktop-control context, this increases the risk of unintentional privacy exposure or data exfiltration because the capability is broad and easy to invoke.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The documented clipboard-get action allows reading arbitrary clipboard contents without any privacy warning or consent guidance. Clipboard data often contains passwords, API keys, personal data, or copied secrets, so exposing this capability without clear restrictions is dangerous in a desktop automation skill.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The description is extremely broad and includes generic triggers like interacting with running programs, switching windows, typing text, pressing shortcuts, opening files, and managing processes. Because the skill can simulate input, manipulate applications, and access desktop context, ambiguous invocation language increases the chance it is selected for routine requests where the user may not expect powerful desktop control actions to occur.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The kill action stops processes, including with -Force, which is a destructive and potentially irreversible system operation. Although the script prints output after termination, it provides no confirmation prompt or prior warning before killing one or multiple matching processes.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The script can capture the full primary screen or a targeted window and save it to disk without any consent, visibility controls, or sensitivity checks. Screenshots may contain credentials, messages, internal documents, or other highly sensitive information, making this a real privacy and data-exposure risk in an agent skill context.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

Reading clipboard text exposes whatever the user most recently copied, which commonly includes passwords, tokens, API keys, personal data, or proprietary content. In an agent setting, returning clipboard contents directly to output creates a straightforward exfiltration path for sensitive local data.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The script exposes software-management capability by allowing arbitrary VSCode extension installation and removal via code --install-extension and --uninstall-extension. In an agent skill context, this is dangerous because extensions execute code and can alter the editor, workspace behavior, telemetry, and trust boundaries, making this an indirect code execution and persistence mechanism if an attacker can influence ExtensionId or trigger the action.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
86% confidence
Finding

Writing to the clipboard can overwrite user data unexpectedly and may facilitate social engineering or command injection workflows by replacing clipboard contents with attacker-chosen text. Although less severe than data theft, it can disrupt user activity and be abused to trick users into pasting dangerous commands or secrets elsewhere.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The script collects and outputs host name, OS version, memory details, uptime, username, and display information, all of which can aid fingerprinting and targeting of the local system. While common administrative data, exposing it through an agent skill without clear disclosure increases reconnaissance risk and may leak sensitive environmental context.

Content

No source excerpt is available for this finding.