T09 · Insecure Skill Coding Practices
- Location
scripts/generate-from-prompt.sh:7- Finding
Arbitrary Python Code Execution Through Unsanitized Output Name
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is for 3D model generation, but it can run user-influenced Python code without adequate safeguards.
Review this skill carefully before installing. Use it only with trusted prompts and simple output names, and avoid scheduled or automated use until generated Python is reviewed or run in a constrained sandbox with strict output-path validation.
scripts/generate-from-prompt.sh:7Arbitrary Python Code Execution Through Unsanitized Output Name
Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
## 2. Skill OpenClaw Automatisé
Crée le fichier `~/.openclaw/workspace/skills/ai-3d-generator/SKILL.md`:
### Utilisation
The skill explicitly describes a workflow where an LLM generates Python code and that code is then executed to produce and export STL files, but it provides no sandboxing, allowlisting, or human review gate. Because the model output is executable Python, prompt injection or model misbehavior could lead to arbitrary code execution, filesystem access, or unintended writes beyond the intended STL export path.
Comments, usage instructions, and user-facing output strings are presented exclusively in French. The file does not offer user opt-in for language selection or explain that the skill is intentionally limited to a French-speaking context.
The docstring says this function creates a parametric advanced space station, but the example code calls add_cylinder with rotation_angle, a parameter not accepted by the method signature at L048. This directly contradicts the implied executable example and means the documented example will fail rather than generate the described model.
The natural-language instructions and examples are presented in French, which may impose a language preference without user opt-in. The file does not state that the skill is region-specific or provide an alternative language option.
This file contains natural-language prompts and status messages in French, beginning in the module docstring and continuing throughout execution. Under the policy provided, forcing a specific language without user opt-in is a natural-language policy violation unless the locale constraint is explicitly justified.
This shell script creates a temporary file containing generated code, which is a file-write operation covered by the warning requirement for code files. Although the script prints progress messages, it does not disclose that it will write a temporary script under /tmp before executing it.
The embedded Python code creates directories and exports an STL file to a fixed path, which is a file-write operation. While the script reports the output path after completion, it does not clearly warn beforehand that it will create directories and write files in the workspace.
No suspicious patterns detected.