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.
Create PKGBUILDs for ruby gems.
Upon first run the gem will prompt for your name and email address to use in
the maintainer field in PKGBUILDs and to use as the git author. If you have
already configured git it will confirm the values that it finds. It will also
ask where to store package repositories. All information is then saved in
~/.gembuild
which is just a simple YAML file and can be easily changed
using your favorite text editor.
Simple usage to create/update a package for a gem:
$ bundle exec bin/gembuild mina
This will checkout the AUR package for ruby-mina
, fetch the latest version
of the gem and update the PKGBUILD accordingly, and then regenerate the
metadata using mksrcinfo
and commit all changes.
There are four main parts: the AUR scraper, the rubygems scraper, the PKGBUILD and the project.
The AUR scraper is used to get version information about a package currently on the AUR.
s = Gembuild::AurScraper.new('ruby-mina')
s.scrape!
The RubyGems scraper gets the rest of the information needed for the PKGBUILD by making several queries to rubygems.org. N.B. that it skips any version marked as a "prerelease".
s = Gembuild::GemScraper.neW('mina')
s.scrape!
The Pkgbuild
class is actually responsible for creating a PKGBUILD for a
gem.
Gembuild::Pkgbuild.create('mina')
The Project
class is what checks out the repository from the AUR,
configures git for it, makes sure there is a .gitignore
and commits all
changes after creating or updating the PKGBUILD.
Gembuild::Project.new('mina').clone_and_commit!
This project is licensed under the GPLv3 or any later version. For more information please see the LICENSE file included with the project or https://www.gnu.org/licenses.
FAQs
Unknown package
We found that gembuild 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.
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.