Back to skill

Security audit

加密组合跟踪

Security checks for vulnerabilities and agentic risk

Overview

This skill is a crypto portfolio helper, but it asks for broad command execution and describes automated trading without clear user-controlled safeguards.

Install only if you are comfortable with a crypto-finance skill that may handle wallet, exchange, portfolio, and API-key-related data. Use read-only exchange keys where possible, avoid exposing wallet secrets or trading credentials, and do not allow live trades or shell commands unless each action is explicitly reviewed and confirmed.

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:28
Finding

Excessive and Underspecified Command-Execution Permissions

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 28–30 and 393–395
Vulnerability Type: Excessive tool permissions and violation of least privilege
Risk Level: Medium

Vulnerable Code

The skill declares broad file-reading and command-execution capabilities:

yaml
tools:
  - read
  - exec

It later describes unrestricted file and command operations:

markdown
- **File processing**: Supports reading, parsing, and writing multiple file formats
- **API integration**: Calls external services through standardized interfaces and processes responses
- **Command execution**: Executes system commands in a secure sandbox and collects results

Technical Analysis

The package contains only SKILL.md; it provides no scripts or concrete workflow demonstrating a legitimate need for arbitrary system-command execution. Cryptocurrency portfolio calculations and queries to financial APIs do not inherently require shell access.

The declaration does not define:

  • An allowlist of permitted commands
  • Validated argument schemas
  • File-access boundaries
  • Permitted API domains or operations
  • Controls preventing access to credential files
  • Authorization requirements for state-changing or trading actions

The assertion that commands execute in a secure sandbox is documentation rather than an enforceable control implemented by this project. Consequently, an agent granting the declared capabilities may treat broad command and file operations as authorized. Attacker-controlled user input or untrusted financial API content could then influence tool use beyond the legitimate portfolio-analysis scope.

Attack Path

  1. An agent loads the skill and grants its declared read and exec tools.
  2. A user, compromised API, or other untrusted data source supplies content containing instructions framed as necessary portfolio-processing steps.
  3. The agent relies on the skill's broad file-processing and command-execution declarations as authorization ...[truncated 1340 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove the exec capability unless a specific, documented command is essential to the skill's operation.
  2. Prefer dedicated, narrowly scoped financial-data API tools over shell commands.
  3. Restrict file access to explicit files selected or supplied by the user and deny access to credential stores, environment files, SSH material, wallet secrets, and unrelated workspace paths.
  4. If command execution is unavoidable, implement a strict allowlist of executable paths and subcommands; reject shell metacharacters, redirections, substitutions, and unvalidated arguments.
  5. Execute commands without invoking a shell and pass validated arguments as a structured array.
  6. Define approved API domains, HTTP methods, request fields, and response-size limits.
  7. Treat user input and external API responses strictly as untrusted data, never as operational instructions.
  8. Require explicit user confirmation before trading, transfers, portfolio rebalancing, or any other state-changing operation.
  9. Use read-only, least-privilege API credentials by default and isolate them from command-execution environments.
  10. Replace documentation-only sandbox assurances with enforceable platform policies covering filesystem, process, network, and environment-variable access.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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
Findings (8)

Vague Triggers

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The activation condition is overly broad, indicating use whenever the user needs crypto portfolio tracking-related functionality. Broad triggers can cause the skill to activate in ambiguous contexts and access sensitive financial/account data or invoke risky features when the user did not clearly intend to use this specific skill.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

A crypto portfolio tracking skill does not inherently require system command execution, so exposing exec materially enlarges the attack surface without clear functional justification. Because the skill may process user-supplied financial/account inputs, an execution primitive could be abused to access local data, invoke network tools, or pivot beyond the intended portfolio analysis scope.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The documentation describes automated or intelligent trade execution without a clear warning about irreversible financial actions. In a volatile crypto setting, omission of such a warning is particularly dangerous because users may interpret recommendations or automation as low-risk while actual execution can immediately cause monetary loss.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
94% confidence
Finding

The documented automatic trade execution capability goes beyond passive portfolio tracking into active, potentially irreversible financial actions. Without strong consent, guardrails, and transactional controls, this could cause unauthorized trades, fund loss, or regulatory/compliance issues.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The description states '支持中文交互' in a way that presents Chinese as the fixed interaction language, and no alternative language option or user opt-in is provided elsewhere. This can violate language/locale policy expectations when a skill constrains language without explicitly giving the user a choice or documenting a justified region-specific limitation.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill states that command execution is limited to a whitelist, but no whitelist or bounded command policy is actually defined. In a skill with declared exec support, that gap leaves room for arbitrary or overly broad command execution under the guise of a safety control that does not exist.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill discusses wallet, exchange, and market integrations but does not provide a clear warning that users may expose sensitive financial or account-linked data. In this context, missing disclosure increases the chance users share API keys, balances, wallet addresses, or exchange details without understanding the privacy and security implications.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The document claims risky code and external references were removed, yet elsewhere it still advertises external API integrations and execution-capable behavior. This mismatch can mislead users and downstream agents into granting trust or permissions they would not otherwise allow, increasing the chance of unsafe invocation.

Content

No source excerpt is available for this finding.