Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

Stock Push

v1.0.2

A股股票定时推送系统。管理盘前推荐(09:20)、收盘复盘(15:05)、次日关注(20:00)三个推送任务,每交易日晚自动发送持仓股行情到微信。当用户提到:股票推送、持仓监控、定时提醒、A股行情,或者需要查询持仓盈亏、复盘信息、次日建议时触发。also triggers when user says "推送"...

0· 114·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for maizhenn/stock-push.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Stock Push" (maizhenn/stock-push) from ClawHub.
Skill page: https://clawhub.ai/maizhenn/stock-push
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install stock-push

ClawHub CLI

Package manager switcher

npx clawhub@latest install stock-push
Security Scan
VirusTotalVirusTotal
Suspicious
View report →
OpenClawOpenClaw
Suspicious
high confidence
Purpose & Capability
Name/description align with delivered files: scripts fetch A‑share quotes from EastMoney and send scheduled messages via the local 'openclaw message send' command. Cron/logrotate configuration and scripts for pre/after/next pushes are coherent with the stated purpose.
!
Instruction Scope
Runtime instructions and scripts run as system cron jobs and will send your holdings/market data to the configured USER_ID via openclaw. The SKILL.md and installers instruct creating system cron entries and logrotate files; that scope is expected for scheduling but the scripts contain a prefilled USER_ID value that will cause automatic transmission of holdings unless the user edits it — this is a direct data‑exfiltration risk if overlooked.
Install Mechanism
No registry install spec in metadata (instruction-only skill) but the package includes install.sh and scripts/install.py that write files into /root/.openclaw and system locations (/etc/cron.d, /etc/logrotate.d). scripts/install.py will attempt to download a .skill file from a raw GitHub URL (placeholder 'your-repo'). Downloading/unzipping remote archives is moderate risk; install.sh also expects a local .skill file. Beware running curl|bash from an unknown URL and review any downloaded .skill before extracting.
!
Credentials
The skill does not request environment variables or credentials, but all three scripts include a hardcoded USER_ID (looks like a real wechat id format). If the user does not replace that value the system will send your holdings and derived analyses to that target. This hardcoded recipient is effectively a credential/recipient field and is disproportionate to a safe default (should be blank or explicit fail-unless-configured).
Persistence & Privilege
Installer and install.sh/install.py write persistent system files (cron entries in /etc/cron.d and logrotate in /etc/logrotate.d) and copy code into /root/.openclaw/workspace — these actions require root privileges and create persistent scheduled behavior. This is expected for a cron-based push service but raises the usual risk surface for persistent system modifications.
What to consider before installing
Do not run the installer or scripts without inspection. Before installing: (1) Open scripts/stock_pre.py, stock_after.py, stock_next.py and change USER_ID to your own WeChat ID (or set it to empty and make the scripts fail-fast). Search the repo for 'USER_ID' and verify no other hardcoded recipients exist. (2) Review HOLDINGS/WATCH_LIST and confirm they contain only your intended tickers — the scripts will send those values off‑device. (3) Avoid piping unknown URLs to bash; download the .skill bundle, inspect it, and extract locally. (4) Be aware install scripts write /etc/cron.d and /etc/logrotate.d as root — if you prefer less privilege, run the Python scripts under a user cron or run them manually. (5) Verify the openclaw message send behavior in a controlled test (use a test USER_ID) so you know where messages go. If you cannot inspect or safely change USER_ID, do not install — leaving the default could send your holdings to a third party.

Like a lobster shell, security has layers — review code before you run it.

latestvk972cmqynzj4emebyh5c7gr935859qkb
114downloads
0stars
3versions
Updated 1w ago
v1.0.2
MIT-0

Stock Push — A股持仓定时推送

系统架构

东方财富 API  →  Python 脚本  →  openclaw message send  →  微信
(数据源)        (处理逻辑)          (Gateway转发)

关键约束:

  • 不依赖 Gateway 会话/cron run,完全系统 cron 独立运行
  • 发送走 openclaw message send(非 direct ilink API)
  • 数据源:东方财富 push2.eastmoney.com

三推送任务

脚本cron触发功能
stock_pre.py20 9 * * 1-509:20大盘指数 + 自选股
stock_after.py5 15 * * 1-515:05持仓收盘行情 + 统计
stock_next.py0 20 * * 1-420:00收盘概况 + 明日建议

数据源

东方财富行情 API:

GET https://push2.eastmoney.com/api/qt/stock/get
  ?secid=<market>.<code>
    &fields=f43,f44,f47,f57,f58,f60
    &ut=bd1d9ddb04089700cf9c27f4f4961f5b&fltt=2&invt=2

secid: 1.沪股代码(如 1.600490) / 0.深股代码(如 0.300269

已验证字段:

字段含义特殊情况
f43最新价(收盘/当前)
f44昨收价竞价阶段返回 '-',自动改用 f60
f47成交量(手)竞价阶段可能返回 '-'
f57股票代码
f58股票名称
f60备用昨收f44='-' 时自动使用

涨跌幅计算: (f43 - f44) / f44 × 100

⚠️ 不要用 f3 字段(非交易时段返回0,不可靠)

发送方式

openclaw message send \
  --channel openclaw-weixin \
  --target YOUR_WECHAT_USER_ID \
  --message "<text>"

可靠性机制

  • 有效数据校验price ≤ 0 or yclose ≤ 0valid=False,不参与统计
  • 零数据跳过:全部无效时不发送,避免假数据
  • 发送重试:失败最多3次,每次间隔3秒
  • 异常隔离:单只股票失败不影响其他
  • 日志文件/tmp/stock_pre.log / stock_after.log / stock_next.log

持仓配置

持仓列表在脚本顶部 HOLDINGS / WATCH_LIST 列表中修改。

格式:(secid, code, name)

HOLDINGS = [
    ("1.600490", "600490", "鹏欣资源"),
    ("0.300269", "300269", "联建光电"),
    ("0.002138", "002138", "顺络电子"),
    ("0.300444", "300444", "双杰电气"),
]

手动测试

python3 /root/.openclaw/workspace/stock_pre.py
python3 /root/.openclaw/workspace/stock_after.py
python3 /root/.openclaw/workspace/stock_next.py

# 查看日志
tail -f /tmp/stock_pre.log
tail -f /tmp/stock_after.log
tail -f /tmp/stock_next.log

日志轮转

配置:/etc/logrotate.d/stock-monitor,保留7天。

详细文档

  • 字段验证数据references/field-verification.md
  • 推送历史/变更记录references/history.md
  • 已知问题排查references/troubleshooting.md

Comments

Loading comments...