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.
The gooru gem allows your Ruby app to talk to the Gooru API
Add this line to your application's Gemfile:
gem 'gooru'
And then execute:
$ bundle
Or install it yourself as:
$ gem install gooru
Some areas of the Gooru API require sign in via an API key.
You may want to request an API key from Gooru before you get started.
If you're using an API key, you may want to store it in an environment variable.
Environment variables can be a way to store sensitive data you don't want in source control.
Consider using a tool like Dotenv to manage these variables across different developer and server environments.
You'll see the environment variable approach used in the examples below.
The Sign In call takes your API key and returns a session token.
If you're using the signed in areas of the Gooru API, you'll need to hang on to the returned session token and use it in later requests.
The Sign In call is not needed if you're only using the public areas of the API.
response = Gooru::SignIn.post(
apiKey: ENV["GOORU_API_KEY"],
userName: ENV["GOORU_USER_NAME"],
password: ENV["GOORU_PASSWORD"])
if response.success?
puts "You've been authenticated!"
puts "Your session token is #{response.data['token']}"
else
puts "You were unable to be authenticated…"
puts "The error message was: #{response.data['error']}"
end
Required parameters
apiKey
userName
password
The Resources call takes a query and returns a list of matching resources.
You can optionally pass a session token if you're signed in, but it is not required.
response = Gooru::Resources.get(
query: "algebra")
if response.success?
results = response.data["searchResults"]
puts "We found #{results.length} resources matching 'algebra'"
else
puts "The error message was: #{response.data['error']}"
end
Required parameters
query
Optional parameters
sessionToken
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that gooru 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.