T05 · Unauthorized Access and Privilege Escalation
- Location
clawhub.json:3- Finding
Unnecessary Exposure of the Solana Wallet Private Key
- Content
View full analysis
SDK tab") sys.exit(1) venue = os.environ.get("TRADING_VENUE", "kalshi") _client = SimmerClient(api_key=api_key, venue=venue, live=live) return _client ``` ### Technical Analysis The Skill declares `SOLANA_PRIVATE_KEY` as a required environment variable, but the audited `trader.py` implementation never reads or directly uses that credential. All authenticated trading operations are performed through a `SimmerClient` initialized with `SIMMER_API_KEY`. Requiring an unused wallet private key violates the principle of least privilege. Supplying the key makes it available in the process environment, where imported Python modules and other code running under the same process identity may access it through `os.environ`. This is especially concerning because the Skill imports a third-party trading SDK and optional trade-journal modules. The static pre-scan warning about sensitive information sent over the network appears primarily attributable to the API key being passed to th ...[truncated 1265 chars]- Remediation
View remediation
