Env Variable Harvesting
High
- Category
- Data Exfiltration
- Content
from hyperliquid.utils.types import Cloid 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
- 94% confidence
- Finding
- The skill instructs the agent to load a private signing key from an environment variable and, if absent, from a local file in the operator’s home directory. Even though this is presented as normal setup for authenticated trading, it exposes a highly sensitive secret to the skill execution path and creates a credential-access pattern that could be abused by any compromised tool, prompt injection, or downstream code path that gains read access to process environment variables or local files.
