Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

SignatureClone

Repo Size Stars Forks License Views


Overview

SignatureClone is a Python tool for cloning digital signatures (certificates) from one Windows PE executable to another. Built specifically for cybersecurity researchers, malware analysts, and developers working in controlled testing environments.

⚠️ This project is strictly for educational and testing purposes. Misuse is prohibited.


✨ Features

  • 🧬 Clone digital certificates from one .exe file to another
  • 📁 Export certificates as .cer files
  • 🛡️ Preserve file structure and validate PE integrity
  • 🔍 Debug-friendly logs and progress output
  • 🖱️ Includes guide for manually trusting certificates in Windows

🔧 Requirements

  • Python 3.8 or newer

Install dependencies:

pip install -r requirements.txt

Packages:

  • pefile
  • cryptography

🚀 Installation

Clone the repo and install dependencies:

git clone https://github.com/rabbanyhmm/SignatureClone.git
cd SignatureClone
pip install -r requirements.txt

⚙️ Usage

Run the script with three arguments:

python CertificateCloner.py <SourceFile.exe> <TargetFile.exe> <OutputFile.exe>

Example:

python CertificateCloner.py ClipUp.exe myapp.exe SignedApp.exe

Summary:

  • Validates PE structure
  • Extracts certificate from SourceFile.exe
  • Injects into OutputFile.exe
  • Outputs debug info and cloned_certificate.cer

🖼️ Signature Preview Example

After successful cloning, you should see a Digital Signature tab like this:

Signature Preview


🖥️ Manually Trusting the Certificate (Windows)

  1. Right-click OutputFile.exe → Properties → Digital Signatures
  2. Click the signature → Details → View Certificate → Install Certificate
  3. Choose Local Machine → Next
  4. Choose Trusted Root Certification Authorities
  5. Click OK → Next → Finish

❗ Windows will still show the signature as invalid unless re-signed with signtool.exe.


🔐 Security Warning

Do not use in production. Use only in secure lab/test environments.

  • Adding untrusted certificate

About

Clone digital signatures between Windows executables (.exe). For research, PE analysis, and educational testing.

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages