The normal purpose is installing and linking the CLI’s platform binary, but the fallback uses a registry-supplied tarball host and sends NPM_TOKEN after only a substring hostname check. This is a conditional credential-handling vulnerability, so warn rather than block.
Static reason
One or more suspicious static signals were detected.
Trigger
Installation when the platform binary is missing and NPM_TOKEN is set.
Impact
If metadata supplies a tarball host containing `npmjs.org` but controlled by another party, the install request can disclose the npm token to that host.
Mechanism
The fallback obtains a tarball URL from npm metadata, then attaches NPM_TOKEN to requests for any hostname containing `npmjs.org` as a substring.
Evidence
package.jsoninstall.jsbin/droid
Network endpoints2
registry.npmjs.orgtarball host selected from npm packument metadata