Back to skill

Security audit

CSV工具箱 专业版

Security checks for vulnerabilities and agentic risk

Overview

This CSV skill is not plainly malicious, but it needs review because it combines command/file authority with unclear API and generic LLM workflow claims outside its CSV purpose.

Use this only if you are comfortable granting an agent permission to read and write local data files and run CSV-related shell commands. Keep it confined to a workspace, avoid giving it secrets or API keys, approve any file overwrite or package install explicitly, and prefer pinned dependency versions in a virtual environment.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:292
Finding

Unpinned Third-Party Dependency Installation

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 292–296; related dependency guidance at lines 329–330 and 377
Vulnerability Type: Unpinned and mutable third-party dependencies
Risk Level: Medium

The skill instructs the Agent to install third-party Python packages without exact version constraints, integrity hashes, a lockfile, or an explicitly trusted package index.

bash
2. Install the professional-edition dependencies (optional, for advanced format conversion):

pip install pyarrow pandas

Related dependency declarations specify only minimum versions:

text
| pyarrow | Third-party library | Optional | `pip install pyarrow` | 10.0+ |
| pandas | Third-party library | Optional | `pip install pandas` | 1.5+ |

The troubleshooting guidance repeats the mutable installation command:

text
| Parquet conversion fails | pyarrow is missing | `pip install pyarrow` | P2 |

Technical Analysis

Running pip install pyarrow pandas resolves package versions dynamically using the Python package indexes configured in the execution environment. The documentation does not pin reviewed versions, verify distribution hashes, provide a lockfile, or require a trusted index.

Consequently, the code installed during one invocation may differ from the code installed during a later invocation. Exploitation would require compromise or manipulation of the configured package source, dependency resolution process, or a future package release. Python package installation can execute package build logic, while imported dependencies execute with the privileges of the Agent process.

No evidence was found that this skill intentionally uses a typosquatted package, malicious repository, remote script, or embedded payload. The risk arises from mutable supply-chain inputs rather than a confirmed malicious dependency.

Attack Path

  1. A user invokes the skill and requests functionality requiring pyarrow ...[truncated 1239 chars]
Remediation
View remediation

Remediation Suggestions

  1. Pin dependencies to exact, reviewed versions instead of allowing pip to select the latest release:
    text
    pyarrow==REVIEWED_VERSION
    pandas==REVIEWED_VERSION
    
  2. Generate a reviewed lockfile containing cryptographic hashes and install with hash verification:
    bash
    python -m pip install --require-hashes -r requirements.lock
    
  3. Configure pip to use an organization-approved package index or an internally controlled mirror.
  4. Prefer prebuilt, verified wheels and disable source builds where operationally feasible.
  5. Run dependency installation and CSV processing in an isolated environment with minimal filesystem, network, and credential access.
  6. Add automated dependency vulnerability and provenance checks to the release process.
  7. Keep the setup and troubleshooting examples consistent with the pinned, hash-verified installation procedure.
Vulnerability Patterns
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • 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
Findings (5)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
87% confidence
Finding

The display name, summaries, and primary description are presented in Chinese, and the rest of the skill instructions continue in Chinese, with no indication that users may choose another language. Under the policy, forcing a specific language without user opt-in is a natural-language policy concern unless the locale restriction is clearly documented and justified.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The file claims broad API/service integration despite the manifest presenting a CSV toolkit and elsewhere stating no extra API key is needed. This inconsistency can mislead an agent into handling external-service workflows or secrets beyond the intended local CSV scope, increasing the attack surface and creating ambiguity about network access and credential use.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill documents command execution and file-writing behavior but does not prominently warn that it may run system commands or modify local files. For a skill with exec and write permissions, lack of explicit user-facing warning undermines informed consent and increases the risk of accidental file modification, destructive operations, or execution on sensitive paths.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The documentation broadens the skill from a CSV-processing tool into generic LLM-driven content generation, which breaks the principle of least functionality and can cause the agent to use this skill outside its declared purpose. In an MD+EXEC skill, scope drift is security-relevant because users and orchestration layers may trust the manifest while the body encourages unrelated behaviors that could trigger command execution or file operations in unintended workflows.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The feature list advertises generic external-service API integration rather than CSV-focused local processing, again expanding the operational scope beyond what users would expect from this skill. In combination with exec and write capabilities, this mismatch can enable unsafe invocation patterns or data exfiltration paths not justified by the declared purpose.

Content

No source excerpt is available for this finding.