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/raymasson/go-mongodb-minikube-kubectl-helm
An example project demonstrating the deployment of a mongodb replica set and a Golang API in Kubernetes. Minikube is used to run k8s locally. kubectl is used to deploy the mongodb replica set. helm is used to deploy the golang API.
Follow the mongodb readme
Follow the api readme
First of all, let's get the API service URL out of minikube.
$ minikube service person-api --url
Use the outputted URL in your internet browser (e.g.: http://192.168.99.100:31518
). You should see Welcome to the person API!
displayed
Get persons out of the person API. The expected output is a HTTP status 200 OK
and a []
of persons.
$ curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://192.168.99.100:31518/persons
Now, let's insert our first person. The expected output is a HTTP status 201 Created
.
$ curl -i -H "Accept: application/json" -H "Content-Type: application/json" -d '{"first_name":"ray", "last_name":"masson"}' -X POST http://192.168.99.100:31518/persons
Run again the first curl
command. The output should now be something like [{"id":"5ab505c424e8f10001f047b5","first_name":"ray","last_name":"masson"}]
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.