FOUND: OTHER MALWARE while looking for 11/20 evidence

I've independently identified the same malware on one of my two GL-AX1800 routers. Both are running firmware 4.8.3 and both had GoodCloud enabled.

I've spent several hours investigating the infection, analysing the payload and checking for evidence of lateral movement into my other networks. Hopefully the following information is useful to others and the GL.iNet security team.

Confirmed infection

The infected router had a modified /etc/init.d/urandom_seed startup script containing the following additional commands:

cp /usr/bin/lua /usr/bin/monitord
cp /bin/ulogd /var/run/monitord.pid
/usr/bin/monitord /var/run/monitord.pid &
sleep 2
rm /var/run/monitord.pid

The monitord process was actively running as root when discovered.

The malware payload, /bin/ulogd, has the following attributes:

  • File size: 33,722 bytes

  • File timestamp: 17 December 2025

  • Format: Lua 5.1 compiled bytecode

  • SHA-256: e009cb771c52c66f5899151345b11aa2d1cc5e64147ade8059413d09b2ed5c87

Interestingly, the payload size matches other samples reported here, but the SHA-256 hash is different.

The SHA-256 of my infected urandom_seed script is:

3265f27feb954744581cdea2373b88ceae9d85b67e90487353fd48902cf4fc19

Preliminary payload analysis

Static analysis of the Lua bytecode reveals references consistent with:

  • Collection of router MAC address, DDNS hostname, firmware version, model and system uptime.

  • Obfuscated domain names.

  • HTTP POST requests.

  • Downloading, decrypting and extracting additional payloads.

  • Terminating and launching processes.

  • Restarting the system logging service.

  • Enumerating interactive terminal sessions.

These are observations from static analysis, rather than confirmed runtime behaviour. I haven't executed the payload.

Remote containment without a factory reset

The infected router is in another country and is accessed through a WireGuard tunnel, so maintaining remote connectivity was important.

I successfully performed the following containment steps:

  1. Suspended the running malicious process.

  2. Disabled scheduled automatic reboots.

  3. Preserved copies of the infected startup script and malware payload for further analysis.

  4. Restored the original urandom_seed script from the read-only /rom firmware partition.

  5. Removed /bin/ulogd.

  6. Terminated the malicious monitord process and removed its executable.

  7. Renewed the router's WireGuard credentials at the VPN server to invalidate any potentially compromised keys.

  8. Disabled GoodCloud and its remote access features.

GoodCloud was disabled persistently using:

uci set 'gl-cloud.@cloud[0].enable=0'
uci commit gl-cloud
/etc/init.d/gl-cloud stop

I subsequently verified that the GoodCloud process was no longer running, the MQTT connection was closed and the identified malware process had not respawned.

This is a containment procedure, not a substitute for a clean firmware reflash.

Comparison with an unaffected router

My second GL-AX1800, running the same firmware and also previously connected to GoodCloud, shows none of these indicators.

  • The urandom_seed script is identical to the original in /rom.

  • No malware payload or associated executable is present.

  • No suspicious processes or known malicious network connections were identified.

  • No unexpected executable binaries were found in the writable overlay directories examined.

GoodCloud has now been disabled on both routers.

Potential lateral movement

The infected router had access to my home network through WireGuard, so I also investigated the VPN server, Synology NAS and a Raspberry Pi running Docker and Home Assistant on the affected local network.

After reviewing authentication histories, running processes, network connections, scheduled tasks and startup services where applicable, I've found no evidence of lateral movement. Obviously, this cannot conclusively rule it out.

Questions for GL.iNet

Given the December 2025 timestamps, the different payload hashes and the reports of this malware affecting multiple router models:

  • Is this malware associated with the 20 November GoodCloud incident, or is it potentially a separate, older compromise?

  • Has GL.iNet identified the original attack vector for this particular Lua-based malware?

  • Can GL.iNet provide an official detection and remediation procedure specifically covering this persistence mechanism?

The timestamps may have been deliberately backdated, so I'm not assuming they establish the actual infection date.

I've retained the original malware payload and modified startup script and am happy to provide both privately to the GL.iNet security team for further analysis.

For anyone investigating their own router, I would strongly recommend checking the integrity of /etc/init.d/urandom_seed against the original firmware, in addition to performing the checks published for the recent GoodCloud incident.

A negative result from the original GoodCloud malware check does not necessarily mean your router is unaffected by this particular infection.

Detection and containment command reference

The following summarises the commands used to identify and contain the malware on my GL-AX1800.

These are specific to the malware variant described above. They are not a universal remediation procedure.

1. Check the integrity of the startup script

/rom/bin/busybox cmp /etc/init.d/urandom_seed /rom/etc/init.d/urandom_seed
cat /etc/init.d/urandom_seed

A difference warrants further investigation. Check for the additional malicious commands described above.

2. Check for the malware files and running process

ls -l /bin/ulogd /usr/bin/monitord
/rom/bin/busybox ps w | grep '[m]onitord'

3. Suspend the malicious process

Identify and verify the PID of the malicious monitord process before substituting it below.

kill -STOP <PID>

Disable any scheduled automatic reboot through the router UI before proceeding.

4. Preserve the malware samples

cp -p /etc/init.d/urandom_seed /tmp/urandom_seed.infected
cp -p /bin/ulogd /tmp/ulogd.infected

sha256sum /tmp/urandom_seed.infected
sha256sum /tmp/ulogd.infected

Transfer these samples securely to another machine for offline analysis. Do not execute them. Remember that /tmp is volatile and will not survive a reboot.

5. Restore the original startup script

cp -p /rom/etc/init.d/urandom_seed /etc/init.d/urandom_seed

/rom/bin/busybox cmp /etc/init.d/urandom_seed /rom/etc/init.d/urandom_seed

No output from cmp indicates that the files are identical.

6. Remove the identified malware

Only perform these commands after confirming that the files and process belong to the malware described in this thread.

rm -f /bin/ulogd
kill -KILL <PID>
rm -f /usr/bin/monitord

7. Disable GoodCloud persistently

Ensure you have an independent means of remotely accessing the router before disabling GoodCloud.

uci set 'gl-cloud.@cloud[0].enable=0'
uci commit gl-cloud
/etc/init.d/gl-cloud stop

8. Verify containment

echo "=== Startup script integrity ==="
/rom/bin/busybox cmp /etc/init.d/urandom_seed /rom/etc/init.d/urandom_seed

echo "=== Malware files ==="
ls -l /bin/ulogd /usr/bin/monitord /var/run/monitord.pid

echo "=== Malware processes ==="
/rom/bin/busybox ps w | grep '[m]onitord'

echo "=== GoodCloud configuration ==="
uci -q get 'gl-cloud.@cloud[0].enable'

echo "=== GoodCloud process ==="
/rom/bin/busybox ps w | grep '[g]l-cloud'

echo "=== GoodCloud MQTT connection ==="
/rom/bin/busybox netstat -tunap | grep ':18883'

Expected results:

  • Startup script matches the original firmware.

  • Malware files no longer exist.

  • No malicious monitord process.

  • GoodCloud configuration returns 0.

  • No running GoodCloud process.

  • No GoodCloud MQTT connection on port 18883.

9. Check for other modified executable files

/rom/bin/busybox find \
  /overlay/upper/bin \
  /overlay/upper/sbin \
  /overlay/upper/usr/bin \
  /overlay/upper/usr/sbin \
  /overlay/upper/etc/init.d \
  -type f -print 2>/dev/null

Investigate unexpected files individually. The presence of files in the writable overlay does not necessarily indicate malware.

10. Rotate potentially compromised credentials

If the router is a WireGuard client, renew its credentials at the VPN server and ensure the previous key is revoked. Simply generating a new client key without revoking the previous one is insufficient.

Also consider rotating other credentials accessible to the compromised router and investigating any networks reachable through its VPN connections.

Important: This procedure successfully contained the identified malware on my router without losing remote connectivity. It does not guarantee that all traces of compromise have been removed.

A clean firmware reflash from a trusted source, manual reconfiguration and subsequent credential rotation remain the recommended final remediation steps.