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.
cds-discover
Advanced tools
npm install cds-discover --save
const Discover = require('cds-discover');
const discover = new Discover();
disconver
//本地服务监听端口
.listen(9004)
//尝试连接到 discover.cavacn.com 根服务器,当然你也可以是 localhost
//为什么要这个,因为你肯定需要一个领路人,要不然你无法加入这个圈子
.tryConnect(9004,'discover.cavacn.com');
discover.on('init',()=>{
//初始化完成之后
let serviceName = 'YourServiceName';
let serviceConfig = 'YourServiceConfig'
//把service注册到 服务集群中
discover.addService(serverName,serverConfig);
});
discover.watch('你需要监听的service , . 通配所有',(method,serviceName,config)=>{
console.log('watch',method,serviceName,config);
});
FAQs
discover power by cds
The npm package cds-discover receives a total of 0 weekly downloads. As such, cds-discover popularity was classified as not popular.
We found that cds-discover 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.