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/m3hm3t/account-api
I tried to create a client library that is suitable for projects with Hexagonal Architecture.Every operation has its own package, interface, and adapters. Adapter layers and REST clients are separated and there is a DI process in between them. The components are highly reusable for other purposes and independently configurable.
SOLID principles are taken into account during the design process. Methods have a single responsibility, interfaces are segregated, dependency injection mechanism is existing.
Method input parameters and return variables are designed to increase memory management performance. The purpose is to decrease heap and also increase stack usage.
The library contains both unit and integration tests. A mock rest API is used to simulate account API for integration tests.
Unit and Integration Test run command
make 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
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.