Back to skill

Security audit

forgex

Security checks for vulnerabilities and agentic risk

Overview

This skill is a coherent cryptocurrency wallet and trading CLI guide, but it asks users to handle real funds and private keys with unsafe or under-scoped examples.

Review this carefully before installing. Use only disposable or low-value wallets unless the CLI package version and source are verified, avoid pasting real passwords or private keys into shell commands, prefer encrypted backups over CSV files, and run dry-runs with strict limits before any live automation.

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

T08 · Insecure Dependencies

Error
Location
SKILL.md:38
Finding

Unpinned Global Installation of a Security-Critical npm Package

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:119
Finding

Wallet Passwords and Private Keys Passed Through Command-Line Arguments

Content
View full analysis
[subcommand] [options] ``` ``` ```markdown ```bash # Generate new wallets (max 100 per group) forgex --password "pwd" wallet generate --group 1 --count 10 # Add an existing wallet by private key forgex --password "pwd" wallet add --group 1 --private-key "Base58Key..." --note "main wallet" # Remove a wallet from group forgex --password "pwd" wallet remove --group 1 --address "WalletAddress..." # Import from CSV (format: privateKey,note) forgex --password "pwd" wallet import --group 1 --file ./wallets.csv ``` ``` ### Technical Analysis The documentation instructs users to place wallet passwords and even raw private keys directly in command-line arguments. Command-line secrets can be exposed through several operating-system and operational channels: - Interactive shell history. - Process listings and process-inspection interfaces. - Terminal session recording. - Audit and endpoint-monitoring logs. - Command wrappers, debugging output, or error reports. - CI/CD job definitions and logs if the examples are automated. Quoting a secret prevents shell word splitting but does not prevent it from appearing in the process argument vector or shell history. A private key exposed in this manner directly grants control over its corresponding wallet. ### Attack Path 1. A user follows the examples and runs a command containing `--password "..."` or `--private-key "..."`. 2. The shell records the command in its history, or a process monitor observes the process argument vector while the command is running. 3. A local user, support agent, monitoring system, compromised process, or later attacker re ...[truncated 807 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:188
Finding

Wallet Private Keys Can Be Imported and Exported in Plaintext CSV Files

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

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill includes private-key import/export and CSV backup workflows but does not prominently warn that these commands handle extremely sensitive credentials that can directly transfer funds if exposed. Showing examples with raw private keys, CSV files, and export operations without storage, encryption, and environment-safety guidance increases the risk of credential theft and wallet compromise.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill documents destructive operations like deleting wallet groups without clearly warning that the action may be irreversible or may orphan access workflows if users delete the wrong group. In a wallet-management tool tied to real funds, missing deletion-risk messaging materially increases the chance of operator error and permanent loss of access to managed wallet records.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill describes automated volume and turnover tools that can execute repeated on-chain trades and transfers, yet it does not clearly emphasize that disabling simulation or using daemon/round modes can rapidly move real funds many times. In a financial automation context, that omission makes accidental live execution, repeated loss, fee burn, and unintended market activity more likely.

Content

No source excerpt is available for this finding.