Back to skill

Security audit

Excel大师

Security checks for vulnerabilities and agentic risk

Overview

This skill is mostly an Excel-processing guide, but it mixes local file automation with unclear API/OAuth behavior, unpinned package installs, write access, and unsafe privilege guidance.

Review this skill before installing. Use it only for user-selected spreadsheet files, prefer new output filenames or backups, avoid online/OAuth features unless you have separately confirmed the data flow, install dependencies in an isolated environment with pinned versions, and do not run the agent or pip as administrator just to process Excel files.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
Findings (2)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:307
Finding

Unpinned Third-Party Dependency Installation

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:307 and SKILL.md:342-345
Vulnerability Type: Unpinned and mutable third-party dependencies
Risk Level: Medium

Vulnerable Snippet

bash
pip install openpyxl pandas xlrd formulas

The dependency table also provides the following installation commands without version or integrity constraints:

text
openpyxl | Required | pip install openpyxl
pandas   | Required | pip install pandas
xlrd     | Optional | pip install xlrd
formulas | Optional | pip install formulas

Technical Analysis

The skill directs the agent to install third-party Python packages from the active pip package index without specifying reviewed versions, cryptographic hashes, a lock file, or an explicitly trusted repository. Package installation can execute package build and installation logic with the privileges of the invoking process.

Because the requested package versions are mutable, an installation performed at a later time may resolve to code that differs from the code originally reviewed. The risk is greater in environments with a compromised package index, an unsafe pip mirror, altered dependency-resolution settings, or a malicious transitive dependency.

The listed package names are conventional, and the audited file does not identify an intentionally malicious package or repository. This finding concerns the unsafe dependency acquisition process rather than evidence that the named packages are currently malicious.

Attack Path

  1. A user invokes the skill in an environment where one or more dependencies are not installed.
  2. The agent follows the documented pip install instruction.
  3. Pip resolves unpinned packages and their transitive dependencies through the environment's configured package index.
  4. An attacker who has compromised a resolved package, dependency, index, or mirror supplies attacker-controlled package content.
  5. Package build or ins ...[truncated 765 chars]
Remediation
View remediation

Remediation Suggestions

  1. Replace unconstrained installation commands with a committed dependency manifest containing reviewed, exact versions.
  2. Generate and verify cryptographic hashes for every direct and transitive dependency, and install with pip install --require-hashes.
  3. Use a reproducible lock file produced by a dependency-management tool.
  4. Explicitly use an approved package index and prevent fallback to untrusted or user-controlled mirrors.
  5. Install dependencies inside an isolated virtual environment or disposable sandbox under an unprivileged account.
  6. Scan pinned packages and transitive dependencies for known vulnerabilities before release.
  7. Review dependency updates before changing pins rather than automatically accepting the latest release.
  8. Avoid installing packages dynamically during ordinary skill execution; provision the reviewed environment separately.

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:489
Finding

Unsafe Recommendation to Run with Administrator Privileges

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:489
Vulnerability Type: Violation of least privilege
Risk Level: Medium

Vulnerable Snippet

The complete troubleshooting row, rendered in English, states:

text
Permission denied | The current user lacks read/write permission | Check file permissions and run as administrator

Technical Analysis

Spreadsheet processing normally requires access only to designated input files, output files, and a narrowly scoped working directory. Recommending that the entire process be rerun as an administrator grants substantially broader authority than the task legitimately requires.

This guidance does not distinguish between correcting ownership or access-control settings for a specific file and elevating the complete agent, Python interpreter, dependency installer, or processing workflow. Elevated execution magnifies the consequences of compromised dependencies, malicious spreadsheet-processing components, command mistakes, and unsafe file paths.

No privilege-escalation exploit or automated elevation command is embedded in the project. The issue is unsafe operational guidance that encourages users to cross a least-privilege boundary.

Attack Path

  1. Spreadsheet processing fails because an input or output path is not writable by the current user.
  2. The user or agent follows the troubleshooting guidance and reruns the workflow with administrator privileges.
  3. The elevated workflow installs or imports dependencies and processes attacker-influenced files or paths.
  4. A compromised dependency, vulnerable processing component, or erroneous operation executes with elevated authority.
  5. The affected component can access or modify resources that were unavailable to the original unprivileged process.

Impact Assessment

The obtained scope would equal the privileges granted to the elevated process. On a typical system, this may include access to system-wide ...[truncated 334 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove the recommendation to run the workflow as an administrator.
  2. Instruct users to verify the specific input and output paths and correct only the necessary ownership or access-control entries.
  3. Require execution under a dedicated, unprivileged account with access limited to a designated workspace.
  4. Use a sandbox or container with read-only input mounts and a narrowly scoped writable output directory.
  5. Explicitly prohibit elevated package installation and spreadsheet processing.
  6. When a protected destination is genuinely required, write output to an unprivileged staging directory and use a separately reviewed, narrowly scoped deployment step.
  7. Log permission failures and report the precise inaccessible path instead of recommending broad privilege escalation.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (7)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The description says the skill should be used whenever the user needs file processing, document conversion, format conversion, or content extraction. These are very broad, everyday requests that could match many unrelated situations, and the file does not provide clear trigger boundaries or exclusion examples beyond encrypted-file cracking.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The description states '支持中文交互,无需复杂配置即开即用,' and the document repeatedly positions the skill as Chinese-interaction only without presenting this as an optional preference. This is a natural-language locale constraint that may violate language-choice policy when no opt-in or justification is provided.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The documentation instructs writing output files and appending/saving to existing workbooks without prominent safeguards against overwriting or modifying original files. In a batch-processing skill with write and exec capabilities, this can lead to accidental destruction or silent corruption of user data at scale.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill documentation inconsistently states that it is local/script-based while also referencing online Excel access via OAuth tokens and API-style connectivity. This ambiguity can mislead users and agents about whether data may leave the local environment, increasing the risk of unintended external transmission of spreadsheet contents or credentials.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The skill references accessing online Excel sources with OAuth tokens but does not provide a clear user-facing privacy notice about transmitting spreadsheet data to external services. Because spreadsheets often contain sensitive business or personal data, users may unknowingly authorize exfiltration to third-party platforms.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The file claims both 'MD+EXEC' and later 'MD(纯Markdown指令)', which are mutually inconsistent execution models. In an agent setting, this can cause unsafe assumptions about whether arbitrary local command execution is permitted, leading to over-privileged use of the skill or accidental execution of file-modifying commands.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The manifest presents a local batch spreadsheet-processing skill, but later sections expand it into API-connected behavior with keys, tokens, connectivity errors, and remote interaction patterns not justified by the core description. This broadening increases attack surface by normalizing external service use and credential handling where users may expect only local file processing.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.