Back to skill

Security audit

Hong Kong Stock Market HKEX

Security checks for vulnerabilities and agentic risk

Overview

The skill is purpose-aligned for HKEX market data, but it documents credential-bearing commands in a way that can expose the API key and relies on an unpinned executable npm package.

Install only if you trust the OneKey Gateway provider and npm package publisher. Prefer a pinned, project-local package install, avoid global npm installation, remove curl -v from credentialed requests, and keep DEEPNLP_ONEKEY_ROUTER_ACCESS out of logs, shell history, CI output, and support transcripts.

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 (2)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:9
Finding

Unpinned Third-Party npm Package Can Execute Unreviewed Code

Content
View full analysis
Remediation
View remediation
npx --no-install onekey agent aiagenta2z/financeagent \ get_hk_stock_market_hkex '{"symbol_list":["700","1024"]}' ``` ]]>

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:58
Finding

Verbose curl Command Discloses the OneKey API Credential

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (3)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill instructs users to export and send an API key in CLI and curl examples but provides no warning about sensitive credential handling, shell history exposure, log leakage, or secret management practices. In documentation for an externally connected tool, this omission can lead to accidental credential disclosure, especially when users copy commands into shared terminals, CI logs, or support channels.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% 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 · SKILL.md (reported line 65)May include surrounding context.

shell
export DEEPNLP_ONEKEY_ROUTER_ACCESS=your_access_key

curl -v -X POST "https://agent.deepnlp.org/agent_router" \
  -H "Content-Type: application/json" \
  -H "X-OneKey: $DEEPNLP_ONEKEY_ROUTER_ACCESS" \
  -d '{