(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 DS220+

Synology DiskStation DS220+ DSM 7.2.2-72806

pending review

uploaded by admin ·

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

request takedown

About this dump

Source

Downloaded from Synology's public download server: DSM_DS220+_72806.pat

Format and unpacking

  • Container: Synology signed 0xADBEEF archive — 0xADBEEF header 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) 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 a 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.

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: VERSION productversion=7.2.2, build=72806, unique=synology_geminilake_220+.
  • Contains zImage, rd.gz and hda1.tgz.

Contents

  • Kernel zImage + rd.gz ramdisk + hda1.tgz rootfs.
  • Platform: Intel Celeron J4025 (Geminilake), x86_64 (2-bay).
  • 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
0x64a200 grub Bootloader
0x65df8f gzip Compression
0x100fc00 xz Compression
0x215a577 bzip2 Compression
0x7d5814b zip Compression

What's inside

FieldDetected information
File format tar
Architecture x86-64 0x64aa10
Operating system Debian 0x72e322Ubuntu 0x72e307
Bootloader grub 0x64a200
Filesystem tar 0x101
Compression bzip2 0x215a577xz 0x100fc00zip 0x7d5814bgzip 0x65df8f
C library glibc 0x65981a
Libraries & daemons libgcc 0x6547e5libstdc++ 0x6547b7
Archive members DiskCompatibilityDB.tar

Symbols

2101 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 0x65bf7c
GetAvailableMemBlockIdx function 0x411834 0x65c034
GetAvailableMemBlockNum function 0x411876 0x65c076
read_efi_systab function 0x4118bd 0x65c0bd
FindSmiMainFuncNum function 0x411942 0x65c142
PhysMemInit function 0x411baf 0x65c3af
FindSMICommad function 0x411be7 0x65c3e7
map_memory function 0x412114 0x65c914
unmap_memory function 0x41226d 0x65ca6d
GetReserveMemory function 0x4122cf 0x65cacf
OpenDriver function 0x41238b 0x65cb8b
CloseDriver function 0x412541 0x65cd41
28 more listed here
WriteSecureFlashPhysicalMemory function 0x4125c5 0x65cdc5
ReadWriteMemBuffer function 0x412666 0x65ce66
sys_physmap function 0x412728 0x65cf28
sys_physummap function 0x412751 0x65cf51
SecureImageMemorySetup function 0x412773 0x65cf73
AllocatePhysicalMemoryWithBuffer function 0x412988 0x65d188
ReleasePhysicalMemory function 0x412bea 0x65d3ea
InitSystemReserveMemorySlot function 0x412cbc 0x65d4bc
GetSystemReserveMemorySlotSize function 0x412d1a 0x65d51a
AllocateSystemReserveMemorySlot function 0x412daf 0x65d5af
FreeSystemReserveMemorySlot function 0x412f18 0x65d718
DeinitReserveMemorySlot function 0x412fb1 0x65d7b1
InitReserveMemory function 0x412fe7 0x65d7e7
FreeReserveMemory function 0x413018 0x65d818
AllocReserveMemory function 0x41302f 0x65d82f
ReadReserveMemory function 0x41304e 0x65d84e
WriteReserveMemory function 0x4130ff 0x65d8ff
WriteSecureFlashReserveMemory function 0x4131ba 0x65d9ba
WriteReserveMemoryBlock function 0x41323e 0x65da3e
AsmCmosRead function 0x4132b4 0x65dab4
AsmCmosWrite function 0x4132ee 0x65daee
AsmCmosReadExtend function 0x41332c 0x65db2c
AsmCmosWriteExtend function 0x413366 0x65db66
initTermios function 0x4133a4 0x65dba4
resetTermios function 0x413475 0x65dc75
getch_ function 0x413491 0x65dc91
getch function 0x4134b9 0x65dcb9
getche function 0x4134c9 0x65dcc9

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