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/freshusername/news-api
News CRUD microservice written in Golang
Requirements for the task:
POST /posts
GET /posts
PUT /posts/{id}
GET /posts/{id}
DELETE /posts/{id}
Post minimum contains: id, title, content, created_at, updated_at.
Tests are required. (using testcontainers-go for spinning postgres docker containers)
Upload the code to Github.
There should be startup instructions. Ideally, this is a Makefile for assembly and a docker-compose file that should raise the DB instance
The following will be assessed:
DB_USER=postgres
DB_PASSWORD=admin
DB_NAME=news
DB_PORT=5432
DB_HOST=db #changed during deployment, from docker-compose if local development
POSTGRES_USER=postgres
POSTGRES_PASSWORD=admin
POSTGRES_DB=news
export GOOSE_DRIVER=postgres
export GOOSE_DBSTRING=postgresql://postgres:admin@127.0.0.1:5432/news?sslmode=disable
make migrate-up
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.