r/synology
•
u/sfgabe
•
22h ago
Networking & security PSA: fully patched DSM 7.3.2 (admin disabled) compromised Nov 27: hidden admin "rsyncAccount" + root webshell task "synoSelfCheck_*". Check your NAS
I'm sure this is related to some of the other attacks that came through last week but I don't see any exact matches. I found this on my NAS this week and I'm posting the indicators so others can check theirs. I've also reported it to Synology PSIRT.
Setup at the time
-
DSM 7.3.2-86009 Update 5 (installed Oct 23; Update 6 auto-installed the day after the break-in)
-
Built-in
admindisabled since day one -
QuickConnect disabled; port-forwarding: 5000,5001 (my bad for wanting to use it as advertised while I was away for the holidays, I guess)
-
DSM's login page was under a constant botnet brute-force (~13 attempts/min, thousands of IPs, generic usernames)
What I found
- A scheduled task running as root every minute, named
synoSelfCheck_<10 digits>. The number is a Unix timestamp, which matched the break-in time to the second. The task:
- writes a base64-decoded script to /usr/syno/synoman/webapi/SYNOFinder.cgi and chmods it 750
- then runs sqlite3 against /var/log/synolog/.SYNOSYSDB and .SYNOCONNDB to delete every log line mentioning rsyncAccount
-
SYNOFinder.cgiis a webshell. It returns a fake 404 unless the request carriesSYNOCHECKSUMandSYNOUSERTOKENheaders. If the MD5 of the checksum header matches a hard-coded value, it base64-decodes the token andevals it as root. -
A local user
rsyncAccountin the administrators group, with shell/sbin/nologinand an empty home folder. -
Neither the user nor the task appears in Log Center, because the task scrubs them every minute.
Timeline (auth.log, EST, Nov 27)
-
15:27:52
synoscgi: ERROR: stat(/usr/syno/synoman/webapi/SYNOFinder.cgi) [No such file or directory], i.e. the attacker probing for their shell before it existed -
15:27:58
synoscimprofile ... setresuid(-1, 0, -1) [Operation not permitted](x14): the account being created -
15:28:08 task created (from its name)
-
15:28:17 a second probe for the CGI
-
no successful SSH login, and nothing for
adminbeyond the botnet's failed guesses
I don't know the entry point yet. I was on Update 5, which per the advisory already contains the SA-26:19 fixes, including the rsync auth bypass. Possibly related: this Synology Community thread describes a new user created "by the deactivated admin account", with another report from Nov 26.
How to check yours (SSH, sudo):
ls -l /usr/syno/synoman/webapi/SYNOFinder.cgi
sudo synoschedtask --get | grep -i synoselfcheck
grep rsyncAccount /etc/passwd
sudo sh -c 'xzcat -f /var/log/auth.log* | grep SYNOFinder'
The last one catches the probe even if the logs were cleaned. Or just look in Task Scheduler for a root task you didn't create.
If you find it:
-
Disable or delete the task.
-
Delete the CGI.
-
Disable the user.
-
Rotate every admin password.
-
Take DSM off the internet: no QuickConnect or port-forwards, use a VPN or Tailscale.
-
Enable Auto Block.
-
Consider a full DSM reset, since they had root.
Happy to share more detail with anyone seeing the same thing
Update: Jeez y'all, settle down about the ports. The reality of these consumer boxes is that even the fact that I had the brains to disable the admin account from the start means I was doing more than most users. It's still on Synology if someone with better-than-average security sense is getting hacked through a disabled account. It's a PSA, if I'm doing it lots of others are too, and they should know how to check for the intruder.