T07 · Tool Hijacking and Spoofing
- Location
scripts/client_factory.py:3- Finding
Deliberate Bypass of SDK Entrypoint Integrity Verification
- Content
View full analysis
SimmerClient: return SimmerClient(api_key=api_key, venue=venue, live=live) ``` ```python # player_goal_value.py:111-120 def get_client(live: bool, venue: str): cache_key = (venue, bool(live)) if cache_key not in _clients: from scripts.client_factory import create_simmer_client key = os.environ.get("SIMMER_API_KEY") if not key: print("Error: SIMMER_API_KEY not set") sys.exit(1) _clients[cache_key] = create_simmer_client(api_key=key, venue=venue, live=live) return _clients[cache_key] ``` ### Technical Analysis The helper explicitly states that it constructs `SimmerClient` from a directory without `SKILL.md` so that the SDK does not validate the trading entrypoint against its published hash. The trading engine then delegates authenticated client construction to this helper. Entrypoint verification is a supply-chain and code-integrity boundary. Its purpose is to ensure that code exercising authenticated trading capabilities matches the reviewed or published Skill. Moving client construction to a metadata-free directory makes modified code appear outside the verification c ...[truncated 1449 chars]- Remediation
View remediation
