
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
github.com/akurczyk/golang_echo_blogging_platform
A group of snippet projects made with Golang, Echo framework, and multiple libraries and databases (SQL and NoSQL) providing an API backend allowing users to register, login, and write posts and comments.
Each of these projects is Dockerized with the multi-stage build and unprivileged user execution in the final image. In the future addition of Kubernetes Helm charts is planned and another flavors with Cassandra and Scylla is planned.
To run a single project, execute docker-compose up
in the project directory and go to http://127.0.0.1:1323/. Swagger
with API reference will be available at http://127.0.0.1:1323/swagger/index.html. Prometheus metrics will be accessible
at http://127.0.0.1:1323/metrics.
Most of the endpoints require an authorization with HTTP bearer token with the prefix Bearer<space>
. To obtain the
token, issue a POST request to /token
endpoint with form-encoded values of user's name
and password
gathered by
creating the user with POST request to /user
endpoint. An example of these transactions has been shown in the API
reference in 999 directory.
001_postgres_and_redis – Version with PostgreSQL database used to store users, posts, and comments and Redis used to store session data. The authentication is done with Bearer Tokens. Swagger and Prometheus are available.
002_mysql_and_redis – Almost the same as described above but with the use of MySQL instead of PostgreSQL.
003_MONGO_and_redis – The same as above but with MongoDB used to store content.
999_memory – Basic version with no real database. The data are stored in RAM during the execution of the program.
This can not be scaled. The API is "documented" in api_reference.md
as there is no Swagger. Also, there is no
Prometheus included. This is the version that any other one described above is based on. The authentication is done with
Bearer Tokens.
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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.