Malicious code in ksp-app (npm)
Description
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (b14a9fbd9fc1a48dc3ac0498f9606cecb1a56bad912c7f8a818fad332ef9ad15)
ksp-app@100.100.100 is a dependency-confusion-shaped npm package whose only payload is an opaque prebuilt Linux x64 native addon loaded at install time. package.json declares scripts.postinstall="node postinstall.js", which require()s prebuilds/linux-x64/addon.node. The tarball ships no C/C++ source, no binding.gyp, and no build tooling; index.js exports an empty object, so the entire package behavior is in the native binary. On load, the ELF addon reads the environment variables HOSTNAME, npm_package_name, and npm_config_registry and POSTs them over a raw socket to the hardcoded bare-IP endpoint 64.181.165.115/