T09 · Insecure Skill Coding Practices
- Location
config.json:2- Finding
Hard-Coded Amap API Credential in Distributed Configuration
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This map-service skill is mostly coherent, but it ships a real-looking API key and can expose user-provided dataset URLs through generated heatmap links.
Review before installing. Use your own restricted Amap key through an environment variable, remove or rotate the bundled key, keep config files owner-only, and avoid private, signed, internal, or token-bearing dataset URLs for heatmaps. Treat generated heatmap links as third-party sharing links.
config.json:2Hard-Coded Amap API Credential in Distributed Configuration
SKILL.md:102API Credential Transmitted in a URL Query Parameter
SKILL.md:133Heatmap Visualization Link Uses Unencrypted HTTP
The trigger conditions include very generic keywords like “搜”, “找”, “查”, “附近”, “路线”, and “规划”, which can cause the skill to activate for many unrelated user requests. In an agent setting, overbroad invocation increases the chance that user queries are unnecessarily routed to this skill, leading to unintended third-party requests, telemetry emission, or requests for an API key when the user did not intend to use Amap services.
The heatmap workflow instructs the agent to take a user-provided data URL and embed it into an Amap-hosted visualization link without clearly warning that the URL will be disclosed to a third-party service. If users supply private, signed, internal, or sensitive dataset URLs, the skill could expose those URLs and associated access tokens to Amap infrastructure and anyone who receives the generated link.