Back to skill

Security audit

AI驱动金融分析

Security checks for vulnerabilities and agentic risk

Overview

This finance skill is review-worthy because it combines broad financial automation with command/file permissions, an unpinned package install, and recurring task setup without enough scoping or consent detail.

Review this skill before installing. Do not allow automatic Bash execution, package installation, scheduled tasks, administrator execution, or file exports unless you explicitly asked for them. If used, install dependencies only in an isolated environment after verifying the package source, and provide financial API keys only with least-privilege permissions.

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

Unverified and Unpinned Third-Party Package Installation

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:36
Vulnerability Type: T08: Insecure Dependencies
Risk Level: Medium

Complete Code Snippet:

markdown
| 依赖缺失 | Python环境未安装ai_finance库 | 执行`pip install ai_finance`安装依赖 |

English translation: If the ai_finance Python library is missing, run pip install ai_finance to install it.

Technical Analysis

The Skill instructs the agent or user to install ai_finance from pip's default package index without specifying an exact version, cryptographic hashes, a verified publisher, or a trusted source repository. Consequently, package identity and integrity are not adequately constrained.

An unpinned installation can resolve to a newly published or compromised release that was not present during the Skill audit. If the intended package name is incorrect, unavailable, or insufficiently verified, an attacker may also exploit dependency confusion or package-name squatting.

Python packages may execute package-controlled build or installation logic during installation. The package will subsequently execute arbitrary Python code when imported or invoked. The instruction is especially concerning because the Skill declares the Bash tool at SKILL.md:9-13, making command execution available, while SKILL.md:211 separately characterizes the Skill as pure Markdown that does not require code execution.

Attack Path

  1. The Skill or user encounters a purported missing ai_finance dependency.
  2. Following SKILL.md:36, the agent or user executes pip install ai_finance.
  3. pip queries its configured package index without an exact version or required hashes.
  4. A compromised, malicious, substituted, or unintended package release is selected.
  5. Package-controlled code executes during installation, import, or later use.
  6. That code operates with the privileges of the account that invoked pip and may access resources available to that process.

Impac

...[truncated 792 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove the package-installation instruction if ai_finance is not genuinely required. This is preferable because the project otherwise describes itself as a pure Markdown Skill.

  2. If the package is required, verify its official package identity, publisher, source repository, and maintenance status before recommending installation.

  3. Pin an audited, exact version rather than allowing pip to select the latest release.

  4. Record cryptographic hashes in a reviewed requirements file and install with hash enforcement, for example:

    bash
    python -m pip install --require-hashes -r requirements.txt
    
  5. Use an internally controlled package mirror or other trusted index rather than relying implicitly on the default public index.

  6. Install inside an isolated virtual environment or disposable sandbox under a non-administrative account.

  7. Require explicit user confirmation before dependency installation; the agent should not automatically execute installation commands.

  8. Scan and review the package source, wheel contents, build configuration, transitive dependencies, and relevant release changes before approval.

  9. Ensure financial API credentials are not exposed to dependency installation or validation processes.

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)

Ae4

Medium
Category
analysis-evasion
Confidence
80% confidence
Finding

Suspicious Unicode normalization or mixed-script content

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 broad and ambiguous, effectively saying to use the skill whenever finance-related help is needed. Overly broad invocation criteria can cause an agent to select this skill in inappropriate contexts, potentially exposing sensitive financial data to unnecessary processing or triggering capabilities beyond the user's expectation.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill claims compatibility with pure SKILL.md usage while also declaring Bash/Write/Edit tools and later describing command execution, file export, and scheduled task setup. This mismatch can mislead users and agents about the skill's execution and side-effect profile, increasing the chance of unexpected local actions, persistence, or data handling without informed consent.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill describes exporting files and setting up automated recurring tasks without clear upfront warnings or explicit consent requirements. In an agent environment with Write/Edit/Bash capabilities, this can lead to unintended filesystem changes, persistence, or repeated actions that affect user data and system state.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

The security-optimization section claims cleanup of sensitive-information leakage paths and removal of external references, yet the same file continues to depend on external financial APIs and API key handling instructions. While not inherently unsafe, this documentation overstates what was removed and creates a mismatch between the stated security posture and the documented operational dependencies.

Content

No source excerpt is available for this finding.