alibabacloud-migration-lhm-migrate-hive-to-paimon
Audited by Socket on Aug 6, 2026
3 alerts found:
Anomalyx2SecuritySUSPICIOUS. The overall footprint mostly matches a legitimate Hive-to-Paimon migration tool, and the install/data endpoints are largely consistent with that purpose. However, the skill performs high-impact production writes, executes shell and SQL artifacts produced by another skill, and includes a curl|bash installer path for rclone, so the operational and transitive-trust risk is medium-to-high even without clear evidence of malicious intent.
This module is not obviously obfuscated and does not contain clear cryptomining/backdoor logic. However, it performs high-risk OS command execution using shell=True with command strings loaded from an external script (sync_commands.sh) and config-derived credential-bearing commands. Without strict validation/whitelisting, tampering with those inputs can lead to arbitrary command execution and credential exposure via logs, making it a significant supply-chain/sabotage risk in the context of dependencies/tools that generate those inputs.
No explicit malware/backdoor behavior is observable in the provided executable lines. The primary security weakness visible here is potential SQL injection: databases and tables_list values are directly interpolated into a metastore SQL WHERE clause without escaping/parameterization. Additionally, the snippet appears truncated/mangled, so any further risks involving subprocess/rclone/migration steps cannot be confirmed from this fragment alone. Treat this module as security-relevant mainly due to injection risk and incomplete context.