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.
sbnoti
because Azure has problems with large path names -__-)Notifications Reader for Azure Service Bus
SbnotiBuilder = require("sbnoti")
reader = new SbnotiBuilder()
.withServiceBus #required
connectionString: "the azure connection string"
topic: "the topic name"
subscription: "the subscription name"
#All settigns below are optional. The values are the defaults.
.withFilters [
{ name: "theNameOfTheCustomFilter", expression: "created = True" }
]
.withLogging true # or simply .withLogging()
.withConcurrency 25
.withReceiveBatchSize 5
.withWaitForMessageTime 3000
# new health notifiying option:
.withHealth
redis:
host: "host"
port: 6739
auth: "cadenaDeAuth"
db: 2
app: "la-aplicacion-que-esta-usando-sbnoti"
.build()
reader = new SbnotiBuilder()
.withServiceBus #required
connectionString: "the azure connection string"
topic: "the topic name"
subscription: "the subscription name"
.fromDeadLetter()
.build()
reader = new SbnotiBuilder()
.withServiceBus #required
connectionString: "the azure connection string"
topic: "the topic name"
subscription: "the subscription name"
.activeFor
pending: true #Read from regular subscription
failed: true #Read from dead letter
.build()
stringToBoolean: (value,_default) ->
(value?.toLowerCase?() ? _default?.toString()) == 'true'
Promise = require("bluebird")
reader.run (message) =>
# do something with message
Promise.resolve "message processed ok"
# or...
Promise.reject "error processing the message"
messageToOptions = (message) =>
uri: "http://an.endpoint.com"
body: message.data
headers:
authorization: "access token"
reader.runAndPost messageToOptions, ignoredStatusCodes: [409,503]
reader.runAndGet messageToOptions
reader.runAndPut messageToOptions
reader.runAndDelete messageToOptions
#or also
method = 'post', #'get','delete','update'
reader.runAndRequest messageToOptions, method, ignoredStatusCodes: [409]
FAQs
Notifications Reader for Azure Service Bus
The npm package sbnoti receives a total of 6 weekly downloads. As such, sbnoti popularity was classified as not popular.
We found that sbnoti demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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.