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

romdump.net
romdump.net › Dump index › Hikvision Network Camera R0 platform (DS-2CD2x42, etc.)

Hikvision Network Camera R0 platform (DS-2CD2x42, etc.) V5.4.800 Build 210813

pending review

uploaded by admin ·

SquashFS image · arm · linux-2.6 · ubifs · 22.5 MiB

request takedown

About this dump

Source

Downloaded from Hikvision Europe's public firmware portal: R0 platform (2xx2) V5.4.800 build210813, file IPC_R0_EN_STD_5.4.800_210813.zip (server cert CN *.hikvisioneurope.com). The zip contains digicap.dav.

Format and unpacking

  • Container: Hikvision digicap.dav firmware container. The 1472-byte header (magic + file index) is XOR-obfuscated; the component file data is stored natively.
  • Obfuscation: the header is XOR'd with the public 16-byte key BA CD BC FE D6 CA DD D3 BA B9 A3 AB BF CB B5 BE, key index per byte = (i + (i>>4)) & 0xF.
  • Method/tool: reproduced from MatrixEditor/hiktools (the published Hikvision DAV XOR scheme) with a small Python script. I XOR-decoded the header only, leaving the (already-plaintext) component data intact.

Verification

  • Decoded header magic is SWKH (Hikvision), header_length=1472, files=32.
  • The 32 file-table entries (name, offset, length) form a contiguous chain from offset 1472 to exactly EOF (23,595,186 bytes) — a wrong key/parse could not chain perfectly.
  • Component data matches the table names: alsa-lib.tar.gz/sound.tar.gz/help.tar.gz start with gzip 1f8b; IEfile.tar.gz/davinci.tar.gz with LZMA 5d 00 00; SoftwareLicense.txt with a UTF-8 BOM + "Open".

Contents

  • Hikvision IP-camera firmware: kernel (hImage), root image (hroot.img), initrun.sh, kernel modules (cmemk.ko, gdmak.ko, ambarella_eth_debug.ko), and app tarballs (driver/idsp/sound/web).
  • Hikvision R0 platform network camera (DS-2CD2x22/2x42/2x52-class).
  • Uploaded the header-decoded digicap.dav (SWKH index readable, component data intact).

Credit

Method reference: afflicted.sh / tpbreak.

Technical fingerprint

SquashFS image · arm · linux-2.6 · ubifs

entropy 7.77 bits/byte · analysed 22.5 MiB

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

  • compressed or encrypted 70%
  • code or packed data 30%

Structures by offset

OffsetStructureKind
0x608 gzip Compression
0x2ad8 romfs Filesystem
0x2ae4 cramfs Filesystem
0x2aec squashfs Filesystem
0x21414 cpio Filesystem
0x18f3e8 ubifs Filesystem
0x421b58 linux-2.6 Linux 2.6.38.8 Kernel
0x442d74 lzop Compression
0x4e6498 xz Compression
0xdd1d98 linux-%d.%d Linux %d.%d.%d Kernel
0x15599b3 tar Filesystem

What's inside

FieldDetected information
Architecture arm 0x31b20
Kernel linux-%d.%d Linux %d.%d.%d 0xdd1d98linux-2.6 Linux 2.6.38.8 0x421b58
Filesystem cramfs 0x2ae4romfs 0x2ad8squashfs 0x2aecubifs 0x18f3e8cpio 0x21414ext 0x42f56ctar 0x15599b3
Compression lzop 0x442d74bzip2 at 0x8c7566 0x4e58acxz 0x4e6498gzip 0x608lzma 0x4e5a68
C library glibc 0xbb6894
Libraries & daemons OpenSSL libcrypto 0xbc02ecSQLite 0xbb8424libgcc 0xbb67a0libpthread 0xbb668fwpa_supplicant 0x840146zlib 0x514ddb
Toolchain gcc-4.6.1 GCC 4.6.1 0x421b1b
Build host zhoufeng3@cpl-frt-bsp 0x421b02

Symbols

10188 names from the symbol tables of 12 ELF/PE files 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 libpthread.so.0 libgcc_s.so.1 libc.so.6 libfsp_base.so libsqlite3.so librt.so.1 libdl.so.2 libm.so.6 libcrypto.so.1.0.0 libipc_unix.so libstdc++.so.6

NameKindAddressOffset
__aeabi_unwind_cpp_pr0 import
__aeabi_unwind_cpp_pr1 import
__errno_location import
__libc_start_main import
__xstat import
_Jv_RegisterClasses import
abort import
accept import
bind import
close import
free import
listen import
28 more listed here

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