
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
expose-env
This is a simple NPM script that aims at providing a simple cross-platform way of exposing environment variables onto NPM script commands.
This packages takes on the idea of cross-var
and aims at implementing similar functionality.
Why not just use cross-var
then? Simply because the package hasn't been maintained in years and is exposed to security vulnerabilities at this point.
This module is distributed via npm and should be installed as one of your project's devDependencies
:
npm install --save-dev expose-env
Use in your NPM scripts:
{
"scripts": {
"build": "expose-env firebase emulators:start --project %FIREBASE_PROJECT_ID%"
}
}
If the FIREBASE_PROJECT_ID
environment variable is set, expose-env
will run the following command:
# FIREBASE_PROJECT_ID=xxx
firebase emulators:start --project xxx
To install dependencies:
bun install
To run:
bun run index.ts
This project was created using bun init
in bun v1.0.26. Bun is a fast all-in-one JavaScript runtime.
FAQs
A simple package to expose environment variables to NPM script commands
The npm package expose-env receives a total of 723 weekly downloads. As such, expose-env popularity was classified as not popular.
We found that expose-env demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.