T09 · Insecure Skill Coding Practices
- Location
SKILL.md:16- Finding
Cross-Service Disclosure of Anthropic Authentication Token
- Content
View full analysis
- Remediation
View remediation
&2 exit 1 fi ``` 3. Update the quick-execution command so it uses only `DEEPSEEK_API_KEY`: ```bash [ -z "${DEEPSEEK_API_KEY:-}" ] && echo "Please set DEEPSEEK_API_KEY first" || curl -sS -X GET 'https://api.deepseek.com/user/balance' \ -H "Accept: application/json" \ -H "Authorization: Bearer ${DEEPSEEK_API_KEY}" | python3 -c 'import sys, json; data = json.load(sys.stdin); print(data)' ``` 4. Do not reuse credentials across unrelated providers, even as a compatibility fallback. 5. Document that the Skill requires only a DeepSeek-scoped API key. 6. Advise users who previously ran the Skill with only `ANTHROPIC_AUTH_TOKEN` configured to revoke or rotate that token and review associated account usage. 7. Consider using `curl --fail-with-body --show-error` and explicit HTTP-status handling in the quick command so authentication and network failures are not misrepresented as valid JSON responses. ]]>
