Back to skill

Security audit

财务报告分析器

Security checks for vulnerabilities and agentic risk

Overview

The skill is a finance report analyzer with no embedded payload, but its broad command/write authority and unsafe privilege guidance need review before installation.

Review this skill before installing. It does not contain malicious code or persistence, but it grants broad execution and write capability for financial document handling, lacks the referenced analyzer script, and includes unsafe administrator-run troubleshooting advice. Use only in a restricted workspace with non-sensitive test files unless the publisher narrows the commands and removes the privilege escalation guidance.

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:229
Finding

Unsafe Recommendation to Run the Workflow with Administrator Privileges

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, line 229
Vulnerability Type: Unnecessary privilege escalation through unsafe troubleshooting guidance
Risk Level: Medium

Source excerpt translated into English:

markdown
| Insufficient permissions | The current user lacks read/write permissions | Check file permissions and run as administrator |

Technical Analysis

The troubleshooting guidance recommends running the workflow as an administrator whenever the current account lacks file read or write permission. This grants the complete agent workflow, document parsers, report generator, and any future implementation substantially more authority than is legitimately required to process a user-selected financial report.

Administrator execution is not an appropriate general solution to a filesystem permission error. The workflow should instead identify the denied path and use input and output directories owned by the current user. This recommendation also directly conflicts with the least-privilege instruction at SKILL.md:246, which advises against running as root or administrator.

The package contains no executable analyzer script, so the audit did not confirm that privilege escalation is performed automatically or that malicious code currently exploits the elevated context. Exploitation depends on a user following the documented recommendation while running an eventual or separately obtained analyzer implementation.

Attack Path

  1. An attacker provides a crafted financial document, malicious parser input, or output path that causes a permission-denied error.
  2. The workflow reports insufficient filesystem permissions.
  3. The user follows the troubleshooting guidance at line 229 and reruns the agent or analyzer with administrator privileges.
  4. The analyzer and all document-processing dependencies execute in the elevated context.
  5. If any component contains malicious behavior or a document-par ...[truncated 881 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove the recommendation to run the workflow as an administrator.
  2. Report the exact input or output path for which access was denied.
  3. Require inputs and generated reports to reside in directories owned by the current user.
  4. Validate and canonicalize user-supplied paths before file access, and reject paths outside explicitly approved working directories.
  5. Grant only narrowly scoped filesystem permissions to the affected file or directory when access is genuinely required.
  6. Run PDF and spreadsheet parsing in a sandbox with restricted filesystem, process, and network access.
  7. Keep the agent and all analyzer subprocesses under a non-administrative account.
  8. Add an explicit failure mode instructing users to contact a system administrator rather than elevating the entire workflow.
  9. Reconcile the troubleshooting section with the least-privilege requirement at line 246.
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 (4)

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill is presented as a narrowly scoped finance report analyzer, yet it declares generic read/exec/write capabilities and an MD+execute operational model. That mismatch expands the execution surface beyond what users would reasonably expect, increasing the chance that untrusted file content or prompts could trigger unintended shell actions under the guise of report analysis.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The activation guidance is overly broad, telling the agent to use the skill whenever data analysis, reporting, statistical insight, or visualization is needed. That imprecise scope can cause the skill to be invoked in contexts far beyond finance-report analysis, unnecessarily exposing read/write/exec capabilities and increasing the chance of misuse.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
83% confidence
Finding

Natural-language policy checks apply to all file types. The description explicitly emphasizes Chinese interaction support, but does not present this as a user-selectable option or justify a locale restriction, which can amount to a language policy issue if the skill defaults behavior around a specific language without opt-in.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

Generic command execution is a powerful primitive that is not justified by the stated task of analyzing uploaded Excel/PDF files and generating reports. In an agent context, this can enable prompt-to-shell abuse, arbitrary local command execution, file exfiltration, or environment inspection if user-controlled inputs are ever incorporated into commands.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.