Back to skill

Security audit

Excel Expert Free

Security checks for vulnerabilities and agentic risk

Overview

This spreadsheet advice skill is not malicious, but it asks for broad write and command-execution authority without clear limits and has mismatched activation instructions.

Review before installing. This skill appears to be a spreadsheet assistant rather than malware, but only use it in an environment where write and command execution are constrained or require confirmation. Be cautious with real workbooks, database connection details, and any request that would create, overwrite, export, convert, or execute commands until the publisher narrows the permissions and fixes the incorrect trigger instructions.

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

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:24
Finding

Excessive Filesystem and Command-Execution Permissions

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:24 and SKILL.md:222-223
Vulnerability Type: Excessive tool permissions that violate least-privilege principles
Risk Level: Medium

Vulnerable Configuration

yaml
tools: ["read", "write", "exec"]

The skill later confirms that command execution may be used:

markdown
- **Availability classification**: MD+EXEC (pure Markdown instructions; some functions require exec command-line execution capability)
- **Description**: Markdown-based AI Skill driven by natural-language instructions to produce spreadsheet solutions; users can copy and paste the output into office software

Technical Analysis

The skill principally operates as a Markdown-based spreadsheet advisor. Its documented functions are generating formulas, pivot-table configurations, data-cleaning procedures, and limited automation guidance. These advisory functions do not establish a clear requirement for unrestricted filesystem writes or arbitrary command execution.

Nevertheless, the metadata grants write and exec capabilities in addition to read. No command allowlist, path restriction, argument validation policy, execution sandbox, or user-confirmation boundary is defined. The generic parameter descriptions also state that the skill supports create, export, save, conversion, and import operations without specifying how execution inputs are constrained.

This configuration breaks the principle of least privilege. If untrusted spreadsheet content, a crafted user request, or model-generated instructions are interpreted as operational commands, the agent could invoke capabilities that are substantially broader than those needed to provide spreadsheet advice.

The reviewed project contains no executable scripts or direct malicious command payloads. Therefore, the issue is excessive capability exposure rather than evidence that the skill intentionally performs malicious execution.

...[truncated 1639 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove write and exec from the declared tools. Retain only read if inspection of user-provided spreadsheet files is genuinely required:

    yaml
    tools: ["read"]
    
  2. Prefer producing formulas, configuration instructions, and cleaning procedures as text rather than executing commands or modifying files.

  3. If file generation is an essential feature, expose a narrowly scoped export operation instead of unrestricted filesystem writing. Restrict it to:

    • A dedicated output directory
    • Explicitly supported spreadsheet file extensions
    • Newly created files rather than arbitrary overwrites
    • Canonicalized paths that cannot escape the output directory
  4. If command execution is indispensable, define:

    • An explicit allowlist of executables and subcommands
    • Fixed argument schemas with strict validation
    • Prohibition of shell interpretation and command concatenation
    • Rejection of metacharacters and attacker-controlled executable paths
    • Resource, timeout, network, and working-directory restrictions
    • Mandatory user confirmation showing the exact command before execution
  5. Treat spreadsheet cells, filenames, formulas, imported data, and user-provided parameters as untrusted input. They must never be copied directly into shell commands.

  6. Update the documentation to identify the exact operations requiring elevated capabilities and ensure each operation requests permission only when it is invoked.

Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • 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
Findings (7)

Intent-Code Divergence

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The trigger conditions tell the agent to use this spreadsheet skill for design creation, UI design, posters, and brand visuals, which are unrelated to the skill's stated purpose. Incorrect activation criteria can route unrelated user requests into a toolset that includes write and exec permissions, causing inappropriate invocation and increasing the chance of unsafe actions in the wrong context.

Content

No source excerpt is available for this finding.

Vague Triggers

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The activation description is vague and contradictory to the actual spreadsheet function of the skill, making improper skill selection more likely. In an agent environment, bad routing is a security concern because a mismatched skill with execution or file-modification privileges may be invoked on unrelated requests without informed user intent.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The manifest declares exec capability, but the skill text does not warn users about command execution risks or define boundaries for allowed commands. In an agent setting, unnecessary or poorly constrained exec access materially increases the blast radius from prompt confusion, misuse, or malicious downstream instructions.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The document says the automation module outputs macro code with error handling, but the free-version limitations later claim VBA macro generation is not provided. Conflicting statements about code-generation capability can mislead users and agents into invoking automation features they did not expect, especially in a skill that also advertises exec capability.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill is presented as a guidance-only Excel advisor, but its manifest and capability sections also claim write/exec-style operations such as create, modify, export, save, and command execution. This mismatch can cause an agent or user to trust the skill as low-risk advisory content while it is actually authorized for state-changing actions, increasing the chance of unintended file modification or command execution.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill claims support for export, save, modify, reset, import, and conversion-style actions that may alter user data, but it does not provide clear warnings, consent flow, or safeguards. Users may treat the skill as a harmless advisor while it performs state-changing operations on spreadsheets or related files.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
77% confidence
Finding

L005 使用中文显示名,且整个技能文档默认以中文说明和输出规范呈现,但未说明是否支持按用户偏好切换语言。按规则,若技能在自然语言层面默认强制单一语言且无用户选择,可能构成语言/locale 策略问题。

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.