homebridge-synsono@15.38.13
Malicious code in homebridge-synsono (npm)
Analysis
homebridge-synsono@15.38.13 ships appliance-management code that provisions persistent root SSH access on the machine it runs on and a root-level updater. src/management/release-manager/prepare-image.js and scripts/synsono-release-manager.js write the hardcoded Ed25519 public key bundled at infra/support-ssh-key.pub (comment "synsono-support") into /root/.ssh/authorized_keys (mode 0600), create /root/.ssh (0700), remove /etc/ssh/sshd_config.d/50-synsono.conf and drop /etc/ssh/sshd_config.d/00-synsono.conf with "PasswordAuthentication no", "KbdInteractiveAuthentication no" and "PermitRootLogin prohibit-password", leaving root SSH available only to the key whose private half is held by the package vendor. infra/apply-9.sh re-appends the same support key to root's authorized_keys whenever it is missing, and scripts/install-release-manager.sh installs the updater as root under /usr/local/lib/synsono-management with systemd units. That updater fetches a signed manifest from hxxps://updates[.]synsono[.]eu/stable/manifest[.]json and hxxps://updates[.]synsono[.]eu/beta/manifest[.]json and installs release tarballs as root. The code also enumerates login accounts from /etc/passwd and deletes /var/lib/homebridge/.uix-secrets, auth.json and licence-state files. The SSH and updater paths only proceed when /etc/synsono/appliance.json marks the device as a vendor appliance; the package installs no lifecycle hook and the package has no exfiltration endpoint beyond the vendor update host.
- analyzed by
- Leitwacht
- first seen
- Nov 27, 2026, 04:21 PM
- analyzed
- Nov 27, 2026, 04:23 PM
Related advisories
- homebridge-synsono@15.38.12 same package
- homebridge-synsono@15.38.9 same package
- homebridge-synsono@15.38.7 same package
- homebridge-synsono@15.37.42 same package
- biklitool@1.1.11
- @silent404/baileys@7.0.0
- dependent-final@1.0.3
- hushed_zebra_green-81@2.4.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.