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.
Part of TrackerHub, Request is a gem tracking every requests on the backend side. Some keys will be filtered and the request data will finally be saved into a logfile. This logfile will be automatically managed and rotated by the logging gem.
Add this line to your application's Gemfile:
gem 'tracker_hub-request', git: 'git@github.com:SparkHub/gs-tracking-requests.git'
And then execute:
$ bundle
In an initializer, you can configure the tracker:
# ./config/initializers/request_tracker.rb
TrackerHub::Request.setup do |config|
config.app_version = '1.0'
config.required_keys = %w(my rack env keys to log)
config.logger = ActiveSupport::Logger.new('requests.log')
config.notification = TrackerHub::Request::Notification.new(TrackerHub::Request::Notification::HipChat.new('my_token', 'my_room', 'my_username'))
end
Note:
Here you can define your own configured logger. The default logger is logging. Feel free to add your own, or use another gem!
If an error occure, it will be catched and a notification will be sent to the service of your choice. The list of available services are defined here.
Add the middleware to your environment:
config.middleware.insert_after ActionDispatch::DebugExceptions, TrackerHub::Request::Middleware
Activate the TrackerHub by adding to your environment (or .env
):
$ TRACKER=true
Get your request logs:
$ tail -f ./log/tracker/requests.log
To run tests:
$ bundle exec rake spec
Bug reports and pull request are welcome on GitHub at https://github.com/SparkHub/gs-tracking-requests. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that tracker_hub-request 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.