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.
tea.fen.gg/fengg/server
A More Secure Internet Connection for Your Home A Malicious Traffic Detection System For Small Hardware
Checkout fen.gg/crowdfunding and support us with a small donation.
# build go binary
VERSION=$(git rev-parse --short HEAD) && \
go build -o fengg -ldflags "-X tea.fen.gg/fengg/server/config.VERSION=$VERSION"
# set linux capabilities
sudo setcap 'cap_net_admin=+ep' fengg
# compile assets
yarn install
# use either dev or build
yarn [dev|build]
./fengg
VERSION=$(git rev-parse --short HEAD) \
CARCH="armv7h" \
CHOST="armv7l-unknown-linux-gnueabihf" \
GOARM="7" \
GOARCH="arm" \
go build \
-o fengg \
-ldflags "-s -w" \
-gcflags=all=-trimpath=$(pwd) \
-asmflags=all=-trimpath=$(pwd) \
-ldflags "-X tea.fen.gg/fengg/server/config.VERSION=$VERSION"
Drop the database and create a new one. Afterwards remember the highest
schema version and delete all files in db/migrations
.
Then run the following command (replace XXX with the mentioned version):
pg_dump \
-T public.schema_migrations \
-O -s -U postgres -d fengg \
| sed -e '/^--/d' \
| sed -e '/^$/d' \
| grep -v '^SELECT pg_catalog\.set_config.*search_path' \
> db/migrations/000XXX_merged_initial_database.up.sql
Commit and test your changes!
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.