Back to skill

Security audit

Stock Expert

Security checks for vulnerabilities and agentic risk

Overview

This stock-analysis skill mostly does what it says, but it publishes a real-looking API token and encourages persistent scheduled agent runs without enough safeguards.

Install only after replacing the embedded Tushare token with your own securely stored token, avoiding system-wide dependency installation, and treating the cron examples as optional recurring automation that should have explicit names, expiry, and removal commands.

Vulnerability Patterns
  • System PersistenceInstalls backdoors, hooks, services, or scheduled tasks that survive the run
  • 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
Findings (3)

T06 · System Persistence

Error
Location
SKILL.md:87
Finding

Persistent OpenClaw Scheduled Tasks

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:134
Finding

Hard-Coded Tushare API Credential

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
SKILL.md:14
Finding

Unpinned and System-Wide Third-Party Dependency Installation

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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 (9)

Intent-Code Divergence

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The README includes a concrete Tushare API token and states it is already configured, which encourages users to reuse an exposed secret. Publishing live credentials in documentation can lead to unauthorized API use, quota exhaustion, billing abuse, and compromise of any data or account actions tied to that token.

Content

No source excerpt is available for this finding.

Ssd 3

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The README embeds a real-looking Tushare access token in a way that promotes disclosure and reuse of sensitive credentials. In the context of an agent skill, documentation is often copied verbatim into deployments, making accidental propagation of the secret more likely across user machines, logs, and source control.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

A real-looking API token is exposed directly in setup instructions with no sensitivity warning, normalizing insecure secret handling. Users may copy, redistribute, or commit the credential, and attackers can harvest it from public repositories or package indexes for unauthorized access.

Content

No source excerpt is available for this finding.

Ssd 3

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The documentation exposes a hardcoded, real-looking Tushare API token and explicitly instructs users to export it into their environment. Secrets embedded in skill files are easily harvested from repositories, logs, screenshots, or downstream copies, enabling unauthorized API use, quota exhaustion, billing abuse, and possible access to associated account data or service reputation impact.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
87% confidence
Finding

The natural-language instructions and examples are entirely in Chinese, and the file does not indicate that this language restriction is optional or region-specific. SQP-3 covers language or locale policy violations when a skill effectively forces a specific language without user opt-in.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill metadata and description are entirely Chinese-focused (e.g. Chinese name/slug/description) and the examples/instructions throughout the file assume Chinese-language interaction, but there is no statement offering language choice or requiring user opt-in. Under the policy, forcing a specific language or locale without opt-in is a natural-language policy violation unless clearly documented as a justified region-specific tool.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This code’s natural-language descriptions and user-facing outputs are consistently Chinese-only, starting from the module description and continuing throughout runtime messages. Under the policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale restriction is explicitly justified.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
80% confidence
Finding

No manifest is available, so there is no declared purpose or permission baseline to justify sensitive capability use. The code reads TUSHARE_TOKEN and FINNHUB_TOKEN from environment variables, which is a credential-access capability beyond pure local computation and should be explicitly justified by the skill's stated intent.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The documentation for screen_stocks lists criteria including roe_min and volume_ratio, implying those filters affect stock selection. However, _match_criteria only checks pe_ttm and market_cap_min, and never enforces roe_min or volume_ratio, so the documented intent contradicts actual behavior.

Content

No source excerpt is available for this finding.