Back to skill

Security audit

金融知识问答

Security checks for vulnerabilities and agentic risk

Overview

This finance skill is not clearly malicious, but it asks for command execution and handles sensitive investment data without enough scoping or user-facing safeguards.

Review before installing. Use only if you are comfortable with a finance assistant that may use API keys, market data, risk preferences, and trading history. Do not grant command execution or administrator privileges unless a specific command and reason are shown, and treat outputs as informational rather than guaranteed investment advice.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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 (1)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:18
Finding

Unnecessary Command-Execution Capability and Elevated-Privilege Guidance

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:18-20; related references at SKILL.md:210, SKILL.md:401, SKILL.md:420, SKILL.md:435, and SKILL.md:450
Vulnerability Type: Excessive tool permissions and unsafe privilege-elevation guidance
Risk Level: Medium

yaml
tools:
- read
- exec

Line 210 additionally classifies the skill as requiring agent execution capability. Lines 401, 420, 435, and 450 repeatedly advise resolving insufficient permissions by running with administrator privileges.

Technical Analysis

The skill is presented as a financial knowledge, education, and analysis resource, but its metadata requests unrestricted command-execution capability. The documented functionality does not identify a specific local command, executable component, or narrowly scoped operation that requires this permission. The project contains only SKILL.md and ships no implementation scripts.

Granting exec violates least-privilege principles because an agent loading the skill may be authorized to run arbitrary operating-system commands despite the skill's documentation-oriented purpose. The repeated recommendation to run as administrator further increases risk by encouraging elevation rather than diagnosing and granting only the minimum required file or resource permission.

The declaration alone does not automatically execute commands or obtain administrator rights. Exploitation would require an unsafe generated command, malicious or manipulated input, or a user accepting the elevation guidance. Nevertheless, the unnecessary capability creates an avoidable command-execution channel.

Attack Path

  1. A user loads the financial skill, causing the agent platform to make the declared exec tool available.
  2. An attacker-controlled prompt, untrusted financial data, or an erroneous generated workflow influences the agent to construct a shell command.
  3. The agent invokes exec, even though command exe ...[truncated 992 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove exec from the declared tools and retain only capabilities demonstrably required for financial education and analysis.
  2. If execution is genuinely required in a future version, replace unrestricted execution with a narrow allowlist of fixed commands and validated arguments.
  3. Require explicit user confirmation before every command that modifies files, accesses credentials, contacts external services, or changes system configuration.
  4. Remove the generic recommendation to run as administrator from lines 401, 420, 435, and 450.
  5. Replace elevation advice with least-privilege diagnostics, such as identifying the exact resource, verifying ownership, and granting only the minimum permission required.
  6. Run any necessary processing in a sandbox with restricted filesystem access, no inherited secrets, constrained network access, and execution time limits.
  7. Document why each requested tool is necessary and add automated policy checks that reject unjustified execution or privilege requirements.
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (3)

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill claims that risky code and external dependencies were removed, yet the same document still advertises API-key use, external A股 data sources, network error handling, command execution support, and an exec tool. This inconsistency can mislead users and reviewers into overtrusting the skill’s safety posture, increasing the chance that sensitive data or command execution capabilities are enabled without appropriate scrutiny.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The activation text is broad enough to trigger on ordinary finance-related user requests, causing the skill to be selected in contexts where the user may only want general information. In a skill that references investment advice, external data, and execution support, overbroad triggering raises the risk of unnecessary data exposure, unintended tool use, or unvetted financial guidance being injected into normal conversations.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The skill describes using user data, risk preference, historical trading data, and market data to generate personalized investment advice, but it does not present a clear user-facing privacy notice, consent flow, or decision-risk disclaimer. In a finance context, this is more dangerous because users may provide sensitive financial information and rely on the output for real investment decisions, creating privacy, compliance, and harm risks if the advice is inaccurate or the data is mishandled.

Content

No source excerpt is available for this finding.