huawei-cloud-ecs-alert
Pass
Audited by Gen Agent Trust Hub on Aug 29, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONOBFUSCATIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill provides instructions to download the official Huawei Cloud CLI (KooCLI) installation script from a vendor-controlled domain (
https://hwcloudcli.obs.cn-north-4.myhuaweicloud.com/cli/latest/hcloud_install.sh). This is standard procedure for installing official cloud management tools. - [REMOTE_CODE_EXECUTION]: The documentation suggests piping the downloaded vendor installation script directly into a shell (
bash hcloud_install.sh). While this is remote code execution, it targets a trusted vendor source and is the official installation method. - [OBFUSCATION]: The script
scripts/_env_compat.shuses indirect variable assignment (e.g.,export "${_env_name}=${_env_value}") to set environment variables. The script comments explicitly state this is intended to avoid security scanner false positives that trigger on standard credential export patterns. While this is a bypass technique for static analysis, it is used here for legitimate compatibility between different environment variable naming standards. - [COMMAND_EXECUTION]: The skill relies on shell scripts that wrap the
hcloudCLI. It usespython3 -cone-liners in several scripts (list_ecs.sh,list_alarms.sh,batch_query_metrics.sh) to parse JSON output and format it for the user. These commands are static and do not interpolate unsanitized user input into the command string. - [DYNAMIC_EXECUTION]: The
scripts/config.pymodule usessubprocess.run()to executehcloud configure listto retrieve existing configuration. This is used to load credentials when environment variables are not present. - [INDIRECT_PROMPT_INJECTION]: The skill possesses an indirect prompt injection surface as it ingests data from external API outputs (ECS instance names, alarm metadata) which are then presented to the agent.
- Ingestion points: Data enters via
hcloudcommand outputs inlist_ecs.sh,list_alarms.sh, andbatch_query_metrics.sh. - Boundary markers: The skill does not implement specific delimiters for external data in the prompt context.
- Capability inventory: The skill can perform write operations such as
hcloud CES CreateAlarmRulesandhcloud SMN AddSubscription. - Sanitization: Data is parsed via Python's
jsonmodule before display, but no string sanitization is applied to resource names or descriptions returned by the cloud provider.
Audit Metadata