Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Antilles forks a stub HTTP server using mimic and exposes a simple interface to configure the server. Antilles is meant to work with aruba to make it easier to test command line tools that communicate with Web APIs.
Read this blog post for our motivation.
Antilles works best with cucumber and aruba, but it can be used with any testing tool.
gem install antilles
or use bundler:
group :test do
gem :antilles
end
# features/support/antilles.rb
require 'antilles/cucumber'
Antilles.configure do |server|
server.port = 9876 # defaults to 8080
server.log = STDOUT # defaults to nil for no logging
end
Requiring antilles/cucumber
will automatically start a server before all
Scenarios tagged @mimic
, clear stubs between tests, and tear down the server
when the test exits. Look at [cucumber.rb]
(https://github.com/tddium/antilles/blob/master/lib/antilles/cucumber.rb) if you
need to customize this behavior.
Antilles can be configured to do anything mimic can do, but the basic mode of
operation is to install
stubs:
Given /^creating a membership fails with: (.*)$/ do |error|
user="a@b.com"
Antilles.install(:post, "/memberships/#{user}", {:status=>1, :explanation=>error}, :code=>409)
end
FAQs
Unknown package
We found that antilles 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.