
Research
npm Malware Targets Telegram Bot Developers with Persistent SSH Backdoors
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Load configs from hierarchical objects to process.env
By default econf tries to load .econf.js file
#Usage Import the econf at the top of your code to ensure that your configurations will be loaded before anything else
require('econf')();
optionally, you can specify the file name and custom env name
require('econf')('config.js', 'NODE_ENV');
#.econf.js example
module.exports = [
{
_name: 'newrelic',
NEW_RELIC_KEY: 'key'
},
{
_name: 'production',
NAME: 'Production Base',
AWS_SECRET: 'aws-secret',
AWS_KEY: 'aws-key',
EMAIL_DELAY: 1000
},
{
_name: 'production.001',
_extend: ['production', 'newrelic'],
NAME: 'Production 001',
EMAIL_DELAY: 0
}
]
#.econf.js example as object
module.exports = {
'newrelic': {
NEW_RELIC_KEY: 'key'
},
'production': {
NAME: 'Production Base',
AWS_SECRET: 'aws-secret',
AWS_KEY: 'aws-key',
EMAIL_DELAY: 1000
},
'production.001': {
_extend: ['production', 'newrelic'],
NAME: 'Production 001',
EMAIL_DELAY: 0
}
}
The config above will inject the code below into process.env
{
"_name": "production.001",
"_extend": [
"production",
"newrelic"
],
"NAME": "Production 001",
"EMAIL_DELAY": 0,
"AWS_SECRET": "aws-secret",
"AWS_KEY": "aws-key",
"NEW_RELIC_KEY": "key"
}
#Global Usage
npm install econf -g
With global version you can view your config parsed, just execute econf into your project directory
econf
To create a example .econf.js file into your project just execute econf init into your project directory
econf init
FAQs
Load configs from hierarchical objects to process.env
The npm package econf receives a total of 11 weekly downloads. As such, econf popularity was classified as not popular.
We found that econf 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
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.