T08 · Insecure Dependencies
- Location
SKILL.md:24- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill mostly matches its stated Feishu voice-message purpose, but it can send content externally and leaves generated voice files on disk with weak scoping and disclosure.
Install only if you are comfortable with message text being processed by Edge TTS, sent to Feishu, and retained as generated audio files unless manually cleaned up. Prefer pinned dependencies, a virtual environment, narrower Feishu-specific triggers, and explicit confirmation before sending sensitive content.
SKILL.md:24Unpinned Third-Party Dependency Installation
scripts/voice_sender.py:68Generated Voice Messages Persist in Temporary and Outbound Storage
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
pip install edge-tts
sudo apt-get install ffmpeg
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
pip install edge-tts
sudo apt-get install ffmpeg
The skill advertises shell execution, environment access, and file-writing behavior through its installation and usage steps, but it does not declare any explicit tool scope or permissions. This creates a mismatch between what the skill can do and what users or a host framework may expect, increasing the risk of unintended command execution or filesystem side effects without clear consent boundaries.
The trigger phrases include generic terms such as “tts” and “文字转语音,” which are broad enough to match many normal user requests unrelated to Feishu delivery. Overbroad triggers can cause the skill to activate unexpectedly and send content to an external platform when the user only intended local text-to-speech generation.
The feature list emphasizes one-click sending to Feishu but does not prominently warn users that their input text will be converted and transmitted externally. Without an explicit user-facing disclosure, sensitive internal messages, alerts, or personal data could be unintentionally sent to a third-party service or chat destination.
The natural-language descriptions, help text, and available voices are all fixed to Chinese usage, and the code does not present this as an optional locale setting or ask for user preference. This can violate language/locale policy when a skill forces a specific language without opt-in.
The skill sends arbitrary input text to the external Edge TTS service during synthesis, but the user-facing behavior does not clearly warn that message contents leave the local environment. In a messaging assistant context, users may paste sensitive internal or personal content, creating a real confidentiality risk through unintended third-party disclosure.
The manifest describes a Feishu voice sender based on Edge TTS, which clearly justifies text-to-speech generation and message sending, but it does not mention spawning local command-line tools. This file relies on external executables for media conversion and message delivery, which is a broader capability than the stated purpose and introduces operational power not disclosed in the skill description.
subprocess module calls execute external commands. Without careful input validation, this enables command injection.
"-ac", "1", "-ar", "16000",
opus_file
]
result = subprocess.run(cmd, capture_output=True)
os.remove(mp3_file) # 清理 MP3
subprocess module calls execute external commands. Without careful input validation, this enables command injection.
cmd.extend(["--media", target_file, "--message", "语音消息"])
result = subprocess.run(cmd, capture_output=True, text=True)
if result.returncode == 0:
print("✅ 发送成功!")
The stated purpose is converting text to speech and sending it to Feishu, but the implementation also inspects runtime environment variables to determine the destination chat. While convenient for reply mode, environment-variable access is an additional capability not disclosed in the manifest description.