TI-2026-063C โ The Documented Technique: Telegram C2 as MITRE T1102.002, and How to Catch It
Classification: HIGH ยท Forensic threat intelligence ยท Detection engineering ยท Published 2026-07-07 ยท Series: The Trusted Channel
The implant in TI-2026-063A is not novel to the world โ it is a live, Linux/IoT-flavoured instance of a technique the security industry named and catalogued years ago. That is good news for defenders: a documented technique has documented detections. This part places the honeypot capture in its published context โ a decade of Telegram-API abuse, an ATT&CK sub-technique, and ready-made SIGMA rules sitting in our own OSINT library โ and turns them into a concrete detection stack keyed to the exact behaviours 063A exhibited.
1. The Technique Has a Name
Abusing a legitimate web service for bidirectional command-and-control is MITRE ATT&CK T1102.002 โ Web Service: Bidirectional Communication. The Telegram Bot API is the textbook example: the malware both receives instructions and returns results through api.telegram.org, so there is no attacker-controlled endpoint in the traffic at all. 063A is a clean specimen โ getUpdates inbound, sendMessage outbound โ but the lineage is long:
| Year | Family / report | Platform | Telegram role |
|---|---|---|---|
| 2016 | TeleCrypt ransomware (Malwarebytes) | Windows | key/status over Bot API |
| 2018 | TeleRAT (Palo Alto Unit 42) | Android | full C2 via Bot API |
| 2021 | Small Sieve (NCSC MAR, Iranian nexus) | Windows | Telegram-API C2 |
| 2025 | DeerStealer, Lumma Stealer, Raven Stealer, trojanised XWorm (NVISO / SOCPrime) | Windows | hardcoded bot tokens, sendMessage/sendDocument exfil |
063A is the piece these lists were missing on our sensor: the minimal POSIX-sh / IoT variant of the same idea. The technique migrated from Windows RATs and Android trojans down to a 25-line shell script that runs on a router. Same ATT&CK cell, new low end of the market.
2. The Detections Already Exist
Our OSINT library holds published SIGMA rules for precisely this behaviour โ three complementary vantage points, all tagged attack.command-and-control / attack.exfiltration / attack.t1102.002:
- DNS โ Telegram Bot API Request (
net_dns_susp_telegram_api.yml): flags DNS queries resolvingapi.telegram.org. On a server that has no reason to use Telegram, the lookup itself is the alert. - Process โ network โ Suspicious Non-Browser Network Communication With Telegram API (
net_connection_win_domain_telegram_api_non_browser_access.yml): a non-browser process talking toapi.telegram.org. Chrome/Edge reaching Telegram is normal; a random binary โ orwget/curlin a shell loop โ is not. - Proxy / TLS โ Telegram API Access (
proxy_telegram_api.yml): requests to the Telegram API without the legitimate TelegramUser-Agent. 063A'swget/curlcalls carry no Telegram UA โ they trip this directly.
These are field-tested rules (Nextron/Florian Roth lineage) already in the corpus. The contribution of this dossier is to bind them to the live capture: 063A would fire the DNS rule (the box resolves api.telegram.org), the non-browser rule (a /tmp/.a.sh shell loop, not a browser), and the proxy rule (no Telegram UA) โ three independent detections on one implant.
3. A Detection Stack Keyed to 063A
Layering the generic technique-detections with 063A's specific artefacts gives a defence-in-depth stack, cheapest and broadest first:
| Layer | Signal | 063A artefact |
|---|---|---|
| Egress allow-list | outbound to api.telegram.org from a host with no business case | the C2 channel itself โ blocks, doesn't just detect |
| DNS | resolution of api.telegram.org from a server | the implant's first network act |
| Process telemetry | non-browser process โ Telegram API; wget/curl in a loop | nohup /tmp/.a.sh polling getUpdates |
| Proxy / TLS SNI | Telegram API request lacking the Telegram User-Agent | wget -q -O- / curl -s calls |
| Endpoint / shell | hidden /tmp/.a.sh; base64-decoder fallback chain (base64 -d then busybox base64 -d then openssl base64 -d) in history | the dropper |
| Host hunt | Telegram bot-token regex in .env / config.json / source (per secrets-patterns-db) | TOKEN="8063945940:โฆ" hardcoded |
| Network fingerprint | SSH client HASSH 7be2ba0c6828ca060cf7e5f104625c45 + root/root | the delivery session |
No single layer is sufficient against a trusted-service channel โ the destination is legitimate and the payload is TLS โ which is exactly why the stack matters. The egress allow-list is the only layer that blocks rather than merely alerts, and it is the one most organisations omit because "it's just Telegram."
4. Why This Is Hard, Honestly
The uncomfortable truth of T1102.002 is that the strongest single control โ block api.telegram.org โ is unavailable to anyone who legitimately uses Telegram on the monitored network. For those environments the defence degrades to detection, and detection of a TLS channel to a trusted host is inherently probabilistic: you are hunting for a non-browser process, an absent User-Agent, an unusual server making the lookup โ signals of anomaly, not signatures of malice. This is why the technique persists across a decade of RATs, stealers and now shell implants: it is cheap to build and structurally expensive to detect. The honest posture is layered detection plus aggressive egress control everywhere Telegram is not a business requirement โ not a single silver bullet, because there isn't one.
5. Alternative Interpretation
Steelman: "If the technique is a decade old and MITRE-catalogued with public SIGMA rules, a dossier adds nothing โ this is a literature review, not intelligence."
Why it earns its place:
- It closes the loop between capture and canon. 063A is a live specimen; this part proves it is the documented TTP (not a novelty to over-claim) and hands defenders the specific rules that fire on it. Intelligence is not only new actors โ it is correctly situating what you caught, so responders act on established detections instead of reinventing them.
- It fills a real gap in the family. The published corpus of Telegram-C2 is Windows- and Android-heavy. Documenting the IoT/POSIX-sh variant on a live sensor extends the technique's known surface downward to embedded devices โ where egress control and endpoint telemetry are weakest.
- It is honest about difficulty. Rather than promise a block, it states plainly that trusted-service C2 is structurally hard and prescribes layered detection + scoped egress. That calibration is itself the value.
What is not claimed: that 063A is linked to TeleRAT/Small Sieve/DeerStealer (it is not โ those are cited as lineage, not attribution), or that any single detection is decisive. Confidence: HIGH โ the technique's documentation, ATT&CK mapping, and applicable SIGMA rules are established fact; the honeypot capture is a confirmed instance that trips all three rule vantage points.
6. Defense Response
- Scope an egress allow-list to
api.telegram.org. On every host and segment where Telegram is not a business requirement, deny it outbound. This is the one control that blocks the C2/exfil rather than alerting after the fact. - Deploy the three SIGMA vantage points. DNS (
api.telegram.orgresolution), process (non-browser โ Telegram API), and proxy/TLS (Telegram API without the Telegram UA). Together they catch the technique regardless of the specific malware or OS. - Hunt bot tokens at rest. Telegram bot tokens match a stable regex (
\d{8,10}:[A-Za-z0-9_-]{35}). Scan.env,config.*, and source repositories for them; a hardcoded token in a place it should not be is both a detection and an incident. - Instrument the endpoint for the sh-implant shape. Alert on hidden
/tmp/*.shlaunched vianohup, the base64-decoder fallback chain in shell history, andwget/curlloops toapi.telegram.org. Pair with the network HASSH tell (7be2ba0cโฆ+root/root) from 063A. - When you find a bot, report it. Detection ends the incident on your host; a Telegram abuse report (
abuse@telegram.org) ends the operation by banning the bot for every victim.
7. Investigation Metadata
| Field | Value |
|---|---|
| Dossier ID | TI-2026-063C |
| Series | The Trusted Channel |
| Date | 2026-07-07 |
| Technique | MITRE ATT&CK T1102.002 โ Web Service: Bidirectional Communication (Telegram Bot API) |
| Lineage cited | TeleCrypt (2016), TeleRAT (2018), Small Sieve (2021), DeerStealer / Lumma / Raven / XWorm (2025) |
| Detections | SIGMA: DNS (net_dns_susp_telegram_api), process (telegram_api_non_browser_access), proxy (proxy_telegram_api) โ all attack.t1102.002 |
| Keyed to | TI-2026-063A artefacts (getUpdates poll, /tmp/.a.sh, base64 fallback, HASSH 7be2ba0c, bot 8063945940) |
| Sources | LSN OSINT library (SIGMA rules); MITRE ATT&CK; Palo Alto Unit 42; NCSC; NVISO / SOCPrime; Malwarebytes; Cofense |
| Cross-references | TI-2026-063A (the capture), TI-2026-063B (three-role synthesis) |
| Confidence | HIGH |
Cristian Liศneanu ยท shuffle-on.com ยท Threat Intelligence