INC-002: A second botnet evicted the first and took over Honeypot #2
Honeypot #2 · Incident date 2026-11-16 (UTC) · Analyst: Estul Lachin
Final report · 48-hour observation closed 2026-11-18 08:00 UTC · victim stopped 2026-11-27
Summary
At 08:03 UTC on 2026-11-16, a second botnet guessed the bait account's new weak password on Honeypot #2. Within three minutes it killed the miner left by the first intruder (INC-001); a minute later it deleted that group's SSH keys and planted its own. Over the next three hours it installed a disguised trojan, an XMRig miner and at least four kinds of persistence.
Its scanner then tried SSH on 509 internal addresses, including our gateway. Every packet was dropped on the victim, and the scanner later ran the 1 GB server out of memory and was killed by the kernel. The attacker never got root (sudo and su were refused) and no traffic got out.
This time detection was automatic: a rule added after INC-001 raised a High incident in Microsoft Sentinel. The investigation also found a blind spot, which a new rule closed the same day.
| Item | Finding |
|---|---|
| Severity | Medium: an expected break-in inside a honeypot, with no spillover |
| Initial access | SSH with a common weak password (the phase-2 bait), guessed after about 54 minutes of brute force |
| Objective | Crypto mining; most likely also to use the server as a base for attacking others (it brought an SSH scanner and a password list) |
| Relation to INC-001 | Evicted the first group: killed its miner, removed its two SSH keys |
| Privilege escalation | None: sudo said "user NOT in sudoers", su failed |
| Egress | None: mining pools, C2, downloads and outbound brute force all blocked |
| Lateral movement | Attempted and failed: SSH to 509 internal addresses, dropped on the victim |
| Detection | Rules 100210 (High incident #603), 100211 and 100212; new rule 100202 |
| Antivirus view | Miner 28/64 engines; trojan 4/52; scanner 1/51 (VirusTotal hash lookups) |
| Disposition | Not cleaned; observed for 48 hours, then left running until 2026-11-27. Evidence snapshot taken and victim stopped; rebuilt from a clean image for the next phase |
Detection
Rule 100210, added after INC-001, fires on any password login to the bait account. It matched at 08:03:19 and Sentinel raised High incident #603 automatically. Two minutes later, rule 100211 raised Medium incident #604 for the cron change. Nobody was watching at the time; the incidents were waiting at the next routine check.
| Rule | Level | What it caught in this incident |
|---|---|---|
| 100210 | 13 | Password logins at 08:03:19 and 08:05:53 |
| 100211 | 12 | Cron rewritten; then again about every 12 hours |
| 100212 | 12 | Changes under /home/admin: the rival's miner deleted, authorized_keys replaced, persistence and decoy files |
| auditd execve | — | Every program the attacker ran, and whether it ran as root |
| 5108 | 12 | The server running out of memory at 11:00 |
What was missed: the scanner's SSH attempts against the gateway. The victim's own firewall dropped them, so they were filed as routine blocked traffic and rule 100200 stayed silent (see Detection improvements).
Timeline (UTC, 2026-11-16)
The bait password had been changed about three hours earlier. From login to evicting the rival took about two and a half minutes; the rest of the setup took three hours.
| Time | Source | Event | Evidence |
|---|---|---|---|
| 07:00–08:06 | 95[.]216[.]80[.]157 | Another address brute-forcing at the same time, without success | Wazuh 5551, 5763 |
| 07:09–08:02 | 109[.]160[.]32[.]162 | Brute force, mostly with user names that do not exist | Wazuh 5712, 5551 |
| 08:03:19 | 109[.]160[.]32[.]162 | Logs in as admin with the bait password | 100210 → #603 |
| 08:03 | session | Surveys the machine: uname, uptime, nproc, lspci, lscpu, one curl | auditd |
| 08:05:47 | session | Evicts the rival: killall5, pgrep, kill; deletes INC-001's .dhpcd; rewrites cron | 100211 (#604), 100212 |
| 08:05:53 | 109[.]160[.]32[.]162 | Second login | 100210 |
| 08:06:36 | session | Tries sudo to run /var/tmp/fLSJqZDe as root: refused. su to root: failed | journal |
| 08:06:40 | session | Replaces authorized_keys: INC-001's two keys gone, one new key left | 100212 |
| 08:06 | session | Starts the scanner /var/tmp/.x/network; runs passwd three times | auditd |
| 08:06:46 | scanner | First SSH attempt to the internal network, blocked on the victim | 100201 |
| 08:16 | session | Starts the trojan under the fake name httpd -DFOREGROUND | auditd; ps |
| about 08:32 | session | Starts the same trojan again as /var/tmp/.X189 under the fake name mysqld, then deletes the file | auditd; ps |
| 08:40–11:05 | — | Persistence and decoy files: a systemd user service, shell start-up files, a desktop autostart entry, program copies | 100212 |
| about 09:27 | — | XMRig miner 6ad23bdc starts (from the process's run time) | ps |
| 11:00:13 | kernel | Out of memory: the kernel kills the scanner. Scanning stops | journal; 5108 |
| 11-16 to 11-18 | — | The trojan moves to a new random folder under /var/tmp and rewrites cron about every 12 hours | 100211 |
| 11-18 08:00 | — | 48-hour observation ends: no return visits, no third group, no root | — |
What the attacker did
Compared with the careless script in INC-001, this group was organised: clear out the competition first, then hold the machine with several layers of persistence and disguise, and bring a scanner to spread further.
MITRE ATT&CK mapping
| Tactic | Technique | In this incident |
|---|---|---|
| Credential Access | T1110.001 Password Guessing | Guessed the bait password after about 54 minutes |
| Initial Access | T1078 Valid Accounts | Two logins as admin |
| Discovery | T1082 System Information Discovery | uname, uptime, nproc, lspci, lscpu |
| Discovery | T1057 Process Discovery | pgrep to find the rival's processes |
| Discovery | T1046 Network Service Discovery | Scanned port 22 on 509 internal addresses |
| Lateral Movement | T1021.004 SSH (failed) | Brought a password list to log in to other machines; every attempt blocked |
| Execution | T1059.004 Unix Shell | bash -c commands; nohup for background jobs |
| Privilege Escalation | T1548.003 Sudo (failed) | sudo refused; su failed |
| Persistence | T1053.003 Cron | Every minute, @reboot, daily, monthly, plus every 30 minutes |
| Persistence | T1543.002 Systemd Service | User service gvfs-metadata.service |
| Persistence | T1547.013 XDG Autostart Entries | .config/autostart/.gnome-software-service.desktop |
| Persistence | T1546.004 Unix Shell Configuration Modification | .profile, .bashrc, .bash_profile |
| Persistence | T1098.004 SSH Authorized Keys | Replaced the rival's two keys with its own |
| Defense Evasion | T1036.005 Match Legitimate Name | Processes named httpd -DFOREGROUND and mysqld --defaults-file=… |
| Defense Evasion | T1070.006 Timestomp | Seven copies dated 2025-10 to 2026-05 |
| Defense Evasion | T1070.004 File Deletion | Deleted its own files after starting them; deleted the rival's miner |
| Defense Evasion | T1027.002 Software Packing | All three samples UPX-packed (VirusTotal tags) |
| Impact | T1496 Resource Hijacking | XMRig miner; the trojan holds 220 MB of memory |
Two behaviours fall outside ATT&CK but are worth noting. Turf war: removing a competitor's miner and keys within minutes is common between mining botnets. Moving house: the trojan relocates to a new random folder about every 12 hours, so tools that look for a fixed path miss it.
Impact assessment
No root, no traffic out, no contact with the gateway. The impact stayed inside the admin account's permissions and the server's memory and CPU.
Privilege escalation: none. The evidence comes from auditd and the journal, which are shipped off the victim:
sudorefused to run/var/tmp/fLSJqZDeas root ("user NOT in sudoers"), andsuto root failed.- In the attacker's sessions, only SUID programs (
sudo,su,passwd) and the login banner scripts that sshd runs ran with euid 0. Every attacker program ran as uid 1001. A check at the end of the observation found the same.
Egress: none. Between 08:00 and about 16:40 on 2026-11-16, the victim's tripwire blocked 22,417 outbound connections to the destinations below. Not one succeeded.
| Destination | Attempts | Most likely |
|---|---|---|
139[.]99[.]123[.]196: 443, 3333, 80 | 2,816 / 2,809 / 1,992 | Mining pool (3333 is a common pool port) |
85[.]11[.]167[.]190, 209[.]99[.]187[.]94: 443 | 2,027 / 2,024 | Backup pool or C2 |
51[.]161[.]204[.]231, 147[.]189[.]131[.]67, 147[.]189[.]131[.]206, 166[.]1[.]249[.]218: 8080 | 2,027 / 2,018 / 2,016 / 1,069 | C2 or proxy |
91[.]92[.]47[.]220: 222 | 1,527 | Suspicious (non-standard SSH port) |
107[.]167[.]92[.]130, 107[.]167[.]83[.]34: 443 | 1,072 / 1,020 | INC-001's pool; still contacted until 16:40, reason not confirmed |
Lateral movement: attempted, all blocked. From 08:06 until the kernel killed it at 11:00:13, the scanner tried SSH on 509 internal addresses (the last blocked attempt reached us at 11:05:33 because monitoring was running about five minutes behind), including 132 attempts at the gateway's two addresses. The victim's own firewall dropped every packet, and without root the attacker could not turn that firewall off. The cloud firewall is a second layer behind it.
Resources: memory at the limit. The victim has 969 MB and no swap. The trojan holds 220 MB and the scanner peaked at about 160 MB, so at 11:00:13 the kernel's out-of-memory killer stopped the scanner. Our monitoring agent and admin access are set to be killed last, and kept running. The miner used under 1.5% CPU, most likely because it could not reach any pool.
Indicators of compromise
Hashes were only searched on VirusTotal; no samples were uploaded.
| Type | Value | Role |
|---|---|---|
| IPv4 | 109[.]160[.]32[.]162 | Brute force and successful logins |
| IPv4 | 95[.]216[.]80[.]157 | Parallel brute force, no success |
| IPv4 | Outbound destinations in the egress table | Pools, C2 or proxies, all blocked |
| SHA256 | 6b9e912f408b96ac92b400e8c4f373626ff810085008a9eddba6957520bd9edf | Trojan, 41,057,364 bytes (fake httpd / mysqld); VirusTotal 4/52 |
| SHA256 | e013414f6b93db4b29a47979b8d2a64a8e7c08c86e5f285d8efded4a57392635 | XMRig miner 6ad23bdc; VirusTotal 28/64 |
| SHA256 | 93077a9a0e0ccade17264f2ba27395d563a683b5f83abc17bb46d259b89e7bf8 | Scanner .x/network, 44,919,928 bytes; VirusTotal 1/51 |
| Path | /var/tmp/.x/ (network, pass, iplist, bios.txt) | Scanner kit |
| Path | ~/.local/share/gvfs-metadata/home, /var/tmp/.X189 (deleted) and other copies | Trojan copies with forged dates |
| Path | /var/tmp/<random>/99045aa5, .c | Cron entry points; the folder changes about every 12 hours |
| Path | ~/.config/systemd/user/gvfs-metadata.service, ~/.config/autostart/.gnome-software-service.desktop | Persistence |
| SSH key | SHA256:AkrAM6Cdbkqok1OHU527WzpYGQqPQJrubcEP9Dlj7yI (RSA 2048, comment ElPatrono1337) | Backdoor |
Response and evidence handling
As in INC-001, the plan was to observe, not clean. One predefined isolation trigger was hit along the way. We weighed it and chose not to isolate, and record that decision openly here.
- Safety first. Confirmed the agent was online, rule 100200 had not fired and no attacker program ran as root before digging in.
- Read-only investigation over the WireGuard management channel (
ps,ls,journalctl,crontab -l,ssh-keygen -lf). The attacker's command history came from Wazuh alerts on the gateway. - Evidence. Archived
/var/tmp,/home/admin, the crontab, and copies of the three running programs taken from/proc/<pid>/exe. Themysqldfile had already been deleted and was recovered from memory. Nothing was extracted or run; hashes were computed by streaming files out of the archive. - Closed the detection blind spot the same day (rule 100202).
- Observed for 48 hours, until 2026-11-18 08:00 UTC: no return visits, no third group, no root.
The isolation decision. Our rule was to isolate if the victim probed the gateway. The scanner did aim at the gateway's addresses, but every packet died on the victim. All three layers held: no root, the victim's firewall, and the cloud firewall. We did not isolate. We narrowed the trigger to "a probe actually reaches the gateway (rule 100200) or any sign of root", and added rule 100202 so that this kind of attempt raises an alert from now on.
Detection improvements
Why rule 100200 stayed silent: it only matches the gateway's own firewall log, so it fires only when a probe actually reaches the gateway. These probes were dropped earlier, on the victim, and were filed as routine blocked traffic. The earlier a packet is stopped, the less this rule saw.
| ID | Change | Verification |
|---|---|---|
| 100202 | New rule, level 12: a blocked connection from the victim to any internal 10.x address. At most one alert per 15 minutes, so a scan cannot flood Sentinel; the rest stay logged as rule 100201 | wazuh-analysisd -t passes; wazuh-logtest on a real scan line matches 100202 at level 12 |
| Isolation trigger | Narrowed to rule 100200 (a probe reaches the gateway), any sign of root, or the agent or management SSH going offline | — |
Rule 100202 has not fired since: the scanner never came back after the kernel killed it. Its end-to-end path into Sentinel is therefore still to be confirmed. It did not fire before the victim was stopped on 2026-11-27; it will be tested on the rebuilt victim. The rules added after INC-001 all proved themselves: 100210 raised the High incident, and 100211 and 100212 recorded every persistence step.
After the observation window
The victim stayed online and uncleaned from the end of the 48-hour window (2026-11-18 08:00 UTC) until 2026-11-27. Nobody new logged in, and there was no sign of root.
| What | Seen |
|---|---|
| Persistence | The cron entry points under /var/tmp/<random>/ moved to a new folder about every 12 hours, through 2026-11-27 |
| A long session | The SSH session opened with INC-001's planted key on 2026-11-16 04:06 (from 118[.]36[.]203[.]94) stayed open until 2026-11-22 17:08: 6.5 days |
| New files, 2026-11-22 | Copies in ~/.local/bin named after desktop components (pipewire-pulse, pipewire, gnome-keyring-daemon, dbus-daemon); .bashrc, .profile and .bash_profile changed. The names follow the pattern of the trojan copies under gvfs-metadata. Which process wrote them is not yet established |
| Login attempts | Brute force on admin continued and failed: the attacker had changed the password. 118[.]36[.]203[.]94 was still trying on 2026-11-27 |
| Rule 100202 | Did not fire: no internal scan in this period |
Closed on 2026-11-27: evidence snapshot at 18:20 UTC (the original, never to be booted), victim stopped at 18:24 UTC. Rule 100202 will be tested on the rebuilt victim before it goes online.
Lessons learned
The programs that did the real work were almost invisible to antivirus (4 and 1 detections). Behaviour monitoring caught them: auditd recorded every program run, file integrity monitoring recorded every persistence file, and the egress tripwire recorded every attempt to get out.
What worked
- Rule 100210 from INC-001 raised the High incident on its own. No manual hunt this time.
- A bait account without sudo rights stopped privilege escalation. The attacker came ready with a tool for it and never got to use it.
- Egress control stopped everything again: pools, C2, and lateral movement. Without it, this honeypot would have become a launch pad against others.
- Out-of-memory protection worked: the kernel killed the scanner, not our agent or management SSH.
- Programs can be preserved from memory: the deleted
mysqldwas recovered from/proc/<pid>/exe.
What to improve
- Design detection around what the attacker is trying to do, not where the packet ended up. Rule 100200 saw less the earlier a probe was stopped.
- Write isolation triggers precisely. "The victim probes the gateway" was ambiguous and had to be interpreted after the fact.
- 1 GB of memory is too tight. The attacker's tools filled it, and monitoring fell about five minutes behind.
- The gateway disk is 80% full. The evidence archive held nine copies of the same 41 MB program (the attacker's seven plus our two memory copies); de-duplicate by hash before archiving.
Next steps
- Rule 100202: test it end to end in the rebuilt victim's acceptance check.
- Tag tripwire logs with the owning process, which would also explain why INC-001's pool was still being contacted.
- Done 2026-11-27: phase 2 ended; the victim is to be rebuilt from a clean image. It stays on 1 GB of memory plus swap: 2 GB is outside the free tier and the budget.