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.
$ gem install parka
Create a projectname.gemspec
file in the root of your gem like this:
require "rubygems"
require "parka/specification"
Parka::Specification.new do |gem|
gem.name = "somegem"
gem.version = Somegem::VERSION
gem.summary = "A sample gem"
gem.homepage = "http://example.org"
end
Create a Gemfile
to declare the dependencies of your gem:
source "http://rubygems.org"
gem "rest-client"
group :development do
gem "parka"
end
group :test do
gem "rake"
gem "rcov"
gem "rspec"
end
Gems in the development
and test
groups will become development
dependencies of your gem.
The gem can be built by using gem build projectname.gemspec
Build a .gem file.
$ parka build
Building somegem-0.1.gem
Successfully built RubyGem
Name: somegem
Version: 0.1
File: somegem-0.1.gem
Build a .gem file and install it locally.
$ parka install
Building somegem-0.1.gem
Successfully built RubyGem
Name: somegem
Version: 0.1
File: somegem-0.1.gem
Successfully installed somegem-0.1.gem
Build a .gem file and push it to Github and RubyGems.org. Will create the GitHub repo if necessary.
$ parka push
Building somegem-0.1.gem
Successfully built RubyGem
Name: somegem
Version: 0.1
File: somegem-0.1.gem
Delta compression using up to 8 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (9/9), 1.26 KiB, done.
Total 9 (delta 3), reused 0 (delta 0)
To git@github.com:ddollar/somegem.git
edffa40..249581c master -> master
* [new tag] v0.1 -> v0.1
Pushing gem to RubyGems.org...
Successfully registered gem: somegem (0.1)
FAQs
Unknown package
We found that parka 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.