skills/aliyun/alibabacloud-aiops-skills/alibabacloud-elasticsearch-instance-diagnose/Gen Agent Trust Hub
alibabacloud-elasticsearch-instance-diagnose
Pass
Audited by Gen Agent Trust Hub on Oct 15, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes shell commands via
aliyunCLI andcurlto gather diagnostic data. These executions are performed using Python'ssubprocess.runwith argument lists (argv), which is a security best practice to prevent shell injection. Furthermore, the scriptscheck_es_instance_health.pyandopenapi_cli_collect.pyinclude explicit validation logic to reject credentials or parameters containing dangerous shell metacharacters (e.g., backticks, dollar signs, pipes). - [EXTERNAL_DOWNLOADS]: The skill provides instructions and URLs for installing the Aliyun CLI. All referenced domains (
aliyuncli.alicdn.com,aliyun.com) belong to the official Alibaba Cloud infrastructure and are recognized as trusted vendor resources for this skill. - [INDIRECT_PROMPT_INJECTION]: The skill has an attack surface for indirect prompt injection because it ingests and processes Elasticsearch instance logs which could contain attacker-controlled data. However, the risk is mitigated by the structured nature of the diagnostic report and the fact that ingested data is not used to dynamically construct executable code or follow new instructions.
- [CREDENTIALS_UNSAFE]: The skill documentation includes a mandatory security section explicitly forbidding the agent from asking for, echoing, or hardcoding Alibaba Cloud AccessKeys or Elasticsearch passwords. It directs users to use local environment variables or CLI profiles, which is the standard safe practice for credential management.
- [DYNAMIC_EXECUTION]: The script
check_es_instance_health.pycontains a call to__import__('sys'). Analysis shows this is used only as a shortcut to accesssys.stderrfor error reporting and does not represent dynamic loading of untrusted or variable modules.
Audit Metadata