Back to skill

Security audit

Industry Research CN

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed China-market industry research workflow that uses public web and market-data sources, with no hidden persistence, credential access, or destructive behavior found.

Install only if you are comfortable with the skill using public web searches and Chinese market-data services for financial research. Treat outputs as research assistance, not investment advice; consider using an isolated Python environment and pinned dependencies before installing akshare.

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
scripts/stock_filter.py:10
Finding

Unpinned Third-Party Dependency Installation Guidance

Content
View full analysis
pd.DataFrame: """根据商品关键词筛选相关上市公司""" try: import akshare as ak except ImportError: print("akshare not installed. Run: pip install akshare") return pd.DataFrame() ``` ### Technical Analysis The script instructs users to install `akshare` directly from pip without specifying an audited version, package hashes, a lockfile, or an explicitly trusted package index. The version ultimately installed therefore depends on the current state and configuration of the Python package registry. Python package installation can execute package-controlled build or installation logic. In addition, importing the installed package executes its module initialization code. If the package distribution, an account used to publish it, the configured package index, or the dependency resolution process is compromised, attacker-controlled code could execute in the user's environment. The exposure is conditional: the project does not itself download or install the package automatically, and no evidence shows that `akshare` is malicious. The risk arises when a user follows the installation instruction without dependency pinning or integrity verification. The dependency is also imported before the predefined stock map is used. Consequently, even operations that only require local hard-coded data unnecessarily depend on the third-party package being installed and imported. ### Attack Path 1. An attacker compromises a package release, publishing account, configured package index, or transitive dependency selected by pip. 2. A user runs `scripts/stock_filter.py` without `akshare` installed. 3. The script displays `pip insta ...[truncated 1035 chars]
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (14)

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

声明描述的是一个覆盖行业研究、商品分析、公司财务、新闻、产业链和技术面的综合研究工具,主功能应是生成10个维度的结构化行业研究报告。实际代码只是一个技术分析脚本,接受股票代码和天数参数,从东方财富获取历史K线数据,进行均线排列判断和K线形态识别,并打印技术分析结果。虽然声明中提到“技术面分析(K线形态+均线排列)”,该代码确实覆盖了这一小部分,但它仅是整体声明中的一个子模块,无法支持所宣称的主要用途,因此属于明显的描述与行为不匹配。

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

声明描述的是一个覆盖广泛研究维度的行业深度研究工具,但代码行为非常狭窄:它只访问两个行情接口,按预设关键词筛选宠物相关A股,并输出涨幅及实时价格信息。代码既不支持任意行业/商品输入,也没有实现新闻、产业链、财务、技术面、风险机会等核心研究功能,因此其主要目的与声明严重不符,属于明显描述-行为不匹配。

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

声明描述的是一个功能完整的行业研究报告生成工具,但实际代码只是一个非常有限的股票筛选脚本。其核心逻辑是查找预定义商品到上市公司的映射,并输出少量静态字段。即使使用了 akshare,实际也没有抓取或分析价格、新闻、财务、技术面等内容,只是在未命中时打印行业板块名称表头部。代码的主要目的与声明相比明显更窄,且缺失声明中的绝大多数关键能力,因此属于明显的不匹配。

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

声明描述的是一个范围很广的行业深度研究系统,核心产出应是覆盖10个维度的结构化研究报告。实际代码却只是一个独立的命令行脚本,用于查询单只A股最近30个交易日的换手率,并做简单汇总与活跃度分类。虽然声明中提到“重点公司换手率分析”这一子项,当前代码最多只能视为该大系统中的一个很小的辅助组件,但从所给代码块本身看,其主要目的与声明的整体功能严重不一致,且触发对象也从“行业/商品”变成了“股票代码”。因此应判定为明显不匹配。

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
89% confidence
Finding

The skill instructs use of external network resources and specific market-data endpoints but does not declare any explicit tool scope or allowed-tools boundary. In an agent environment, missing scope declarations can lead to broader-than-intended network access, weaker reviewability, and accidental use of unapproved tools or data sources.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger phrases are broad enough to activate on many loosely related user requests, increasing the chance the skill runs in contexts the user did not clearly intend. Overbroad invocation boundaries can cause unnecessary web access, script execution, or generation of financial-analysis content without sufficient confirmation, which is risky in agentic systems.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The instruction prioritizes 'AP News, BBC, NPR(英文主流媒体)' ahead of Chinese sources, imposing a specific language preference in the workflow. This is a natural-language policy concern because it constrains source language without user opt-in or an explicit justification that the skill is intended to be English-first.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

This file contains natural-language instructions that effectively force a specific language/locale for use, including Chinese headings and Chinese search keyword templates. Under the policy, language constraints should either offer user opt-in or be clearly documented as region-specific and justified, which is not present here.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The user-facing natural-language description and output strings are entirely in Chinese, which effectively forces a specific language without any opt-in or justification. Under the policy, locale or language constraints should be optional or explicitly documented as region-specific.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

This file contains Chinese-only comments, a Chinese docstring, and Chinese terminal output strings, which imposes a specific language on users without any opt-in or indication that the skill is intentionally limited to a Chinese-speaking audience. That matches the policy category for language or locale constraints that are not optional or justified.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The manifest describes an automated industry-research tool that should gather price trends, causal analysis, supply chain, major news, listed-company financial analysis, impact assessment, investment opportunities/risks, turnover, and technical analysis, producing a structured 10-dimension report. This file only filters Eastmoney A-share results by pet-related name keywords and fetches realtime quote strings from Tencent, with no implementation of the broader research and reporting behavior.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

This code performs an HTTP request to a third-party endpoint using the stock code provided on the command line, but there is no warning, confirmation, or explanatory comment near the operation that user input will be sent externally. Because the script's visible usage text does not disclose the outbound data transmission, users may not realize their query is being sent to Eastmoney.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

The function appears intended to derive the market prefix from the stock code via the market variable, but the request URL is hardcoded to sz{code} regardless of that computation. This creates an intent-code divergence where the inline logic suggests exchange-aware behavior but the actual request does not use it.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
93% confidence
Finding

This code file includes natural-language strings entirely in Chinese for its description, usage, and output labels. Under the stated policy, forcing a specific language without user opt-in can be a natural-language policy violation unless the locale restriction is clearly documented and justified.

Content

No source excerpt is available for this finding.