T09 · Insecure Skill Coding Practices
- Location
scripts/generate_image.py:35- Finding
Predictable Shared Temporary Cache Permits Cache Poisoning and Symlink Attacks
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill mostly does what it says, but it has review-worthy data-sharing and local-network/download risks users should understand before installing.
Install only if you are comfortable sending prompts and reference images/videos to AI Artist, and do not use private media unless you understand the provider's retention and sharing behavior. Avoid setting FEISHU_WEBHOOK_URL in shared environments unless you intend every prompt and result link to be posted there. Do not print your full AI_ARTIST_TOKEN; rotate it if it has appeared in logs. Use --download cautiously because the skill does not validate returned media URLs or download size.
scripts/generate_image.py:35Predictable Shared Temporary Cache Permits Cache Poisoning and Symlink Attacks
scripts/generate_image.py:434Unvalidated Server-Provided Media URL Enables Client-Side SSRF and Resource Exhaustion
SKILL.md:563Credential Verification Instructions Print the Complete API Token
Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
with open(file_path, 'rb') as f:
files = {'file': (os.path.basename(file_path), f)}
headers = {'X-Api-Key': API_KEY}
response = requests.post(FILE_UPLOAD_URL, headers=headers, files=files, timeout=120)
response.raise_for_status()
result = response.json()
The script posts prompt content and result URLs to an arbitrary webhook URL taken directly from the FEISHU_WEBHOOK_URL environment variable. This creates an exfiltration path to any attacker-controlled endpoint if the environment is poisoned or misconfigured, and it occurs automatically whenever the variable is set.
}
}
response = requests.post(
FEISHU_WEBHOOK_URL,
json=content,
headers={"Content-Type": "application/json"},
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。
Referenced artifact was not completely inspected
查看当前服务端激活的模型请运行:`python3 scripts/generate_image.py --list-models`。