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 Splunk HTTP Event Collector library that follows best practices by opening a single connection to Splunk, and reuses it. When sending large or high volumes of events, or Splunk is slow, the events are batched together. This also allows events to be resent in the case of failures, as they are simply returned to the queue.
Requires you create an aiohttp Client Session, or reuse your applications existing one. From Home Assistant this would be homeassistant.helpers.aiohttp_client.async_get_clientsession
Session, token, and host are required, all other parameters are optional, and will be set to defaults shown.
Returns True if the parameter conditions are okay, False if any fail or any other error is raised. You can selectively ignore certain conditions by setting them to False.
The String or Dictionary to be sent to Splunk. By default it will be sent as soon as possible, but you can instead set send=False and it only be queued.
The sends whatever data is in the queue, is what queue() uses internally when send=True.
import asyncio
import aiohttp
import time
from hass_splunk import hass_splunk
async def main():
async with aiohttp.ClientSession() as session:
splunk = hass_splunk(
session=session,
host="http-inputs-stack.splunkcloud.com",
use_ssl=True,
verify_ssl=True,
token="private",
)
print(await splunk.check(connectivity=True, token=True, busy=True))
await splunk.queue(
{
"time": time.time(),
"host": "name",
"event": {
"meta": "TEST",
},
},
send=False,
)
await splunk.send()
asyncio.run(main())
FAQs
Async single threaded connector to Splunk HEC using an asyncio session
We found that hass-splunk 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.