
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
compare-env-keys
Advanced tools
A simple script you can use in your package.json to make sure that all the keys in a dotenv file are present in other dotenv files.
A simple script you can use in your package.json to make sure that all the keys in a dotenv file are present in other dotenv files.
The use case for this is to run this script before you deploy a website or web application where you just to make sure your staging.env
or production.env
dotenv files have all the environment variables that are present in a local.env
.
This helps prevent a deploy that fails in staging
or production
because an environment variable is missing.
Install with npm:
$ npm install --save-dev compare-env-keys
Install with yarn:
$ yarn add --dev arr-diff compare-env-keys
In your package.json
, add to scripts:
{
// ...
"scripts": {
"predeploy:staging": "compare-env-keys env/local.env env/staging.env",
"predeploy:production": "compare-env-keys env/local.env env/production.env",
"predeploy:all": "compare-env-keys env/local.env env/staging.env env/production.env"
}
}
FAQs
A simple script you can use in your package.json to make sure that all the keys in a dotenv file are present in other dotenv files.
We found that compare-env-keys 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
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.