Back to skill

Security audit

Okx Dex Market

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly a coherent OKX market-data helper, but it can automatically download and run a mutable remote installer during normal use.

Review this skill before installing. Its market and wallet analysis behavior is generally disclosed, but installation can run code fetched from the OKX GitHub release path, and payment defaults may persist after confirmation. Install only if you trust the OKX release process and are comfortable with the CLI managing local state and displaying wallet financial activity.

Vulnerability Patterns
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Findings (1)

T03 · Remote Payload Retrieval and Execution

Warning
Location
_shared/preflight.md:18
Finding

Automatic Retrieval and Execution of a Mutable Remote Installer

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • System Prompt LeakageDirect Leakage, Indirect Extraction, Tool-Based Exfiltration
  • 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 (6)

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

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

md
- **`portfolio-token-pnl` `isPnlSupported = false`**: PnL calculation is not supported for this token/chain combination
- **Network error**: retry once, then prompt user to try again later

## Amount Display Rules

- Always display in UI units (`1.5 ETH`), never base units
- Show USD value alongside (`1.5 ETH ≈ $4,500`)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
83% confidence
Finding

The instruction says that if the user's query contains Chinese text, the agent should read a separate glossary for keyword-to-command mappings. This creates language-specific behavior triggered solely by detected language, without offering the user a choice or documenting an opt-in.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The skill metadata and top-level routing instructions explicitly say WebSocket scripts/bots should be routed to a different skill, yet this file includes concrete WebSocket commands and points users to a WebSocket protocol reference. That contradiction can cause misrouting and policy bypass, especially if an orchestrator or downstream agent follows the embedded operational instructions instead of the declared boundary.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · _shared/preflight.md (reported line 9)May include surrounding context.

  1. Resolve latest stable version: Fetch the latest stable release tag from the GitHub API:
    text
    curl -sSL "https://api.github.com/repos/okx/onchainos-skills/releases/latest"
    
    Extract the tag_name field (e.g., v1.0.5) into LATEST_TAG. If the API call fails and onchainos is already installed locally, skip steps 2-3

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

This markdown file documents commands that retrieve wallet portfolio overview, DEX transaction history, and recent/token PnL for a supplied wallet address. The descriptions explain the data returned but do not warn users that these commands may surface sensitive financial activity and trading history, which falls under markdown-file missing user warnings for privacy-affecting behavior.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
78% confidence
Finding

The single-entry confirmation flow explicitly instructs asking the user to confirm with yes / proceed / 确认, which introduces a Chinese-language response token alongside English without any stated locale policy or user language selection. This can be a natural-language policy concern because the skill mixes language-specific interaction requirements without documenting user choice or regional justification.

Content

No source excerpt is available for this finding.