๐ Overview
Malware Zipper is a Python utility that safely packages suspected malware samples for analysis by compressing them with password protection using the industry-standard password "infected". This tool ensures samples can be safely transported and stored without accidental execution.
โจ Key Features
Password Protection
Automatically applies "infected" password (industry standard) to all compressed malware samples
Strong Encryption
Uses AES-256 encryption via 7z when available for maximum security
Cross-Platform
Works on Windows, Linux, and macOS with automatic tool detection
Multiple Methods
Tries 5 different compression methods in order of security strength
Auto Cleanup
Automatically removes temporary files after packaging
Batch Processing
Package multiple files in a single command
๐ How It Works
Input Files
Accepts malware sample file paths as command-line arguments
Tool Detection
Checks for available compression tools on your system
Compression
Attempts packaging methods sequentially until one succeeds
Encryption
Applies optional encoding layer for weak encryption methods
Output
Generates password-protected archive with "_suspicious" suffix
๐ ๏ธ Packaging Methods
The tool attempts multiple methods in order of security preference:
Most secure option with strong encryption (auto-downloads on Windows if needed)
Standard encryption using system zip utility
Python library-based compression with encryption
Windows PowerShell compression (with certutil encoding)
Built-in fallback option (with certutil encoding on Windows)
๐ Usage
Using Python Script
# Single file
python malware_zipper.py sample.exe
# Multiple files
python malware_zipper.py sample1.exe sample2.dll sample3.bat
# With full path
python malware_zipper.py "C:\Samples\malware.exe" Using Executable (Windows)
# Single file
malware_zipper.exe sample.exe
# Multiple files
malware_zipper.exe sample1.exe sample2.dll
# Drag and drop files onto the executable also works! Output
Generated files are named: <filename>_suspicious.zip or <filename>_suspicious.b64 (if encoded)
๐ Installation
Option 1: Download Executable (Windows)
Download the pre-built executable - no Python required!
Download malware-zipper.exeOption 2: Use Python Script
# Clone the repository
git clone https://github.com/Prof-GP/Other-Useful-Tools.git
cd Other-Useful-Tools
# Run directly (no dependencies required)
python malware_zipper.py sample.exe Optional Dependencies
# For enhanced compression (optional)
pip install pyminizip
# 7z is automatically downloaded on Windows
# Linux/macOS users can install via package manager:
# apt-get install p7zip-full (Debian/Ubuntu)
# brew install p7zip (macOS) โ ๏ธ Security Notice
Handle with Care
This tool is designed for malware analysts and security professionals. Always handle suspected malware in isolated environments. The standard password "infected" should be communicated to recipients separately from the archive.
- Use isolated VMs or sandboxes for analysis
- Never extract archives on production systems
- Verify samples with antivirus before and after packaging
- Follow your organization's malware handling procedures
๐ค Contributing
Contributions are welcome! Feel free to submit issues, fork the repository, and create pull requests.