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.
github.com/pp-groupe-6/account-microservice
Pour compiler, aller à la racine du projet et utiliser la commande
go build
Cette commande produit un exécutable qu'il suffit de lancer pour que le microservice soit actif.
Ce microservice se lance sur localhost:8000 par défaut. Pour en changer la configuration, modifiez le fichier main.go à la ligne 29 :
err := http.ListenAndServe(":<port>", accountService.MakeHTTPHandler(service, logger))
Pour paramétrer l'accès à la base de données il suffit de modifier la structure info présente dans le main :
info := accountService.DbConnexionInfo{
DbUrl: "postgre://",
DbPort: "5432",
DbName: "prix_banque_test",
Username: "dev",
Password: "dev",
}
Pour tester le microservice nous conseillons l'outil Postman et la collection fournie avec le microservice.
La liste des Url est la suivante :
URL | Méthode | Param (JSON dans le body) | Retour |
---|---|---|---|
localhost:8000/amount/ | GET | {"ClientID": "<ID>"} | {"amount": <amount>} |
localhost:8000/users/ | GET | {"ClientID": "<ID>"} | {"fullName": "<fullname>","mailAdress": "<mail>","phoneNumber": "<number>"} |
localhost:8000/users/ | POST | {"ClientID":"<Firebase ID>","FullName":"<fullname>","PhoneNumber":"<number>","MailAdress":"<mail>"} | {"fullName": "<fullname>","mailAdress": "<mail>","phoneNumber": "<number>"} |
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
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.