
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
= rpam2
== DESCRIPTION:
This extension provides a PAM (Pluggable Authentication Modules) integration to ruby. It is inspired by rpam but provides much functionality and is licensed under MIT.
== EXAMPLE:
require 'rpam2'
if Rpam2.auth("servicename", "user", "password") puts "Authentication successful" else puts "Authentication failed" end
puts Rpam2.listenv(nil, "user", "password") # uses default (rpam) puts Rpam2.listenv("servicename", "user", "password") puts Rpam2.listenv("servicename", "user", "password", true) puts Rpam2.listenv("servicename", "user", "password", true, "RUSER", "RHOST") puts Rpam2.listenv("servicename") # error
== REQUIREMENTS:
== INSTALL:
gem install rpam2
or if it should not depend on pam:
ALLOW_NOPAM=true gem install rpam2
WARNING: Don't use rpam2 in this case except for test. It isn't safe
Or manually:
== Usage:
require 'rpam2'
Rpam2.auth("servicename", "username", "password", ["RUSER", "RHOST"]) => (true/false)
Rpam2.account("servicename", "username") => (true/false)
Rpam2.getenv("servicename", "username", "password", "envvar", [opensession(true/false), ["RUSER", "RHOST"]]) => (string/nil)
Rpam2.listenv("servicename", "username", "password", [opensession(true/false), ["RUSER", "RHOST"]]) => (hash/nil)
== Testing: For test purposes can Rpam2 be filled with fake data. For this mode pam is not neccessary but then you may should not access not specified services. Only services in fake_data are emulated the rest is redirected to real pam.
Rpam2.fake_data = { usernames: Set['alex', 'hugo', 'thomas'], servicenames: Set['service1', 'service2'], password: '123456', env: { email: 'me@example.com'} }
FAQs
Unknown package
We found that rpam2 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
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.