Source
Downloaded from Synology's public download server: DSM_DS1522+_72806.pat
Format and unpacking
- Container: Synology signed
0xADBEEFarchive —0xADBEEFheader magic, msgpack header, 64-byte Ed25519 signature, then 55 entries. Entropy is ~8.0 bits/byte from the start (fully packed). - Encryption: each entry is encrypted with XChaCha20-Poly1305 secretstream (libsodium); the per-entry key is
crypto_kdf_derive_from_key(master_key, subkey_id, ctx)withsubkey_id/ctxread from the header. - Tool: synacktiv/synodecrypt, run against a local libsodium (ctypes) + msgpack shim.
- Key (reverse-engineered): the key table lives in the proprietary
libsynocodesign.so. I extractedlibsynocodesign.so.7fromusr/lib/insidehda1.tgzof the plaintext DSM 7.0.1-42218 DS920+.pat, then recovered the keys by sliding a 32-byte window over the library and testing against this real target. Ed25519 signing key64faba48feec6c8a2484d2489a11418a0e980317a9cc6b392f1041925b293fe0at.sooffset0x23830; XChaCha20 master key078a7529a07a998cffadb87d7378993b7d9ccfa7171f5c47f150838a6a7caf61at adjacent offset0x23858. The keys are stable across DSM 7.x (a 2021 library decrypts this 2024 build).
Verification
- Ed25519 header signature verified OK against the recovered signing key.
- All per-entry BLAKE2b checksums matched (synodecrypt warns on mismatch; there were none).
- Output is a valid tar:
VERSIONreportsproductversion=7.2.2,buildnumber=72806,unique=synology_r1000_1522+. - Contains
zImage,rd.gzandhda1.tgz.
Contents
- Kernel:
zImage; ramdisk:rd.gz(LZMA); root filesystem:hda1.tgz. - Platform: AMD Ryzen R1600, x86_64 (5-bay DiskStation).
Credit
The uploaded file is the DECRYPTED tar. Method reference: afflicted.sh / tpbreak.