
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.
durable_decorator_rails
Advanced tools
This integrates durable_decorator with Rails.
Add this line to your application's Gemfile:
gem 'durable_decorator_rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install durable_decorator_rails
This gem will generate the correct file structure, place (or append to) the correct decorator and even insert the correct seal for you. Use:
rails g decorator [FULL_METHOD_NAME]
For example, let us decorate the existing #deleted? instance method from the gem that is namespaced under Spree in a file that is a model called Product. Just run:
rails g decorator Spree::Product#deleted?
The gem will create the app/models/spree/product_decorator.rb file for you to start with, and it will have the following contents:
Spree::Product.class_eval do
durably_decorate :deleted?, mode: 'strict', sha: '9dc99742ed3ebbdd5b2cbd7c3c93d730e5244e72' do
end
end
Otherwise, you may access the SHA of any method in memory with:
rake durable_decorator:determine_sha[Spree::Product#deleted?]
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)FAQs
Unknown package
We found that durable_decorator_rails 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.