Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
This library includes a configured controller, configured model and model factory supporting the SOAR reference implementation service component MVC. ConfiguredController provides access to soar_sc dependencies as and requesty body, as well as a configured and ready-to-use SMAAK client.
Add this line to your application's Gemfile:
gem 'soar_sc_mvc'
And then execute:
$ bundle
Or install it yourself as:
$ gem install soar_sc_mvc
Given a configuration with a provider adhering to SoarSc::Web::Models::ConfiguredModel, configured as follows:
{ 'providers' =>
{ 'my_provider' =>
{ 'adaptor' => 'MyAdaptorClass',
'some' => 'value' }
}
}
an instance of the model (MyAdaptorClass), readily configured with the configuration hierarchy
{ 'some' => 'value' }
can be obtained so:
model_factory = SoarSc::Web::Models::ModelFactory.new(configuration)
model = model_factory.create('my_provider')
class MyModel < SoarSc::Web::Models::ConfiguredModel
end
model = MyModel.new(configuration)
puts model.configuration
class MyController < SoarSc::Web::Controllers::ConfiguredController def serve(request) puts "Dependencies are: #{dependencies}" puts "body is #{body(requests)}" puts "I can use smaak client #{smaak_client}" [200, "100"] end end
controller = MyController.new(configuration)
Please send feedback and comments to the author at:
Ernst van Graan ernst.van.graan@hetzner.co.za
This gem is sponsored by Hetzner (Pty) Ltd - http://hetzner.co.za
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that soar_sc_mvc 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.