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.
Ambassador provides a way to communicate between node.js processes.
With ambassador:
npm install ambassador --save
First of all, ambassador
is an EventEmitter
.
Process A (pid: 14100)
// Listen to signal 'watch'
require('ambassador').on('watch', function(pid, data){
console.log('Signal "watch" from process[', pid, '] with data', data);
});
// So that process A will hang on.
require('http').createServer(function(){}).listen(9876);
Process B (pid: 14102)
// Send data to process 14100 (A)
require('ambassador').send(14100, 'watch', {
abc: 1
});
Then, process A will print:
Signal "watch" from process[ 14102 ] with data {abc: 1}
Send a signal
signal to the process pid
with data data
ambassador
Number
The pid of the target process
String
Signal name
mixed
The data to be sent
ambassador
String
function(pid, data)
The callback function
Number
The pid number from which process the signal has been sent.
mixed
The received data
If the target process contains ambassador
, this method will safely kill that process.
FAQs
Ambassador provides a way to communicate between node.js processes.
The npm package ambassador receives a total of 0 weekly downloads. As such, ambassador popularity was classified as not popular.
We found that ambassador 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.