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.
This ruby gem library implements configuration tasks using the Arista EOS eAPI. The goal if this library is to provide a reusable set of classes and methods for use with Puppet types and providers.
First, clone the repository to your local development system:
$ cd /workspace
$ git clone git@github.com:puppetlabs/puppet_x_eos_eapi.git
Then add these lines to your module's Gemfile in order to use your development copy of the Gem library:
puppet_x_eos_eapi_version = ENV['GEM_PUPPET_X_EOS_EAPI_VERSION']
if puppet_x_eos_eapi_version
gem 'puppet_x_eos_eapi', *location_for(puppet_x_eos_eapi_version)
else
gem 'puppet_x_eos_eapi'
end
And then execute:
$ export GEM_PUPPET_X_EOS_EAPI_VERSION=file:///workspace/puppet_x_eos_eapi
$ bundle install --path .bundle/gems/
Provider's extend themselves by including the API methods into the provider class. For example,
# encoding: utf-8
require 'puppet/type'
require 'puppet_x_eos_eapi'
Puppet::Type.type(:network_snmp).provide(:eos) do
# Create methods that set the @property_hash for the #flush method
mk_resource_methods
# Mix in the api as instance methods
include PuppetX::Eos::ProviderMethods
# Mix in the api as class methods
extend PuppetX::Eos::ProviderMethods
# Mix in common provider class methods (e.g. self.prefetch)
extend PuppetX::Eos::ProviderClassMethods
def initialize(resource = {})
super(resource)
@property_flush = {}
end
end
When making changes to this Gem, please check the spec tests, code coverage, documentation coverage, and rubocop warnings:
Behavior Tests:
bundle exec rspec spec
Code Coverage is automatically generated after the spec tests are run:
open coverage/index.html
Documentation:
bundle exec yard
Rubocop warnings:
bundle exec rubocop
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that puppet_x_eos_eapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.