Env Variable Harvesting
High
- Category
- Data Exfiltration
- Content
from hyperliquid.utils import constants def load_key(): k = os.environ.get("HYPERLIQUID_PRIVATE_KEY") if not k: p = os.path.expanduser("~/.hyperliquid/api-wallet.key") if os.path.exists(p):- Confidence
- 95% confidence
- Finding
- The skill explicitly instructs code to load a private trading key from an environment variable, which makes that secret available to any process, subprocess, debugging output, or co-resident bot on the desk computer. In this skill's own threat model, 'anything on it is readable by every Bot,' so exposing a live API wallet key to the runtime environment materially increases the chance of key theft and unauthorized trading or internal asset movements allowed to the agent wallet.
