T08 · Insecure Dependencies
- Location
clawhub.json:3- Finding
Unpinned Trading SDK Has Access to High-Value Credentials
- 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 `simmer-sdk` dependency is specified without an exact version or package hash. Installation can consequently resolve to a future package release that was not covered by this audit. The dependency is imported into a process that contains `SIMMER_API_KEY` and is configured to contain `SOLANA_PRIVATE_KEY`. Python dependencies execute with the privileges and environment of the host process. A compromised SDK release could read all process environment variables, transmit credentials, alter market data returned to the strategy, or execute unauthorized trades. The project code passes `SIMMER_API_KEY` to the declared `SimmerClient`; no direct transmission of the credential to an unrelated endpoint was found in the audited project files. `SOLANA_PRIVATE_KEY` is declared as required but is not directly read by `trader.py`. Nevertheless, an imported depen ...[truncated 1103 chars]- Remediation
View remediation
