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.
This package contains utility functions used by the YouTube video predictive analytics (YTPA) system's API engine. They support functionality for:
request_utils.py
websocket_utils.py
misc_utils.py
The file websocket_utils.py
implements the send/receive logic for chunking a large pandas DataFrame,
sending the chunks through a websocket connection, and assembling them into a single DataFrame on the other side.
This allows for streaming DataFrames in a dynamic way while minimizing bandwidth per unit time.
It hides the websocket logic from both sides of the transaction, making it possible to set up the websocket
connection once and then deal only with DataFrame generators.
Install from PyPI with pip install ytpa-api-utils
.
Several make commands are implemented in Makefile
.
Tests are implemented in the test/
directory, one file per module. Run them locally with make test
.
A new version of the package can be deployed by incrementing the version number in pyproject.toml
and running
make deploy
.
A better practice is to git push
and allow the Github Actions pipeline to take care of running tests and deploying
the new version only when the entire pipeline succeeds.
Make sure to use the right version of the package in your other environments (update it in a requirements file and
update the environment).
FAQs
API utils for the YouTube Predictive Analytics system
We found that ytpa-api-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.