T09 · Insecure Skill Coding Practices
- Location
sub-skills/futures-base-data/scripts/handler.py:16- Finding
Redirect Handling Bypasses the Outbound Destination Allowlist
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This futures-data skill is mostly coherent, but its network helper can follow redirects outside the disclosed market.ft.tech destination, creating a review-worthy network-scope concern.
Install only if you are comfortable allowing this skill to run local Python code that contacts market.ft.tech for futures market data. Review is warranted because redirects and unbounded reads could broaden network impact; safer packaging would disable or revalidate redirects and add timeouts and response-size limits.
sub-skills/futures-base-data/scripts/handler.py:16Redirect Handling Bypasses the Outbound Destination Allowlist
sub-skills/futures-base-data/scripts/handler.py:25Unbounded Network Reads Permit Resource Exhaustion
Referenced artifact was not completely inspected
`run.py` 与本文件(`SKILL.md`)位于同一目录。执行时:
The skill instructs the agent to derive and execute a local run.py via python <RUN_PY> ..., and the documented behavior includes filesystem path handling, shell execution, and outbound network access to market.ft.tech. However, the skill metadata declares no explicit tool scope or permissions boundary. This creates a real least-privilege and transparency issue: an agent may grant or assume broader capabilities than intended, making misuse or unexpected command execution harder to control and audit.
The manifest description is entirely framed around Chinese-language user requests and Chinese-name lookups, such as users asking for '期货列表' and mapping from '中文名/品种'. This indicates a language-specific interaction pattern, but the file does not offer any user language choice or document a justified locale restriction.
The module docstring and CLI usage examples/messages are written only in Chinese, which imposes a specific language on users without any opt-in or language selection. The policy explicitly calls for flagging language or locale constraints when they are forced and not clearly justified as region-specific.
The printed usage and error strings are exclusively Chinese, so users receive operational guidance in a single forced language. Because no language choice or documented regional justification is present in this file, this is a natural-language policy issue.
The skill’s natural-language description and title are entirely in Chinese and describe when the skill should be used, but they do not indicate that language is optional or region-specific. Under the policy criteria, forcing a specific language without user opt-in is a natural-language policy violation.
The manifest description is written as an instruction keyed specifically to Chinese user utterances such as '用户问期货K线、期货日线/分钟线、周线/月线、期货历史行情时使用' and '若用户只给中文名/品种'. This implies a fixed Chinese-language invocation policy without stating that other languages are also supported or that the language constraint is intentional and user-selectable.
No suspicious patterns detected.