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.
= LogMe
Adds custom logging functionality to controllers and models in a Rails application.
== Installation
Add the gem to your gemfile
gem 'log_me'
== Example usage
class Post < ActiveRecord::Base
log_me # turn on the logging functionality for this class
def an_instance_method
# ... do something ...
log "This is a logging message with severity info"
log "This is a logging message with severity error", :error
end
def self.a_class_method
# since logging is done on class level
# this isn't a problem
log "This is a logging message in a class method, as warning", :warning
end
end
The standard behaviour cares about the naming of the logfile. In the example above the logfile can be found under YourApplication/log/post.log
To alter this behaviour just provide an own name, like so:
class Post < ActiveRecord::Base
log_me "my_own_logfile_name"
# ...
end
In this style the logfile can be found under YourApplication/log/my_own_logfile_name.log
== Additions
The logging functionality is added to ActiveRecord::Base
and ActionController::Base
. So each class that inherits from either of them is able
to use the logging functionality.
== Authors and credits
Author:: Robert Neumayr Original idea:: http://www.tonyamoyal.com/2009/09/24/specific-logging-for-your-rails-models-the-easy-way/
FAQs
Unknown package
We found that log_me 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.