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 gem allows you to make changes to files in the preserves repository and
have those changes automatically compiled if in a coffeescript file. The
resulting files will then be copied to a directory with the same name as the
modified package located in the directory specified by the destination
option.
Add this line to your application's Gemfile:
gem 'guard-preserves'
And then execute:
$ bundle
The destination
must be provided. An optional app_root
can be set, but
defaults to the location of the Guardfile. If no watch is provided, all
.js
and .coffee
files in the directory will be watched.
guard 'preserves', destination: 'public/foo/lib' do
#optional watch('foo/src/foo.coffee')
end
To start the guard run:
bundle exec guard --watchdir [absolute path to directory to watch] --guardfile [absolute path to directory with guardfile]
For example, given a Rails application named 'cool-stuff' in the same parent
directory as the preserves repo with the jam assets stored in
app/assets/javascripts/lib
with a Guardfile named
Preserves-Guardfile
that looks like
guard 'preserves', destination: 'app/assets/javascripts/lib'
run bundle exec guard --watchdir ~/source/preserves --guardfile ~/source/cool-stuff/Preserves-Guardfile
to start the guard.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that guard-preserves 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.