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.
Python 2 and 3 implementation of Event Fabric API to send events.
The library dependes on the Requests <http://docs.python-requests.org/en/latest/>
_ HTTP library, install it with::
pip install requests
see the examples folder for more usage examples
::
# import the library
>>> import eventfabric as ef
# create a client instance specifying username and password
>>> client = ef.Client("username", "password")
# authenticate, should return True and 200, if not there was an error
>>> client.login()
(True, <Response [200]>)
# create an event instance
# the first parameter is a free form JSON
# value that contains information about the event
# the second is the name of the channel where that event will go to
# the channel is used to subscribe to a stream of events with the same
# channel id
>>> event1 = ef.Event({"name": "Bob", "count": 10}, "my.channel")
# send the event, it should return True and 201, if not there was an error,
# make sure to check for authentication errors on long running agents to
# reauthenticate in case your credentials expire
>>> client.send_event(event1)
(True, <Response [201]>)
::
python tests/eventfabric_tests.py
MIT
FAQs
Event Fabric API client library
We found that eventfabric 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.