Back to skill

Security audit

Market Signals

Security checks for vulnerabilities and agentic risk

Overview

This skill is a local CSV-based market signal analyzer with no evidence of hidden network access, persistence, credential use, or destructive behavior.

Install only if you are comfortable running a local Python script over CSV market data. Use trusted CSV files when viewing terminal output, treat generated trading signals as informational rather than financial advice, and prefer JSON output if you need machine-readable results.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (2)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/market_signals.py:433
Finding

Terminal Escape-Sequence Injection Through Untrusted CSV Fields

Content
View full analysis
= 0 else "↓" bb = f"{r.get('bb_pct', 'N/A')}" if isinstance(r.get('bb_pct'), (int, float)): bb = f"↓{r['bb_pct']:.1f}" if r['bb_pct'] < 0.2 else f"↑{r['bb_pct']:.1f}" if r['bb_pct'] > 0.8 else f"{r['bb_pct']:.1f}" print(f" {name:<10} {r['current']:>8.2f} " f"{arrow}{abs(r['change_pct']):>5.1f}% " f"{r['rsi'] if r['rsi'] else 'N/A':>6} " f"{r['ma_signal']:<12} {r['vol_signal']:<7} " f"{bb:>7} {r['score']:>3} {r['recommendation']}") ``` ```python for h in history[-max_rows:]: print(f" {h['date']:<12} {h['close']:>8.2f} " f"{h['rsi'] if h['rsi'] else 'N/A':>6} " f"{h['ma_signal']:<8} " f"{h['signal_count']:>6}") ``` ### Technical Analysis The `name` and `date` values originate from the supplied CSV file and are printed directly to the terminal. No validation or neutralization removes ANSI, OSC, C0, or C1 terminal control sequences. Python string formatting controls field width but does not escape embedded control characters. Consequently, a malicious CSV field can contain sequences that alter cursor position, clear previous output, change colors, create deceptive hyperlinks, or invoke terminal-specific features such as OSC clipboard operations. This issue does not provide arbitrary operating-system command execution by itself. Exploitation depends on the control sequences supported and enabled by the terminal emulator in which the script is run. ### Attack Path 1. An attacker creates or modifies a CSV file accepted by the tool. 2. The attacker places terminal escape sequences in a `name` f ...[truncated 1026 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Note
Location
scripts/market_signals.py:250
Finding

Malformed Market Data Can Cause Unhandled Exceptions and Denial of Service

Content
View full analysis
= 2 else 0 ``` The history path repeats the independently filtered column extraction: ```python prices = [parse_float(r[price_col]) for r in rows if r.get(price_col)] volumes = [parse_float(r[vol_col]) for r in rows if r.get(vol_col)] if vol_col else [] highs = [parse_float(r[high_col]) for r in rows if r.get(high_col)] if high_col else prices lows = [parse_float(r[low_col]) for r in rows if r.get(low_col)] if low_col else prices ``` ATR calculation assumes aligned arrays: ```python def compute_atr(highs, lows, closes, period=14): if len(closes) < period + 1: return None trs = [] for i in range(-period, 0): h = highs[i]; l = lows[i]; pc = closes[i-1] tr = max(h-l, abs(h-pc), abs(l-pc)) trs.append(tr) return round(sum(trs) / period, 2) ``` ### Technical Analysis The CSV parser accepts invalid numeric values because `parse_float()` converts malformed values to `0.0`. The analysis then calculates percentage change using the previous close as a denominator without checking whether that value is zero. A CSV containing a zero or invalid previous closing price therefore causes an uncaught `ZeroDivisionError`. Price, volume, high, and low columns are also filtered independently. If ...[truncated 1964 chars]
Remediation
View remediation
Vulnerability Patterns
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • 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
Findings (6)

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
94% confidence
Finding

The manifest description and usage guidance are written in Chinese and present the skill as operating in that language, with no indication that users may choose another language or locale. This can violate language/locale policy when a skill implicitly mandates a specific language without opt-in.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The file’s user-facing natural language is consistently Chinese, including the module description and usage/help text, and later runtime outputs and recommendation labels are also hard-coded in Chinese. Because the skill does not provide any language or locale selection or document a justified region-specific restriction, this is a language-policy violation under the natural-language policy rules.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
78% confidence
Finding

Line L01 presents the skill changelog entirely in Chinese ("更新日志") with no indication that language selection is optional or that the skill is intended only for a Chinese-speaking or region-specific audience. Under the policy rule, forcing a specific language without user opt-in can be a natural-language policy violation.

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 presents all user-facing instructions and feature descriptions in Chinese, with no indication that other languages are supported or that Chinese is required for a region-specific purpose. The policy for natural-language content requires avoiding a forced language or locale unless the user is given a choice or the constraint is clearly justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
85% confidence
Finding

The package description uses Chinese-language text exclusively, which can amount to a language/locale policy issue when the skill does not explicitly offer a user language choice or clearly justify the constraint. Although the manifest includes region "cn", the description itself does not state that the skill is intended only for Chinese-speaking users or provide opt-in language selection.

Content

No source excerpt is available for this finding.