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.
Some object orient wrappers around the redis interface provided by aioredis
.
from async_redis_objects.mocks import ObjectClient
import aioredis
import asyncio
from async_redis_objects import ObjectClient
async def main():
# Connect with aioredis as normal
redis = aioredis.Redis(await aioredis.pool.create_pool(address='redis://redis:6379', db=3, minsize=5))
# Make an object client object with your redis object
objects = ObjectClient(redis)
# Access a hash table in redis
table = objects.hash('hash-table-key')
await table.set('name', 'Hello World')
# Access a queue
queue = objects.queue('queue-name')
await queue.push(await table.get('name'))
await queue.push(100000)
# Access a priority queue
pq = objects.priority_queue('other-queue-name')
await pq.push({'name': 'same json serializable object'}, priority=100)
await pq.push(await queue.pop(), priority=101)
print(await pq.pop()) # Print Hello World
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
FAQs
Object oriented interface to aioredis.
We found that async-redis-objects 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.