skills/aliyun/alibabacloud-aiops-skills/alibabacloud-migration-lhm-inspect-hive-metastore/Gen Agent Trust Hub
alibabacloud-migration-lhm-inspect-hive-metastore
Warn
Audited by Gen Agent Trust Hub on Aug 4, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONCREDENTIALS_UNSAFEPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: Multiple scripts, including
hive_dive_thrift.py,generate_paimon_statements.py, andmain_metastore_changes.py, use thesubprocessmodule to execute system commands such ashive,hadoop,mysql, andrcloneto interact with big data environments. These inputs are dynamically constructed from Metastore metadata. - [CREDENTIALS_UNSAFE]: The shell script
hive_dive.shpasses database passwords via the-pcommand-line flag, exposing them to the process list. Additionally,generate_rclone_script.pycreates a script (sync_commands.sh) containing plaintext cloud storage credentials, andconfig_manager.pystores database passwords in plaintext profiles within the user's home directory (~/.hive_explore/profiles). - [PROMPT_INJECTION]: The skill ingests table names and metadata from the Hive Metastore and uses them in shell commands without sanitization, creating a potential surface for indirect command injection.
- Ingestion points: Metastore database and HMS Thrift API.
- Boundary markers: None identified.
- Capability inventory:
subprocess.run,subprocess.check_output,subprocess.check_callacross several scripts. - Sanitization: None identified.
Audit Metadata