
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Sinatra-based data charting application
Add this line to your application's Gemfile:
gem 'graffable'
And then execute:
$ bundle
Or install it yourself as:
$ gem install graffable
Set environment variables:
% export GRAFFABLE_DATABASE_URL=sqlite://path/to/db.sqlite3
% export GRAFFABLE_SEED_FILE=/path/to/seed.rb
Create seed file:
require 'graffable'
DB = Graffable::Database.connect
# Report Groups
[
[ 'a', 'Service A' ],
[ 'b', 'Host B', ]
].each do |tuple|
DB[:groups].insert name: tuple.first, description: tuple.last
end
# Reports
{
'a' => {
'report-a1' => [ 'Name of report', :sum ],
'report-a2' => [ 'Name of report', :avg ],
},
'b' => {
'report-b1' => [ 'Name of report', :sum ],
'report-b2' => [ 'Name of report', :avg ],
}
}.each_pair do |group_name, reports|
group = DB[:groups][ name: group_name ]
raise "ERROR: unknown report group '#{ group_name }'" if group.nil?
reports.each_pair do |name, values|
DB[:reports].insert group_id: group[:id], name: name, description: values.first, aggregate: values.last.to_s
end
end
Add tasks to Rakefile
:
% cat Rakefile
...
require 'graffable/migration_task'
Graffable::MigrationTask.new
require 'graffable/seed_task'
Graffable::SeedTask.new
...
Migrate database and load seed data:
% rake graffable:migrate:reset graffable:seed
Create config.ru
and launch application:
% cat config.ru
require 'graffable'
run Graffable::App
% rackup
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that graffable 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
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.