Source
Downloaded from TP-Link's public firmware server: Deco_X50_V1_1.8.0_Build_25102213_Rel._43970.zip (inner file X50v1_en_1.8.0 Build 25102213 Rel. 43970_US_EU_JP_CA_SG_RSA2048_up.bin). Newest Deco X50 V1 build (published 2025-12-08), on the packed RSA-2048+AES format.
Format and unpacking
- Container: TP-Link router/mesh firmware with a
fw-type:header at offset0x14; payload entropy 8.000 bits/byte, no filesystem magic before decryption (packed). - Encryption: RSA-2048 signature + AES-128-CBC. The AES key/IV is the RSA-PSS salt, recovered while verifying the image signature with TP-Link's RSA public key (TP-Link's GPL
libsecurityscheme). - Tool: MyElectronic/tp-link-decrypt (Watchful_IP), built with the router signing key.
- Key: router RSA-2048 public key
RSA_1= theBgIAAAwk...docMd...PUBLICKEYBLOB, extracted fromusr/bin/nvrammanagerin the UBIFS rootfs of TP-Link's own ax6000 v2 reference image (unpacked with ubi_reader). Authenticity: SHA-256 of the two extracted keys (RSA_0Tapo +RSA_1router) joined equals0a7857d40fb02ff1b8d3cbce769e6c402a82a8094b4af553c54e4ffbdc4b6e64, the value pinned in the tool's key-extraction script. - Recovered for this image:
KEY=7e0f05f99cea5d931ff7ecbc5a984e4d,IV=9c6613abe81011321ebb1c2b407a1664.
Verification
- RSA-PSS signature verified OK against the extracted
RSA_1public key (authenticates the image and confirms the key). - Decrypted payload is a UBI image: 287 UBI EC headers (
UBI#) spaced exactly 128 KiB apart; inside it a U-Boot FIT kernel (d00dfeedat0x42814) and a squashfs at0x462814. Linux-4.4.60kernel string present.
Contents
- UBI root with FIT kernel (Linux-4.4.60) + squashfs.
- SoC: Broadcom (Deco X50 / AX3000 mesh, Wi-Fi 6).
- Uploaded the decrypted image.
Credit
Method reference: afflicted.sh / tpbreak.