Benign gem 1,101,758 installs Download

newrelic_moped 0.0.4.1

legitimate New Relic instrumentation gem

“New Relic instrumentation for Moped (1.x, 2.0) / Mongoid (3.x, 4.0)”

Ruby subshell command executionRuby class_eval call
SHA-25629c7f8e3fdf88cf995751533a2e7e0896258ddd480e0dc41a3cb1a18c4062144

Evidence

Ruby rebinds a method with alias_method instrumentation.rb · lines 11–23
11:30… bug 'Installing Moped instrumentation'
12 end
13
14 executes do
15 Moped::Node.class_eval do
16 include NewRelic::Moped::Instrumentation
17 alias_method :logging_without_newrelic_trace, :logging
18 alias_method :logging, :logging_with_newrelic_trace
19 end
⋯4 lines
Ruby class_eval call instrumentation_test.rb · lines 22–39
22:49… ion_sampler
23 @sampler.reset!
24 @sampler.start_builder
25
26 Moped::Node.class_eval do
27 def logging_with_newrelic_trace(operations, &callback)
28 # do nothing
⋯11 lines
Ruby gemspec assigns package name newrelic_moped.gemspec · lines 1–17
1# -*- encoding: utf-8 -*-
2require File.expand_path('../lib/newrelic_moped/version', __FILE__)
3
4Gem::Specification.new do |gem|
5 gem.authors = ["Stephen Bartholomew"]
6 gem.email = ["[email protected]"]
7 gem.description = %q{New Relic Instrumentation for Moped & Mongoid 3}
8 gem.summary = %q{New Relic Instrumentation for Moped & Mongoid 3}
9 gem.homepage = ""
10
11 gem.files = `git ls-files`.split($\)
12 gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13 gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
⋯4 lines

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.