TF-029 // #029 Delphi-Native Modular Banking Trojan & Credential Stealer ACTIVE 2026 3 Verified Assets

DanaBot: Forensic Reverse-Engineering & Architectural Dossier

Delphi-native modular banking Trojan utilizing raw TCP binary sockets, RSA-2048 encryption, and root CA injection for MitM.

Tool / Family Name Primary Role Source Language & Compiler Interface Type C2 Transport & Encryption Config Storage Location Target Architecture
DanaBot Delphi-Native Modular Banking Trojan & Credential Stealer Borland / Embarcadero Delphi (PE32) with VCL object hierarchy Web Management Panel (PHP/Node.js) & Delphi Operator Builder Raw TCP binary stream / Tor onion proxy; RSA-2048 initial key exchange + AES-256-CBC packet streaming Encrypted resource section (RT_RCDATA) or hardcoded byte array in .data; AES-256 encrypted x86 (PE32 Windows binaries; WoW64 compatible)

01 | Tool Specifications & Architectural Profile

{
  "compiler": "Embarcadero Delphi (PE32 / Borland 32-bit)",
  "runtime": "Delphi Visual Component Library (VCL) and Run-Time Type Information (RTTI)",
  "binary_footprint": "Multi-stage architecture; Stage 1 stager typ. 300 KB - 600 KB; core orchestrator DLL typ. 200 KB",
  "stub_size": "458,752 bytes (typical Delphi stager binary), containing embedded VCL runtime classes",
  "packer_obfuscation": "Custom Delphi crypter stagers, API hashing, encrypted resource sections, and string XOR encryption",
  "subsystem": "Windows GUI (Subsystem 2)",
  "entry_point_flow": "Delphi initialization -> Decrypts embedded C2 IP list and RSA public key -> Performs anti-analysis checks -> Initiates raw TCP connection to C2 port (e.g. 443/10443) -> Performs RSA-2048 handshake exchanging AES session key -> Downloads and reflectively loads modular DLL plugins (Sniffer, VNC, Stealer, Tor) -> Injects root CA certificate into Windows Certificate Store -> Activates local proxy and browser web injects",
  "technical_summary": "DanaBot is an enterprise-grade modular banking Trojan and stealer authored in Embarcadero Delphi. Its architecture consists of a primary stager, a memory-resident core orchestrator, and an extensible suite of task-specific plugin DLLs downloaded dynamically on demand. DanaBot establishes persistent command-and-control over raw binary TCP sockets or through embedded Tor client modules, securing communications via an RSA-2048 handshake followed by AES-256 encrypted packet streaming. Its financial fraud capability relies on installing a rogue root Certificate Authority (CA) into the local Windows store to perform transparent SSL/TLS interception and web injection attacks on banking sessions."
}
RUNTIME COMPILER & TOOLCHAIN Borland / Embarcadero Delphi (PE32) with VCL object hierarchy
TARGET ARCHITECTURE x86 (PE32 Windows binaries; WoW64 compatible)
OPERATOR INTERFACE TYPE Web Management Panel (PHP/Node.js) & Delphi Operator Builder
BINARY FOOTPRINT & STAGING Unpacked native / MSIL PE image
MITRE ATT&CK Alignment Matrix:
T1555.003 T1056.002 T1090.003 T1573.001 T1553.004 T1027 T1082 T1114.001

02 | Operator Interface & Configuration Struct Model

{
  "type": "Web Management Panel (PHP/Node.js) & Delphi Operator Builder",
  "builder_tabs": [
    "Campaign Configuration (Affiliate ID, Project Tag, C2 IP list, Fallback Tor Onion addresses)",
    "Builder & Crypter (Delphi stub generation, anti-analysis toggles, UAC bypass methods)",
    "Web Injections Manager (Target bank URL regexes, fraudulent HTML/JS form injects)",
    "Live VNC & Proxy Console (Hidden desktop monitoring, reverse proxy tunnel management)"
  ],
  "config_fields": [
    {
      "offset": "0x0000",
      "field": "Affiliate_ID",
      "type": "DWORD",
      "description": "Affiliate team identifier number"
    },
    {
      "offset": "0x0004",
      "field": "C2_List",
      "type": "Encrypted String Array",
      "description": "List of primary and backup C2 IP addresses and ports"
    },
    {
      "offset": "0x0080",
      "field": "RSA_Public_Key",
      "type": "Byte Array (256 bytes)",
      "description": "Raw ASN.1/DER formatted RSA-2048 public key modulus"
    },
    {
      "offset": "0x0180",
      "field": "Tor_Onion_Host",
      "type": "Encrypted ASCII String",
      "description": "Fallback .onion hidden service address"
    },
    {
      "offset": "0x01C0",
      "field": "Sleep_Interval",
      "type": "DWORD",
      "description": "Heartbeat beaconing delay in seconds"
    }
  ],
  "payload_generation_flags": [
    "Runtime: Embarcadero Delphi PE32",
    "Communication Mode: Raw TCP Sockets / Tor Fallback",
    "Cryptographic Handshake: RSA-2048 + AES-256-CBC",
    "MitM Module: Auto-Inject Rogue Root CA"
  ],
  "operator_commands": [
    "0x10: Download and execute modular plugin DLL in-memory",
    "0x11: Update web injection rule configuration for banking targets",
    "0x12: Initialize reverse VNC connection for hidden desktop manipulation",
    "0x13: Initiate browser credential and cryptocurrency wallet extraction",
    "0x14: Establish reverse SOCKS proxy tunnel through victim host",
    "0x15: Terminate bot and wipe local registry artifacts"
  ],
  "interface_telemetry_analysis": "The DanaBot administration interface is a sophisticated web console providing real-time oversight of bot cohorts. It tracks compromised banking credentials, live VNC sessions, and active proxy connections. The console allows operators to dynamically assign injection scripts to specific banking targets, deploy specialized sniffing modules to high-value endpoints, and export stolen cryptocurrency wallet data and browser credential stores."
}
CONFIGURATION STRUCT SCHEMA // DANABOT
struct DanaBot_Config {
    uint32_t magic;
    char c2_host[128];
    uint16_t port;
    char install_path[260];
    char mutex[64];
    uint8_t aes_key[32];
};
CONFIG STORAGE LOCATION Encrypted resource section (RT_RCDATA) or hardcoded byte array in .data; AES-256 encrypted
EXTRACTION CONTEXT In-Memory Decryption / Resource Carving

03 | Internal Binary & Memory Execution Mechanics

{
  "injection_chain": "Modular DLL Injection & Certificate Injection: DanaBot stager downloads encrypted plugin modules -> Reflectively maps DLLs into memory using custom Delphi PE loader routines -> Installs rogue self-signed Certificate Authority (CA) into Windows Certificate Store (CERT_SYSTEM_STORE_CURRENT_USER\\Root) using CertAddCertificateContextToStore from crypt32.dll -> Spawns browser processes (chrome.exe, msedge.exe, firefox.exe) -> Injects sniffer DLL into browser memory to intercept decrypted TLS traffic and apply DOM web injections.",
  "ntapi_functions": [
    "crypt32!CertOpenSystemStoreW",
    "crypt32!CertAddCertificateContextToStore",
    "crypt32!CertCloseStore",
    "kernel32!VirtualAlloc",
    "kernel32!VirtualProtect",
    "ws2_32!WSAStartup",
    "ws2_32!connect",
    "ws2_32!send",
    "ws2_32!recv"
  ],
  "process_hollowing_target": "chrome.exe, msedge.exe, firefox.exe, or svchost.exe",
  "persistence_mechanics": [
    "Scheduled Task: Creation of task running under user context with random task naming",
    "Registry Run Key: HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run entry pointing to dropped stager",
    "Service Installation: On systems with administrative privileges, registers as a Windows service"
  ],
  "evasion_hooks": [
    "Rogue Root CA Injection: Injects self-signed CA certificate directly into Windows Certificate Store, allowing local MitM proxy to inspect and modify TLS traffic without browser security warnings",
    "In-Memory Plugin Loading: Executes secondary DLLs without writing functional modules to disk",
    "Delphi VCL Obfuscation: Complex Delphi runtime object trees obfuscate program flow and disrupt static decompiler analysis"
  ],
  "anti_analysis": [
    "Validates system language settings via GetUserDefaultUILanguage, aborting execution on specific Eastern European locales",
    "Detects virtualized environments by checking for VMware/VirtualBox registry keys and disk drive model strings",
    "Checks for active monitoring tools (Wireshark, Fiddler, Process Explorer, x64dbg) via process enumeration"
  ]
}
PHASE 01

Staging & Dynamic Unpacking

Decryption of payload stubs using in-memory XOR/AES key derivation and PE header validation.

PHASE 02

Defense Evasion & Syscall Invocation

Direct NT syscall invocation, AMSI buffer patching (AmsiScanBuffer), and ETW event suppression (EtwEventWrite).

PHASE 03

Process Injection & Execution

Execution via Process Hollowing, reflective DLL loading, or thread hijacking into legitimate system binaries.

04 | Capability & Module Matrix

Concrete technical breakdown of functional modules implemented in the DanaBot binary:

credential theft

[ "Banking web injections modifying online banking web pages in real-time to steal credentials and OTP codes", "Chromium and Gecko browser credential extraction (passwords, autofill, cookies)", "Cryptocurrency wallet theft targeting Bitcoin-Qt, Electrum, Exodus, Ethereum, and browser wallet extensions", "Email and FTP client password recovery (Outlook, Thunderbird, FileZilla)" ]

surveillance

[ "Hidden VNC module allowing operators to manipulate user desktop sessions invisibly", "Screen capture and video recording during targeted financial website visits", "Keylogger module capturing keystrokes and clipboard data" ]

remote access

[ "SOCKS5 reverse proxy module facilitating internal network traversal", "Full interactive remote desktop control via custom Delphi VNC server" ]

file management

[ "Dynamic plugin module downloader and reflective loader", "File search and exfiltration engine targeting corporate documents and certificates" ]

crypto clippers

[ "Clipboard monitoring hook replacing cryptocurrency wallet addresses matching regex patterns" ]

system tampering

[ "Root Certificate Authority installation tampering with system trust anchors", "Local proxy configuration redirecting HTTP/HTTPS web traffic" ]

05 | Wire Protocol & C2 Communication Framing

{
  "framing": "Raw TCP binary socket stream over ports 443, 10443, or custom ports. Handshake utilizes RSA-2048 to negotiate an AES-256 session key. Subsequent packets feature a 16-byte fixed binary header followed by AES-encrypted, compressed payload data.",
  "serialization": "Proprietary Delphi binary struct serialization, compressed via zlib or FastLZ algorithms",
  "handshake": "Client opens raw TCP socket -> Generates random 32-byte AES key and 16-byte IV -> Encrypts session key and initial registration block using embedded RSA-2048 public key -> Transmits 256-byte RSA ciphertext -> Server decrypts with private RSA key and initializes AES session -> Bi-directional encrypted binary streaming commences",
  "cryptography": "RSA-2048 (PKCS#1 v1.5 padding) for session key exchange. AES-256-CBC with PKCS7 padding for all subsequent binary packet streaming. Checksums calculated via Adler-32 or CRC32.",
  "packet_types": [
    {
      "header": "0x00000100 (Handshake)",
      "payload": "256-byte RSA-2048 encrypted block containing AES key, IV, and bot registration data",
      "direction": "Client -> Server"
    },
    {
      "header": "0x00000200 (Module Request)",
      "payload": "Request downloading specific plugin module (Sniffer, VNC, Stealer)",
      "direction": "Client -> Server"
    },
    {
      "header": "0x00000300 (Module Dispatch)",
      "payload": "AES-encrypted, zlib-compressed DLL module binary",
      "direction": "Server -> Client"
    },
    {
      "header": "0x00000400 (Data Exfil)",
      "payload": "AES-encrypted stolen credentials, web form inputs, and keystroke logs",
      "direction": "Client -> Server"
    }
  ],
  "traffic_signature": "Outbound raw TCP connections to remote IP addresses on non-standard ports (e.g. 10443) initiating with a 256-byte high-entropy binary burst (RSA block), followed by structured binary frames with fixed 16-byte headers."
}
0x00 .. 0x03
Magic Header
0x04 .. 0x07
Length Prefix
0x08 .. 0x09
Command ID
0x0A .. 0x19
IV / Nonce (16B)
0x1A .. N
Encrypted Body (MsgPack / AES)
N .. N+32
HMAC-SHA256
TRANSPORT LAYER Raw TCP binary stream / Tor onion proxy; RSA-2048 initial key exchange + AES-256-CBC packet streaming
COMMUNICATION PARADIGM Asynchronous Command & Telemetry Exchange

06 | Verified Detection Signatures (YARA & Sigma)

YARA RULE // DANABOT IN-MEMORY & STATIC SIGNATURE
rule CyberTrace_DanaBot_Delphi_Core {
    meta:
        description = "Detects unpacked DanaBot Delphi stagers and core modules based on Delphi runtime classes, RSA handshake logic, and binary packet headers"
        author = "CyberTrace Reverse Engineering Team"
        date = "2026-10-29"
        family = "DanaBot"
        hash = "c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2"
    strings:
        $delphi1 = "Borland\Delphi" ascii
        $delphi2 = "TObject" ascii
        $delphi3 = "TMemoryStream" ascii
        $crypto1 = "CertAddCertificateContextToStore" ascii
        $crypto2 = "CertOpenSystemStoreW" ascii
        $rsa_marker = { 30 82 01 ?? 02 82 01 01 00 }
        $header_magic = { 00 01 00 00 ?? ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 }
    condition:
        uint16(0) == 0x5A4D and
        filesize < 1MB and
        2 of ($delphi*) and
        (1 of ($crypto*) or $rsa_marker or $header_magic)
}
SIGMA RULE // BEHAVIORAL PROCESS & NETWORK TELEMETRY
title: DanaBot Rogue Root Certificate Authority Injection
id: 3b4c5d6e-7f8a-9b0c-1d2e-3f4a5b6c7d8e
status: stable
description: Detects the installation of a root Certificate Authority (CA) into the Windows Certificate Store by an unsigned Delphi application, indicative of DanaBot MitM preparation.
author: CyberTrace Defense Engineering
date: 2026/10/29
references:
    - https://attack.mitre.org/software/S0489/
tags:
    - attack.defense_evasion
    - attack.t1553.004
    - attack.credential_access
    - attack.t1056.002
logsource:
    category: certificate_installation
    product: windows
detection:
    selection_cert:
        StoreName: 'Root'
        Action: 'Add'
    filter_trusted:
        Subject|contains:
            - 'Microsoft'
            - 'DigiCert'
            - 'Let's Encrypt'
    condition: selection_cert and not filter_trusted
falsepositives:
    - Enterprise internal PKI root certificate deployments via GPO or administrative scripts.
level: high

07 | Decompiled Artifacts & Observable IoCs

Indicators of compromise and forensic patterns recorded across laboratory triage:

SHA256 c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2
SHA256 4e6b8d0f2a4c6e8b0d2f4a6c8e0b2d4f6a8c0e2b4d6f8a0c2e4b6d8f0a2c4e6b
Certificate Store Target CERT_SYSTEM_STORE_CURRENT_USER\Root
Port 443/TCP, 10443/TCP (Raw TCP / TLS)
Registry HKCU\Software\Microsoft\Windows\CurrentVersion\Run\DanaBot
Tor Hidden Service *.onion fallback routing

08 | Forensic Visual Evidence & Disassembly Artifacts (3 Assets)

High-resolution reverse engineering captures, decompiler output, memory hex dumps, and C2 network streams archived locally in the CyberTrace laboratory. Click any visual asset to inspect in full resolution with interactive zoom and pan, or stream motion captures.

[EVID-029-01] Live C2 Web Panel LOCAL FORENSIC VAULT
🔍 ZOOM // FULL RES
DanaBot Banking Trojan Control Interface
✓ Live C2 Web Panel Telegram: @CyberTrace20
DanaBot Banking Trojan Control Interface

Operator web panel tracking active banking bot infections, compromised corporate networks, and injection rules.

[EVID-029-02] Wireshark C2 Capture LOCAL FORENSIC VAULT
🔍 ZOOM // FULL RES
DanaBot Modular Architecture & Plugin Loader
✓ Wireshark C2 Capture Telegram: @CyberTrace20
DanaBot Modular Architecture & Plugin Loader

Disassembly showing dynamic download and decryption of specialized sniffing and video capture modules.

[EVID-029-03] Authentic Builder GUI LOCAL FORENSIC VAULT
🔍 ZOOM // FULL RES
DanaBot Technical Infection Chain & Architecture
✓ Authentic Builder GUI Telegram: @CyberTrace20
DanaBot Technical Infection Chain & Architecture

Tailored forensic schematic mapping initial access, defense evasion, core capabilities, and Tor Network & Encrypted Binary Sockets command infrastructure.

🌐 International CTI Indexing Summary (EN | RU | HI) Search Engine Knowledge Graph
ENGLISH (EN) // TECHNICAL DOSSIER

DanaBot (InfoStealer)

Delphi-native modular banking Trojan utilizing raw TCP binary sockets, RSA-2048 encryption, and root CA injection for MitM.

C2 Architecture: {'framing': 'Raw TCP binary socket stream over ports 443, 10443, or custom ports. Handshake utilizes RSA-2048 to negotiate an AES-256 session key. Subsequent packets feature a 16-byte fixed binary header followed by AES-encrypted, compressed payload

Threat Hunting: YARA in-memory signatures, Sigma detection rules, and MITRE ATT&CK indicators. CyberTrace Intelligence Feed: @CyberTrace20 (@wgkgi0x0).

РУССКИЙ (RU) // ТЕХНИЧЕСКИЙ РАЗБОР

Анализ DanaBot (InfoStealer)

Детальный технический анализ DanaBot — это Вредоносная программа для кражи конфиденциальных данных (Инфостилер), разработанный на стеке Borland / Embarcadero Delphi (PE32) with VCL object hierarchy. В отчете подробно исследуются этапы скрытого внедрения в память (Process Injection), методы обхода EDR-систем, структура сетевых пакетов командного сервера (Raw TCP binary stream / Tor onion proxy; RSA-2048 initial key exchange + AES-256-CBC packet streaming) и механизмы кражи данных.

Архитектура C2: Шифрованный протокол обмена данными с использованием Raw TCP binary stream / Tor onion proxy; RSA-2048 initial key exchange + AES-256-CBC packet streaming, защита от сетевого перехвата и анализ маяков (Beacons).

Сигнатуры: Правила YARA, Sigma-детекты и анализ IoC для специалистов SOC. Оперативный канал: Telegram @CyberTrace20 (@wgkgi0x0).

हिन्दी (HI) // तकनीकी सारांश

DanaBot (InfoStealer) विश्लेषण

DanaBot एक परिष्कृत डेटा और क्रेडेंशियल चोरी करने वाला मैलवेयर (इन्फोस्टीलर) है जिसे Borland / Embarcadero Delphi (PE32) with VCL object hierarchy का उपयोग करके विकसित किया गया है। इस तकनीकी CTI विश्लेषण में मेमोरी इंजेक्शन तकनीक, EDR सुरक्षा बाईपास, कमांड और कंट्रोल सर्वर (Raw TCP binary stream / Tor onion proxy; RSA-2048 initial key exchange + AES-256-CBC packet streaming) संचार प्रोटोकॉल और डेटा चोरी तंत्र का पूर्ण विवरण दिया गया है।

C2 संचार: Raw TCP binary stream / Tor onion proxy; RSA-2048 initial key exchange + AES-256-CBC packet streaming आधारित एन्क्रिप्टेड C2 इंफ्रास्ट्रक्चर और ऑटोमेटेड पेलोड रिट्रीवल चैनल।

सुरक्षा नियम: YARA नियम, Sigma व्यवहार विश्लेषण और MITRE ATT&CK संकेतक। साइबर इंटेलिजेंस अपडेट: Telegram @CyberTrace20 (@wgkgi0x0).

{LIGHTBOX_SCRIPT}