Honeypot capture

protokol

C2 verifiedProtocol documented

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

PropertyObserved value
Familyprotokol
TypeDDoS bot, cryptominer, backdoor
File typePE32 executable for MS Windows 4.00 (GUI), Intel i386 (stripped to external PDB), 8 sections
Platformwindows / x86, 32-bit, little-endian
Size462,848 bytes
SHA-256906f16e99f78f720a36817e2eb908884fc1e999ab15c81566d38464973a5e88d
SHA-1b4ea1b9bb96c6e191a914f07971f3bfe92d79d2e
MD540eb5e9c54aeb26682c1459d24d095ec
Import hash2087e2a681da4d364d2eefbeb5db7793
Packingnone
Privilege neededuser
Command and controlraw 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.

OpcodeHandlerBehaviour
0x020x41c00cPing, 8-byte big-endian monotonic counter
0x05 / 0x060x41c08e / 0x41c137Peer-list update, textual and binary
0x100x413b6cShell execution through cmd.exe /c
0x110x415feeKill switch, sets a global flag every worker polls
0x12 / 0x130x416036 / 0x41611cFile upload BEGIN and CHUNK
0x140x4143ccSelf-update from a digest-checked staged payload
0x15 / 0x160x415718 / 0x415d88Launch one of 18 DDoS vectors, stop attacks
0x170x4141acLAN host discovery from the ARP cache
0x1d0x416255Liveness and capability probe
0x1f0x416ca8Set group / campaign tag, up to 63 bytes
0x220x419b60Cryptominer control, start and stop
0x7f0x417594Disconnect

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)

OffsetSizeFieldDescription
032e_pubclient ephemeral X25519 public key; the private half is 32 CSPRNG bytes from sub_41714c and is wiped at 0x416df8

handshake response (server to client)

OffsetSizeFieldDescription
032re_pubserver ephemeral X25519 public key
3216confirm_tagBLAKE2b-128(session_key || ‘protokol-v1-nk-conf’ || 0x00), compared in constant time at 0x416f56

record (bidirectional)

OffsetSizeFieldDescription
04length24 + ciphertext length + 16; must be at least 0x28
424nonceXChaCha20 nonce, 24 bytes from the ChaCha20-based CSPRNG, fresh per frame
28varciphertextXChaCha20-Poly1305 ciphertext of the inner TLV stream; no associated data
-16tagPoly1305 tag, the last 16 bytes of the frame

registration (client to server)

OffsetSizeFieldDescription
01type0x01
12lengthlength of the nested TLV stream
3varfingerprint_tlvshost name, OS version from ntdll!RtlGetVersion, and architecture/capability fields
-varcurrent_peerTLV type 0xfd: {u8 peer-source id (2 = embedded domain list, 3 = fetched list, 4 = cached), u8 length, host string} naming the rendezvous …
-varauth_tokenTLV 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

ParameterValue
Transportraw TCP
Length field4 bytes at offset 0, big-endian
Embedded cipherCHACHA20 (stream)
Key sourcehardcoded
Embedded key50a07a77cae3800f6047c7a1aec17b3d4e3530e588c3693b22ac166ee8c1c559
Beacon interval29 s
Reconnect1 s, exponential backoff
Kill switchcommand 0x11

Indicators of compromise

Network indicators

IndicatorServiceDescription
imaweirdo[.]mytcp/7443C2 server (dead drop)
paranoidjuice[.]infotcp/7443C2 server (dead drop)
smithsonn-s[.]toptcp/7443C2 server (dead drop)
howtodisappearcompletely[.]ziptcp/7443C2 server (dead drop)

Host indicators

IndicatorTypeDescription
Local\protokol.singlemutexSingle-instance guard †
HKCU\Software\Microsoft\Windows\CurrentVersion\Run\protokolregistryAutostart †
protokolserviceAuto-start Win32 own-process service, display name ‘protokol service’, binary path ’"" —run-service’, failure actions = restart … †
%ProgramData%\protokoldirectoryInstall directory, created with CreateDirectoryA; falls back to GetTempPathA then ’.’ when the ProgramData environment variable is unusable †
%ProgramData%\protokol\protokol-client.exefileInstalled copy †
%ProgramData%\protokol\protokol.lockpid fileInstance lock file holding the pid and the process creation/exit/kernel times, used by the takeover logic at 0x4179a8 †
%ProgramData%\protokol\protokol-client.update.tmpfileStaging 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.exefileCryptominer payload, its generated xmrig JSON configuration, its log and the RandomX helper, dropped and launched by sub_41db24 / sub_41ee04 with … †
xmrigprocess nameProcess-name string checked by sub_418b18 alongside the bot’s own pk-c and pk-r names, used to locate or avoid duplicate miners †
CertUtiluser agentUser-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.36user agentChrome 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

IndicatorTypeDescription
906f16e99f78f720a36817e2eb908884fc1e999ab15c81566d38464973a5e88dSHA-256protokol sample as captured
b4ea1b9bb96c6e191a914f07971f3bfe92d79d2eSHA-1same file
40eb5e9c54aeb26682c1459d24d095ecMD5same file

Appendix: MITRE ATT&CK

IDTechniqueObserved behaviour
T1018Remote System DiscoveryCommand 0x17 enumerates the local ARP cache with GetIpNetTable to map neighbouring LAN hosts and their MAC addresses
T1027Obfuscated Files or InformationAll 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 …
T1036MasqueradingUser-Agent used by the plain-HTTP downloader at 0x41dd2c, which also issues Range: bytes= requests
T1059.003Windows Command ShellCommand 0x10 runs an operator-supplied command line through cmd.exe /c with CreateProcessA and returns its output
T1071.004DNSRendezvous addresses are fetched as DNS TXT records for four hardcoded domains, queried directly against six hardcoded public resolvers rather than the host …
T1082System Information DiscoveryBuilds a host fingerprint for the registration message from GetComputerNameExA/GetComputerNameA and the OS version obtained through dynamically resolved …
T1102Web ServiceRendezvous addresses are fetched as DNS TXT records for four hardcoded domains, queried directly against six hardcoded public resolvers rather than the host …
T1105Ingress Tool TransferCommands 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 …
T1496Resource HijackingCommand 0x22 writes an xmrig RandomX/Monero configuration (pools, user, pass, rig-id, donate-level, huge-pages) and launches a bundled miner, then polls its …
T1498Network Denial of ServiceEighteen selectable denial-of-service vectors driven by command 0x15, including UDP reflection/amplification probes for SSDP, mDNS, DNS, SNMP, RTSP, Source …
T1499Endpoint Denial of ServiceEighteen selectable denial-of-service vectors driven by command 0x15, including UDP reflection/amplification probes for SSDP, mDNS, DNS, SNMP, RTSP, Source …
T1543.003Windows ServiceInstalls itself as the auto-start Win32 service ‘protokol’ (display name ‘protokol service’) with the argument —run-service, and sets a failure-action policy …
T1547.001Registry Run Keys / Startup FolderCopies itself to %ProgramData%\protokol\ and writes the quoted path to HKCU Run under the value name ‘protokol’
T1571Non-Standard PortCustom binary command-and-control over raw TCP on port 7443, length-framed and authenticated-encrypted
T1573.001Symmetric CryptographyXChaCha20-Poly1305 record layer under a session key agreed by an X25519 Noise_NK-style handshake with BLAKE2b, giving both server authentication and forward …
T1573.002Asymmetric CryptographyXChaCha20-Poly1305 record layer under a session key agreed by an X25519 Noise_NK-style handshake with BLAKE2b, giving both server authentication and forward …
T1622Debugger Evasionsub_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 [email protected]

SHA-256

  • 906f16e99f78f720a36817e2eb908884fc1e999ab15c81566d38464973a5e88d as captured

Analysis performed using an automatic malware analysis pipeline using Binary Ninja

← All captures