Source
Downloaded from Synology's public download server: DSM_DS1621+_72806.pat
Format and unpacking
- Container: Synology signed
0xADBEEFarchive —0xADBEEFheader magic, msgpack header + 64-byte Ed25519 signature, then entries (high-entropy, no filesystem magic before decryption). - Encryption: each entry is XChaCha20-Poly1305 secretstream (libsodium); per-entry key =
crypto_kdf_derive_from_key(master_key, subkey_id, ctx)withsubkey_id/ctxfrom the header. - Tool: synacktiv/synodecrypt via a local libsodium (ctypes) + msgpack shim.
- Key (reverse-engineered): the key table is baked into the proprietary
libsynocodesign.so. I extractedlibsynocodesign.so.7fromusr/lib/insidehda1.tgzof the plaintext DSM 7.0.1-42218 DS920+.pat, then brute-force-recovered the keys by sliding a 32-byte window over the.soand testing against a real target: Ed25519 signing key64faba48feec6c8a2484d2489a11418a0e980317a9cc6b392f1041925b293fe0at.sooffset0x23830; XChaCha20 master key078a7529a07a998cffadb87d7378993b7d9ccfa7171f5c47f150838a6a7caf61at adjacent offset0x23858. Keys are stable across DSM 7.x.
Verification
- Ed25519 header signature verified OK against the recovered signing key.
- All per-entry BLAKE2b checksums matched (synodecrypt warns on mismatch; none).
- Output is a valid tar:
VERSIONproductversion=7.2.2, build=72806, unique=synology_v1000_1621+. - Contains
zImage,rd.gzandhda1.tgz.
Contents
- Kernel
zImage+rd.gzramdisk +hda1.tgzrootfs. - Platform: AMD Ryzen V1500B, x86_64 (6-bay).
- Uploaded the decrypted tar.
Credit
Method reference: afflicted.sh / tpbreak.