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.
Hypertest is a very simple tool to help you run fast test suites in a very tight dev loop on file changes.
Add gem 'hypertest'
to your Gemfile, maybe in a :development, :test
group,
then bundle install
. gem 'bootsnap'
is also recommended.
Generally you will want to use Hypertest by creating a file like:
#!/usr/bin/env ruby
# bin/hypertest
require 'bundler/setup'
Bundler.require(:development, :test)
ROOT = File.expand_path('..', __dir__)
$LOAD_PATH.unshift(File.join(ROOT, 'lib'))
$LOAD_PATH.unshift(File.join(ROOT, 'test'))
# Bootsnap isn't necessary but generally speeds things up even further.
Bootsnap.setup(
cache_dir: "#{ROOT}/tmp/cache",
ignore_directories: [],
development_mode: true,
load_path_cache: true,
compile_cache_iseq: true,
compile_cache_yaml: true,
compile_cache_json: true,
readonly: false,
)
Hypertest.run do
require 'test_helper'
Dir.glob('test/**/*_test.rb').each do |file|
require File.join(ROOT, file)
end
end
This loads ruby and your bundle, then forks to load your test helper and tests after each file change. Happy hacking!
ignore:
) can only match on directory paths because the
FSEvents library doesn't seem to want to let me use file_events: true
.FAQs
Unknown package
We found that hypertest demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.