Back to skill

Security audit

scanner

Security checks for vulnerabilities and agentic risk

Overview

The skill appears to be a real stock scanner, but it uses risky dependency installation guidance and encourages recurring scheduled execution while reading local watchlists and writing reports.

Install only if you are comfortable with a local stock scanner reading your watchlist, sending ticker symbols to TradingView, and writing reports into your vault. Use a virtual environment instead of --break-system-packages, avoid sudo, review any cron entry before adding it, and treat imported watchlists as untrusted input, especially when generating Excel files.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (3)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:48
Finding

Unpinned and Inconsistent System-Wide Dependency Installation

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scanner.py:958
Finding

Spreadsheet Formula Injection Through Watchlist Values

Content
View full analysis
= 60), ("⭐多指标共振", "multi_buy", lambda x: x == True), ("🚀放量突破", "volume_breakout", lambda x: x == True), ("🏆历史新高", "new_high", lambda x: x == True), ("🔵RSI回升", "rsi_recover", lambda x: x == True), ("⚠️量价背离", "price_vol_divergence", lambda x: x == True), ]: subset = df_all[df_all[col].apply(val)] if not subset.empty: subset.to_excel(writer, sheet_name=name, index=False) ``` ### Technical Analysis The CSV fields `ticker`, `name`, `market`, and `sector` are user-controlled and are propagated into the result dictionaries. They are subsequently written to XLSX cells without first neutralizing formula-like values. In particular, a string beginning with `=` can be serialized as a spreadsheet formula rather than inert text. Values beginning with `+`, `-`, or `@` should also be treated as dangerous for compatibility with spreadsheet applications and CSV/formula-injection defenses. The vulnerability is triggered when the generated workbook is opened in software that evaluates the malicious cell. Depending on application policies, formulas can create external references, deceptive hyperlinks, data-disclosur ...[truncated 1382 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Note
Location
scanner.py:742
Finding

Markdown and Raw HTML Injection Through Unescaped Watchlist Fields

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (7)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill clearly performs filesystem reads and writes against the user's Obsidian vault, but it does not declare an explicit tool scope or permissions boundary. That creates a trust and review gap: an agent may invoke file-capable tools without the skill clearly constraining which paths are intended, increasing the chance of unintended file access or modification.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The trigger list ends with broad language such as applying whenever the user asks for batch technical analysis or mentions TradingView scanning scenarios, which expands activation beyond a tight phrase set. Overbroad triggers can cause the skill to run in contexts the user did not clearly intend, leading to unexpected filesystem access, package installation, or network activity.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill instructs reading a watchlist from the user's vault and writing generated reports back into the vault, but it does not present a clear warning about local filesystem side effects at the point of use. This can surprise users and increase the risk of modifying sensitive notes or writing outputs into unintended locations if paths are misconfigured.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
88% confidence
Finding

The skill recommends installing a persistent cron job on the user's machine to execute the scanner automatically. Persistence itself is sensitive because it causes recurring code execution and ongoing file/network activity outside the immediate user session, which can continue after the user forgets it was configured.

Content

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

方案 A:用户本地 cron(推荐)

告诉用户在本机设置:

bash
# crontab -e
0 18 * * 1-5 cd /path/to/vault && python /path/to/scanner.py --csv watchlist.csv --output 技术指标扫描/

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

Natural-language strings in the banner, help text, runtime messages, and generated report are predominantly Chinese, effectively imposing a specific language on users. The file does not offer opt-in language selection or explain that the skill is intentionally region/language-specific.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

This markdown file contains a full report in a single forced language/locale, but does not mention that the user opted into Chinese output or that the skill is intentionally region-specific. The policy requires either offering language choice or clearly documenting a justified locale constraint.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

The code sends watchlist-derived ticker symbols to TradingView via tvDatafeed, which is external network transmission of user-sourced portfolio metadata. While tickers are not highly sensitive by themselves, a watchlist can reveal investment interests or strategy, and the skill description says the source data comes from an Obsidian vault, so exfiltration to a third party should be explicitly disclosed and consented to.

Content

No source excerpt is available for this finding.