Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A simple node program for executing commands using environment variables supplied by a url
npm install env-url
or npm install -g env-url
Package.json
{
"scripts": {
"start": "env-url http://localhost:8000/config/development node ./index.js"
}
}
env-url expects to pull JSON down from a URL using a POST. It will turn json into environment variables, including nested json e.g.:
{
"test": "value",
"nestedTest": {
"test": 1
}
}
becomes:
TEST=value
NESTED_TEST_TEST=1
Because it can be useful to get configuration from an HTTP endpoint
FAQs
NodeJS utility to get environment variables from a URL
We found that env-url 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.