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 aliyun CLI and curl to gather diagnostic data. These executions are performed using Python's subprocess.run with argument lists (argv), which is a security best practice to prevent shell injection. Furthermore, the scripts check_es_instance_health.py and openapi_cli_collect.py include 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.py contains a call to __import__('sys'). Analysis shows this is used only as a shortcut to access sys.stderr for error reporting and does not represent dynamic loading of untrusted or variable modules.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 15, 2026, 03:01 PM