Skip to main content

A security-oriented payload encryption tool written in Python.

Project description

Kryptoxin

Latest Release GitHub issues GitHub Workflow - Docs GitHub Workflow - Tests License

Description

Kryptoxin is a Python tool allowing you to quickly and easily generate encrypted payloads. It supports various object types and various programming languages. This software is intended for use in the security field for storing encrypted objects on target hosts. It can also be used for concealing scripts and binary objects from scrutiny.

The name Kryptoxin comes from the contraction of Kryptos (meaning conceal, hidden or secret in Greek) and the word Toxin (meaning poison). As the name implies, the intended goal of this project is to provide a fast and efficient way of concealing or hiding payloads such as implants, thus avoiding AV and EDR detection. Most of our templates are "living off the land", using libraries and encryption routines commonly found in base operating systems installations.

Features

  • Supports Text Files, Scripts, Portable Executables (PE), Dynamic Link Libraries (DLLs), and shellcodes as inputs.
  • Generates compact, portable scripts or source codes as outputs for the below languages:
    • PowerShell
    • C
    • C++
    • C# (.NET)
  • Provides multiple block cipher algorithms, key sizes and modes of operations, such as AES256-CBC.
  • Implements key derivations functions such as PBKDF2.
  • Offers proper encoding and formatting schemes for usage-specific variables.
  • Supports out-of-band key storage, with conditional trigger mechanisms.
  • Includes scripts and source code templates to be used for security-related tasks and experimentation.

Installation

With pip

pip install kryptoxin

With git

git clone https://github.com/e3prom/kryptoxin
cd kryptoxin
python setup.py install

Usage

Read and encrypt from a file

$ python -m kryptoxin encrypt -k 12345 -i input_file.txt
tRQYHkQkS9Z7z7i7rzmJSPTuOfE2UUUERsR9CRtdwSM=

Read from stdin and encrypt using AES-128-CBC

$ echo -n 'test' | python -m kryptoxin encrypt -k 12345 --alg aes --key_size 128 --mode CBC
Z+1df03i+mSayvEFYB+rmB55N4dYoz7Rbr2LhzNjqH8=

Documentation

You can directly visit the online documentation or build it locally using the make docs command.

License

Kryptoxin is released under the AGPL-3 license. See LICENSE for more detail.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kryptoxin-0.9.3.tar.gz (20.6 kB view hashes)

Uploaded Source

Built Distribution

kryptoxin-0.9.3-py3-none-any.whl (19.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page