T09 · Insecure Skill Coding Practices
- Location
scripts/validate_3d_model.py:89- Finding
Partial Binary STL Parsing Allows Dimension Validation Bypass
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill appears intended for 3D model auditing, but it overstates its audit coverage and includes fragile parsers that could mislead or disrupt users handling untrusted model files.
Install only if you treat this as an advisory, partial 3D-model checklist rather than a complete legal, content-safety, or printer-readiness gate. Run it on untrusted files with resource limits, manually review copyright/sensitive-content conclusions, and do not run publish.sh unless you intend to publish the skill to ClawHub.
scripts/validate_3d_model.py:89Partial Binary STL Parsing Allows Dimension Validation Bypass
scripts/validate_metadata.py:68Unbounded 3MF Decompression and XML Parsing Can Exhaust Resources
scripts/validate_3d_model.py:69Unbounded ASCII STL and OBJ Parsing Can Cause Denial of Service
scripts/validate_metadata.py:70Ambiguous 3MF Model-Part Selection Allows Metadata Spoofing
scripts/validate_3d_model.py:146OBJ Material References Can Escape the Model Directory and Probe File Existence
The skill is presented as a general 3D compliance auditor, but the finding indicates it mainly performs 3MF metadata-required-field checks while lacking the claimed format validation, infringement analysis, sensitive-content review, and print-size assessment. In a compliance workflow, such overclaiming materially increases risk because incomplete checks may be mistaken for full audit coverage.
The skill is presented as a general 3D compliance auditor, but the finding indicates it mainly performs 3MF metadata-required-field checks while lacking the claimed format validation, infringement analysis, sensitive-content review, and print-size assessment. In a compliance workflow, such overclaiming materially increases risk because incomplete checks may be mistaken for full audit coverage.
The skill is presented as a general 3D compliance auditor, but the finding indicates it mainly performs 3MF metadata-required-field checks while lacking the claimed format validation, infringement analysis, sensitive-content review, and print-size assessment. In a compliance workflow, such overclaiming materially increases risk because incomplete checks may be mistaken for full audit coverage.
该技能清单声明用途是审计STL、OBJ、3MF等3D模型的完整性、版权、敏感内容和打印尺寸,但此文件实际执行的是将当前目录作为Skill发布到clawhub的操作。发布/分发技能并不是3D模型审计功能的明显实现细节,而是与声明用途不同的独立行为。
The skill description promises copyright/IP detection, political-sensitive content detection, and inappropriate-content review, but the code only performs basic file-format parsing and bounding-box extraction. This is dangerous because operators may trust the skill to enforce content policy when it has no such detection logic, enabling prohibited models to be falsely treated as screened and approved.
The skill appears to require file-reading capability to inspect model files and metadata, but it does not explicitly declare any tool scope or permission boundaries. Missing scope declarations can cause the runtime to grant broader-than-necessary access or make review of the skill's actual capabilities harder, violating least-privilege expectations.
An activation scope phrased as applicable to 'any 3D model audit scenario' is overly broad and can cause the skill to trigger in contexts where its checks are incomplete or inappropriate. Overbroad routing increases the chance of misuse and overreliance, especially given the other capability mismatches already identified.
The skill name and description are presented entirely in Chinese and frame the skill as a Chinese-language capability, with no indication that users may choose another language or locale. Under the stated policy, forcing a specific language without user opt-in is a natural-language policy violation.
The display name, description, and changelog are written entirely in Chinese, which effectively forces a specific language for users reading the skill metadata. The file does not indicate that the skill is region-specific or provide any user opt-in or alternative locale, so this is a natural-language policy concern under the language/locale rule.
This code performs a subprocess-style publication action via clawhub publish, which can have external side effects, but the script provides no confirmation prompt or explicit warning about publishing before execution. The generic echo "正在发布..." announces progress, but it does not disclose the implications or give the user a chance to abort.
Suspicious Unicode normalization or mixed-script content
The entire skill reference is written only in Chinese and does not indicate that language selection is optional or that the file is intentionally limited to a Chinese-language or China-specific deployment. Under the policy, forcing a specific language or locale without opt-in is a natural-language policy violation.
This code file contains natural-language documentation and runtime output entirely in Chinese, including the module docstring and later user-facing messages. The policy only allows a fixed language when the skill offers a language choice, opt-in, or a clearly justified locale constraint, which is not present here.
The skill metadata claims support for 3MF auditing, but the implementation explicitly rejects 3MF files as unsupported. In a compliance or moderation workflow, this creates a silent coverage gap where users may rely on checks that never occur, allowing disallowed or unsafe 3MF content to pass unreviewed or be skipped entirely.
The manifest describes a compliance skill for STL/OBJ/3MF files that should verify file integrity/format validity, detect copyright infringement, identify political or inappropriate content, and check model size against printer bounds. This file's documented and implemented behavior is limited to checking whether Title, Description, and License metadata exist, with no code for content/IP analysis, geometry inspection, or printer-volume checks.
The script's natural-language comments and console output are written in Chinese, which imposes a specific language experience without any opt-in or indication that the skill is intentionally limited to Chinese-speaking users. Under the language/locale policy, locale-specific behavior should either offer a choice or clearly document and justify the constraint.
The file documentation says it validates required fields in 3MF files, while the main validation flow also accepts .stl and .obj extensions. For STL and OBJ, the implementation immediately reports that embedded metadata is unsupported rather than actually validating equivalent metadata sources, creating a mismatch between the apparent multi-format validator behavior and the documented 3MF-only purpose.
This code file contains its primary docstring and user-facing status/error messaging in Chinese, and there is no indication that language selection is optional or region-specific. The policy for natural-language content requires avoiding a forced language or locale unless the constraint is documented and justified.