
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
A wrapper for grabbing env vars from either process.env or a config file depending on the NODE_ENV.
Heavily (totally) influenced and inspired by a pattern that @tautologistics implemented at Moveline.
super-config expects a config/{env}.json convention, something like the following:
+--app
+--package.json
+--config
| +--development.json
| +--testing.json
| +--production.json
Where development.json looks like:
//development.json
{
"PORT": "3000",
"JEDI_NAME": "Dinkus"
}
Set your NODE_ENV (configit defaults to 'development'), and....
var Config = require('configit')()
console.log(Config.get("JEDI_NAME")); // Dinkus
configit expects a JSON file to exist at '/config/' + process.env.NODE_ENV.toLowerCase().
If one does not, you will see a message logged to the console telling you just that.
###process.env[key] overwrites config/{env}[key]
Any keys added to process.env will overwrite any matching keys in the config file.
Prefix the above example with a JEDI_NAME="Dorku", and run:
var Config = require('configit')()
console.log(Config.get("JEDI_NAME")); // Dorku
FAQs
The easiest way to wrangle your env-specific configuration in node
The npm package configit receives a total of 2 weekly downloads. As such, configit popularity was classified as not popular.
We found that configit 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 Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.