suspicious.exposed_secret_literal
- Location
- references/api_reference.md:338
- Finding
- File appears to expose a hardcoded API secret or token.
AdvisoryAudited by Static analysis on May 10, 2026.
Detected: suspicious.exposed_secret_literal
Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.
The visible code is coherent, but this review cannot fully verify portions of the script that were not included in the prompt.
The executable script content is not fully visible in the supplied artifact, limiting review of the unseen tail of the file.
"truncated": true
If available, inspect the complete scripts/gen.py from the installed package or trusted registry before using it with credentials.
Anyone using the skill must provide a ModelScope API token, which may consume account quota or grant access according to that token's permissions.
The script uses the provided ModelScope API key as a bearer token when calling the ModelScope API, which is expected for this integration.
"Authorization": f"Bearer {api_key}"Use a dedicated or least-privileged ModelScope token if possible, keep it out of chat/logs, and prefer the MODELSCOPE_API_KEY environment variable over passing the key directly on the command line.
Text prompts and generation parameters are shared with ModelScope to generate the requested images.
The script sends the model, prompt, image count, and size to ModelScope's external image-generation endpoint.
url = "https://api-inference.modelscope.cn/v1/images/generations"
Do not submit confidential or sensitive prompt content unless you are comfortable sharing it with ModelScope under its terms and privacy practices.