Malicious code in starbucks-sdk (npm)
Description
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (f42de3e225b6f8d6be04fbf613ae4d17458626c92f2cfe1bf1b4476fe132e761)
The package's package.json declares a preinstall script that runs callback.js on npm install. callback.js collects os.hostname(), os.userInfo(), os.platform(), the current working directory, and a timestamp, then enumerates process.env and selects keys matching /token|secret|key|pass|auth|api|aws/i (up to 10 entries). The collected data is POSTed via https.request to api.telegram.org/
Source: ossf-package-analysis (cbea0cf6cf424cbaa524691f90c075f11c4c5265e941abdeab442a53ccbb0caf)
The OpenSSF Package Analysis project identified 'starbucks-sdk' @ 1.0.0 (npm) as malicious.
It is considered malicious because:
- The package communicates with a domain associated with malicious activity.