homebridge-synsono@15.38.9
Malicious code in homebridge-synsono (npm)
Analysis
homebridge-synsono@15.38.9 ships an Ed25519 SSH key at infra/support-ssh-key.pub (comment: synsono-support) and installs it as a root login credential: src/management/release-manager/prepare-image.js (and the bundled updater scripts/synsono-release-manager.js) read that key and write it to <SYSTEM_ROOT>/root/.ssh/authorized_keys with mode 0600, where SYSTEM_ROOT defaults to "/", so on a real host the target is /root/.ssh/authorized_keys. The same code writes /etc/ssh/sshd_config.d/00-synsono.conf with PasswordAuthentication no, KbdInteractiveAuthentication no and PermitRootLogin prohibit-password, and removes the older 50-synsono.conf, so only key-based root login remains — with the vendor's key as the surviving credential. infra/apply-9.sh performs the same authorized_keys injection when it detects that sshd drop-in. The key path is not gated by the /etc/synsono/appliance.json "synsono-box" check at module level; the check only guards the outer prepareImage wrapper, while the documented root bootstrap (bash scripts/install-release-manager.sh, exposed as appliance:bootstrap and management-agent:install, requires sudo) installs a privileged updater and management agent. The package also runs a licence/update stack that contacts hxxps://updates[.]synsono[.]eu/(stable|beta)/manifest.json and only installs releases whose Ed25519-signed manifest validates. The effect is persistent vendor-controlled root SSH access on any host where the bootstrap or image-prepare step is run.
- analyzed by
- Leitwacht
- first seen
- Nov 27, 2026, 11:06 AM
- analyzed
- Nov 27, 2026, 11:08 AM
Related advisories
- homebridge-synsono@15.38.13 same package
- homebridge-synsono@15.38.12 same package
- homebridge-synsono@15.38.7 same package
- homebridge-synsono@15.37.42 same package
- homebridge-synsono@15.37.37 same package
- rjs-biginteger@2.0.1
- tensorlake@0.5.144
- my-company-device@0.1.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.