T09 · Insecure Skill Coding Practices
- Location
scripts/luban_helper.py:2415- Finding
Shell Command Injection in the Luban Code Generation Command
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is mostly a disclosed Luban game-configuration editor, but it needs review because one code-generation command can execute unsafe shell input.
Review before installing. Use this only in trusted Luban game-configuration repositories, require explicit user confirmation for every write/delete, avoid --force unless you have a backup, and do not pass user-supplied text into gen, --luban-cmd, --output, or --data-dir. Pin openpyxl and replace the gen shell invocation with argument-list subprocess execution before using it in sensitive environments.
scripts/luban_helper.py:2415Shell Command Injection in the Luban Code Generation Command
scripts/requirements.txt:1Unpinned Third-Party Dependency Produces Non-Reproducible Installations
The trigger policy is overly broad and mandatory, covering many generic terms like 配置表, Excel表, 字段, 修改配置, and 游戏数据, and even instructs invocation when Luban is not explicitly mentioned. This can cause the skill to be force-selected in unrelated conversations involving general configuration or spreadsheet editing, increasing the chance of unnecessary shell/file access and unintended modification workflows.
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
Referenced artifact was not completely inspected
python scripts/luban_helper.py <command> --data-dir <项目的Datas目录>
No suspicious patterns detected.