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.
IP subnet calculator. One can also use it to check if IP is in subnet.
npm install ipop
var ipop = require('ipop');
// check if IP in subnet
console.log(ipop.ip4incidr('192.168.1.15', '192.168.0.1/24'));
console.log(ipop.ip4incidr('192.168.1.15', '192.168.0.1/16'));
console.log(ipop.ip4incidr('192.168.1.15', '192.168.1.15/32'));
// show subnet info
console.log(ipop.cidr4('87.239.88.1/22'));
Output:
false
true
true
{ net: '87.239.88.0',
netmask: '255.255.252.0',
broadcast: '87.239.91.255',
low: '87.239.88.1',
high: '87.239.91.254',
hosts: 1022 }
check
if ip
is in given cidr
. Returns boolean
. cidr
has to be in format X.X.X.X/X
.
cidr4
returns object with info about given cidr
:
net
: network addressnetmask
: network maskbroadcast
: broadcast addresslow
: first usable host addresshigh
: last usable host addresshosts
: number of usable hostsFAQs
IP subnet calculator
We found that ipop 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.