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.
check-magic
Advanced tools
Manage your app's status with a file.
CheckMagic( [options] )
options
is an optional object that can contain:
{
"offline": "maintenance",
"online": "production",
"path": "./check.txt",
"leave": false,
"startOffline": false
}
offline
:The string that will be written to check.txt when your app is offline. Defaults to maintenance
online
:The string that will be written to check.txt when your app is online. Defaults to production
path
:The path to check.txt. Defaults to ./check.txt
leave
:If leave is not set to true, CheckMagic will remove check.txt when the process exits. Defaults to false
startOffline
:If startOffline is not set to true, you will need to call goOnline
to indicate your server is online. Defaults to false
getStatus()
Returns the contents of check.txt as a string. If check.txt is inaccessible it will return your offline string.
goOffline()
Writes your offline string to check.txt
goOnline()
Writes your online string to check.txt
v0.1.0
FAQs
Manage your check.txt file with magic!
The npm package check-magic receives a total of 1 weekly downloads. As such, check-magic popularity was classified as not popular.
We found that check-magic 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.