Honeypot capture
protokol
Executive summary
This write-up is for defenders dealing with protokol, a 462,848-byte x86 PE sample (SHA-256 906f16e9…a5e88d) captured by a honeypot sensor network. The bot names itself in its own string pool, matches no public family name, and reaches its operator through DNS TXT records at four hardcoded domains with a BitTorrent-DHT (BEP44) fallback, then opens an XChaCha20-Poly1305-encrypted session over raw TCP on port 7443. It is a DDoS bot first — command 0x15 launches one of 18 attack vectors and 0x16 stops them — and also a cryptominer dropper and a general backdoor with shell execution, file upload, self-update and LAN recon. Nothing here required executing the sample, and no recovered address was contacted; a second disassembler independently confirmed every dispatcher row, while the host-artifact rows carry only the primary tool’s reading.
Sample at a glance
| Property | Observed value |
|---|---|
| Family | protokol |
| Type | DDoS bot, cryptominer, backdoor |
| File type | PE32 executable for MS Windows 4.00 (GUI), Intel i386 (stripped to external PDB), 8 sections |
| Platform | windows / x86, 32-bit, little-endian |
| Size | 462,848 bytes |
| SHA-256 | 906f16e99f78f720a36817e2eb908884fc1e999ab15c81566d38464973a5e88d |
| SHA-1 | b4ea1b9bb96c6e191a914f07971f3bfe92d79d2e |
| MD5 | 40eb5e9c54aeb26682c1459d24d095ec |
| Import hash | 2087e2a681da4d364d2eefbeb5db7793 |
| Packing | none |
| Privilege needed | user |
| Command and control | raw TCP, 4 operator hosts stored in the file |
The command set
The TLV dispatcher at 0x415f98 routes fifteen opcodes to the handlers traced below.
Opcodes in hex; the handler column gives virtual addresses in the PE image. A second disassembler independently confirmed every row.
| Opcode | Handler | Behaviour |
|---|---|---|
0x02 | 0x41c00c | Ping, 8-byte big-endian monotonic counter |
0x05 / 0x06 | 0x41c08e / 0x41c137 | Peer-list update, textual and binary |
0x10 | 0x413b6c | Shell execution through cmd.exe /c |
0x11 | 0x415fee | Kill switch, sets a global flag every worker polls |
0x12 / 0x13 | 0x416036 / 0x41611c | File upload BEGIN and CHUNK |
0x14 | 0x4143cc | Self-update from a digest-checked staged payload |
0x15 / 0x16 | 0x415718 / 0x415d88 | Launch one of 18 DDoS vectors, stop attacks |
0x17 | 0x4141ac | LAN host discovery from the ARP cache |
0x1d | 0x416255 | Liveness and capability probe |
0x1f | 0x416ca8 | Set group / campaign tag, up to 63 bytes |
0x22 | 0x419b60 | Cryptominer control, start and stop |
0x7f | 0x417594 | Disconnect |
Command 0x10 runs an operator-supplied command line with CreateProcessA and returns its output (0x413bad), so defenders should treat any host that beaconed as fully compromised, whatever else the session carried.
Commands 0x15 and 0x16 launch one of 18 DDoS vectors and stop attacks. The vectors at 0x415783 cover UDP reflection and amplification probes for SSDP M-SEARCH, mDNS, DNS, SNMP getBulk, RTSP OPTIONS, Source Engine query, SAMP, TS3 and Quake3 getinfo, plus HTTP and TLS request floods, and a Chrome 124 User-Agent sits in the HTTP flood request template as string id 130, so it appears in attack traffic rather than on the C2 path. The mapping from vector byte 1..18 to a specific probe payload in the string pool remains an open question, so a client that issues command 0x15 cannot predict which attack a given vector byte selects.
Command 0x22 controls the cryptominer. It writes an xmrig RandomX/Monero configuration — pools, user, pass, rig-id, donate-level, huge-pages — launches the bundled miner, then polls its local HTTP API for hashrate and share counts (0x41f678).
Two paths bring new code onto the host. The bot chunks file uploads with a declared size, a BLAKE2b-256 digest check and offset validation (0x4160c8), and a separate plain-HTTP fetcher at 0x41dd2c pulls payloads with Range: bytes= requests under a CertUtil User-Agent, masquerading as the Windows certutil.exe transfer agent. When the bot updates itself it stages to protokol-client.update.tmp and moves the superseded binary to protokol-client.old (0x416247).
The registration message carries a host fingerprint. The bot reads the name with GetComputerNameExA/GetComputerNameA and the OS version from a dynamically resolved ntdll!RtlGetVersion, falling back to GetVersionExA (0x417fa2).
Host artifacts
Everything the installer touches is named protokol. The bot creates the install directory %ProgramData%\protokol with CreateDirectoryA, falling back to GetTempPathA and then . when the ProgramData environment variable is unusable. The installed copy takes the basename of the running image, with protokol-client.exe as the hardcoded fallback when GetModuleFileNameA fails. For autostart the installer writes an HKCU\Software\Microsoft\Windows\CurrentVersion\Run\protokol REG_SZ value holding the quoted install path, which together with the %ProgramData% tree needs no elevation, and it registers an auto-start own-process Win32 service protokol, display name protokol service, binary path "[installed path]" --run-service, whose failure actions are three restarts at 5 s with a reset window of 86,400 s. The Run key, the service and the mutex sat outside the second-disassembler consensus round and carry only the primary tool’s reading, at 0.90 confidence.
The sample keeps one instance of itself and one miner on the host. It creates or refers to Local\protokol.single as a single-instance guard, and on ERROR_ALREADY_EXISTS the new instance reads %ProgramData%\protokol\protokol.lock, parses the recorded pid and process creation, exit and kernel times, and calls TerminateProcess on the older instance before taking over (0x4179a8). The miner side drops pk-c.exe, pk-c.json, pk-c.log and pk-r.exe via the routines at 0x41db24 and 0x41ee04, invoked with --config and --threads=, and the check at 0x418b18 looks for the process name xmrig alongside the bot’s own pk-c and pk-r. The xmrig process check also sat outside that round and carries only the primary tool’s reading, at 0.75 confidence.
Execution requirements
The bot runs with user privilege only, needs KERNEL32, ADVAPI32, WS2_32 and IPHLPAPI present, and uses four outbound paths — tcp/7443 to the resolved rendezvous peers, udp/53 directly to the six public resolvers, udp/6881 to the DHT, and tcp/80 for the CertUtil-agent downloader.
Blocklists and detection
This bot hardcodes public resolvers and DHT bootstrap nodes rather than any operator-controlled address, so a defender has little to put on an IP blocklist, since those 19 addresses are shared services rather than the operator’s own hosts, and blocking them would not disrupt the operator while it could break legitimate traffic. The rendezvous addresses live in TXT records the operator can change without redelivering the binary, and the session key changes on every connection. Three observable patterns do not change when the operator rotates those records: a client process issuing those direct resolver queries, a long-lived tcp/7443 flow whose frames begin with a 32-bit length and a 24-byte nonce, and the %ProgramData%\protokol install tree.
Because nothing on the wire determines that per-connection session key, responders cannot decrypt stored tcp/7443 traffic after the fact. Teams counting on decrypting stored traffic should plan for key extraction at the host instead.
The untraced dispatcher arms
The next targets are the 18 vector implementations behind the handler at 0x415718 and the dispatcher arms 0x18–0x1c, 0x1e, 0x20, 0x21 and 0x23, which would also settle the mapping from vector byte to probe payload. The fetched-peer-list source at 0x416438 that feeds 0x417364 also remains untraced.
Message formats
handshake init (client to server)
| Offset | Size | Field | Description |
|---|---|---|---|
0 | 32 | e_pub | client ephemeral X25519 public key; the private half is 32 CSPRNG bytes from sub_41714c and is wiped at 0x416df8 |
handshake response (server to client)
| Offset | Size | Field | Description |
|---|---|---|---|
0 | 32 | re_pub | server ephemeral X25519 public key |
32 | 16 | confirm_tag | BLAKE2b-128(session_key || ‘protokol-v1-nk-conf’ || 0x00), compared in constant time at 0x416f56 |
record (bidirectional)
| Offset | Size | Field | Description |
|---|---|---|---|
0 | 4 | length | 24 + ciphertext length + 16; must be at least 0x28 |
4 | 24 | nonce | XChaCha20 nonce, 24 bytes from the ChaCha20-based CSPRNG, fresh per frame |
28 | var | ciphertext | XChaCha20-Poly1305 ciphertext of the inner TLV stream; no associated data |
| - | 16 | tag | Poly1305 tag, the last 16 bytes of the frame |
registration (client to server)
| Offset | Size | Field | Description |
|---|---|---|---|
0 | 1 | type | 0x01 |
1 | 2 | length | length of the nested TLV stream |
3 | var | fingerprint_tlvs | host name, OS version from ntdll!RtlGetVersion, and architecture/capability fields |
| - | var | current_peer | TLV type 0xfd: {u8 peer-source id (2 = embedded domain list, 3 = fetched list, 4 = cached), u8 length, host string} naming the rendezvous … |
| - | var | auth_token | TLV type 0xfc: 32 bytes = BLAKE2b-256(auth_key[32] at 0x46c2c0 || client ephemeral public key) |
1 further message types are documented in the protocol specification and not shown.
Command-and-control parameters
| Parameter | Value |
|---|---|
| Transport | raw TCP |
| Length field | 4 bytes at offset 0, big-endian |
| Embedded cipher | CHACHA20 (stream) |
| Key source | hardcoded |
| Embedded key | 50a07a77cae3800f6047c7a1aec17b3d4e3530e588c3693b22ac166ee8c1c559 |
| Beacon interval | 29 s |
| Reconnect | 1 s, exponential backoff |
| Kill switch | command 0x11 |
Indicators of compromise
Network indicators
| Indicator | Service | Description |
|---|---|---|
imaweirdo[.]my | tcp/7443 | C2 server (dead drop) |
paranoidjuice[.]info | tcp/7443 | C2 server (dead drop) |
smithsonn-s[.]top | tcp/7443 | C2 server (dead drop) |
howtodisappearcompletely[.]zip | tcp/7443 | C2 server (dead drop) |
Host indicators
| Indicator | Type | Description |
|---|---|---|
Local\protokol.single | mutex | Single-instance guard † |
HKCU\Software\Microsoft\Windows\CurrentVersion\Run\protokol | registry | Autostart † |
protokol | service | Auto-start Win32 own-process service, display name ‘protokol service’, binary path ’" |
%ProgramData%\protokol | directory | Install directory, created with CreateDirectoryA; falls back to GetTempPathA then ’.’ when the ProgramData environment variable is unusable † |
%ProgramData%\protokol\protokol-client.exe | file | Installed copy † |
%ProgramData%\protokol\protokol.lock | pid file | Instance lock file holding the pid and the process creation/exit/kernel times, used by the takeover logic at 0x4179a8 † |
%ProgramData%\protokol\protokol-client.update.tmp | file | Staging path for the self-update payload; the superseded binary is moved to protokol-client.old † |
pk-c.exe / pk-c.json / pk-c.log / pk-r.exe | file | Cryptominer payload, its generated xmrig JSON configuration, its log and the RandomX helper, dropped and launched by sub_41db24 / sub_41ee04 with … † |
xmrig | process name | Process-name string checked by sub_418b18 alongside the bot’s own pk-c and pk-r names, used to locate or avoid duplicate miners † |
CertUtil | user agent | User-Agent used by the plain-HTTP downloader at 0x41dd2c, which also issues Range: bytes= requests † |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 | user agent | Chrome 124 User-Agent embedded in the HTTP flood request template (string id 130), used for attack traffic rather than C2 † |
† Read from the primary disassembly only; not independently confirmed.
File indicators
| Indicator | Type | Description |
|---|---|---|
906f16e99f78f720a36817e2eb908884fc1e999ab15c81566d38464973a5e88d | SHA-256 | protokol sample as captured |
b4ea1b9bb96c6e191a914f07971f3bfe92d79d2e | SHA-1 | same file |
40eb5e9c54aeb26682c1459d24d095ec | MD5 | same file |
Appendix: MITRE ATT&CK
| ID | Technique | Observed behaviour |
|---|---|---|
| T1018 | Remote System Discovery | Command 0x17 enumerates the local ARP cache with GetIpNetTable to map neighbouring LAN hosts and their MAC addresses |
| T1027 | Obfuscated Files or Information | All 430 program strings live in a single ChaCha20-encrypted pool at 0x468e60 and are reached only through the index accessor sub_417ec4(id), so no operational … |
| T1036 | Masquerading | User-Agent used by the plain-HTTP downloader at 0x41dd2c, which also issues Range: bytes= requests |
| T1059.003 | Windows Command Shell | Command 0x10 runs an operator-supplied command line through cmd.exe /c with CreateProcessA and returns its output |
| T1071.004 | DNS | Rendezvous addresses are fetched as DNS TXT records for four hardcoded domains, queried directly against six hardcoded public resolvers rather than the host … |
| T1082 | System Information Discovery | Builds a host fingerprint for the registration message from GetComputerNameExA/GetComputerNameA and the OS version obtained through dynamically resolved … |
| T1102 | Web Service | Rendezvous addresses are fetched as DNS TXT records for four hardcoded domains, queried directly against six hardcoded public resolvers rather than the host … |
| T1105 | Ingress Tool Transfer | Commands 0x12 and 0x13 implement a chunked file upload with a declared size, a BLAKE2b-256 digest check and offset validation; a separate HTTP fetcher at … |
| T1496 | Resource Hijacking | Command 0x22 writes an xmrig RandomX/Monero configuration (pools, user, pass, rig-id, donate-level, huge-pages) and launches a bundled miner, then polls its … |
| T1498 | Network Denial of Service | Eighteen selectable denial-of-service vectors driven by command 0x15, including UDP reflection/amplification probes for SSDP, mDNS, DNS, SNMP, RTSP, Source … |
| T1499 | Endpoint Denial of Service | Eighteen selectable denial-of-service vectors driven by command 0x15, including UDP reflection/amplification probes for SSDP, mDNS, DNS, SNMP, RTSP, Source … |
| T1543.003 | Windows Service | Installs itself as the auto-start Win32 service ‘protokol’ (display name ‘protokol service’) with the argument —run-service, and sets a failure-action policy … |
| T1547.001 | Registry Run Keys / Startup Folder | Copies itself to %ProgramData%\protokol\ and writes the quoted path to HKCU Run under the value name ‘protokol’ |
| T1571 | Non-Standard Port | Custom binary command-and-control over raw TCP on port 7443, length-framed and authenticated-encrypted |
| T1573.001 | Symmetric Cryptography | XChaCha20-Poly1305 record layer under a session key agreed by an X25519 Noise_NK-style handshake with BLAKE2b, giving both server authentication and forward … |
| T1573.002 | Asymmetric Cryptography | XChaCha20-Poly1305 record layer under a session key agreed by an X25519 Noise_NK-style handshake with BLAKE2b, giving both server authentication and forward … |
| T1622 | Debugger Evasion | sub_4154c4 resolves kernel32!IsDebuggerPresent and kernel32!CheckRemoteDebuggerPresent dynamically through string ids 0x9d/0x9e/0x9f, and main writes the … |
- Family
- protokol
- First seen
- November 27, 2026
- Vector
- Runs as a ddos-bot/cryptominer; the entry vector is not established by static analysis
- Format
- 452 KB x86 PE32 executable for MS Windows 4.00 (GUI)
- VirusTotal
- Not on VirusTotal
- Tags
- backdoor · cryptominer · ddos-bot · pe · raw_tcp · x86
- Sample
- By request. Email security@kinryu.sh
SHA-256
-
906f16e99f78f720a36817e2eb908884fc1e999ab15c81566d38464973a5e88das captured
Analysis performed using an automatic malware analysis pipeline using Binary Ninja