Morteza Bahmani

Tailscale backdoor router: what to check

A resold Telstra 5G router arrived joined to the seller's own Tailscale tailnet as an exit node, with passwordless root telnet and a kernel activation lock. What the logs showed and how to check any used OpenWrt box.

Tailscale backdoor router: what to check
Fig. 01 — Security 6 Dec 2026

The listing said brand new, under warranty. What arrived was a Tailscale backdoor router: a €160 Telstra 5G Modem 2 bought on the Czech marketplace Bazoš, five days inside a stranger’s tailnet, configured as an exit node, advertising the buyer’s entire home LAN, and renamed with the buyer’s own surname. The researcher behind blog.euhe.eu bought it in late November 2026 and documented the whole thing, and the timestamps are the part that made me sit up. The node joined the seller’s tailnet on 25 November at 13:59 Czech time, the same afternoon the buyer sent his first inquiry, a full day before the two agreed on the sale.

Units like this one are common in Europe. Ex-Telstra hardware gets resold as “unlocked” 5G routers, usually flashed with a modified base plus a local carrier tweak, in this case for O2 Connect. The base is a hacked-up Fibocom/Arcadyan image: vendor OpenWrt 19.07.7 on Linux 4.19.190, root SSH enabled, a MediaTek T750, and 16 GB of eMMC. Nobody audited that stack: carrier firmware, reseller patches, a local tweak, and whatever the previous owner added, and the new owner plugs the result into the home LAN anyway. That gap is where the whole class of problems starts.

How the Tailscale backdoor was configured

First SSH session on any OpenWrt box should be a read-only dump, and the researcher did it right: all 52 eMMC partitions copied with dd, verified with SHA-256 against the device. Tailscale 1.98.2, a UPX-packed OpenWrt build, had been written to /usr/bin/tailscale at 13:53 on 25 November. The config landed a minute later, enabled at boot as S80tailscale. tailscale status --json showed BackendState Running under a Gmail-address owner, and a node name of telstra-black-[surname]. The router’s own hostname is 5G_modem_Gen2, the Tailscale default, so that name was typed into an admin panel by hand. The buyer’s surname, the one the seller had received through the marketplace contact form the day before.

The settings matter more than the login. Tailscale’s defaults expire a node after 180 days and require re-authentication, and none of that survived here.

Config keyValue foundWhat it granted the tailnet owner
AdvertiseRoutes0.0.0.0/0, ::/0, 192.168.1.0/24Exit-node routing through the buyer’s SIM, plus the entire home LAN as a subnet route
KeyExpiryNoneThe default 180-day re-auth disabled, so the access never lapses
AutoUpdateCheck: true, Apply: trueThe client keeps itself current, so the access survives resales and reboots silently
AllowedIPs100.88.10.118/32, fd7a:115c:a1e0::5e3b:a77/128, 192.168.1.0/24, 0.0.0.0/0IPv4 and IPv6 exposure in one line

Was it used? The logs cannot say, and the researcher does not overclaim. Firewall counters only covered the 44 minutes since the last reboot, zero packets moved through ts-forward in that window, and the system log did not reach back to 25 November. Only Tailscale’s control plane knows whether the exit node carried traffic, and only its owner can see that. What is not in doubt is what the configuration allowed. A subnet route for 192.168.1.0/24 hands the tailnet a map of every device on the LAN, and identifying those devices by DHCP lease is already weak when you control the network yourself; I went through that in ARP table vs DHCP lease: device identity. When a stranger controls one node inside it, the picture they get is complete.

A 27-hour head start, and other buyers

The overlay file timestamps rebuild 25 November almost minute by minute. A fresh dropbear host key generated at 13:49 says the router had just been reset or set up, ninety seconds before the Tailscale binary landed at 13:53 and the config followed at 13:54, enabled at boot. By 13:59 the node sat in the tailnet under its new name. The next afternoon the seller emailed the buyer with an unprompted offer:

On request I can set up practically anything else, since the router supports installing all kinds of OpenWrt packages, from ad blocking to your own VPN running on the router.

Seller’s email of 26 November, quoted in the researcher’s write-up

Going by the router’s own timestamps, a VPN to the seller’s network had already been running on it for 27 hours when he wrote that line. He also described the unit as brand new and under warranty. It was neither.

This was not one router with one owner who got curious. Seven other devices sat in the same tailnet: some ordinary personal gear, and three routers of the same model, all online and all advertising themselves as exit nodes. One of them was named testra-black-[another surname], hostname 5G_modem_Gen2, created on 7 November 2026. The typo in testra says the names were typed by hand, one buyer at a time. Anyone who bought a black Telstra 5G Modem 2 from a Slovak seller in early November should go check their router today.

Passwordless root on port 23

The Tailscale login was not even the worst finding. In the read-only squashfs, /etc/init.d/telnetd is enabled at boot and runs telnetd with -F -l /bin/ash. That second -l swaps the login program for a raw shell. Connect to port 23 and you are root, no password, no authentication step, and netstat showed the daemon bound to :::23, every interface. Anyone within Wi-Fi range gets instant root. It gets worse in combination: the first rule of the INPUT chain jumps to ts-input, and ts-input accepts everything arriving on tailscale0, so anyone in that tailnet could have reached the same root shell over the tunnel. The researcher did not test that path, and did not need to. The two firewall rules read in sequence say enough.

Telnetd was not alone in binding to all interfaces. atcid, the modem’s AT command daemon, sat on TCP 17171 even though its own client only ever talks to 127.0.0.1. modem_webapi listened on 10240. Two Wi-Fi Alliance test agents, wfa_dut, held 8000 and 8080. A port scan shows odd services on odd ports; it does not show which one is an open root door, and a version banner reveals nothing about a telnet daemon that skips login entirely. That is the same trap as the one in CVE-2026-137898: invisible to SSH banners, where the dangerous surface never shows up in the checks people actually run.

The activation lock in the kernel

Both A/B boot slots carried a rebuilt kernel dated 20 April 2026. Diffed function by function against Fibocom’s own source, built with the same config, it contained three changes. One checks whether /bin/modem_status exists right after mounting root, never reads it, and reboots in an infinite loop if it is missing, which means flashing clean OpenWrt onto this board gives you a router that never reaches userspace. One verifies a raw activation blob in the proinfo partition tied to the chip’s serial number, and on failure reboots the device after about 5 minutes: DRM for the reseller, enforced in kernel space. The third pair is two exported UDP lookup helpers, the kind transparent proxies hook into.

To the researcher’s credit, he reports what the kernel patches are not: no spyware, no packet exfiltration in the diff. The locks exist to keep unpaid units boot-looping. But the picture in userspace is busier. Four binaries (modem_status, modem_webapi, tailscaled, xray) carry HNXYWIFI stamped in the packer header, and /etc/init.d/arc_antenna_switch, nominally just the antenna-switch script, holds config pointing at a public GitHub repo to fetch and execute a script hourly until a cutoff date. On this particular build start() never called it. The plumbing for remote code execution across every unit sits installed and dormant, which is not the same as harmless.

And “secure boot” on this board is theater. Every signed image uses MediaTek’s default SDK test keys, whose private keys are public, and the boot ROM has sbc_en set to 0 anyway. A verified boot chain that verifies against public keys proves nothing. It only costs boot time.

Why a factory reset does not fix it

A reset would clear the writable overlay, including the Tailscale state file and the login, and would stop the immediate access. It would not remove anything else, because Tailscale and its LuCI app are baked into the read-only squashfs alongside telnetd’s init script, OpenClash, PassWall, PassWall2, SSR-Plus, xray, hysteria, kcptun, and 3ginfo-lite with web forms for rewriting the IMEI and sending raw AT commands. Most of that was not running, and I would still want none of it on a router my laptop and my phone sit behind. The base system does not help either: OpenWrt 19.07.7 on Linux 4.19.190, a kernel branch whose patch lag I measured in Ubuntu kernel patch delay, measured for a distribution that at least ships updates. On a vendor image nobody maintains, 4.19 is where it stays.

Checking a used OpenWrt router

If you own any secondhand OpenWrt device, these checks take two minutes and need no extra packages. Run them before you connect the box to anything you care about.

# Tunnels running on the box
ps w | grep -E '[t]ailscale|[z]erotier|[w]ireguard|[f]rp|[x]ray'
tailscale status --json 2>/dev/null | grep -E 'Owner|KeyExpiry|AllowedIPs'

# Passwordless root telnet
netstat -tlnp | grep -E ':23 '
ls -la /etc/rc.d/ | grep -i telnet

# Unknown SSH access
cat /etc/dropbear/authorized_keys 2>/dev/null

# If Tailscale is logged in to someone else's account:
tailscale logout
/etc/init.d/tailscale stop && /etc/init.d/tailscale disable
/etc/init.d/telnetd stop && /etc/init.d/telnetd disable
passwd

Those commands close the doors the previous owner opened. They do not make the firmware trustworthy, because the problem was never one service. The researcher’s own sequence is the right model: dump the evidence first, hash it, then stop patching services on an image you cannot vouch for. He wiped everything above the bootloader and installed official OpenWrt 25.12 with a self-ported Linux 6.12 kernel, keeping only the vendor blobs the 5G modem needs, and published the findings on GitHub.

My rule after reading this: never connect secondhand network gear to a home LAN on the firmware it shipped with, and never wipe it before dumping the evidence, because the overlay is the only place the previous owner’s actions are still visible. One caution: on this specific board, /sbin/firstboot_full wipes the IMEI and RF calibration partition, stock sysupgrade copies bootloaders across slots, and there is no proven USB unbrick method. Read the flashing notes before you touch anything. Cheap hardware with someone else’s build inside is not a bargain. It is an audit you have to run yourself, and most people will not, which is exactly why someone out there is still collecting surnames.

Projects · 2 public

Projects.

Systems I design, build and keep running on my own hardware.

About

Morteza Bahmani.

I build software and keep networks honest. Twenty years of it: web platforms, APIs and integrations on one side; segmentation, DNS and the boring controls that decide whether an incident stays an incident on the other.

I run security for the oil industry in Khuzestan, write about what the network actually does, and photograph Ahvaz when the light is worth it.

The longer version

Contact

Get in touch.

Security work, infrastructure, or a site that needs to load faster.

Elsewhere · off the clock

Elsewhere.

Movie diaries

Letterboxd ↗
  • Sober, but completely under the spell of Thom Yorke’s music on this rainy night.

    2026-12-02 ↗
  • پروژه کوچیک من: یه سرویس برای PassWall 2. برای وقت‌هایی که نصف‌شب نود v2ray از کار میفته، فیلتر میشه و اینترنت روتر قطع میشه، یا DNSها رو انگولک کردن. باهاش روتر OpenWrt شما همیشه آنلاین و در دسترسه.🔗 https://github.com/mortezabahmani/passwall-sentinel

    2026-11-20 ↗
  • My little side-project: a service for #PassWall2. For those times when your v2ray node dies at midnight and kills your router’s internet, or when DNS gets messed with. Keeps your #OpenWrt router always online and accessible.🔗 https://github.com/mortezabahmani/passwall-sentinel

    2026-11-20 ↗
  • Intelligent, multi-mirror, offline-capable Docker Engine installer designed for air-gapped environments and regions with network restrictions. https://github.com/mortezabahmani/docker-airgappd-smartinstaller

    2026-09-20 ↗