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.
There might be times when you (the bequestor) want to provide data to a third party (the bequestee) for a limited time and/or only on a specific machine. Bequest enables password, MAC address and expiry-based protection of data via a single, binary, encrypted license file.
Add this line to your application's Gemfile:
gem 'bequest'
And then execute:
$ bundle
Or install it yourself as:
$ gem install bequest
The bequestor would run:
Bequest::License.create('path/to/source/data', 'path/to/out/file',
:expires_at => Time.now + 1.year,
:password => 'secret word or phrase',
:mac_addr => 'bequestee:MAC:address:for:example')
Parameters:
Options (at least ONE of :password or :mac_addr must be set):
The serialised, binary license file contains a main checksum and a body. The body is composed of:
The main checksum is of the body as a joined array, before it was serialised in the license file. It is used to validate the integrity of the license file.
The client would run:
lic, data = Bequest::License.load('path/to/lic/file',
:password => 'whatever', :mac_addr => 'whatever')
The password will be prompted for if set and :password not supplied. The first MAC address of the local machine will be used if set and :mac_addr not supplied. data will be set to nil if authentication fails or it has expired. lic will always be populated regardless of success and may be queried as follows:
lic.valid? # => true or false
lic.expired? # => true or false
lic.expires_at # => Ruby Time object
lic.status # => :ok, :expired, :unauthorized, or :tampered
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that bequest 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
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.