alibabacloud-migration-lhm-inspect-hive-metastore

Warn

Audited by Socket on Aug 4, 2026

2 alerts found:

AnomalySecurity
AnomalyLOW
scripts/generate_paimon_statements.py

No clear evidence of intentional malware (no network exfiltration, no backdoor, no hidden payloads) is present in this code fragment. However, the module has a high-impact injection surface: it executes hive/beeline with '-e' using CSV-derived db/table identifiers, and it generates SQL that embeds CSV-derived partition values into single-quoted literals without escaping. If an attacker can influence the CSV (or downstream execution consumes the generated SQL), they could steer Hive/Beeline behavior or cause unauthorized SQL statements to be run. Password is also passed on the beeline command line, which can expose credentials via process inspection depending on the deployment environment.

Confidence: 66%Severity: 67%
SecurityMEDIUM
scripts/generate_rclone_script.py

No clear indicator of intentional malware (no backdoor/exfiltration logic observed). However, the module has high-impact security weaknesses for operational use: it embeds plaintext S3 credentials from the INI config into the generated bash script (credential leakage risk) and it constructs shell command lines by interpolating CSV-derived paths without strong shell-escaping/allowlisting, creating a potential command/argument manipulation risk if the CSV or config can be influenced by an attacker. Review/mitigate by removing secret material from generated scripts, using safer execution patterns (argument lists/subprocess without shell), and applying strict validation/escaping for all command-relevant fields.

Confidence: 72%Severity: 78%
Audit Metadata
Analyzed At
Aug 4, 2026, 06:52 AM
Package URL
pkg:socket/skills-sh/aliyun%2Falibabacloud-aiops-skills%2Falibabacloud-migration-lhm-inspect-hive-metastore%2F@1d60c60812b83e91a756d99f5e6aee9952b56b9ef62e2e6c8c42d1bfafc8b945
Security Audit — socket — alibabacloud-migration-lhm-inspect-hive-metastore