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.
find the gem on rubygems.org
gem install searchbing
A subscription and account key are needed to use the Bing Search API. You can create a new account for the Bing Search API and obtain account key here The WebOnly search requires a separate subscription found here
valid search types include: Image, Web, WebOnly, News or Video. The first letter must be capitalized
this gem relies on the open-uri, net/http, and json gems.
require the gem in your shell session
require 'searchbing'
create a new search object, below 10 results are requested, you can retrieve up to 50 at a time
bing_image = Bing.new('your_account_key_goes_here', 10, 'Image')
retrieve the results for a given term
bing_results = bing_image.search("puffin")
or optionally specify an offset for your search, to start retrieving results from the starting point provided
bing_results = bing_image.search("puffin", 25)
parse the results(recent changes require parsing with symbols, also please note the data structure of the response coming from bing has also changed)
puts bing_results[0][:Image][0][:MediaUrl]
display the total number of results
puts bing_results[0][:ImageTotal]
FAQs
Unknown package
We found that searchbing 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.