
Research
/Security News
Intercom’s npm Package Compromised in Ongoing Mini Shai-Hulud Worm Attack
Compromised intercom-client@7.0.4 npm package is tied to the ongoing Mini Shai-Hulud worm attack targeting developer and CI/CD secrets.
env-lift provides a NodeJS module to easily read configurations from environment variables. The module makes it super easy to abstract configuration loading from environment in an organised and namespaced manner.
The easiest way to install env-lift is from the NPM registry. Switch to your project directory and run the following command. Once installation completes, refer to the usage guidelines or the examples directory to use it in your project.
npm install env-lift --save
The best way to understand how to use this module is to refer to examples. A couple of them is located within the /examples directory and here we would elaborate on a few use cases.
In this use-case, let us assume that you are storing your config in a simple javascript variable. For your production server, you are possibly modifying the variables and running your application. In reality, the use-case could be that you are fetching the configuration from a separate JSON file. But for all practical purposes, the example here could be morphed to meet those scenarios.
Original Code:
var config = {
port: 80,
environment: 'development',
db: {
host: 'localhost',
user: 'root',
password: ''
}
};
Updated code using env-lift:
var config = require('env-lift').load('my-app', {
port: 80,
environment: 'development',
db: {
host: 'localhost',
user: 'root',
password: ''
}
});
At this stage, if you can override the values of the configuration using environment variables.
export MY_APP_PORT=8080;
export MY_APP_DB_HOST="example.com";
Executing the above terminal exports before running your app would return port as 8080 and also return db host as example.com.
Contribution is accepted in form of Pull Requests that passes Travis CI tests. You should install this repository using
npm install -d and run npm test locally before sending Pull Request.
FAQs
Simple namespaced environment variable configuration management solution
The npm package env-lift receives a total of 7,826 weekly downloads. As such, env-lift popularity was classified as popular.
We found that env-lift demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
/Security News
Compromised intercom-client@7.0.4 npm package is tied to the ongoing Mini Shai-Hulud worm attack targeting developer and CI/CD secrets.

Research
Socket detected a malicious supply chain attack on PyPI package lightning versions 2.6.2 and 2.6.3, which execute credential-stealing malware on import.

Research
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.