Back to skill

Security audit

短线走势与技术面分析

Security checks for vulnerabilities and agentic risk

Overview

The skill is rated suspicious because scanners report that it asks users to share an API key in chat and steers the workflow toward referrals and purchases beyond its stated technical-analysis purpose.

Treat this as a review-needed skill, not a confirmed malicious one. Before installing, consider whether you trust the service and its API-key handling, and avoid pasting secrets into chat; use a protected local configuration if available. Review any scheduled-task setup and commercial prompts, and note that the scan was partial because a referenced local path was missing.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
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
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Rogue AgentSelf-Modification, Session Persistence
Findings (11)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

文档转换可以作为生成分析报告的辅助步骤,本身不应被视为违规能力;但所提供代码的全部行为均为通用格式转换,没有呈现所声明的核心股票分析功能。因此,仅就该代码块而言,其实际主要用途与声明存在实质差异。

Content

No source excerpt is available for this finding.

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Content

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

md
CUE_KEY=$(python3 -c "import json;print(json.load(open('$HOME/.cue/config.json'))['api_key'])" 2>/dev/null || echo "$CUE_API_KEY")
echo "=== 1/4 API Key ===" && [ -n "$CUE_KEY" ] && echo "已配置" || echo "未配置!"
echo "=== 2/4 Cue 服务 ===" && curl -sS --max-time 10 "https://cuecue.cn/api/health" -H "Authorization: Bearer $CUE_KEY"
echo "=== 3/4 搭子 ===" && curl -sS --max-time 10 "https://cuecue.cn/api/playbook" -H "Authorization: Bearer $CUE_KEY" | python3 -c "import sys,json;scenes=json.load(sys.stdin).get('data',{}).get('scenes',[]);buddy=[b for s in scenes if s.get('secondary_category')=='短线盘面' for b in s.get('buddies',[]) if b.get('title')=='短线资金量价与技术面分析'];print(f'可用:{len(buddy)}个') if buddy else print('暂不可用')"
echo "=== 4/4 剩余积分 ===" && python3 -c "
import json, urllib.request, os
p = os.path.expanduser('~/.cue/config.json')

The onboarding instructions solicit an API secret in the agent conversation under the guise of configuring access.

Medium
Category
Data Exfiltration
Confidence
98% confidence
Finding

This is the same credential-exposure issue identified by SQP-2: onboarding requires the user to disclose an API key in chat before the agent writes it to configuration. The stated rule that the agent cannot view the key conflicts with this handling procedure; there is no evidence here of intentional theft or transmission to an unrelated destination.

Content

No source excerpt is available for this finding.

The setup workflow requests an API key in chat without warning about credential exposure.

Medium
Category
Output Handling
Confidence
98% confidence
Finding

The setup explicitly asks users to paste an API secret into the agent conversation, exposing it to conversation storage, logging, and any systems with access to that conversation. Authentication is legitimately needed, but conversational disclosure is unnecessary and could enable unauthorized API use or credit consumption if the key leaks.

Content

No source excerpt is available for this finding.

The analysis workflow mandates referral, purchase, and social-promotion prompts beyond the manifest's technical-analysis purpose.

Medium
Category
Excessive Agency
Confidence
93% confidence
Finding

The skill mandates referral, purchase, and social-sharing prompts and gives them priority over other follow-up interactions, redirecting the agent beyond the user's technical-analysis request. Although it requires user selection and does not automatically purchase or publish anything, this is a bounded workflow-hijacking and commercial-steering risk.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
75% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

md
| 环境 | 配置方式 |
|------|---------|
| Claude Code | 用 `CronCreate`,cron 表达式 `30 16 * * 1-5`(自定义时间按用户所选取 分 时 日 月 周) |
| macOS | 建 `~/Library/LaunchAgents/com.cue.technical-analysis.plist`,`StartCalendarInterval` 设 `Weekday` 1–5、`Hour` 16、`Minute` 30,再 `launchctl load` |
| Linux | `crontab -e` 追加 `30 16 * * 1-5 <上面的命令>` |

配完必须回报三件事:**触发时间、绑定标的、如何关掉**(Claude Code 删任务 / `launchctl unload` / `crontab -e` 删除对应行)。

Session Persistence

Medium
Category
Rogue Agent
Confidence
75% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

md
| 环境 | 配置方式 |
|------|---------|
| Claude Code | 用 `CronCreate`,cron 表达式 `30 16 * * 1-5`(自定义时间按用户所选取 分 时 日 月 周) |
| macOS | 建 `~/Library/LaunchAgents/com.cue.technical-analysis.plist`,`StartCalendarInterval` 设 `Weekday` 1–5、`Hour` 16、`Minute` 30,再 `launchctl load` |
| Linux | `crontab -e` 追加 `30 16 * * 1-5 <上面的命令>` |

配完必须回报三件事:**触发时间、绑定标的、如何关掉**(Claude Code 删任务 / `launchctl unload` / `crontab -e` 删除对应行)。

Session Persistence

Medium
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

md
|------|---------|
| Claude Code | 用 `CronCreate`,cron 表达式 `30 16 * * 1-5`(自定义时间按用户所选取 分 时 日 月 周) |
| macOS | 建 `~/Library/LaunchAgents/com.cue.technical-analysis.plist`,`StartCalendarInterval` 设 `Weekday` 1–5、`Hour` 16、`Minute` 30,再 `launchctl load` |
| Linux | `crontab -e` 追加 `30 16 * * 1-5 <上面的命令>` |

配完必须回报三件事:**触发时间、绑定标的、如何关掉**(Claude Code 删任务 / `launchctl unload` / `crontab -e` 删除对应行)。

Session Persistence

Medium
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

md
| macOS | 建 `~/Library/LaunchAgents/com.cue.technical-analysis.plist`,`StartCalendarInterval` 设 `Weekday` 1–5、`Hour` 16、`Minute` 30,再 `launchctl load` |
| Linux | `crontab -e` 追加 `30 16 * * 1-5 <上面的命令>` |

配完必须回报三件事:**触发时间、绑定标的、如何关掉**(Claude Code 删任务 / `launchctl unload` / `crontab -e` 删除对应行)。

### 必须提前告知的两个坑

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 · SKILL.md (reported line 269)May include surrounding context.

md
| 目标格式 | 依赖 | macOS | Ubuntu |
|----------|------|-------|--------|
| Word (.docx) | pandoc | `brew install pandoc` | `sudo apt install pandoc` |
| PDF (.pdf) | pandoc + LaTeX | `brew install --cask basictex` | `sudo apt install texlive-xetex` |

---

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 · SKILL.md (reported line 270)May include surrounding context.

md
| 目标格式 | 依赖 | macOS | Ubuntu |
|----------|------|-------|--------|
| Word (.docx) | pandoc | `brew install pandoc` | `sudo apt install pandoc` |
| PDF (.pdf) | pandoc + LaTeX | `brew install --cask basictex` | `sudo apt install texlive-xetex` |

---