
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
This unobtrusive scripting support file is developed for the Ruby on Rails framework, but is not strictly tied to any specific backend. You can drop this into any application to:
These features are achieved by adding certain "data" attributes to your HTML markup. In Rails, they are added by the framework's template helpers.
Full documentation is on the wiki, including the list of published Ajax events.
If you don't use HTML5, adding "data" attributes to your HTML4 or XHTML pages might make them fail W3C markup validation. However, this shouldn't create any issues for web browsers or other user agents.
For automated installation in Rails, use the "jquery-rails" gem. Place this in your Gemfile:
gem 'jquery-rails', '~> 2.1'
And run:
$ bundle install
This next step depends on your version of Rails.
a. For Rails 3.1, add these lines to the top of your app/assets/javascripts/application.js file:
//= require jquery
//= require jquery_ujs
b. For Rails 3.0, run this command:
Be sure to get rid of the rails.js file if it exists, and instead use the new jquery_ujs.js file that gets copied to the public directory. Choose to overwrite jquery_ujs.js if prompted.
$ rails generate jquery:install
c. For Rails 2.x and for manual installation follow this wiki .
Follow this wiki to run tests .
FAQs
Unobtrusive scripting adapter for jQuery
The npm package jquery-ujs receives a total of 97,253 weekly downloads. As such, jquery-ujs popularity was classified as popular.
We found that jquery-ujs 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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.