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.
Tired of create mechanisms to isolate log files to each Resque worker in your application? The gem resque-logger gives you a simple plugin to create a log file based on queue name.
# config/initializers/resque.rb
log_path = File.join Rails.root, 'log'
config = {
folder: log_path, # destination folder
class_name: Logger, # logger class name
class_args: [ 'daily', 1.kilobyte ], # logger additional parameters
level: Logger::INFO, # optional
formatter: Logger::Formatter.new, # optional
}
Resque.logger_config = config
# app/workers/my_killer_worker.rb
class MyKillerWorker
extend Resque::Plugins::Logger
@queue = :my_killer_worker_job
@log_name = "my_killer_log_name.log" # Optional - defaults to using the queue name.
def self.perform(args = {})
(...)
logger.info('it works!')
(...)
end
end
$ [sudo] gem install resque-logger
ResqueLogger is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.
FAQs
Unknown package
We found that resque-logger 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.