Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
rubocop-gitlab-security
Advanced tools
This is an early attempt at creating Rubocop rules, similar to Rubocop-RSpec, for blocking dangerous code. This code is based heavily upon the Rubocop-RSpec code released under the MIT License.
Just install the rubocop-gitlab-security
gem
gem install rubocop-gitlab-security
or if you use bundler put this in your Gemfile
gem 'rubocop-gitlab-security'
You need to tell RuboCop to load the Gitlab-Security extension. There are three ways to do this:
Put this into your .rubocop.yml
.
require: rubocop-gitlab-security
Now you can run rubocop
and it will automatically load the RuboCop Gitlab-Security
cops together with the standard cops.
rubocop --require rubocop-gitlab-security
RuboCop::RakeTask.new do |task|
task.requires << 'rubocop-gitlab-security'
end
By default, rubocop-gitlab-security
inspects all files. You can override this setting in your config file by specifying one or more patterns:
# Inspect all files
AllCops:
GitlabSecurity:
Patterns:
- '.+'
# Inspect only controller files.
AllCops:
GitlabSecurity:
Patterns:
- app/controllers/**/*.rb
All cops are located under
lib/rubocop/cop/gitlab-security
, and contain
examples/documentation.
In your .rubocop.yml
, you may treat the Gitlab-Security cops just like any other
cop. For example:
GitlabSecurity/PublicSend:
Exclude:
- 'spec/**/*'
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)rubocop-gitlab-security
is MIT licensed. See the accompanying file for
the full text.
FAQs
Unknown package
We found that rubocop-gitlab-security 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.