
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Goes through all your Rails ActiveRecord objects and check if they are all still pass your model validations. You may have added new validations to your model since creating your object, or ran update_column in your console to solve a production issue. Inspired by a RailsConf talk by Ryan Laughlin and his talk at http://www.rofreg.com/talks/railsconf2018'
ValidItem's installation is pretty standard:
$ gem install valid_items
If you'd rather install ValidItem using bundler
, don't require it in your Gemfile
:
gem 'valid_items', require: false
require 'valid_items'
ValidItems.checkup
=> User id 203: {:name=>["can't be blank"]}
require 'valid_items'
ValidItems.checkup(email: 'example@example.com')
=> User id 203: {:name=>["can't be blank"]}
# and an email gets sent
require 'valid_items'
ValidItems.checkup(updated_at: 1.day.ago)
=> 'ok'
Arguments:
email: (String)
updated_at: (ActiveSupport::TimeWithZone)
Eager Load is required on development, so that valid_items can query all AR models
Rails.application.eager_load!
You must have upgraded your Rails app so that all your models inherit from ApplicationRecord rather than ActiveRecord::Base.
FAQs
Unknown package
We found that valid_items 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.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.