Honeypot capture
godbee
No command-and-control address is compiled into godbee; a C2 is the channel an infected machine uses to reach its operator for instructions. Peer addresses are learned at runtime, and the sample reads its configuration from GODBEE_* environment variables, so the variables named in this post — GODBEE_MESH_KEY, GODBEE_TG_TOKEN, GODBEE_CHAT_ID, GODBEE_WALLET and the rest — are what a defender looks for in a host’s process environment. The one hardcoded remote host, api[.]telegram[.]org, carries operator notifications outbound and is recorded as a dead-drop rather than a command channel; tasking flows over the mesh. Mesh messages are sealed with AES-256-GCM under a key derived from two in-image string constants, so traffic encrypted under that default key can be decoded offline.
The sample, captured by a honeypot sensor network, names itself throughout the binary — the crate name recovered is godbee, the build path is /godbee/target/release/build/godbee-8…, and one in-image comment reads # godbee-botnet. The Rust binary worms, copying itself to further machines over exposed services with no user action; it drops the XMRig cryptominer, which hijacks the host’s CPU to mine for the operator while the victim bears the electricity cost and the wear on the hardware; and it installs an eBPF rootkit that hides its own files from directory listings, a capability c2_profile.json records at confidence 0.80 on a single backend.
| SHA-256 | 6d6903bff9e16e7b52b552dba5491001bba62257a10d445f4f567ac32606ba3f |
| MD5 | b9646e38ee9713296b7ee2b88e7c1fd9 |
| SHA-1 | dba08e7332f48ca31b64267336b7b33249bc4716 |
| ssdeep | 98304:60ErTXHFRq9ioXlKanFyjvZIAbUU2tnaXm5Gol28qvGGKhP+e:pErbuccK6OaAH2taXPt9v0 |
| File type | ELF 64-bit LSB PIE, x86-64, static-pie, stripped (BuildID 44f103cf…84d2) |
| Size | 5858848 bytes, which includes the gzip payload embedded at file offset 0x2dfd26 |
| Entropy | 7.13, attributed to the gzip payload embedded in the Rust binary |
| Packed | no |
Hashes are computed over the submitted file. ssdeep is a fuzzy hash that stays similar when a file is edited slightly, so near-identical variants match on it. Entropy measures how random a file’s bytes are and is used to spot compression or encryption. ORIGINAL_NAME holds the sha256 itself rather than a distribution filename; it is attacker-controlled data, recorded as an indicator.
An automatic pipeline built on Binary Ninja ran the analysis; the work is attributable to Kinryu Labs, with no individual analyst in the loop. The sample was loaded as data throughout, and no recovered endpoint was contacted or resolved. The pipeline took strings and structure from strings and rabin2, anchored every indicator to a file offset, corroborated each one across both tools, and disassembled and decompiled the executable sections headlessly. The phase-9 consensus round, in which a second independent decompiler backend re-derived a claim, covered the core C2 transport and crypto blocks only, so every claim outside those blocks rests on a single backend.
The mesh listener and peer session
Each infected host runs its own HTTP listener. The bind and listen pair sits at 0x5f20b:
rax_17 = sub_6b3014(fd, &var_e8, rdx_3) /* bind */; rax_18 = sub_6b363b(fd, 0x80) /* listen(fd,128) */
and the accept loop that dispatches routes is at 0x70cad:
result, rcx_1 = sub_45f20b(&var_1be8, &rbx[0xb3], *arg2, ...) /* HTTP server accept loop dispatching the GET /mesh-peers etc. routes */
The listener serves these routes on tcp/18765, the compiled-in default for GODBEE_MESH_PORT. GET /mesh-peers returns this node’s peer list as newline-separated ip:port entries; GET /godbee, /godbee.exe, /godbee-arm, /linux-arm and /windows serve a payload binary to a scanned victim, including a gzip-compressed Windows PE build of the sample itself; and GET /loader, /loader.sh serve the loader stage, a small first program whose job is to fetch and start the real payload. Every other path returns a default nginx page.
The peer pull itself is cleartext HTTP/1.1, with the request assembled as a heredoc piped through nc at 0x2df5d9. Phase 8, the emulation phase, first recorded this as https, and the consensus round corrected it to http (09_consensus.md D2); the binary also contains a separate self-signed TLS listener path built with rcgen. The request carries a hardcoded Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 User-Agent (0x46b471), which iocs.csv records as a detectable mismatch on a Linux ELF.
Before exchanging messages, a peer proves possession of the shared key with SHA-256(key ‖ challenge) and receives OK. The two client writes — a 16-byte challenge then a 32-byte proof — were read from HLIL and MLIL at 0x487709 and not re-confirmed against raw disassembly, so the reproduction tools implement the HLIL ordering. Decoding a default-key frame does not depend on that ordering.
Frame format and key derivation
The frame is AES-256-GCM with a 16-byte tag, a fresh 12-byte nonce per message drawn from the thread RNG, and no additional authenticated data. The code seals at 0xa4b5e, opens at 0x61895 and computes the GHASH tag at 0xa4d7d. Wire order is base64( nonce[12] ‖ ciphertext ‖ tag[16] ) — AES inner, base64 outer. Phase 8 recorded the two steps inverted; the consensus round corrected the order (09_consensus.md D6), and the shipped dissector had already implemented it correctly.
The binary derives the key at 0xa4874 by computing SHA-256('godbee-mesh-default-key' ‖ '57e90f00cc10b888'), which yields 76a9031ecadf5bef13284e08353c5c184bc6bff6e226b3d745cbd912422659c7, and it holds no static 32-byte key blob. An operator can override this by setting GODBEE_MESH_KEY to 64 hex characters. The consensus round confirmed the algorithm, the mode and the key value independently (CR1a/CR1b/CR1c) and recomputed the key byte-for-byte from the two in-image constants.
Three of three test vectors replay through the recovered dissector, and mesh traffic sealed under the default key decodes offline. Decoding a frame recovers the plaintext application message as JSON, a register/status shape carrying node identity and version. The dissector decodes arbitrary bodies, but the field semantics of message types beyond register and status were not fully enumerated. A /mesh-peers response is returned in cleartext, so reading the victim’s known peer list from one requires no key.
The Telegram dead-drop
The binary assembles the hardcoded host from a length-prefixed record:
...c0001c 68747470733a2f2f6170692e74656c656772616d2e6f72672f626f74 c00c 2f73656e644d657373616765 : the record is LENGTH-PREFIXED -- 0x6cc2bf holds the length byte 0x1c (28) and 0x6cc2c0 is the 28-byte payload 'https://api.telegram.org/bot'
and composes the URL around it:
"https://api.telegram.org/bot" (0x6cc2c0) + {GODBEE_TG_TOKEN} + "/sendMessage" (0x6cc2de): the HOST is hardcoded; only the bot token and chat id are env-sourced
The function that assembles the call is sub_483ddc, which “builds the Telegram sendMessage request (chat_id, parse_mode params); reqwest HTTPS client”. A second, independent decompiler backend resolved the address. The direction is outbound only — there is no getUpdates polling loop, and the code cross-references to the host record come back empty:
[0x4840b7], xref_code_refs_to(0x6cc2c0) -> [] */
On that basis the profile classifies the endpoint telemetry at confidence 0.85 and keeps it out of the active blocklist (09_consensus.md EP1K). Tasking flows over the mesh, not through that host. The bot token and chat id are environment-sourced (GODBEE_TG_TOKEN at 0x4769e7, GODBEE_CHAT_ID at 0x476a11). So are the loader and backup C2 URLs (GODBEE_C2_BACKUP_URL at 0x47d7cc) and the Monero payout wallet (GODBEE_WALLET at 0x4769bd), and no base58 address appears anywhere in .rodata. None of these values is statically recoverable, because they sit in the process environment of a live sample.
Post-infection behaviour
| Capability | ATT&CK | MBC | Offset | Conf |
|---|---|---|---|---|
| P2P mesh C2 over web protocols | T1071.001 | B0030 | 0x70cad | 0.85 |
| Encrypted channel (AES-256-GCM) | T1573.001 | C0027/C0031 | 0xa4b5e | 0.95 |
| Base64 data encoding | T1132.001 | C0026.001 | 0xa471d | 0.90 |
| Telegram dead-drop (web service) | T1102 | B0030 | 0x2cc2bf | 0.80 |
| Tor proxy option | T1090.003 | B0030 | 0x46b463 | 0.75 |
| Cloud IMDS credential theft | T1552.005 | — | 0x46f03d | 0.90 |
| Credential files harvest | T1552.001 | — | 0x46eeb1 | 0.85 |
| Network scanning | T1046 | — | 0x46de60 | 0.80 |
| Kubernetes/container lateral movement | T1610/T1609 | — | 0x46d2b7 | 0.80 |
| Worm self-propagation | T1105 | — | 0x9f9a9 | 0.85 |
| Resource hijacking (XMRig) | T1496 | — | 0x2cf159 | 0.85 |
| Cron persistence | T1053.003 | — | 0x2cfc26 | 0.85 |
| systemd persistence | T1543.002 | — | 0x46da9f | 0.80 |
| eBPF rootkit | T1014 | — | 0x46be59 | 0.80 |
Masquerade (systemd-journald) | T1036.004 | — | 0x7bd04 | 0.80 |
| Indicator removal | T1070.004 | — | 0x4694a6 | 0.80 |
Capabilities as recorded in c2_profile.json, with ATT&CK technique, the file offset each claim is anchored to, and the pipeline’s own confidence. These rows fall outside the consensus round, so none of them carries more than a single-backend verdict.
After infection the sample harvests credentials, spreads to further hosts and mines; the credential path takes instance-metadata credentials from AWS (169.254.169.254), GCP compute metadata, ECS (169.254.170.2) and Alibaba (100.100.100.200), and reads /root/.aws/credentials and /root/.docker/config. Spread starts from a SYN scanner and SSDP discovery (239.255.255.250) against tcp/2375 (Docker), 6379 (Redis), 22 (SSH), 8088 (Hadoop YARN) and 9200 (Elasticsearch), then moves through the Docker Engine API on its UNIX socket (/containers/json, /containers/$cid/update) and the in-cluster Kubernetes API (batch/v1 Jobs, kubectl create cronjob). By default the sample fetches XMRig v6.26.0 from upstream GitHub releases, steals competitors’ pool configs and evicts rivals with pkill -9 xmrig-proxy.
Persistence and dropped artifacts
| Kind | Value | Context | Offset | Conf |
|---|---|---|---|---|
| filepath | /tmp/.godbee_mesh_peers | persisted mesh peer list, written as .tmp then renamed | 0x46b399 | 0.90 |
| filepath | /tmp/.godbee_harvested | staged cloud credentials | 0x46eeb1 | 0.90 |
| filepath | /tmp/.aws_instances.txt, /tmp/.gcp_instances.txt | cloud inventory staging | 0x46a3c9 / 0x46a49d | 0.85 |
| filepath | /dev/shm/.xmrig_config.json | dropped miner config | 0x2dfcf4 | 0.85 |
| filepath | /dev/shm/.godbee_ebpf.c | eBPF rootkit source, compiled on-host | 0x46b63c | 0.85 |
| systemd_unit | /etc/systemd/system/.sys*.timer / .service | dropped persistence units | 0x46da9f | 0.80 |
| service | /sys/fs/bpf/godbee_hide, /sys/fs/bpf/godbee | pinned eBPF program | 0x46be59 | 0.80 |
| process_name | godbee | liveness guard target | 0x2cfc87 | 0.90 |
| process_name | systemd-journald | prctl(PR_SET_NAME) masquerade | 0x2d0529 | 0.70 |
Indicators as recorded in iocs.csv, each with the file offset it was recovered from and the pipeline’s confidence. These rows also fall outside the consensus round.
The sample persists through three mechanisms. A crontab entry carries a pgrep -x godbee guard that re-execs the binary when the process is missing. The systemd timer and service units are dot-prefixed hidden names and are made immutable with chattr +i. A Kubernetes CronJob runs every five minutes (*/5 * * * *, 0x46da9f). Two further steps keep the dropped files out of sight — an eBPF program attached to the sys_enter_getdents64 tracepoint and pinned, so the dropped files disappear from directory reads, and a self-cleanup step that runs rm -rf /tmp/.godbee* /dev/shm/.gd* /var/tmp/.systemd*.
Anti-analysis checks
A ptrace-style debugger check sits at 0x7b23d at confidence 0.85, and a weaker second signal sits at 0x78ca4 at confidence 0.50. Environment checks sit at 0xad231 (0.70), and an hour-of-day throttle using date +%H at 0xa7276 (0.60) gates activity between business hours and night.
Runtime requirements
The sample runs with user privilege alone, while the rootkit, the systemd units and the immutable flags need root. The binary is statically linked, but it shells out at runtime to curl, crontab, chattr, kubectl, bpftool, clang (which compiles the eBPF source on the host), dig, logger and pkill, so denying any one of those tools blocks the function that needs it.
GODBEE_MESH_PORT sets the mesh port, GODBEE_MESH_KEY overrides the key derived above, GODBEE_USE_TOR switches egress through a local SOCKS5 proxy, and GODBEE_C2_HEARTBEAT at 0x7d802 holds the heartbeat interval.
Unconfirmed leads
A byte sweep of the sample found nine network indicators the recovered profile does not list, of which this post names six — 120[.]0[.]0[.]0, 128[.]0[.]110[.]128, hxxp[://]invalid, hxxps[://]api[.]github[.]com/repos/xmrig/xmrig/releases/latest, hxxps[://]api[.]ipify[.]org and a hxxps[://]docs[.]rs/getrandom#… documentation string. They are routable but absent from the curated profile, so 05_static_enrichment.json records them as unconfirmed leads. The GitHub releases URL lines up with the XMRig download at 0x2cf159.
The pipeline left 68 of the 191 syscall wrapper numbers unresolved, including connect, send, recv, read, write, openat and clone, because the number was set outside the analysed basic block.
The gzip stage that has not been carved
A valid gzip stream sits at file offset 0x2dfd26, which 06_deep_static.json lists as a candidate embedded payload worth carving and analysing separately.
The open questions in the findings include which addresses api[.]telegram[.]org currently resolves to, whether it still answers on the recovered port, and what runtime timing, retry and post-execution behaviour the sample shows.
- Family
- godbee
- First seen
- November 11, 2026
- Vector
- Runs as a worm/cryptominer; the entry vector is not established by static analysis
- Format
- 5722 KB x86_64 ELF 64-bit LSB pie executable
- VirusTotal
- Not on VirusTotal
- Tags
- cryptominer · elf · http · rootkit · worm · x86_64
- Sample
- By request. Email security@kinryu.sh
SHA-256
-
6d6903bff9e16e7b52b552dba5491001bba62257a10d445f4f567ac32606ba3fas captured
Analysis performed using an automatic malware analysis pipeline using Binary Ninja