Back to skill

Security audit

investment-advisor

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed stock-analysis helper that fetches market data and outputs recommendations, with no hidden persistence, credential use, or destructive behavior found.

Install only if you want a Chinese-language stock analysis tool that sends queried ticker symbols to Eastmoney services. Treat buy/sell signals, price targets, and position sizes as educational analysis, not personalized financial advice, and avoid letting remote news headlines influence unrelated agent actions.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (3)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/fundamental.mjs:89
Finding

Untrusted Remote News Content Is Passed to the Agent Without an Explicit Trust Boundary

Content
View full analysis
({ title: a.title, date: a.date, url: a.url })); } catch { return []; } } ``` ```javascript export async function analyzeNewsSentiment(symbol) { const news = await fetchNews(symbol); const recentHeadlines = news.slice(0, 5).map(n => n.title).filter(Boolean); const positiveWords = ['涨', '盈利', '突破', '利好', '增长', '超预期', '上调', '创新高', '大涨', '买入', '领涨', '飙升']; const negativeWords = ['跌', '亏损', '下跌', '利空', '下滑', '不及预期', '下调', '创新低', '大跌', '卖出', '暴跌', '减持']; let score = 0; for (const title of recentHeadlines) { for (const w of positiveWords) if (title.includes(w)) score += 0.2; for (const w of negativeWords) if (title.includes(w)) score -= 0.2; } score = Math.max(-1, Math.min(1, score)); return { overall: score > 0.2 ? 'positive' : score < -0.2 ? 'negative' : ' ...[truncated 2248 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Note
Location
scripts/fundamental.mjs:44
Finding

Unvalidated Stock Symbols Are Interpolated Directly into API Query Strings

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Note
Location
scripts/analyze.mjs:302
Finding

CLI Error Responses Expose Internal Stack Traces

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (20)

Vague Triggers

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill metadata declares itself the preferred/default tool for essentially all investment-analysis and investment-decision requests, which is an overly broad activation scope. That can cause the agent to route a wide class of finance-related prompts into a tool that executes local scripts and produces actionable trading guidance, increasing the chance of inappropriate invocation, over-reliance on tool output, and unsafe financial advice generation.

Content

No source excerpt is available for this finding.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| "帮我分析一下600410" | `node scripts/analyze.mjs 600410 full` |

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| "帮我分析一下600410" | `node scripts/analyze.mjs 600410 full` |

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| "帮我分析一下600410" | `node scripts/analyze.mjs 600410 full` |

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| "帮我分析一下600410" | `node scripts/analyze.mjs 600410 full` |

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| "帮我分析一下600410" | `node scripts/analyze.mjs 600410 full` |

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| "帮我分析一下600410" | `node scripts/analyze.mjs 600410 full` |

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| "帮我分析一下600410" | `node scripts/analyze.mjs 600410 full` |

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- `scripts/technical.mjs` — 技术面分析模块

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The document defines deterministic scoring, recommendation mapping, and explicit buy/hold/sell outputs without any disclaimer that results are informational only or require human financial judgment. In an investment-advisor skill, this increases the chance that users or downstream agents treat generated outputs as actionable financial advice, creating compliance, suitability, and user-harm risk from misleading or overconfident recommendations.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The README-style examples map broad natural-language requests directly to command execution without guardrails, negative examples, or eligibility checks. This makes the skill more likely to trigger on loosely related prompts and normalize immediate generation of trading signals or portfolio advice, which is risky in a financial-advice context.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The description is written entirely in Chinese and presents the skill as a Chinese-language assistant, with no indication that users may choose another language or that the locale restriction is required. This is a natural-language locale policy concern because it implicitly enforces 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
97% confidence
Finding

The file's top-level description, usage text, and output description are written entirely in Chinese, and later error/report strings are also Chinese-only. This imposes a specific language on users without any opt-in or alternative locale handling, matching the policy category for language or locale violations.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

Comments, labels, error messages, and output summaries throughout the file are written in Chinese, indicating the skill is designed to communicate in a single language by default. There is no visible mechanism offering the user a language preference or documenting that the locale restriction is intentional and limited to a specific justified context.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The module description, comments, error messages, and recommendation strings are written in Chinese, and returned natural-language analysis content is consistently generated only in Chinese. There is no indication of user opt-in, locale selection, or documented justification for restricting outputs to a single language.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

SQP-3 applies to all file types and includes natural-language language/locale policy violations. The content consistently forces a single language presentation and does not indicate user opt-in, alternatives, or a justified region-specific constraint.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
93% confidence
Finding

The CLI emits a Chinese-only error message when required arguments are missing. Because there is no visible mechanism for users to select a preferred language, this is a natural-language policy issue rather than a code-security flaw.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
94% confidence
Finding

The module sends the user-supplied stock symbol to multiple third-party Eastmoney endpoints, which creates a privacy and transparency issue because user inputs are disclosed externally without any notice, consent, or configurable opt-out in this file. While a stock ticker is typically low-sensitivity data, it can still reveal a user's investment interests or research behavior, especially when correlated across repeated requests.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The function constructs a request URL using the provided symbol and sends it to the Eastmoney API via fetch. While this is central to the module's purpose, there is no runtime log, prompt, or inline disclosure in the function itself that user input will be transmitted to a third-party service.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
87% confidence
Finding

This exported function sends the requested symbol to a remote Eastmoney endpoint but provides no confirmation, visible logging, or function-level warning about the external transmission. The top file comment mentions the API, but the callable interface itself does not clearly disclose the network behavior.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.