
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
RPM reader/writer library written in Ruby.
It aims to provide fpm with a way to read and write rpms.
The API is quite confusing in many places, poorly documented in most. I have reached out to some CentOS/rpm folks to see what we can do about improving that API.
Even still, librpm has dependencies of its own. I want fpm to be able to read and write RPMs without requiring and endless chain of dependencies and most especially without requiring root access to get things going.
Mainly, if I try to build librpm myself, I get this: "configure: error: missing required NSPR / NSS header" and I'm not the burden of dependency resolution on fpm users.
It should be possible to do a read+modify+write on an RPM.
rpm = RPM.new
# requires and conflicts
rpm.requires("name") <= "version" # Something fun-dsl-likef
rpm.requires("name", :<=, "version") # Or maybe something like this
# provides
rpm.provides("name")
# Add some files
rpm.files << path
rpm.files << path2
rpm.files << path3
# Scripts?
rpm.scripts[:preinstall](path_or_script_string)
rpm.scripts[:postinstall](path_or_script_string)
rpm.scripts[:preuninstall](path_or_script_string)
rpm.scripts[:postuninstall](path_or_script_string)
rpm.write(output_file_name)
rpm = RPM.read(file)
rpm.requires # Array of RPM::Requires ?
rpm.provides # Array of 'Provides' strings?
rpm.conflicts # Array of RPM::Conflicts ?
rpm.files # Array of RPM::File ?
Maybe something like:
rpm.files.each do |file|
# Tags that are defined in rpm header tags
# fileclass filecolors filecontexts filedependsn filedependsx filedevices
# filedigests fileflags filegroupname fileinodes filelangs filelinktos
# filemodes filemtimes filerdevs filesizes fileusername fileverifyflags
#
# frankly, we don't care about most of these. Meaningful ones:
# username, groupname, size, mtime, mode, linkto
# file.io could give a nice IO-like thing that let you read the file out
# of the rpm
end
FAQs
Unknown package
We found that arr-pm 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.