This preinstall script is explicitly malicious. It tries to steal AWS IAM credentials and environment details, probes for Docker socket access, and establishes a reverse shell to an attacker-controlled host. Do not install this package. If it was installed on any system, assume compromise: disconnect affected hosts, rotate any exposed credentials (IAM keys, tokens), revoke suspected sessions/keys, inspect for persistence or other malicious artifacts, and perform a full incident response.
Live on npm for 2 hours and 50 minutes before removal. Socket users were protected even while the package was live.