Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Arlequin is a Ruby gem that helps detect and warn about N+1 SQL queries in Rails applications. It includes middleware that integrates seamlessly with your Rails application to improve performance by identifying inefficient database queries.
Add this line to your application's Gemfile:
gem 'arlequin', group: [ :development ]
Then execute:
$ bundle install
To start using Arlequin, simply add the following to your Rails application’s configuration file (config/application.rb):
require 'arlequin'
Arlequin integrates with Rails as middleware. It will automatically start monitoring SQL queries for N+1 problems. No additional setup is required beyond including it in your Gemfile and configuration.
Suppose you have a Rails application with a Post model that has many Comments. If you inadvertently write code like:
@posts = Post.all
@posts.each do |post|
puts post.comments.count
end
Arlequin will detect this N+1 query issue and warn you about it in the UI.
To contribute to Arlequin, clone the repository and run the test suite:
git clone https://github.com/dominicgoulet/arlequin.git
cd arlequin
bundle install
rake test
Make sure to write tests for any new features or bug fixes you add. Follow the existing coding style and conventions used in the project.
We welcome contributions! Please submit pull requests and issues through GitHub. Ensure your code adheres to the project’s style and includes appropriate tests.
Arlequin is released under the MIT License.
For any questions or feedback, feel free to reach out to us at [dominic@dominicgoulet.com].
FAQs
Unknown package
We found that arlequin demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.