T09 · Insecure Skill Coding Practices
- Location
scripts/analyze.py:34- Finding
Path Traversal Allows Analysis Outside the Intended KPI Data Directories
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill mostly performs local vehicle KPI log analysis, but it needs Review because its script can read outside the intended KPI folders and prints VIN identifiers by default.
Install only in the intended internal KPI environment. Avoid running it on untrusted session names, do not pass arbitrary paths to --dir, and treat output as potentially sensitive because it may include VINs, build IDs, boot counters, error messages, and raw log summaries.
scripts/analyze.py:34Path Traversal Allows Analysis Outside the Intended KPI Data Directories
scripts/analyze.py:327Vehicle Identification Number Is Disclosed in Default Command Output
This markdown skill file presents all functional instructions and operational guidance in Chinese only. Per the policy, forcing a specific language without offering the user a choice is a natural-language policy violation unless the locale restriction is explicitly justified, which it is not here.
The script prints fields from report.json directly to stdout, including VIN, build ID, boot counters, and error details, without masking, consent, or any warning that sensitive device/session data will be exposed. In shared terminals, CI logs, shell history capture, or support bundles, this can leak identifiable vehicle information and operational metadata to unauthorized viewers.
The module docstring and CLI help text are presented in Chinese without indicating that language is configurable or user-selectable. This can violate a language/locale policy when a skill effectively forces one language without opt-in.
The argparse description, examples, and subcommand help strings are all hardcoded in Chinese, which constrains user interaction to one locale. No alternative locale, opt-in, or justification for the language restriction is documented in the file.