T09 · Insecure Skill Coding Practices
- Location
scripts/ceae_tree_export.py:94- Finding
Unbounded causal-tree input can cause resource exhaustion
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill mostly matches its hardware root-cause-analysis purpose, but it asks for under-specified account-backed MCP/database access and includes an unbounded PNG export script, so it should be reviewed before installation.
Install only if you are comfortable with the skill using a third-party MCP service under your account for database-backed conclusions. Keep MCP access disabled for offline analysis, confirm before PNG export, and avoid running the exporter on untrusted or very large causal-tree JSON files.
scripts/ceae_tree_export.py:94Unbounded causal-tree input can cause resource exhaustion
Suspicious Unicode normalization or mixed-script content
The skill references code-capable behavior such as reading files and invoking a Python export script, but does not declare an explicit tool scope or allowed-tools boundary. That creates unnecessary ambiguity about what runtime capabilities the agent may use, increasing the chance of over-privileged execution or unintended file access in environments that infer permissions loosely.
The description lists activation phrases such as '根因分析', '因果图', '找根本原因', and 'ceae' without narrowing context or giving exclusion conditions. Several of these phrases are common in ordinary engineering discussion and could match routine user requests rather than a deliberate invocation of this specific skill.
The skill documentation expands behavior to MCP-based real-time retrieval and database-backed conclusions, which goes beyond the described root-cause-analysis and diagram-export function. This scope drift is dangerous because it can cause the agent to access external systems or sensitive enterprise data under user expectations set for a much narrower analytical skill.
External MCP service access and real-time/database retrieval are not justified by the core task of producing a root-cause analysis framework and causal diagram. Unnecessary networked retrieval enlarges the attack surface, creates opportunities for data leakage, and may expose proprietary engineering context to third-party services without a clear operational need.
The skill instructs generation of a PNG archive file but does not clearly warn users that a file will be created and stored. In enterprise or regulated settings, silent file creation can leave sensitive engineering analysis artifacts on disk, causing retention, privacy, or information-handling issues even if the file content is otherwise legitimate.