T09 · Insecure Skill Coding Practices
- Location
scripts/run.py:65- Finding
Arbitrary API Endpoint Allows Bearer Credential and Medical Data Disclosure
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill performs a disclosed medical LLM task, but it can send medical questions and the bearer API key to any caller-supplied API URL without validation.
Install only if you trust the operator and endpoint configuration. Do not pass real patient identifiers, prefer the documented HTTPS endpoint, avoid untrusted `--api-url` values, and treat the command-line API key as sensitive because it is forwarded to the configured endpoint.
scripts/run.py:65Arbitrary API Endpoint Allows Bearer Credential and Medical Data Disclosure
The skill documentation exposes capabilities that imply local file access, file output, and outbound network calls, but it does not declare any explicit tool scope or permissions boundary. This is dangerous because integrators and users may invoke the skill without understanding that provided inputs can be read from arbitrary paths and transmitted to an external API, weakening least-privilege and review controls.
The skill instructs callers to send medical question content to an external model API but does not give a clear warning that the content leaves the local environment or that sensitive medical data may be exposed in transit or at the third-party service. In a medical context, this is especially risky because prompts may contain protected health information or other regulated data, and the current wording only gives a general compliance note rather than explicit transmission and privacy disclosure.
The default system prompt is hard-coded entirely in Chinese and instructs the model how to answer, effectively imposing a specific language/locale behavior on all requests unless the caller overrides it. This is a natural-language policy concern because the file does not offer an explicit user language choice or opt-in for Chinese output.
This skill sends user-supplied medical questions directly to a remote API endpoint, and medical prompts may contain protected health information or other sensitive data. Because the script provides no explicit warning, consent step, redaction, or minimization before transmission, operators can unintentionally disclose sensitive medical content to an external service.