Chepy : A Python lib/cli Equivalent Of The Awesome CyberChef Tool

Chepy is a python library with a handy cli that is aimed to mirror some of the capabilities of CyberChef. A reasonable amount of effort was put behind it to make it compatible to the various functionalities that CyberChef offers, all in a pure Pythonic manner.

There are some key advantages and disadvantages that it has over Cyberchef. The Cyberchef concept of stacking different modules is kept alive in Chepy.

There is still a long way to go for it as it does not offer every single ability of Cyberchef.

Example

For all usage and examples, see the docs.

It has a stacking mechanism similar to Cyberchef. For example, this in Cyberchef:

This is equivalent to

from chepy import Chepy

file_path = “/tmp/demo/encoding”

print(
Chepy(file_path)
.load_file()
.reverse()
.rot_13()
.base64_decode()
.base32_decode()
.hexdump_to_str()
.o
)

Also Read – ShuffleDNS : Wrapper Around Massdns Written In Go To Enumerate Valid Subdomains Using Active Bruteforce

Chepy vs Cyberchef

Advantages

  • It is pure python with a supporting and accessible python api
  • It has a CLI
  • It CLI has full autocompletion.
  • Supports pe, elf, and other various file format specific parsing.
  • Extendable via plugins
  • Infinitely scalable as it can leverage the full Python library.
  • It can interface with the full Cyberchef web app to a certain degree. It is easy to move from Chepy to Cyberchef if need be.
  • Its python library is significantly faster than the Cyberchef Node library.
  • Works with HTTP/S requests without CORS issues.

Disadvantages

  • It is not a web app (at least for now).
  • It does not offer every single thing that Cyberchef does
  • It does not have the magic method (at the moment)

Installation

It can be installed in a few ways.

Pypi

pip3 install chepy
# optionally with extra requirements
pip3 install chepy[extras]

Git

git clone –recursive https://github.com/securisec/chepy.git
cd chepy
pip3 install -e .
# I use -e here so that if I update later with git pull, I dont have it install it again (unless dependencies have changed)

Docker

docker run –rm -ti -v $PWD:/data securisec/chepy “some string” [somefile, “another string”]

Standalone binary

One can build it to be a standalone binary also. This includes packaging all the dependencies together.

git clone https://github.com/securisec/chepy.git
cd chepy
pip install .
pip install pyinstaller
pyinstaller cli.py –name chepy –onefile

The binary will be in the dist/ folder.

Plugins

Check here for plugins docs

.. toctree::
:maxdepth: 3
:caption: Contents:
usage.md
examples.md
cli.rst
chepy.md
core.md
modules.rst
extras.rst
plugins.md
pullrequest.md
config.md
faq.md

Indices and tables
==================

:ref:genindex
:ref:modindex
:ref:search

R K

Recent Posts

Best OSINT Tools 2026: 35 Tools Tested for Real Investigations

OSINT in 2026 is not about randomly searching names, emails, domains, or usernames. Real open-source…

2 hours ago

UFW Firewall Setup on Ubuntu 20.04: Complete Security Guide

A proper UFW Firewall Setup is one of the most important steps when securing an…

4 hours ago

WireGuard VPN Setup: Secure Ubuntu 20.04 VPN Guide

A WireGuard VPN Setup is one of the fastest and most secure ways to protect…

6 hours ago

NVIDIA Drivers Ubuntu: Complete Installation Guide for Ubuntu 20.04

If you own a system with an NVIDIA graphics card, installing NVIDIA Drivers Ubuntu is…

8 hours ago

Install Python 3.9: Easy Ubuntu 20.04 Setup Guide

If you're looking to Install Python 3.9 on Ubuntu 20.04, there are two reliable methods…

10 hours ago

Install Flask Ubuntu: Complete Flask Setup Guide

Python developers often choose Flask when building lightweight and flexible web applications. If you want…

12 hours ago