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.
:star2: :star2: :star2:
Notable tracks notable requests and background jobs and stores them in your database. What makes a request or job notable? There are a number of default situations, but ultimately you decide what interests you.
By default, Notable tracks:
You can track custom notes as well.
:tangerine: Battle-tested at Instacart
Add this line to your application’s Gemfile:
gem "notable"
And run:
rails generate notable:requests
rails generate notable:jobs
rails db:migrate
To explore the data, check out Blazer.
A Notable::Request
is created for:
A Notable::Job
is created for:
Create a custom note inside a request or job with:
Notable.track("Note Type", "Optional extra info")
Disable tracking in certain environments
Notable.enabled = Rails.env.production?
Set slow threshold
Notable.slow_request_threshold = 5.seconds
Custom user method
Notable.user_method = lambda do |env|
env["warden"].try(:user) || env["action_controller.instance"].try(:current_visit)
end
Custom track method
Notable.track_request_method = lambda do |data, env|
Notable::Request.create!(data)
end
Skip tracking CSRF failures
skip_before_action :track_unverified_request
Anonymize IP addresses
Notable.mask_ips = true
Set slow threshold
Notable.slow_job_threshold = 60.seconds
To set a threshold for a specific job, use:
class CustomJob < ApplicationJob
def notable_slow_job_threshold
5.minutes
end
end
Custom track method
Notable.track_job_method = lambda do |data|
Notable::Job.create!(data)
end
View the changelog
Everyone is encouraged to help improve this project. Here are a few ways you can help:
To get started with development:
git clone https://github.com/ankane/notable.git
cd notable
bundle install
bundle exec rake test
FAQs
Unknown package
We found that notable 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.