
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
Ruby wrapper for accessing the Etrieve Content API. Document metadata and content retrieval is currently supported. Document writes may be supported in a future version.
Add this line to your application's Gemfile:
gem 'etrieve_content_api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install etrieve_content_api
Configuration can be passed as a hash.
{
auth_url: 'https://example.com/auth', # default: ''
base_url: 'https://example.com/api', # default: ''
password: password, # default: ''
username: username, # default: '' - might be a client_id as opposed to a user login
timeout: 1, # default: 30 seconds
verify_ssl: false # default: true
}
Configuration can be read from a YAML file by passing the file path. The file should contain a hash structure and ERB content is evaluated:
---
auth_url: 'https://example.com/auth',
base_url: 'https://example.com/api',
password: password,
username: username,
timeout: 1,
verify_ssl: false
See Handler class for prebuilt requests for things like document metadata and content.
require 'etrieve_content_api'
handler = EtrieveContentApi::Handler.new(config_hash_or_path_to_config_yaml)
handler.document_metadata({:q => 'Sue'})
Connection#execute can be used to wrap a group of calls with a single authentication request.
conn = EtrieveContentApi::Connection.new(config_hash_or_path_to_config_yaml)
conn.execute() {
@custom1 = conn.get_custom_connection([conn.base_url, 'custom_path1'].join('/'), conn.headers)
@custom2 = conn.get_custom_connection([conn.base_url, 'custom_path2'].join('/'), conn.headers)
}
Bug reports and pull requests are welcome on GitHub at https://github.com/reed_college/etrieve_content_api.
The gem is available as open source under the terms of the BSD-3-Clause License.
FAQs
Unknown package
We found that etrieve_content_api 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 researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.