Back to skill

Security audit

Quant Stock Selector

Security checks for vulnerabilities and agentic risk

Overview

This stock-analysis skill is not clearly malicious, but it asks for sensitive email credentials and scheduled automation while its install path and shipped files are under-scoped and not reproducible.

Review before installing. Use an isolated environment, pin or lock dependencies, avoid installing from a moving git branch, and do not store a real mailbox authorization code in the project source tree. Treat the cron examples as ongoing automation that should only be enabled deliberately, and verify that the missing tool and data files are supplied by a trusted package before relying on the stock recommendations.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (2)

T08 · Insecure Dependencies

Warning
Location
requirements.txt:1
Finding

Unpinned and Unverified Third-Party Dependencies

Content
View full analysis
=1.18.0 pandas>=1.5.0 numpy>=1.23.0 ``` The documented manual installation process also retrieves a mutable repository and installs its dependencies without integrity verification: ```bash cd ~/.openclaw/skills git clone https://github.com/quant-dev/quant-stock-skill.git cd quant-stock-skill pip3 install -r requirements.txt ``` ### Technical Analysis All dependencies use open-ended minimum-version constraints. No lockfile, cryptographic hashes, upper version limits, or verified artifact references are provided. A future dependency release can therefore be installed automatically without having been reviewed with this Skill. The manual installation procedure also clones the repository's default branch rather than a specific verified commit or immutable release. Consequently, the code installed by a user may differ from the code that was audited. This does not establish that the current upstream packages or repository are malicious. The vulnerability is the lack of controls that would prevent a compromised account, malicious future release, or unexpected upstream change from entering the installation process. ### Attack Path 1. An attacker compromises an upstream package publisher account, source repository, release pipeline, or distribution channel. 2. The attacker publishes a malicious dependency version satisfying one of the `>=` constraints, or modifies the repository's default branch. 3. A user follows the documented `pip3 install -r requirements.txt` or `git clone` installation process. 4. The package manager or Git client retrieves the attacker-controlled version because no immutable version or hash is enforced. 5. Malicious installation hooks, import ...[truncated 621 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:148
Finding

Email Authorization Secret Stored in Plaintext Source Configuration

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (13)

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 1)May include surrounding context.

md
---
name: quant-stock-selector
description: "Select stocks using quantitative models and factor analysis"
tags: [analysis, data, api-integration, cli, report-generation]

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill presents key operational setup, scheduling, and risk guidance primarily in Chinese while the metadata is in English, without offering a language choice. This can cause users or downstream agents to misunderstand configuration requirements, cron behavior, or safety limitations, leading to misconfiguration or unintended execution in a context that handles credentials and automated actions.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The docstring at L159-L168 says the combined score includes a separate '90% concentration' component, but the method later tries to read it from chip_factors['details'] at L219 even though calculate_chip_factors() only returns flattened fields and does not include a 'details' object at L135-L140. As written, the documented scoring component is effectively never supplied by the documented upstream method, so the documentation overstates what the code actually computes.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

The file is written entirely in Chinese, including all usage and risk instructions, with no indication that users may choose another language or that the skill is intended only for a Chinese-speaking audience. Under the policy, forcing a specific language without user opt-in can be a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
93% confidence
Finding

This Python file contains natural-language docstrings and runtime print messages entirely in Chinese, including the module description and test output. Under the stated policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale restriction is explicitly justified, which is not present here.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
79% confidence
Finding

The module docstring and class documentation describe a calculation component for chip distribution and related metrics. However, the executable entrypoint instantiates a data provider and retrieves stock K-line history, which is a separate market-data acquisition capability not inherently required for the calculator itself.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
94% confidence
Finding

This Python file contains natural-language descriptions and console output entirely in Chinese, beginning with the module docstring and continuing throughout the test routine. Because the skill does not indicate that it is intentionally region-specific or provide any user opt-in for language selection, it may violate a language/locale policy requiring choice or justification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

This Python file contains natural-language docstrings and console output exclusively in Chinese, starting with the module description and continuing throughout the script. Under the policy, forcing a specific language without user opt-in is a locale/language policy violation unless the constraint is explicitly documented and justified, which it is not here.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
96% confidence
Finding

The dependency akshare is specified with a minimum version only, which allows future unreviewed versions to be installed. This weakens build reproducibility and can expose the skill to supply-chain risk if a later release introduces a vulnerability or malicious code.

Content

Scanner excerpt · requirements.txt (reported line 1)May include surrounding context.

text
akshare>=1.18.0
pandas>=1.5.0
numpy>=1.23.0

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
97% confidence
Finding

The pandas requirement is not pinned to an exact version, so environments may resolve to different releases over time. That creates uncertainty about security posture and can inadvertently pull in affected or incompatible versions.

Content

Scanner excerpt · requirements.txt (reported line 2)May include surrounding context.

text
akshare>=1.18.0
pandas>=1.5.0
numpy>=1.23.0

Unverifiable Dependency: pandas has 1 known advisory(ies) (CVE-2020-13091 (** DISPUTED ** pandas through 1.0.3 can unserialize and execute commands from an)), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
90% confidence
Finding

Pandas has at least one known advisory in some versions, but the manifest does not pin a version, so it is impossible to verify whether the deployed package is affected. This uncertainty is a security issue because vulnerable versions may be resolved at install time without visibility.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
97% confidence
Finding

The numpy dependency is declared as a floating minimum version, permitting installation of any newer release. This introduces reproducibility and supply-chain risk because a future compromised or vulnerable version could be installed without code changes.

Content

Scanner excerpt · requirements.txt (reported line 3)May include surrounding context.

text
akshare>=1.18.0
pandas>=1.5.0
numpy>=1.23.0

Unverifiable Dependency: numpy has 16 known advisory(ies) (CVE-2014-1859 (Numpy arbitrary file write via symlink attack); CVE-2021-41495 (NumPy NULL Pointer Dereference); CVE-2021-33430 (NumPy Buffer Overflow (Disputed)) +13 more), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
94% confidence
Finding

NumPy has multiple historical advisories, and the unpinned requirement prevents confirmation that the installed version is safe. As a result, deployments may unintentionally include a vulnerable release, increasing exposure to known issues.

Content

No source excerpt is available for this finding.