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.
Here is how you can measure and log the time of a block:
require 'elapsed'
elapsed do
run_something_slow
end
You can also send the log message to a log, for example to the Loog:
require 'elapsed'
require 'loog'
elapsed(Loog::VERBOSE) do
# any code
end
You can also make the message custom:
elapsed(intro: 'File saved') do
File.save(f, 'Hello, world!')
end
Or, you can make the message even more custom:
elapsed do
File.save(f, 'Hello, world!')
throw :"Successfully saved #{File.size(f)} bytes"
end
That's it.
Read these guidelines. Make sure you build is green before you contribute your pull request. You will need to have Ruby 3.0+ and Bundler installed. Then:
bundle update
bundle exec rake
If it's clean and you don't see any error messages, submit your pull request.
FAQs
Unknown package
We found that elapsed 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.