Lesson 7 of 14 · 12m
The Password Is Compiled In
Mirai spread on a sixty-pair credential list, not an exploit — hardcoded creds live in shadow files, config blobs, and binaries.
Mirai didn't exploit a vulnerability. In September 2016 its source leaked on HackForums under the handle Anna-senpai, and the mechanism printed inside was a list: roughly sixty credential pairs compiled into the scanner. root/xc3511, admin/admin, root/888888, support/support, root/1234. The botnet scanned TCP 23 and 2323 across the internet, tried the list, and logged in. That's the whole exploit.
The results were not small — this was the largest DDoS anyone had measured at the time: ~620 Gbps against KrebsOnSecurity in September 2016, then the Dyn attack on October 21 that took Twitter, Netflix, Reddit and Spotify out for chunks of a day. A credential list did that.
Where hardcoded creds live
They aren't one thing; they're several stores that don't sync — which is why the fix is rarely where people look:
/etc/shadow— a single root hash compiled into the image, identical in every unit that ships. Crack it once and the credential works on the fleet.- Config blobs — nvram defaults,
user.xml, factory-default structures the reset button restores. - Compiled-in accounts — credentials baked into binaries themselves. In December 2020, CVE-2020-29583 disclosed that Zyxel ATP/VPN/USG firewalls shipped an undocumented admin account,
zyfwpwith passwordPrOw!aN_fXp, inside the firmware. A firewall. GreyNoise observed it exploited in the wild within weeks.
The mental model this attacks
Users think "the password" is the one they set in the web UI. Firmware disagrees. The web UI password, the telnet account, the SSH login, the TR-069 management credential — these are separate stores with separate defaults, often owned by different binaries. Changing the web password does nothing to a compiled-in telnet account; Mirai never touched the web UI at all.
And the accounts persist even when users do everything right, because they live in the image. Factory reset restores them — the "reset to defaults" path is a restore of the compiled-in state, creds included.
TR-069: the other door
TR-069/CWMP is ISP remote management — the protocol your provider uses to push config to the CPE. It listens on TCP 7547 and carries its own credential model: an ACS connection URL, a username/password pair for the device to authenticate to the ACS, and a connection-request credential the ACS presents back. In November 2016, a Mirai-derived attack against TR-069 on Deutsche Telekom's Speedport routers knocked roughly 900,000 routers offline — the management plane built to help ISPs turned into the attack surface. When auditing, port 7547 is not "the ISP's problem"; it's a listener with credentials in your firmware, and the config blobs that hold ACS credentials are worth extracting for exactly the same reason /etc/shadow is.
The audit that matters
Concretely: extract /etc/passwd + /etc/shadow, crack every hash, enumerate every service and which credentials each accepts, and verify that changing the web UI password actually rotates the underlying stores — often it rotates one of them. The test is empirical: change the password in the UI, then re-read /etc/shadow, nvram dumps, and each daemon's config. If the telnet account still authenticates with the old password, you found two stores, and one of them answers to the network.
What fixes it
The fix vendors actually ship is per-device credentials provisioned at the factory — a random password printed on the unit's label, unique per device. It costs seconds of manufacturing time and makes credential lists useless; a scanner with sixty pairs gets nothing against sixty million distinct passwords. Regulation has now priced the alternative: the UK's PSTI Act, enforceable since April 2024, bans universal default passwords on consumer connectable products. If your device family has one root hash in every image, the fix is provisioning, not documentation.
Was this lesson helpful?
Keep reading
Related articles from the SudoSecurity blog.
Running a Minecraft Network: Four JVMs, One Box, and the Settings That Lie to You
Four servers on one host means four JVMs each sizing its thread pools for a machine it does not own. The measured cost of that, the systemd ordering that guarantees nothing, and the throttle that switches itself back on when your forwarding breaks.
A Minecraft Mod Is a Program. In 2026, Attackers Started Acting Like It.
A Minecraft mod is a Java program that runs with your account's full permissions, and nothing in the game checks what it does.
Immich Had Fourteen Advisories and One Bug It Fixed Three Times
Immich's 2026 security record runs to fourteen advisories, and they cluster hard: the sharing features, the OAuth plumbing, and one login redirect parameter that took three separate fixes across eighty-three days. Plus the 3.0 migration traps still waiting for anyone who hasn't jumped yet.
Building a Minecraft Network: Four Servers Pretending to Be One Place
A proxy, a lobby, an SMP and a PvP arena is four JVMs that know nothing about each other. What actually has to be shared, why your permissions don't follow players, and the two LuckPerms defaults that silently share nothing at all.