Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
(Also check scorpion for a light-weight IoC container)
Simple colored logging for rails 4 and 5 apps.
There are plenty of logging frameworks for making tags (like timestamp, log level, etc.) more colorful - but what about the details in the line of text? What about the HTTP method used to make the request? What about the render times?
Shog adds colors to highlight context and make it easier to pick out the important parts of the message. Unformatted logs like this
become easy to ready and process logs like this
Just add the following to your Gemfile to enable shiny output logs.
gem 'shog'
Shog comes built in with some sane defaults for rails apps. But you can customize the output to match additional log message by your app, or to use different options in production.
To change the defaults, add shog.rb
to your config/initializers
folder
Shog.configure do
if ::Rails.env.production?
reset_config!
timestamp
end
match /execution expired/ do |msg,matches|
# Highlight timeout errors
msg.red
end
end
See Shog::Formatter#configure for more configuration options.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Copyright (c) 2014 Paul Alexander
FAQs
Unknown package
We found that shog 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.