T09 · Insecure Skill Coding Practices
- Location
run_optimization.py:308- Finding
Spreadsheet Formula Injection in Generated Excel Reports
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a coherent local logistics optimization skill, with normal file outputs and no evidence of hidden execution, exfiltration, persistence, or privilege escalation.
Install and run this only in a normal project or virtual environment, and use trusted or reviewed Excel/JSON inputs. Be especially careful opening generated .xlsx reports from data supplied by other parties, because formula-like values may be preserved in the report.
run_optimization.py:308Spreadsheet Formula Injection in Generated Excel Reports
SKILL.md:94Unpinned Third-Party Dependency Installation
该代码块的核心功能是数据预处理与格式转换,而非声明中的“仓配网络优化系统”。它使用 pandas/openpyxl 读取Excel,包含时效单位检测、字段映射、发运星期解析、区域与仓库名称整理,并将结果输出为 trunk_lines.json 和 distribution_cycles.json。虽然处理了‘时效’和区县/区域级别字段,但仅是数据清洗与标准化,不是优化系统本身,也没有MILP建模、求解器调用、目标函数/约束、路径选择、中转策略或等待时间算法。因此声明与实际行为存在实质性不符。
This code file contains its primary docstring, usage instructions, and operational notices entirely in Chinese. Under the policy, forcing a specific language without offering user choice or documenting a justified locale constraint is a natural-language policy violation.
This manifest-style JSON stores warehouse names and transport descriptors entirely in Chinese, such as "合肥仓", "南京仓", "单程", and "调拨", with no accompanying indication that the skill is China-specific or that users can opt into this locale. Under the policy, forcing a specific language or locale without opt-in can be a natural-language policy violation.
This markdown file documents commands that generate JSON files from Excel inputs and later produce an Excel result file, but it does not explicitly warn users that new files will be created in the working directory. For a data-processing skill handling business datasets, a brief disclosure about generated artifacts would better inform users about filesystem changes.
This JSON file contains all operational values in Chinese place names and region labels throughout the dataset, which effectively fixes the skill content to a single language/locale. There is no accompanying natural-language note in the file indicating user choice, multilingual support, or a justified region-only constraint.
This code file contains user-facing natural-language text entirely in Chinese in the module docstring and usage description. The skill does not indicate that language is configurable or limited to a justified region-specific context, which can violate language/locale policy requirements.
The argparse description and help strings are user-visible natural-language content and are fixed to a single language. Because the file provides no language selection or explicit locale scoping, this is a natural-language policy concern.
No suspicious patterns detected.