@emilgroup/discount-sdk@1.5.1
Deprecated due to security issue
A new version of the package
AI Security Review
scanned 5d ago · by lpm-firewall-aiThe automatic postinstall flow harvests npm credentials, establishes a user systemd service, and uses the credentials to attempt publishing bumped versions of the user's packages. This is concrete malicious behavior unrelated to the SDK's stated purpose.
Decision evidence
public snapshot- The package runs index.js automatically through its postinstall hook.
- index.js reads npm tokens from user, project, and system .npmrc files and npm-related environment variables.
- On install, it writes and enables a user systemd service, then launches scripts/deploy.js detached when tokens are found.
- The detached script uses each token to authenticate to registry.npmjs.org and identify the account.
- The script enumerates packages owned by the token holder and attempts to publish each under a bumped version.
- The package is presented as an Emil discount API client, unrelated to installing persistence or republishing the token owner's packages.
- The token is sent to registry.npmjs.org, the service to which npm tokens belong.
- The README describes an API client with an explicit authorize method for its own protected endpoints.
Source & flagged code
5 flaggedPackage defines install-time lifecycle scripts.
package.jsonView on unpkgThe package runs index.js automatically through its postinstall hook.
package.jsonView on unpkg · L7Findings
Affected versions and remediation
This report applies to @emilgroup/discount-sdk@1.5.1.
See all versions of @emilgroup/discount-sdk for other recorded verdicts.
- Avoid installing @emilgroup/discount-sdk@1.5.1. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.