Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
This gem provides a script that modifies the Gemfile and runs bundler in one step. This came about because I needed to regularly make local modifications to a shared project, but didn't or couldn't push my locally needed changes upstream.
$ gem install fix_mah_gemfile
Change your directory to the project, where the Gemfile is available. First generate a sample .fixgemfile_rc in the current directory with:
$ fix_mah_gemfile --generate_rc
Then edit the .fixgemfile_rc with the local changes you'd like to apply when running the fix_mah_gemfile script.
$ fix_mah_gemfile
changing gem: args ["libxml-ruby", {:to=>"~> 2.6"}]... found at 147
gem 'libxml-ruby', '~> 2.6', :require => nil
removing therubyracer... found at
Not found
removing guard-less... found at
Not found
bundle
Using rake (10.0.4)
Using Ascii85 (1.0.2)
...
Then before checking-in any changes, either do a git checkout Gemfile* or simply avoid commiting these local changes to your gemfile.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that fix_mah_gemfile 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.