Back to skill

Security audit

财报可视化分析

Security checks for vulnerabilities and agentic risk

Overview

This financial-report visualization skill is not clearly malicious, but it asks for broad command execution and external financial API use without enough scoping or user-control detail.

Review this skill carefully before installing. Use it only for financial-report visualization tasks, avoid giving it unrestricted local execution unless your agent platform can sandbox or approve commands, and configure any Tushare or other financial API keys with least privilege. Do not provide proprietary financial data unless you are comfortable with the relevant external data-service workflow.

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

Unnecessary Unrestricted Command Execution Capability

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 8–10
Vulnerability Type: Excessive tool permissions violating least privilege
Risk Level: Medium

Vulnerable Code:

yaml
tools:
  - read
  - exec

Technical Analysis

The skill declares access to the general-purpose exec tool, but the project contains only a documentation file and defines no executable workflow, command, script, or other operation that legitimately requires shell access. Granting command-execution capability therefore exceeds the minimum privileges needed by the documented financial analysis and visualization functionality.

Although no malicious command or direct exploitation instruction is present, an agent that grants this capability could use it while interpreting later untrusted financial data or user-controlled task content. If such content influences agent behavior, it could cause local commands to be executed with the privileges of the hosting agent process.

Attack Path

  1. The skill is loaded by an agent platform.
  2. The platform grants the declared exec capability.
  3. The agent subsequently processes attacker-controlled financial data, document content, or task instructions.
  4. Malicious content persuades or induces the agent to invoke exec.
  5. Commands run in the host environment under the agent process's operating-system permissions.

This is a potential exploitation path arising from excessive privilege. The audited project itself does not contain a command payload or an instruction that directly triggers execution.

Impact Assessment

Successful exploitation could permit command execution within the security context of the agent process. Depending on host sandboxing and operating-system permissions, this may expose accessible local files, environment variables, credentials, network resources, or allow modification of files available to the agent. The scope is limited by the platform's sandbox, to ...[truncated 62 chars]

Remediation
View remediation

Remediation Suggestions

  • Remove exec from the declared tool list because the current documentation-only skill does not require command execution.
  • Retain only the minimum tool permissions necessary for the documented functionality, such as read-only access where justified.
  • If command execution is added in a future implementation, replace unrestricted shell access with narrowly scoped operations.
  • Enforce command and executable allowlists, strict argument validation, fixed working directories, execution timeouts, resource limits, and sandboxing.
  • Run the agent under a dedicated low-privilege account with restricted filesystem and network access.
  • Prevent untrusted financial data and document text from being treated as executable instructions.
  • Require explicit user approval for any security-sensitive execution and maintain auditable logs of invoked commands and arguments.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • 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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (5)

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The manifest description explicitly says the skill is '不适用于实时流数据处理' at L007. Later documentation lists '实时数据同步' using WebSocket with sub-0.1s latency at L286, which directly contradicts that stated limitation rather than merely adding detail.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The invocation guidance is extremely broad for generic data analysis, reporting, and visualization tasks, which can cause the agent to route unrelated or sensitive workloads into a skill that requires external financial data APIs and has exec capability enabled. In agent ecosystems, over-broad matching increases the chance of unintended tool use, data exposure to third-party services, and execution in contexts the user did not expect.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The description explicitly states '支持中文交互' and the manifest display name and content are entirely Chinese, but there is no indication that users may choose another language or that the locale restriction is required for a region-specific compliance reason. This can constitute a language/locale policy issue when a skill implicitly enforces one language without opt-in.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
85% confidence
Finding

The skill documents use of external financial data sources and API key setup, but does not prominently warn users that requests may involve third-party services and credentials. In an agent setting, this omission can lead users to unknowingly provide sensitive identifiers, proprietary financial data, or credentials to workflows that cross trust boundaries.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The '安全性优化' section says all external repository references were removed at L256-L257, yet the same file still references external services and libraries such as Tushare API and D3.js elsewhere. This is an active documentation contradiction about what has been removed from the skill materials.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.