Back to skill

Security audit

AI财报分析

Security checks for vulnerabilities and agentic risk

Overview

The skill appears to be a finance-analysis helper, but it asks for command execution and describes external API and package-install workflows with unclear boundaries.

Review before installing. Use only in an isolated environment, avoid running its pip install command without pinned and reviewed dependencies, and do not provide API keys, portfolio data, or private financial records unless you are comfortable with the external data-source handling. Treat investment or risk outputs as decision support, not automated trading advice.

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

Unpinned Third-Party Dependency Installation

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:69 and SKILL.md:159
Vulnerability Type: Unpinned and unverifiable third-party dependencies
Risk Level: Medium

Complete Code Snippet:

markdown
| 依赖未安装 | 运行`pip install numpy pandas scikit-learn tensorflow` |

The same installation command is repeated later:

markdown
- 依赖安装命令:`pip install numpy pandas scikit-learn tensorflow`

Technical Analysis

The Skill instructs users or an executing agent to install four third-party Python packages without exact version constraints, cryptographic hashes, a lock file, or a trusted package-index configuration. The project also requests the exec tool, meaning these instructions may be carried out through a local code-execution channel.

Package versions and transitive dependency resolutions can change after the Skill has been reviewed. Installation behavior consequently depends on the package index and resolver state at execution time rather than on immutable, audited artifacts. This exposes the environment to compromised releases, malicious dependency substitution through a misconfigured index, and incompatible future versions. TensorFlow additionally introduces a large transitive dependency and native-code surface despite the project containing only documentation and no implementation demonstrating that this dependency is necessary.

Attack Path

  1. A user or agent loads the Skill and follows its dependency troubleshooting or setup instructions.
  2. The command pip install numpy pandas scikit-learn tensorflow is executed using the invoking environment and its configured Python package indexes.
  3. Pip resolves mutable, unpinned package versions and their transitive dependencies.
  4. If an index, package release, resolver configuration, or transitive dependency has been compromised, attacker-controlled package installation or import-time code runs locally.
  5. That code executes with the privileg ...[truncated 773 chars]
Remediation
View remediation

Remediation Suggestions

  1. Replace the inline pip command with a reviewed dependency manifest containing exact versions.
  2. Generate and commit a lock file that includes all transitive dependencies.
  3. Require cryptographic hashes, for example:
    bash
    python -m pip install --require-hashes -r requirements.txt
    
  4. Document and enforce an approved package index rather than inheriting an unknown environment configuration.
  5. Install dependencies in a dedicated, non-privileged virtual environment or isolated container.
  6. Remove TensorFlow and any other dependency that is not demonstrably required by an included implementation.
  7. Add dependency vulnerability and provenance checks to the release process.
  8. Remove the Skill's exec capability if it remains a pure Markdown Skill with no legitimate executable workflow.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • 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
Findings (8)

Vague Triggers

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

The activation text is extremely broad ('use when needing data analysis, report generation, statistical insights, data visualization'), which can cause the skill to be selected for many unrelated tasks. Because the manifest includes exec, broad routing significantly expands the situations in which command-capable functionality may be invoked, increasing misuse and data exposure risk.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The top-level description says the skill is not suitable for real-time stream processing, but later sections claim real-time alerts and sub-5-minute updates. This inconsistency can cause operators or upstream agents to use the skill outside its safe or tested operating bounds, leading to bad automation decisions or over-trust in time-sensitive contexts.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The description explicitly says '支持中文交互', presenting the skill as operating in Chinese, but it does not offer language selection or explain a justified locale restriction. Under the policy, forcing or presuming a specific language without user opt-in is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill can execute commands via the exec tool, but the user-facing description does not prominently warn about that capability. Hidden execution ability weakens informed consent and can lead users or orchestrators to supply sensitive inputs or approve actions they would have restricted if the execution surface were clearly disclosed.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The documentation references external financial data APIs and API key usage but does not clearly warn that user data or identifiers may be transmitted to third-party services. In finance-related workflows, omission of privacy and data-handling disclosures can cause accidental exposure of sensitive portfolio, company, or usage data.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The documentation presents the skill as potentially pure Markdown ('MD') while the manifest enables the exec tool, creating a misleading trust boundary for users and calling agents. A user may invoke the skill believing no code execution is possible, when in fact command execution is available, which increases the chance of unsafe invocation and privilege misuse.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The examples broaden the skill from financial report analysis into crypto monitoring, alerting, and export workflows, creating capability creep beyond the stated purpose. In an agent environment, overly broad examples can trigger inappropriate routing or permission use, especially when exec and external APIs are available.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
79% confidence
Finding

The repeated core-feature text again presents the skill as '提供中文交互', reinforcing a fixed-language interaction model without an explicit user choice. This compounds the locale-policy issue because the documentation repeatedly assumes one language rather than offering options.

Content

No source excerpt is available for this finding.