Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
ssl-checker
Advanced tools
Simply add ssl-checker
as a dependency:
$ npm install ssl-checker --save # npm i -s ssl-checker
# Or if you prefer using yarn (https://yarnpkg.com/lang/en/)
$ yarn add ssl-checker
import sslChecker from "ssl-checker";
const getSslDetails = async (hostname: string) =>
await sslChecker(hostname`ex. badssl.com`);
All valid https.RequestOptions
values.
Option | Default | Description |
---|---|---|
method | HEAD | Can be GET too |
port | 443 | Your SSL/TLS entry point |
agent | default | Default HTTPS agent with { maxCachedSessions: 0 } |
rejectUnauthorized | false | Skips authorization by default |
validateSubjectAltName | false | Skips returning/validating subjectaltname |
sslChecker("dyaa.me", { method: "GET", port: 443, validateSubjectAltName: true }).then(console.info);
{
"daysRemaining": 90,
"valid": true,
"validFrom": "issue date",
"validTo": "expiry date",
"validFor": ["www.example.com", "example.com"]
}
NOTE: validFor
is only returned if validateSubjectAltName
is set to true
Copylefted (c) 8008 :trollface: Dyaa Eldin Moustafa Licensed under the MIT license.
FAQs
ssl-checker
The npm package ssl-checker receives a total of 4,768 weekly downloads. As such, ssl-checker popularity was classified as popular.
We found that ssl-checker demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.