T09 · Insecure Skill Coding Practices
- Location
SKILL.md:31- Finding
Command Injection Through Unsafe Hostname Interpolation in Shell Templates
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill’s alphaMountain lookups are coherent and disclosed, but its shell command examples can be unsafe if an agent inserts an untrusted hostname directly into the curl template.
Review this skill before installing. It is appropriate if you intend to query alphaMountain with hostnames and have an ALPHAMOUNTAIN_API_KEY, but agents should validate hostname input, avoid direct shell string substitution, build JSON with a serializer or safe argument handling, and avoid logging the license key.
SKILL.md:31Command Injection Through Unsafe Hostname Interpolation in Shell Templates
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
## Implementation
All requests are `POST https://api.alphamountain.ai/intelligence/hostname` with `Content-Type: application/json`. The license key is always `$ALPHAMOUNTAIN_API_KEY`.
### Lookup — `POST /intelligence/hostname`
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
## Implementation
All requests are `POST https://api.alphamountain.ai/intelligence/hostname` with `Content-Type: application/json`. The license key is always `$ALPHAMOUNTAIN_API_KEY`.
### Lookup — `POST /intelligence/hostname`
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
## Implementation
All requests are `POST https://api.alphamountain.ai/intelligence/hostname` with `Content-Type: application/json`. The license key is always `$ALPHAMOUNTAIN_API_KEY`.
### Lookup — `POST /intelligence/hostname`
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
## Implementation
All requests are `POST https://api.alphamountain.ai/intelligence/hostname` with `Content-Type: application/json`. The license key is always `$ALPHAMOUNTAIN_API_KEY`.
### Lookup — `POST /intelligence/hostname`
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
POST /intelligence/hostnamecurl -s -X POST \
-H 'Content-Type: application/json' \
-d "{\"hostname\":\"HOSTNAME\",\"license\":\"$ALPHAMOUNTAIN_API_KEY\",\"version\":1,\"sections\":[\"threat\",\"category\",\"popularity\",\"dga\"]}" \
https://api.alphamountain.ai/intelligence/hostname
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
Options example (pdns with a limit, relations_same_ip enriched with threat ratings):
curl -s -X POST \
-H 'Content-Type: application/json' \
-d "{\"hostname\":\"HOSTNAME\",\"license\":\"$ALPHAMOUNTAIN_API_KEY\",\"version\":1,\"sections\":[\"threat\",\"pdns\",\"relations_same_ip\"],\"options\":{\"pdns\":{\"limit\":20},\"relations_same_ip\":{\"limit\":10,\"flags\":[\"include-ratings\"]}}}" \
https://api.alphamountain.ai/intelligence/hostname