T09 · Insecure Skill Coding Practices
- Location
scripts/data_clean.py:31- Finding
Spreadsheet Formula Injection in Exported CSV and Excel Files
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This data-cleaning skill mostly matches its stated purpose, but it needs Review because it can install unpinned Python packages and exports spreadsheet files without neutralizing formula-like values.
Install only if you are comfortable with a Chinese-language data-cleaning tool that may install Python packages at runtime. Use it in an isolated environment, avoid opening cleaned CSV/XLSX files from untrusted data in spreadsheet software unless formulas are neutralized, and keep original data backups before running deduplication.
scripts/data_clean.py:31Spreadsheet Formula Injection in Exported CSV and Excel Files
SKILL.md:73Unpinned Third-Party Dependency Installation
The skill performs file-writing behavior by saving uploaded or pasted data to the workspace and generating cleaned output/report files, but it declares no explicit tool scope or permissions. This weakens enforcement and review boundaries, making unintended file operations harder to govern if the skill is invoked unexpectedly or extended later.
The trigger conditions are broad and include common phrases around cleaning, deduplication, preprocessing, and data quality, which increases the chance of accidental invocation. Because this skill writes files and runs a script over user-provided inputs, over-triggering can lead to unintended data processing, file creation, or privacy-impacting handling of uploaded datasets.
L72 states the default strategy is to mark abnormal values and 'not directly delete' them, preserving manual review. However, elsewhere the skill explicitly documents deduplicate as a default cleaning rule and the report includes '删除行数' (L28, L44, L58), which indicates row deletion can occur as part of normal execution.
The instruction to run pip install introduces package installation as part of skill execution, which expands the attack surface beyond routine data cleaning. Installing dependencies at runtime can fetch unpinned or tampered packages and enables environment modification that is unnecessary for normal operation in a tightly controlled skill environment.
This code file contains natural-language strings entirely in Chinese in the module docstring and CLI help text, which imposes a specific language on users without opt-in. The file does not indicate that the skill is region-specific or provide any alternative locale, so it conflicts with the language/locale policy criteria.
该技能整体说明以中文固定表述其行为与触发方式,但没有说明这是面向特定中文用户群的限定场景,也没有提供语言/locale 选择或 opt-in。按规则,若技能隐含强制特定语言而无用户选择,属于自然语言层面的策略风险。
This markdown file presents all skill guidance in Chinese, and there is no indication that users can opt into another language or that the skill is intentionally limited to a Chinese-speaking or region-specific context. Under the stated policy, forcing a specific language without user opt-in is a natural-language policy concern.