(Still in development) This platform is the result of human engineering. AI was used solely for security audits.

romdump.net
romdump.net › Dump index › Synology DiskStation DS224+

Synology DiskStation DS224+ DSM 7.2.2-72806

pending review

uploaded by admin · · edited

tar archive · x86-64 · Debian · tar · grub · 369.2 MiB

request takedown

About this dump

Source

Downloaded from Synology's public download server: https://global.synologydownload.com/download/DSM/release/7.2.2/72806/DSM_DS224+_72806.pat.

Format and unpacking

  • Container: Synology signed 0xADBEEF archive — 0xADBEEF header magic, msgpack header + 64-byte Ed25519 signature, then 55 entries (entropy ~8.0 bits/byte from the start).
  • Encryption: each entry is XChaCha20-Poly1305 secretstream (libsodium); per-entry key = crypto_kdf_derive_from_key(master_key, subkey_id, ctx) with subkey_id/ctx from 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 extracted libsynocodesign.so.7 from usr/lib/ inside hda1.tgz of the plaintext DSM 7.0.1-42218 DS920+ .pat, then brute-force-recovered the keys by sliding a 32-byte window over the .so and testing against the real target: Ed25519 signing key 64faba48feec6c8a2484d2489a11418a0e980317a9cc6b392f1041925b293fe0 at .so offset 0x23830; XChaCha20 master key 078a7529a07a998cffadb87d7378993b7d9ccfa7171f5c47f150838a6a7caf61 at adjacent offset 0x23858. 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 55 per-entry BLAKE2b checksums matched (synodecrypt warns on mismatch; none).
  • Output is a valid tar: VERSION productversion=7.2.2, build=72806, os_name=DSM.
  • zImage (kernel magic ea0500c0), rd.gz (LZMA 5d), hda1.tgz, checksum.syno, Synology.sig.

Contents

  • Kernel zImage + rd.gz ramdisk + hda1.tgz rootfs.
  • Platform: Intel Celeron J4125 (Geminilake), x86_64.
  • Uploaded the decrypted tar.

Credit

Method reference: afflicted.sh / tpbreak.

Technical fingerprint

tar archive · x86-64 · Debian · tar · grub

entropy 7.97 bits/byte · analysed 256.0 MiB (the leading part of a larger file)

Mostly compressed. 94% is compressed or encrypted data; the structures below mark where the streams and filesystems start.

  • compressed or encrypted 94%
  • code or packed data 1%
  • text and tables 5%
  • padding or empty 1%

Structures by offset

OffsetStructureKind
0x0 tar File format
0x101 tar Filesystem
0x638a00 grub Bootloader
0x64c78f gzip Compression
0xffe400 xz Compression
0x2148db3 bzip2 Compression
0x7d45fef zip Compression

What's inside

FieldDetected information
File format tar
Architecture x86-64 0x639210
Operating system Debian 0x71cb22Ubuntu 0x71cb07
Bootloader grub 0x638a00
Filesystem tar 0x101
Compression bzip2 0x2148db3xz 0xffe400zip 0x7d45fefgzip 0x64c78f
C library glibc 0x64801a
Libraries & daemons libgcc 0x642fe5libstdc++ 0x642fb7
Archive members DiskCompatibilityDB.tar

Symbols

2102 names from the symbol tables of 1 ELF/PE file and strings that are symbols (capped: there may be more). A name searches the site for it; an offset opens the hex viewer there.

Links against libdl.so.2 libstdc++.so.6 libm.so.6 libgcc_s.so.1 libc.so.6

NameKindAddressOffset
call_gmon_start function 0x41177c 0x64a77c
GetAvailableMemBlockIdx function 0x411834 0x64a834
GetAvailableMemBlockNum function 0x411876 0x64a876
read_efi_systab function 0x4118bd 0x64a8bd
FindSmiMainFuncNum function 0x411942 0x64a942
PhysMemInit function 0x411baf 0x64abaf
FindSMICommad function 0x411be7 0x64abe7
map_memory function 0x412114 0x64b114
unmap_memory function 0x41226d 0x64b26d
GetReserveMemory function 0x4122cf 0x64b2cf
OpenDriver function 0x41238b 0x64b38b
CloseDriver function 0x412541 0x64b541
28 more listed here
WriteSecureFlashPhysicalMemory function 0x4125c5 0x64b5c5
ReadWriteMemBuffer function 0x412666 0x64b666
sys_physmap function 0x412728 0x64b728
sys_physummap function 0x412751 0x64b751
SecureImageMemorySetup function 0x412773 0x64b773
AllocatePhysicalMemoryWithBuffer function 0x412988 0x64b988
ReleasePhysicalMemory function 0x412bea 0x64bbea
InitSystemReserveMemorySlot function 0x412cbc 0x64bcbc
GetSystemReserveMemorySlotSize function 0x412d1a 0x64bd1a
AllocateSystemReserveMemorySlot function 0x412daf 0x64bdaf
FreeSystemReserveMemorySlot function 0x412f18 0x64bf18
DeinitReserveMemorySlot function 0x412fb1 0x64bfb1
InitReserveMemory function 0x412fe7 0x64bfe7
FreeReserveMemory function 0x413018 0x64c018
AllocReserveMemory function 0x41302f 0x64c02f
ReadReserveMemory function 0x41304e 0x64c04e
WriteReserveMemory function 0x4130ff 0x64c0ff
WriteSecureFlashReserveMemory function 0x4131ba 0x64c1ba
WriteReserveMemoryBlock function 0x41323e 0x64c23e
AsmCmosRead function 0x4132b4 0x64c2b4
AsmCmosWrite function 0x4132ee 0x64c2ee
AsmCmosReadExtend function 0x41332c 0x64c32c
AsmCmosWriteExtend function 0x413366 0x64c366
initTermios function 0x4133a4 0x64c3a4
resetTermios function 0x413475 0x64c475
getch_ function 0x413491 0x64c491
getch function 0x4134b9 0x64c4b9
getche function 0x4134c9 0x64c4c9

2057 more not listed: symbol search finds them all, with sym:name or name*.