Skip to content

Security Analysis tool for WebAssembly module (wasm) and Blockchain Smart Contracts (BTC/ETH/NEO/EOS)

License

Notifications You must be signed in to change notification settings

inkscopexyz/octopus

 
 

Repository files navigation

Octopus for Ink Smart Contracts in the Polkadot Ecosystem

Introduction

This repository is a fork of the original FuzzingLabs/octopus project, customized and enhanced to seamlessly integrate with ink! smart contracts for the Polkadot ecosystem. Our modifications focus on optimizing the functionality for Polkadot's blockchain environment, ensuring compatibility with newer versions of Python, and introducing a security enhancement by implementing a backdoor-checking mechanism in the CLI.

Changes Made

  1. Ink Smart Contracts Compatibility: The core modification involves adapting the original project to support ink! smart contracts within the Polkadot ecosystem.

  2. Wasm Library Upgrade: We replaced the original wasm library with wasm-tob to ensure compatibility with the latest versions of Python.

  3. CLI Backdoor Check: We've introduced a backdoor-checking feature in the Command Line Interface (CLI). This enhancement enables users to scan for potential backdoors, contributing to a more secure deployment of smart contracts.

Getting Started

To use this modified version of Octopus for Ink smart contracts in the Polkadot ecosystem, follow these steps:

  1. Clone the repository and enter the directory:
https://github.com/inkscopexyz/octopus.git && cd octopus
  1. Install the dependencies:
poetry install
  1. Run the example backdoor check:
poetry run inkscope --file ./tests/flipper.wasm --check_backdoor

ℹ️ Note: You can execute the backdoor check on any ink! smart contract by replacing the flipper.wasm file with the contract of your choice.

ℹ️ Note: You can also run other commands from the original Octopus project, check them using the --help flag.

poetry run inkscope --help

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Security Analysis tool for WebAssembly module (wasm) and Blockchain Smart Contracts (BTC/ETH/NEO/EOS)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.3%
  • Other 0.7%