Source
Downloaded from TP-Link's public firmware server: M5v1_M5v3...-RSA2048-up-ver1-9-5-P1[20260602-rel25369].zip. Newest Deco M5 build, on the packed RSA-2048+AES format.
Format and unpacking
- Container: TP-Link mesh firmware with a
fw-type:header at offset0x14; payload entropy 8.000 bits/byte, no filesystem magic before decryption (packed). Filename tagRSA2048. - Encryption: RSA-2048 signature + AES-128-CBC. The AES key/IV is the RSA-PSS salt, recovered while verifying the 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 confirmed via the SHA-2560a7857d4...pinned in the tool's key-extraction script. - Recovered for this image:
KEY=d5946f2e3c563ca2de3659428db797c3,IV=c94b834bd89fe09bebddacc117e26c5e.
Verification
- RSA-PSS signature verified OK against the extracted
RSA_1public key (authenticates the image and confirms the key). - Decrypted payload contains a U-Boot FIT image (magic
d00dfeedat0x56495) and a squashfs (hsqsat0x372dde);M5model string present.
Contents
- FIT kernel + squashfs root filesystem.
- Device: Deco M5 (AC1300 mesh); Qualcomm IPQ40xx SoC. Image also covers M1300.
- Uploaded the decrypted image.
Credit
Method reference: afflicted.sh / tpbreak.