T09 · Insecure Skill Coding Practices
- Location
list_subnets.py:33- Finding
Unvalidated Region Value Allows Credential-Bearing Requests to Attacker-Controlled Hosts
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is a mostly coherent read-only Huawei Cloud subnet lister, but it has a real endpoint-validation flaw that can send signed credential metadata to a host chosen through the region setting.
Review this skill before installing. Use only a trusted config file, do not accept region values from untrusted input, and restrict the Huawei Cloud AK/SK to the documented read-only permissions. The region validation flaw should be fixed before using this in automated or shared workflows.
list_subnets.py:33Unvalidated Region Value Allows Credential-Bearing Requests to Attacker-Controlled Hosts
The skill declares Python and describes reading local credential files and making outbound cloud API requests, but it does not define an explicit tool scope such as allowed-tools or permissions. Without a restrictive scope, an agent runtime may grant broader file and network capabilities than intended, increasing the chance of unintended credential access or misuse of network operations beyond the stated read-only purpose.
The example uses Chinese-only natural-language descriptions for the Access Key and Secret Access Key fields. For a general configuration file, this imposes a specific language without any visible opt-in or justification, which fits the language/locale policy violation criteria.
The file’s natural-language instructions and warnings are entirely in Chinese, and there is no indication that the skill is region-specific or that users can opt into this locale. Under the policy, forcing a specific language without user choice can be a natural-language policy violation.
This code file contains natural-language comments/docstrings written only in Chinese, indicating a fixed language assumption for the skill's user-facing or maintainer-facing guidance. Under the stated policy, forcing a specific language without user opt-in is a locale/language policy violation unless the constraint is documented and justified.
Multiple natural-language strings in the file, including this docstring, are Chinese-only and do not indicate that the language choice is optional or region-specific by design. That creates a natural-language policy concern because the skill appears to impose a language without documenting user choice or justification.