
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
rails_devs_for_data_integrity
Advanced tools
Rails Devs For Data Integrity catches unique key and foreign key violations coming from the MySQLdatabase and converts them into an error on the ActiveRecord object similar to validation errors
class User < ActiveRecord::Base handle_unique_key_violation :user_name, :message => 'is taken" handle_foreign_key_violation :primary_email_id, :message => 'is not available' end
Instead of this nasty MySQL foreign key error:
ActiveRecord::StatementInvalid: Mysql::Error: Cannot add or update a child row:
a foreign key constraint fails (zoo_development/animals,
CONSTRAINT fk_animal_species FOREIGN KEY (species_id)
REFERENCES species (id) ON DELETE SET NULL ON UPDATE CASCADE)
user.errors.on(:user_name) => "association does not exist."
Or in the case of a unique key violation:
user.errors.on(:primary_email_id) => "is a duplicate."
==== Developers
=== Install
Copyright (c) 2009 [name of plugin creator], released under the MIT license
FAQs
Unknown package
We found that rails_devs_for_data_integrity 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 researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.