
Framework de investigación sobre criptovirología avanzada. Implementación de Handshake ECDHE, cifrado autenticado AES-GCM y ejecución fileless en memoria para entornos de laboratorio.
This repository contains a comprehensive Proof of Concept (PoC) designed for the study of modern threat architectures. The project simulates a fileless attack environment with a command and control (C2) infrastructure protected by elliptic curve cryptography and secure deletion protocols.
The system operates through a coordinated execution of three main modules, designed to evade traditional defenses and ensure key persistence on the server.
load.py)The attack begins with a Stage 0 Stager. Its main function is EDR (Endpoint Detection and Response) evasion:
5001.secure_wipe to destroy the key and plaintext source code before invoking exec().BitLockC2Server.py)The server acts as an armored vault for cryptographic asset management:
--del command triggers a data shredding algorithm that overwrites files with random garbage and uses os.fsync() to ensure hardware buffer flushing.BitLock-client.py)The injected module performs file encryption with military-grade standards:
Windows, /bin/, /etc/) to avoid OS collapse and ensure visibility of the result report.graph TD
A[Cliente: Ejecuta load.py] -->|1. Envía Clave Efímera| B(Servidor C2: Puerto 5001)
B -->|2. Envía Payload Cifrado| A
A -->|3. Descifra y Ejecuta en RAM| C[BitLock-Payload]
C -->|4. Intercambio ECDHE| D(Servidor C2: Puerto 5000)
D -->|5. Almacena Llave en Bóveda| E[(DB Cifrada PBKDF2)]
C -->|6. Cifrado AES-GCM| F[Archivos .locked]
C -->|7. Auto-destrucción| G[Proceso Finalizado]
This project is strictly for educational and research purposes.
Developed for offensive security research and critical infrastructure defense.
| Module | Technology | Forensic Purpose |
|---|
| Exchange | ECDHE (P-384) | Prevent key recovery via network sniffing. |
| Derivation | HKDF (SHA-256) | Generate symmetric keys from shared secrets. |
| Encryption | AES-256-GCM | Ensure data confidentiality and integrity. |
| DB Protection | PBKDF2 (480k iter.) | Maximum resistance against offline brute-force attacks. |
| Deletion | 7-Pass Overwrite | Neutralize forensic recovery tools (FTK/EnCase). |