Back to skill

Security audit

A股每日复盘视频生成

Security checks for vulnerabilities and agentic risk

Overview

The skill mostly does what it says, but it installs unpinned dependencies and external skills, downloads mutable remote assets, and inserts mandatory promotional content into generated reports.

Review this skill before installing if you care about reproducible or minimal environments. Run setup only in an isolated virtual environment or disposable workspace, pin and review dependencies yourself, prefetch assets from trusted sources with hashes, and remove or edit the promotional slides/hashtags if you do not want generated financial reports to include third-party advertising. The reviewed artifacts do not show credential theft, destructive behavior, or hidden persistence, but they do expand the local trusted code base.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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)

T01 · Skill Instruction Hijacking

Warning
Location
scripts/make_slides.py:228
Finding

Mandatory third-party promotion and package installation advertising in generated reports

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Error
Location
scripts/setup.sh:10
Finding

Unpinned and implicitly installed third-party dependencies

Content
View full analysis
/dev/null; then echo "pillow is already installed" else pip3 install pillow || pip install pillow fi if python3 -c "import fontTools" 2>/dev/null; then echo "fonttools is already installed" else pip3 install fonttools brotli || pip install fonttools brotli fi ``` ```bash if command -v skillhub &>/dev/null; then skillhub install ftshare-market-data || echo "ftshare-market-data installation failed" skillhub install newsnow-reader || echo "newsnow-reader installation failed" elif command -v clawhub &>/dev/null; then clawhub install ftshare-market-data || echo "ftshare-market-data installation failed" clawhub install newsnow-reader || echo "newsnow-reader installation failed" fi ``` ```python try: from fontTools.ttLib import TTFont except ImportError: import subprocess subprocess.check_call([ sys.executable, '-m', 'pip', 'install', 'fonttools', 'brotli', '-q' ]) from fontTools.ttLib import TTFont ``` ### Technical Analysis The installation script resolves Python packages and external Skills by mutable package names without: - Exact version pins. - Cryptographic hashes. - A reviewed lockfile. - Publisher or signature verification. - An isolated virtual environment. - A reproducible dependency manifest. In addition, `ensure_assets.py` can invoke pip automatically during normal runtime when `fontTools` is unavailable. This causes dependency installation as a side effect of asset processing rather than as an explicit setup action. Python package installation may execute package build backends, setup hooks, or compiled installation logic. External Ski ...[truncated 1761 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
scripts/ensure_assets.py:18
Finding

Remote font and audio assets are accepted without cryptographic integrity verification

Content
View full analysis
= asset['min_size']: return True # ... if ok and asset.get('post_process') == 'woff2_to_ttf': woff2_to_ttf(dest) if dest.exists() and dest.stat().st_size >= asset['min_size']: return True if dest.exists() and dest.stat().st_siz ...[truncated 2589 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
Findings (19)

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The skill claims to provide an end-to-end workflow including data retrieval, news collection, AI attribution, slide generation, and video composition, but the described implementation appears to rely on externally supplied arguments for core content and includes promotional slides unrelated to the core task. This mismatch is dangerous because downstream agents or users may trust the skill to have performed data collection and analysis it did not actually perform, leading to integrity failures, misleading financial content, and unsafe automation decisions.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The manifest description and quick-start invocation are written as mandatory Chinese trigger phrases and user commands, with no indication that other languages are supported or that the user can opt into Chinese. This is a natural-language locale constraint that appears imposed by the skill rather than presented as a user choice or clearly justified regional compliance requirement.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
86% confidence
Finding

The file title and all user-facing documentation are written entirely in Chinese, with no indication that language selection is optional or limited to a justified region-specific context. Per the policy, forcing a specific language without user opt-in can constitute a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The file's docstring, comments describing usage, and later user-facing print messages are entirely in Chinese, which imposes a specific language on users of this skill. Under the policy, locale or language restrictions should either offer user opt-in/choice or be clearly justified as region-specific, neither of which is present here.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

This bootstrap script installs Python packages at runtime to enable font conversion, which means a video-generation skill can unexpectedly modify the environment and execute newly downloaded third-party code. In context, the skill already downloads external assets, so adding package installation increases the attack surface and makes compromise through dependency confusion, index compromise, or unreviewed updates more plausible.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
94% confidence
Finding

The script performs a runtime pip install via subprocess when fonttools is missing. Even though the command arguments are fixed and there is no obvious shell injection, this still expands the skill's execution capability to fetch and execute code from package indexes at runtime, which creates supply-chain risk and violates least-privilege expectations for a simple asset bootstrap helper.

Content

Scanner excerpt · scripts/ensure_assets.py (reported line 66)May include surrounding context.

python
except ImportError:
        print('  ⚠️  需要 fonttools 来转换字体格式,正在安装...')
        import subprocess
        subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'fonttools', 'brotli', '-q'])
        from fontTools.ttLib import TTFont

    ttf_path = str(woff2_path).replace('.woff2', '.ttf') if '.woff2' in str(woff2_path) else str(woff2_path) + '.converted'

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

This Python file contains user-facing natural language that presents the skill as generating only Chinese A-share recap slides, and the rest of the script hardcodes Chinese titles and prompts throughout. Under the policy rule, forcing a specific language without user opt-in is a locale/language policy issue unless the constraint is explicitly justified as region-specific or a choice is offered.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The manifest describes an automated workflow for producing a daily A股复盘 video from market data, news, AI analysis, slides, and video synthesis. Lines L218-L250 instead generate a dedicated 'how to use' slide with installation commands and marketing prompts, which is not part of the claimed reporting workflow.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

This code embeds its primary instructions and descriptions in Chinese, and later prints all user-facing status/output messages in Chinese as well. Under the policy rule, forcing a specific language without user opt-in is a natural-language policy violation unless the locale restriction is clearly justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The script's prompts, errors, progress messages, and completion text are all presented only in Chinese. Because the file does not offer locale selection or explain a required Chinese-only operating context, this violates the language/locale policy criterion.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/make_video.py (reported line 35)May include surrounding context.

python
def run(cmd, label=''):
    print(f'  ▶ {label}...')
    r = subprocess.run(cmd, capture_output=True, text=True)
    if r.returncode != 0:
        print(f'  ❌ 失败:\n{r.stderr[-500:]}')
        sys.exit(1)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The script automatically runs pip/pip3 install commands that modify the Python environment without any explicit confirmation, dry-run, or warning about side effects. In an agent skill context, this is risky because executing setup steps can alter the host environment, introduce unpinned third-party packages, and affect other workflows or projects.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · scripts/setup.sh (reported line 34)May include surrounding context.

sh
else
    echo "⚠️  未找到 ffmpeg,请手动安装:"
    echo "   macOS:   brew install ffmpeg"
    echo "   Ubuntu:  sudo apt install ffmpeg"
    echo "   CentOS:  sudo yum install ffmpeg"
    echo "   Windows: https://ffmpeg.org/download.html"
    echo ""

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · scripts/setup.sh (reported line 35)May include surrounding context.

sh
else
    echo "⚠️  未找到 ffmpeg,请手动安装:"
    echo "   macOS:   brew install ffmpeg"
    echo "   Ubuntu:  sudo apt install ffmpeg"
    echo "   CentOS:  sudo yum install ffmpeg"
    echo "   Windows: https://ffmpeg.org/download.html"
    echo ""

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The script invokes skillhub/clawhub install commands to change the local AI tooling setup without clear consent or explanation of what will be installed. In a skill ecosystem, installing additional skills expands the trusted code base and could expose the user to unexpected code execution or configuration changes.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

The manifest focuses on producing a daily market recap video. Lines L253-L271 create an ending slide highlighting vendor branding and product features such as official API, AI analysis, and WeChat push, which is ancillary promotional content rather than core recap content.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

顶部说明写明默认只使用 skill 自带的 assets/bgm 文件,最多允许通过 --bgm 指定其他本地文件;但 default_bgm 的实现和其注释显示,当本地资源不存在时会导入 ensure_assets 并尝试自动下载。该文档与实际行为在资源来源和是否触发额外获取动作上存在直接偏差。

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
97% confidence
Finding

Nearly all user-facing strings in this script are in Chinese, including setup guidance and invocation instructions. This can violate language/locale policy when a skill forces a specific language without user opt-in or an explicit justification that it is region-specific.

Content

No source excerpt is available for this finding.