The magika-js npm package is a typosquat of Google's legitimate magika library. It contains a postinstall script that collects various host identifiers such as hostname, platform, architecture, Node.js version, package name, npm lifecycle event, and timestamp. This data is sent as JSON to a hardcoded external endpoint without user consent or documented purpose. The package impersonates the legitimate Google project by referencing its GitHub repository. This behavior constitutes malicious code embedded in the package.