Skip to content

Custom payload encoding and obfuscation framework for detection evasion (educational).

License

Notifications You must be signed in to change notification settings

priyank5548/Payload-Obfuscation-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub repo size GitHub stars GitHub forks Python

Payload Obfuscation Framework

Custom Payload Encoder & Obfuscation Framework

1. Project Overview

This project is a practical framework designed to study how offensive payloads are transformed to evade signature-based detection systems like AV, EDR, and IPS. It provides a controlled lab environment to understand the limitations of static detection.

2. Features & Modules

The framework is divided into four main functional modules:

A. Encoding Module

  • Base64: Binary-to-text encoding/decoding.
  • XOR: Symmetric bitwise encryption using a user-defined key.
  • ROT13: Simple substitution cipher.

B. String Obfuscation Module

  • Random Insertion: Injecting junk characters to break static signatures.
  • Character Splitting: Breaking strings into chunks for variable assembly.
  • Reversible Transformations: String reversal technique].
  • Hex Escaping: Converting payloads into hex escape sequences (\\xHH).

C. Evasion Testing Module (Optional Enhancement Included)

  • Simulated Signatures: Keyword-matching against common shellcode patterns.
  • YARA Integration: Support for professional-grade static detection rules.

D. Reporting Engine

  • Generates comparative results in Text (.txt) and JSON formats.

3. Workflow

The framework follows a 5-step process:

  1. Input: Load a raw string or read from a file.
  2. Encoder Selection: Choose one or multiple encoding layers.
  3. Obfuscation: Apply string mutation techniques.
  4. Evasion Testing: Run the payload against the detection engine.
  5. Reporting: Calculate effectiveness and save the results.

4. How to Run

Standard Execution

python3 payload_framework.py --payload "bash -i" --methods base64,xor,escape --xor_key "secret"

Disclaimer

This project is for educational and defensive security research only.

About

Custom payload encoding and obfuscation framework for detection evasion (educational).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages