AIFeed

My second-hand 5G router came with a Tailscale backdoor named after me

Original text(via Hacker News)

In late November 2026 I bought a used 5G router from a private seller on Bazoš.cz, the Czech classifieds site. When it arrived, I logged in, looked around and found that it was already joined to someone else’s Tailscale network. In that network it was offering itself as an exit node and advertising my home LAN as a subnet route, with key expiry switched off. Its machine name in that network was telstra-black- followed by my surname.

The node was created on 25 November at 13:59 Czech time, the same day I first contacted the seller through Bazoš. The sale itself was agreed by email the next afternoon.

This post covers how I bought it, what was on it and how the seller reacted. It also covers the rest of what I found in the firmware, which includes a passwordless root shell on the network. Part 2 is about replacing all of it: a Linux 6.12 kernel port for a chip that mainline Linux doesn’t support, with OpenWrt 25.12 on top.

The router

The Telstra 5G Modem 2 is an Arcadyan AW1000 Ultra built for the Australian carrier Telstra. Inside are a MediaTek T750 (MT6890) SoC, a Fibocom FG360 5G modem, two MT7915 Wi-Fi 6 radios, a 2.5G WAN port, a four-port switch and 16 GB of eMMC. Ex-Telstra units are resold all over Europe as “unlocked” routers, usually with a modified firmware and often with a carrier-specific “úprava” (tweak) for the local network, in my case O2 Connect.

Inside, the firmware is a vendor OpenWrt 19.07.7 on a Linux 4.19.190 kernel, so anyone who knows OpenWrt will recognise it. You also get root over SSH.

Buying it

I answered an ad on Bazoš on 25 November; the contact form sends your name and email address to the seller. We agreed the deal by email the next afternoon: the black “V2” for €160 (about 4,000 CZK), “brand new, under warranty”, plus 500 CZK for an O2 Connect modification and an unexplained “backup solution”, shipped by Zásilkovna.

One message from that afternoon stands out in hindsight (translated from Slovak):

Seller, 26 Nov 16:37: […] 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.

According to the router’s own files, a VPN to his network had been running on it for 27 hours at that point.

It shipped on 27 November and I picked it up on Monday, 30 November.

First look

I’m not new to OpenWrt, so the first thing I did was get a root shell over SSH and take a full read-only backup: all 52 partitions copied off with dd and checked by SHA-256 against the device. Then I took an inventory of what was running. My notes from that afternoon list, in passing, “tailscale0 interface exists”. I was busy with partition tables and secure-boot logs, so it took until that evening before I actually looked at it.

Here are the relevant fields from tailscale status --json and tailscale debug prefs on the router. The tailnet owner and the tailnet’s DNS suffix are redacted:


        BackendState:         Running
CurrentTailnet.Name:  [a Gmail address]
Owner LoginName:      [the same Gmail address]
Self.HostName:        5G_modem_Gen2
Self.DNSName:         telstra-black-[my surname].tail[xxxxxx].ts.net.
Self.TailscaleIPs[0]: 100.88.10.118
Self.Online:          True
Self.Created:         2026-11-25T12:59:03.571039145Z   (13:59:03 Czech time)
Self.AllowedIPs:      100.88.10.118/32, fd7a:115c:a1e0::5e3b:a77/128,
                      192.168.1.0/24, 0.0.0.0/0, ::/0
Self.ExitNodeOption:  True
Self.KeyExpiry:       None

WantRunning:          True
AdvertiseRoutes:      0.0.0.0/0, ::/0, 192.168.1.0/24
AutoUpdate:           Check: true, Apply: true
      

Taking these one at a time:

  • HostName vs DNSName. The router reports its own hostname as 5G_modem_Gen2. Tailscale derives the machine name from that unless the tailnet owner renames the machine in the admin console. telstra-black-[my surname] is a name someone typed in.
  • AdvertiseRoutes: 192.168.1.0/24. The router offers my LAN to the tailnet as a subnet route. Once approved, any device in that tailnet can reach any device on my home network.
  • 0.0.0.0/0, ::/0 and ExitNodeOption: True. The router offers itself as an exit node, and the routes are approved. Anyone in the tailnet can send their internet traffic out through my connection, under my mobile IP address and my SIM contract.
  • KeyExpiry: None. Tailscale node keys expire after 180 days by default and the device has to log in again. That expiry had been switched off for this node, so the access would never lapse on its own.
  • AutoUpdate: Apply: true. The Tailscale client keeps itself updated, so it wouldn’t quietly break after a few months either.

The timeline

The file timestamps on the router’s writable overlay tell the story of 25 November (Czech time):

TimeWhat happened
25 NovMy inquiry reaches the seller through Bazoš, with my name and email
13:49A new SSH host key is generated ( /etc/dropbear/dropbear_rsa_host_key ), so the system was freshly reset or set up
13:53A Tailscale binary is installed into the overlay ( /usr/bin/tailscale , Tailscale 1.98.2, UPX-packed OpenWrt build)
13:54/etc/config/tailscale is written, and the service is enabled at boot ( S80tailscale )
13:59The node joins the tailnet ( Self.Created )
21:53Tailscale’s state file is last updated
26 Nov afternoonWe agree the deal by email; he offers to set up “your own VPN running on the router”
27 Nov 07:43The router is still online at the seller’s and refreshes its Tailscale relay map, shortly before shipping
30 Nov 22:01I capture the evidence: Tailscale still running, node online

So the router was set up and named after me the same day I asked about it, a day before we had agreed on anything. A factory reset on my side would have wiped the login, because it lives in the writable overlay. As we’ll see, though, a Tailscale package is also part of the read-only system image on these units, so it is never far away.

I wasn’t the only one

The same tailnet contained seven other devices. Most were what you’d expect in a personal tailnet: a couple of Android phones and two Windows PCs. Three were routers, all offering themselves as exit nodes and all online at the moment of my capture:

  • testra-black-[another surname], hostname 5G_modem_Gen2, created on 7 November 2026.

The last one is the same model as mine, with the same naming pattern, and a typo (testra) that suggests it was typed by hand. The suffix is a surname. I’m not publishing it; if you bought a black Telstra 5G Modem 2 from a Slovak seller in early November, check your router.

Asking the seller

Right after capturing everything, I asked him why he had installed Tailscale and logged it in as telstra-black-[my surname]. The highlights of his replies, translated from Slovak:

What? What Tailscale?? Firstly, that’s not my email, and secondly, when you write to someone, you say hello first ;-) In the DNS name I see [my surname], but not the full name. Next reasonable question? You’d better make sure it keeps working.

What? What Tailscale??

Firstly, that’s not my email, and secondly, when you write to someone, you say hello first ;-)

In the DNS name I see [my surname], but not the full name. Next reasonable question? You’d better make sure it keeps working.

When I pointed out that it had been set up on 25 November at 13:59, specifically under that name, and asked what the purpose was, I got no answer.

He’s right that it isn’t my full name. It is my surname, though. It was put on a router I had asked about that same day, as a name typed by hand into a tailnet where another unit of the same model carries another surname. I’ll leave the conclusions to you.

Did anyone use it?

I don’t know, and I want to be precise about what the evidence can and can’t show.

  • The router’s system log doesn’t record Tailscale logins or connections, and it only went back to after 25 November.
  • The firewall counters only covered the 44 minutes since the router’s last reboot. In that window no packets were forwarded through the exit node or into my LAN from the tailnet (ts-forward -i tailscale0: 0 packets). A dozen packets arrived for the router itself over tailscale0, which can be ordinary tailnet chatter.
  • Tailscale’s control plane knows when this node was used. I don’t have access to it; the tailnet owner does.

What I can say is what the configuration allowed: anyone in that tailnet could reach every device on my LAN, could send their traffic out through my connection, and, as the next section shows, could get a root shell on the router without a password.

The rest of the firmware

Once I’d stopped trusting the box, I audited the firmware offline from my backup. It is not just the seller’s Tailscale install. These resold units run a modified Fibocom/Arcadyan system, and I can’t tell how much of the following was done by this seller and how much came from whoever built the “unlocked” firmware he flashed.

A root shell on port 23, no password

/etc/init.d/telnetd is enabled at boot from the read-only image and runs:


        telnetd -F -l /bin/ash
      

-l /bin/ash means telnet doesn’t ask for a login at all: connecting to port 23 drops you straight into a root shell. netstat showed it listening on every interface (:::23).

That alone means anyone on the Wi-Fi gets root. Now combine it with the Tailscale firewall rules on the same router. The first rule in INPUT jumps to ts-input, which accepts everything that arrives over the tunnel:


        -A INPUT -j ts-input
-A ts-input -i tailscale0 -j ACCEPT
      

Reading those rules, nothing stood between any device in that tailnet and telnet 100.88.10.118, then a root prompt. I didn’t test that from inside their tailnet, obviously; it follows from the configuration.

Other services listening on every interface, not just localhost:

  • the modem’s AT command daemon (atcid, TCP 17171), which its own client only uses over 127.0.0.1;
  • modem_webapi (10240);
  • two Wi-Fi Alliance certification test agents (wfa_dut, 8000 and 8080).

A modified kernel with a hidden start check and an activation lock

The kernel in both A/B boot slots is a rebuild dated 20 April 2026. I compared it function by function against Fibocom’s own kernel source for this platform, built with the same configuration. It has exactly these additions:

  • A hidden start check. Right after mounting the root filesystem, the kernel checks whether /bin/modem_status exists. If it doesn’t, the kernel restarts the board, endlessly, before any user code runs. Only the file’s existence is checked, never its contents. The practical effect is that if you replace the stock system with clean OpenWrt, the router boot-loops.
  • An RSA “activation” lock. On boot, the kernel verifies an activation code stored raw in the proinfo partition, bound to the chip’s serial number. If the check fails, the kernel schedules a restart after about five minutes. In other words, it’s a licence check on the reseller’s firmware, enforced by the kernel.
  • Two exported UDP lookup functions of the kind transparent proxy modules use, plus /proc/ccci_* files reporting the lock state.

I found no added code that opens network connections, hooks packets or runs user programs. The kernel changes are about locking the firmware to the hardware, not about spying. Four userspace binaries (modem_status, modem_webapi, tailscaled, xray) are packed, with the string HNXYWIFI where a packer marker would normally be.

Remote update hooks

/etc/init.d/arc_antenna_switch, nominally the script that switches between internal and external antennas, contains settings for downloading and running a script from a public GitHub account (HNXYWIFI/test4, back.sh), hourly, with a cut-off date. In the version on my router its start() didn’t use them, and when I checked, the referenced script only wrote a test file. The mechanism for running remote code on every unit is still there, waiting for someone to use it. There are more of these:

  • dfota can run an updater from /data/delta.zip;
  • a 1restore script unpacks /data/sysupgrade.tgz over the system if it exists.

And a lot of third-party software

The read-only image also contains:

  • proxy and tunnel stacks: OpenClash, PassWall, PassWall2, SSR-Plus, xray, hysteria, kcptun;
  • a Tailscale client with a LuCI app, in the read-only image, so it survives a factory reset;
  • 3ginfo-lite, with web pages to change the IMEI and send raw AT commands to the modem;
  • SMS forwarding;
  • adbd on USB.

Installed doesn’t mean running, but none of it belongs on a router you trust.

There are also stock tools that can permanently damage the router. /sbin/firstboot_full zeroes the partition holding the IMEI and RF calibration. The stock A/B sysupgrade copies bootloaders and modem firmware between slots. A mount script formats calibration partitions if it hits an error.

As for the “secure boot”: every signed image on these routers is signed with MediaTek’s default SDK test keys, whose private halves are public. The boot ROM doesn’t enforce secure boot anyway (sbc_en = 0). Signatures on this platform prove nothing about who built what.

What I did

  • Preserved the evidence first. I saved tailscale status --json, the preferences (without keys), the router’s process, interface, firewall and socket state, a file listing of the overlay, and the system log. I recorded SHA-256 hashes of each file before touching anything: a573a427757ed5359d855fdef712189f465728d331d60ccbb72ccb6c0cc4ff59 status.json cd291f41ec85877d78b7aeb7b5b586b6af1c540c5e814dac7e95b1e7b9a92ffa settings-no-keys.json 846baf0e304487486d966d7aec608d8c564558d38949bc816c22f0c125f490c6 router-state.txt 74f39fcb456412d449e4098230d06cf6917f595265239c282d6150136ef6116a overlay-files.txt

Preserved the evidence first. I saved tailscale status --json, the preferences (without keys), the router’s process, interface, firewall and socket state, a file listing of the overlay, and the system log. I recorded SHA-256 hashes of each file before touching anything:


        a573a427757ed5359d855fdef712189f465728d331d60ccbb72ccb6c0cc4ff59  status.json
cd291f41ec85877d78b7aeb7b5b586b6af1c540c5e814dac7e95b1e7b9a92ffa  settings-no-keys.json
846baf0e304487486d966d7aec608d8c564558d38949bc816c22f0c125f490c6  router-state.txt
74f39fcb456412d449e4098230d06cf6917f595265239c282d6150136ef6116a  overlay-files.txt
      
  • Cut the access. The same evening, Tailscale was stopped, disabled and removed, and the telnet shell was switched off.
  • Stopped trusting any of it. Removing one service from a system I can’t audit doesn’t make the rest trustworthy. So I replaced everything above the bootloader: the userspace with official OpenWrt 25.12, and eventually the kernel with my own Linux 6.12 port. The only vendor code left running is what the modem strictly needs. That’s Part 2, and the code is on GitHub as dpusta/telstra-5g-modem-2.

If you bought one of these

If you have a resold Telstra 5G Modem 2 (or any “unlocked” MT6890 router), check these over SSH:


        # Is Tailscale (or anything like it) running, and whose network is it in?
tailscale status 2>/dev/null; ls -la /etc/tailscale /overlay/upper/etc/tailscale 2>/dev/null
ps w | grep -E '[t]ailscale|[z]erotier|[w]ireguard|[f]rp|[x]ray'

# Is there a root shell without a password on port 23?
netstat -tlnp | grep -E ':23 '
ls -la /etc/rc.d/ | grep -i telnet

# Who else can log in over SSH?
cat /etc/dropbear/authorized_keys 2>/dev/null
      

If Tailscale shows up and you didn’t install it, save the output first, then:


        tailscale logout
/etc/init.d/tailscale stop; /etc/init.d/tailscale disable
/etc/init.d/telnetd stop;   /etc/init.d/telnetd disable
passwd
      

That closes the doors I found, not the ones I didn’t. The honest fix is to replace the firmware. Read the findings before you try, though: there is no proven USB recovery for this model, and some of the stock tools will destroy your IMEI and calibration data if you run the wrong one.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by Hacker News
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗