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.
github.com/zhengyi13/bazel-go-ssl-check
This is a simple go tool to connect to a configured list of host:port pairs via SSL, and print out the expiration date of each cert found.
The assumption is that you'd like to monitor a server for cert expirations, and you'll use this tool to probe the machine(s) in question for an arbitrary list of ports, and print the output.
Create a simple YAML config file such as the one found here. Create a top-level key called "probes", and the value of that will be a list of strings. Each string will be a bare, colon-separated "host:port" pair.
probes:
- "localhost:8443"
- "acme.com:443"
- "internal.foo:1234"
If you just want to run the code as is, and use the "sample" config in the repo, you can do this:
go run ssl_expiry.go
If you're a little smarter than the average bear, then consider installing bazel, and use that to run this little utility (and/or build it reproducibly and hermetically):
bazel run :ssl_check -- -config $(pwd)/probes.yaml
Inspired by a simple use case at work.
FAQs
Unknown package
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.