T09 · Insecure Skill Coding Practices
- Location
references/troubleshooting.md:12- Finding
MCP troubleshooting procedure exposes configured API credentials
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill mostly matches its Douyin video-analysis purpose, but its setup and troubleshooting instructions can expose API keys and read local MCP configuration too broadly.
Install only if you are comfortable with a skill that uses a browser profile, local MCP configuration, and API-backed transcription. Do not run the troubleshooting config-dump command with real credentials unless it is redacted first, avoid pasting API keys into shell commands or support chats, and prefer pinned, reviewed versions of mcporter and douyin-mcp-server.
references/troubleshooting.md:12MCP troubleshooting procedure exposes configured API credentials
references/setup.md:6Unpinned third-party packages are installed and executed
SKILL.md:59API keys are propagated through generated shell command text
The skill instructs the agent to read local MCP configuration files and enumerate configured environment-variable keys from user-local paths such as ~/.cursor/mcp.json and ~/.claude.json. Accessing local configuration is not required to analyze Douyin videos, and it expands the skill’s scope into sensitive host inspection that could expose secret-management details or normalize unnecessary local file access.
The workflow directs access to sensitive local configuration files but provides no warning, consent boundary, or minimization guidance. Even though it only prints environment key names in the example, reading these files can reveal broader configuration data and conditions the agent to inspect user-local secrets infrastructure without necessity for the stated task.
The entire troubleshooting document is written in Chinese and does not indicate that other languages are supported or that the Chinese-only format is a region-specific requirement. This can violate a language/locale policy when users are not given an explicit opt-in or alternative.
The file consistently prescribes the skill behavior and output format in Chinese, but does not indicate that users may choose another language. This can violate language/locale policy when a skill implicitly forces a specific language without user opt-in.
This markdown file contains user-facing instructions only in Chinese, beginning with the title and continuing throughout the document. Under the policy rule for natural-language violations, forcing a specific language without user opt-in can be a locale policy issue when no alternative language option or justification is provided.