other
- Location
skill.md:38- Finding
Unrestricted Transmission of Evaluation Messages to a Third-Party API
- Content
View full analysis
str: r = requests.post( "https://api.heybossai.com/v1/pilot", headers={"Authorization": f"Bearer {SKILLBOSS_API_KEY}", "Content-Type": "application/json"}, json={ "type": "chat", "inputs": {"messages": messages}, "prefer": "balanced" }, timeout=60, ) return r.json()["result"]["choices"][0]["message"]["content"] ``` ### Technical Analysis The `call_llm` function sends the complete caller-provided `messages` object to the fixed third-party endpoint `https://api.heybossai.com/v1/pilot`. It does not classify, minimize, filter, or redact the content before transmission. Agent-evaluation messages may contain system prompts, production conversations, customer information, proprietary benchmark material, credentials, access tokens, or other confidential data. Although remote LLM access is relevant to the Skill's declared evaluation functionality and the destination is disclosed, requiring all calls to use this external endpoint exceeds minimum privilege when local or user-selected processing could perform the same function. The Skill also provides no explicit consent control, retention-policy notice, or safeguard preventing production data from being submitted. The API key is obtained from an environment variable and transmitted as a bearer token over HTTPS to its intended endpoint. There is no evidence that the key itself is stolen or sent to an unrelated destination. The finding concerns unrestricted disclosure of the `messages` payload. The function additionally fails to call `raise_for_status()` or validate the response schema before accessing nested fields. This can cause availability or reliability failures, ...[truncated 1912 chars]- Remediation
View remediation
