Back to skill

Security audit

Process Manage

Security checks for vulnerabilities and agentic risk

Overview

This process-management skill does what it says, but it can immediately terminate processes, including multiple name-matched processes, without a confirmation step.

Install only if you trust the agent to inspect and terminate local processes. Use it from a least-privileged account, avoid administrator/root execution, prefer PID-based kill over kill_name, and check targets manually before any destructive request.

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)

T08 · Insecure Dependencies

Note
Location
scripts/main.py:8
Finding

Unpinned Third-Party Dependency Installation Guidance

Content
View full analysis
The displayed message is an English translation of the localized source string. The installation command is unchanged. ### Technical Analysis When `psutil` is unavailable, the program directs the user to execute `pip install psutil` without specifying a reviewed version, a package hash, a lockfile, or an explicitly trusted package index. The skill does not automatically execute the installation command, and `psutil` is a legitimate dependency consistent with the declared process-management functionality. Nevertheless, the recommended command resolves whichever package release and index response are current at installation time. Consequently, the dependency code installed by a user can differ from the code that existed when the skill was audited. Exploitation would require a separate supply-chain event, such as compromise of the relevant package distribution account, package repository, index configuration, or selected package release. ### Attack Path 1. The environment does not have `psutil` installed. 2. The skill prints the unpinned `pip install psutil` instruction. 3. A user follows that instruction in an environment whose package index or selected release has been compromised or improperly configured. 4. `pip` downloads and installs package-controlled code without a verified version and hash. 5. The package's installation or import-time code executes with the privileges of the user running `pip` or the skill. ### Impact Assessment A compromised dependency could execute arbitrary Python code under the installing or invoking user's account. The accessible scope could include that user's files, environment variables, proc ...[truncated 308 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/main.py:249
Finding

Overbroad Process Termination Through Substring Name Matching

Content
View full analysis
The word `protected` in the displayed snippet is an English translation of the localized source text; executable control flow is unchanged. ### Technical Analysis The `kill_name` operation interprets the supplied process name as a case-insensitive substring: ```python if name_lower in pname: ``` It does not require an exact executable name, a unique result, a minimum input length, or confirmation when multiple processes match. A short or common value can therefore select and terminate several unrelated processes. Setting `force` invokes `proc.kill()` immediately; otherwise, `proc.terminate()` is invoked without first presenting the selected targets for approval. The `is_protected` check reduces risk for a small denylist of known operating-system processes, but a name-based denylist is not a complete safety boundary. It does not cover every critical service or user application, and process names can vary by operating system, distribution, version, or configuration. ### Attack Path 1. An invoker submits a `kill_name` request with a broad name fra ...[truncated 1163 chars]
Remediation
View remediation
Vulnerability Patterns
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (7)

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

声明描述过于狭窄,只提到“查看进程列表、关闭指定进程”,但实际代码还提供 find、info、kill_name 等额外能力。其中 info 会访问并暴露较多进程细节,kill_name 会按名称批量终止多个进程,这些都属于实质性功能扩展,而非单纯实现细节。核心领域仍是进程管理,平台支持也与声明一致,但描述未准确覆盖实际能力,因此应判定为存在描述与行为不完全一致的 mismatch。

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The module description and all user-facing strings are written in Chinese, indicating the skill is designed to communicate in a specific language without offering a language choice. This can violate language/locale policy when no opt-in or documented regional constraint is provided.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill exposes substantially more process intelligence than its description advertises, including executable paths, command lines, working directories, parent/child relationships, and connection counts. This can reveal sensitive host context, secrets embedded in command lines, filesystem layout, and security tooling/process relationships, which increases reconnaissance value for an attacker or over-privileged agent use.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill exposes process termination, including forced kill and bulk kill-by-name, with no confirmation, dry-run, or safety interlock. In an agent setting this is dangerous because a mistaken tool call, prompt injection, or ambiguous name can immediately disrupt critical applications or business workloads, even if some system processes are blocklisted.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The manifest suggests terminating a specified process, but the code supports bulk termination by partial name match, which can kill multiple unintended processes at once. This creates a denial-of-service risk and makes destructive behavior easier to trigger accidentally or through ambiguous input, especially on systems with many similarly named processes.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Low
Category
Not specified by scanner
Confidence
86% confidence
Finding

The manifest description at L03 says the skill supports Windows and Linux, but the skill documentation later states platform support includes Windows, Linux, and macOS at L62. This creates a semantic mismatch in the claimed behavior/scope of the skill, because users reading the manifest would understand a narrower supported platform set than the documentation advertises.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
80% confidence
Finding

The process_info function returns executable path, command line, working directory, username, and connection counts, which may expose sensitive local system or user-context information. The file does not include any warning, disclosure, or documentation indicating that process inspection may reveal private or security-relevant data.

Content

No source excerpt is available for this finding.