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.
create a startup.coffee file
pm2Ship = require './lib/pm2/pm2Ship'
argv = require('yargs').argv;
config = require 'config'
apps = config.get 'pm2Ship.apps'
pm2Ship.app apps
.then (startedApps) ->
for startedApp in startedApps
console.log 'started:',startedApp
.catch (err) ->
console.log 'err',err
process.on 'errException', (exception) ->
console.log 'exception:', exception
sample config:
pm2Ship:
apps:
# Backend can not cluster by PM2 we use Nginx -> so duplicate by config
-
script: 'backend.coffee'
nodename: pusher
instances: 1
max_memory_restart : '100M'
exec_mode : 'cluster'
env:
PORT: 13000
-
script: 'backend.coffee'
nodename: pusher
instances: 1
max_memory_restart : '100M'
exec_mode : 'cluster'
env:
PORT: 13001
-
script: 'heartbeats.coffee'
nodename: pusher
instances: 1
max_memory_restart : 100M
exec_mode : cluster
env:
PORT: 0
coffee config
module.exports =
pm2Start:
apps: [
{
'script': 'myapp.coffee'
'nodename': 'myHackingApp'
'max_memory_restart': '100M'
'instances': 1
'exec_mode': 'cluster'
}
]
FAQs
a pm2 api wrapper
The npm package pm2ship receives a total of 0 weekly downloads. As such, pm2ship popularity was classified as not popular.
We found that pm2ship 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.