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.
@o-rango/update-notify
Advanced tools
Inspired in update-notifier but using the default npm
api that way is working behind proxy
or any other config reflected in .npmrc
.
It only has programmatic api and can be easily attached to your workflow.
npm i --save @o-rango/updatet-notify
const { updateNotify } = require('@o-rango/update-notify');
const notifier = updateNotify({
pkg: {
version: '0.0.1',
name: 'react'
},
updateCheckInterval: 0
});
console.log(notifier);
// Output =>
Checks if there is an available update. Accepts options defined below. Returns { updateAvailable: true , name: 'react' , latest: '16.11.0', 'current': '0.0.1' }
if there is any update.
Type: object
Type: object
Required
Type: string
Required
Type: string
Type: number
Default: 1000 * 60 * 60 * 24
(1 day)
How often to check for updates.
Type: string
Default: latest
Which dist-tag to use to find the latest version.
Easter egg method that pings registry defined in your .npmrc
;
const { pingRegistry } = require('@o-rango/update-notify');
const online = await pingRegistry();
// Output online => :{ isOnline : true }
FAQs
Check if an package needs to be update
We found that @o-rango/update-notify 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.