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.
Noticer is a gem that allows the emission of notifications using a topic routing algorithm.
Configure the routing patterns along with a callback which is executed when the notification routing key matches the pattern.
It's useful when you want to abstract your application from different notification providers, or when the notification providers does not have message routing features (ie: AWS SNS).
Routing patterns allow the following wildcards:
* (star) can substitute for exactly one word.
# (hash) can substitute for zero or more words.
Add this line to your application's Gemfile:
gem 'noticer'
Then run:
bundle install
First configure the routing patterns along with the callbacks.
Noticer.configure do |config|
config.notification_routes = [
{
routing_patterns: ['tree.green', 'tree.red'],
callback: -> (routing_key, message) {
# notify by email
}
},
{
routing_patterns: ['tree.*'],
callback: -> (routing_key, message) {
# notify to log
}
}
]
end
Then emit the required messages.
# This will dispatch both notification callbacks
Noticer.emit('tree.green', 'A green tree was planted.')
# This will dispatch only the log callback
Noticer.emit('tree.blue', 'A blue tree was planted.')
Bug reports and pull requests are welcome on GitHub at https://github.com/leonardoalifraco/noticer.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that noticer demonstrated a not healthy version release cadence and project activity because the last version was released 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.