npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@carmineh/sumo

v3.0.78

Published

A mutation testing tool for Ethereum smart contracts

Readme

MuSe - MUtation SEeding tool

A mutation-based tool for generating benchmarks by injecting vulnerabilities into smart contracts. It features 6 mutation operators to inject vulnerabilities. MuSe is based on a mutation testing tool called SuMo.

Table of Contents

Installation 🔌

To install sumo run npm install @geriul/sumo

Configuration ⚙️

Before using MuSe you must specify your desired configuration in a sumo-config.js in the root directory of your project. The sumo-config.js is automatically generated upon installation.

Here's a simple example of sumo-config.js:

module.exports = {
  buildDir: 'build',
  contractsDir: 'contracts',
  testDir: 'test',
  skipContracts: ['contractName.sol'], // Relative paths from contractsDir
  skipTests: ['testFileName.js'], // Relative paths from testDir
  testingTimeOutInSec: 300,
  network: "none",
  testingFramework: "truffle",
  minimal: false,
  tce: false
}

1) Main directories

These (optional) fields identify relevant project directories.

| Field | Description | Default Value | | ------ | ------ | :----: | | contractsDir| relative path to the directory of the contracts to be mutated | contracts | | testDir| relative path to the directory of the tests to be evaluated | test/tests | | buildDir| relative path to the directory of the compilation artifacts | build/out/artifacts | |

CLI Usage 💻

Selecting the Mutation Operators

Before starting the mutation process you can choose which mutation operators to use:

| Command | Description | Usage | Example | |---------------|------------------------------------|--------------------------|-------------------------------------| | list | Shows the enabled mutation operators. | npx/yarn sumo list | $ npx sumo list | | enable | Enables one or more mutation operators. If no operator IDs are specified, all of them are enabled. | npx/yarn sumo enable [...ID] | $ npx sumo enable $ npx sumo enable AOR BOR | | disable | Disables one or more mutation operators. If no operator IDs are specified, all of them are disabled. | npx/yarn sumo disable [...ID] | $ npx sumo disable $ npx sumo disable FVR |

Viewing the available mutations

| Command | Description | Usage | Example | |---------------|------------------------------------|--------------------------|-------------------------------------| | lookup | Generates the mutations and saves them to ./sumo/generated.csv without starting mutation testing. | npx/yarn sumo lookup | $ npx sumo lookup | | mutate | Generates the mutations and saves a copy of each .sol mutant to to ./sumo/mutants. | npx/yarn sumo mutate | $ npx sumo mutate |

Viewing the results

MuSe automatically creates a sumo\results folder in the root directory of the project with the following reports:

  • results.csv Results of the mutation testing process for each mutant in csv format
  • sumo-log.txt Logs info about the mutation testing process
  • mutations.json Results of the mutation testing process for each mutant in json format
  • \mutants Mutated .sol contracts generated with sumo mutate

Quickstart ✅

Default folders creation run (in root folder):

mkdir -p contracts tests build

Enabling TD operator:

npx sumo enable TD

Mutating contracts:

npx sumo mutate

Mutation Operators 👾

MuSe includes currently 11 mutation operators.

Vulnerability Mutation Operators

| Operator | Name | Mutation Example | |----------|--------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | UC | Unchecked low-level call return value | require(address.call())address.call() | | US | Unchecked send | require(address.send())address.send() | | UTR | Unchecked transfer | require(address.transfer())address.transfer() | | TX | Authentication through tx.origin | owner == msg.senderowner == tx.origin | | DTU | Delegatecall to untrusted callee | address.delegatecall()function setDelegate(address _addr){addr = _addr} addr.delegatecall() | | UR1 | Unused return (Assignment) | _totalSupply = _totalSupply.sub(amount)_totalSupply = 0; _totalSupply.sub(amount) | | UR2 | Unused return (Initialization + Assignment)| uint length = data.decodeU32()uint length = data.decodeU32() | | TD | Timestamp dependence | block.numberblock.timestamp | | IUO | Integer underflow/overflow | totalSupply = totalSupply.add(amount)totalSupply = (totalSupply + amount) | | USD | Unprotected self-destruct | function destroy() private { selfdestruct(payable(owner)); }function destroy() public { selfdestruct(payable(owner)); } | | RE | Reentrancy | function withdraw(uint256 amount) public { balances[msg.sender] -= amount; (bool success, ) = msg.sender.call{value: amount}(""); }function withdraw(uint256 amount) public { (bool success, ) = msg.sender.call{value: amount}(""); balances[msg.sender] -= amount; } |

Publications 📖

@article{iuliano2025automated,
  title={Automated Vulnerability Injection in Solidity Smart Contracts: A Mutation-Based Approach for Benchmark Development},
  author={Iuliano, Gerardo and Allocca, Luigi and Cicalese, Matteo and Di Nucci, Dario},
  journal={arXiv preprint arXiv:2504.15948},
  year={2025}
}