Source
Downloaded from Mercusys' public firmware server: MR47BE(EU)_V2_25012720250421013745.zip (inner file MR47BEv2-up-eu-ver1-0-1-P1[20250127-rel46319]_nosign...bin). Mercusys is TP-Link's sub-brand and shares TP-Link's packed firmware format/signing key.
Format and unpacking
- Container: TP-Link/Mercusys 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 signature with TP-Link's RSA public key.
- Tool: MyElectronic/tp-link-decrypt (Watchful_IP), built with the TP-Link router signing key.
- Key: the TP-Link router RSA-2048 public key
RSA_1(theBgIAAAwk...docMd...PUBLICKEYBLOB) extracted fromusr/bin/nvrammanagerin TP-Link's own ax6000 reference image (via ubi_reader); authenticity confirmed via the pinned SHA-2560a7857d4.... Mercusys images are signed with the same key. - Recovered for this image:
KEY=12564713f0fb898bfc3312b70d2aaada,IV=beece7c20d78235d9c6a44e50e6fe84d.
Verification
- RSA-PSS signature verified OK against the TP-Link
RSA_1public key. - Decrypted payload is a UBI image (
UBI#at0x1141) containing a U-Boot FIT kernel (d00dfeed) and a squashfs (hsqsat0x422141);MR47BEmodel string present.
Contents
- UBI root with FIT kernel + squashfs.
- Device: Mercusys MR47BE (BE3600 Wi-Fi 7 router); MediaTek MT798x-class SoC.
- Uploaded the decrypted image.
Credit
Method reference: afflicted.sh / tpbreak.