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.
A library for Python 3.6 and above that can track changes to mutable data types.
With spectate
, complicated protocols for managing updates don't need to be the outward responsibility of a user and can instead be done automagically in the background. For instance, syncing the state between a server and client can controlled by spectate
, so users don't have to.
https://python-spectate.readthedocs.io/en/latest/
pip install spectate
pip install spectate --pre
pip install git+https://github.com/rmorshea/spectate.git#egg=spectate
git clone https://github.com/rmorshea/spectate && cd spectate/ && pip install -e . -r requirements.txt
If you're using Python 3.6 and above, create a model object
from spectate import mvc
l = mvc.List()
Register a view function to it that observes changes
@mvc.view(l)
def printer(l, events):
for e in events:
print(e)
Then modify your object and watch the view function react
l.append(0)
l[0] = 1
l.extend([2, 3])
{'index': 0, 'old': Undefined, 'new': 0}
{'index': 0, 'old': 0, 'new': 1}
{'index': 1, 'old': Undefined, 'new': 2}
{'index': 2, 'old': Undefined, 'new': 3}
FAQs
Track changes to mutable data types.
We found that spectate 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.