T09 · Insecure Skill Coding Practices
- Location
SKILL.md:36- Finding
Credentials Exposed Through Command-Line Arguments
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This Feishu bot skill is mostly purpose-aligned, but it tells users to handle app secrets, bearer tokens, chat history, and message sending through broad raw API examples without enough safety scoping.
Install only if you are comfortable with a skill that helps send Feishu group messages and inspect recent group message history for mentions. Use it only with approved chats, least-privilege Feishu app permissions, secure secret storage, and redacted logs; avoid putting real app_secret values or bearer tokens directly into shell commands.
SKILL.md:36Credentials Exposed Through Command-Line Arguments
The skill instructs operators to obtain a tenant access token using app credentials and query group message history to extract mentions, but it provides no warning about the sensitivity of chat data, tokens, or access control requirements. This can lead users or downstream agents to access private conversation history and handle secrets insecurely, increasing the chance of privacy violations or credential exposure.
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
# 1. 获取 tenant_access_token
TOKEN=$(curl -s -X POST "https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal" \
-H "Content-Type: application/json" \
-d '{"app_id":"YOUR_APP_ID","app_secret":"YOUR_APP_SECRET"}' | jq -r '.tenant_access_token')
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
curl -X POST "https://open.feishu.cn/open-apis/im/v1/messages?receive_id_type=chat_id" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
No suspicious patterns detected.