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.
http-status-checker
Advanced tools
HTTP status checker used in conjunction with AWS ELB to overcome 1 endpoint check limit
hsc (http-status-checker) is a command line utility used to perform multiple HTTP status checks on remote endpoints. It is a perfect fit if you need to host multiple HTTP server on the same EC2 instance behind an Elastic Load Balancer which unfortunately allow status checks on a single HTTP interface.
hsc supports accepts options passed as environment variables or as command line arguments. The short list of options is:
Install hsc globally with npm i -g http-status-checker
hsc to actually check the status of the endpoints monitored you can perform a GET request to http://your_ip:HSC_PORT/
, if everything looks good hsc will simply answer with HTTP 200 "OK"
, otherwise with an HTTP 500
containiung in the body a JSON object indicating which endpoint failed the check and which one looks good, eg:
{
http://google.com: "OK",
http://www.yahoo.com: "OK",
http://foobarservice.com: "getaddrinfo ENOTFOUND foobarservice.com foobarservice.com:80"
}
Usage example:
hsc -p 9091 -e http://google.com,http://yahoo.com
Logs are printed in JSON suing bunyan, if you want you can pipe them through the bunyan command line tool to read them better.
FAQs
HTTP status checker used in conjunction with AWS ELB to overcome 1 endpoint check limit
We found that http-status-checker 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.