
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Ruby client library for programmatic access to the Passrock Binary Database.
This library adheres to SemVer. Pre v1.0.0 is considered alpha level software.
Add this line to your application's Gemfile:
gem 'passrock'
And then execute:
$ bundle
require 'passrock'
passrock_db = Passrock::PasswordDb.new(:password_db => '/path/to/passrock_db_dir', :private_key => 'your private key')
passrock_db.secure?('password') # => false
passrock_db.insecure?('PASSWORD') # => true
This library provides a custom ActiveModel validation:
# Configure: config/initializers/passrock.rb
Passrock.configure do |config|
config.password_db = '/path/to/passrock_db_dir'
config.private_key = 'your private key'
end
# Model
# e.g. app/models/user.rb
validates :password, :passrock_secure => true
# Customize the error message (see: http://guides.rubyonrails.org/i18n.html#error-message-scopes)
# e.g. config/locales/en.yml
activerecord:
errors:
messages:
passrock_secure: "appears to be a commonly used password"
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)To run the spec suite:
bundle install
cp .env.example .env # and change the env values
bundle exec rake spec
FAQs
Unknown package
We found that passrock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
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.