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/vegggg/user-management
To Run this project on localhost try: $ docker-compose up
cmd/ I use cobra as to implement a commandline application. Basicly, this project is started from cmd/server.go Stuff like init db connection, DI... are also there
main.go Only to init cmd/
init.sql Sql schema init script
Dockerfile, docker-compose For ease deployment
prototool.yaml A prototool plugins manager/linter
vendor/ I use go vendor to manage project's dependencies
proto/ Protobuf files to define service API, models, entities
handler/ A handler that implement service API interface, All it does is controlling the business flow
otp/ otp service: use a Redis instance to maintain user's OTP and user status of "is validated by OTP"
user/ user service this package is defined a bit general Currently, I have implemented a sqlrepo for managing users. It also has a redis repo for future caching feature. In addition, in sqlrepo, we can easily add a psql for more flexibility.
entity/ Contains entities
docs/ A postman collection json to run demo
API can be found in docs/
Create User
Get User
$ docker-compose up $ go test ./...
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.