Cloudless TP‑Link Tapo onboarding MITM, APK reversing, and s... #1411
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
The post reverse‑engineers TP‑Link Tapo camera onboarding to enable a fully cloudless setup. It documents how to MITM the Android app, how the encrypted API works, how to extract the default device password from the APK, and how to decrypt the vendor “securePassthrough” channel to observe and replay onboarding calls.
Context and quirks
• For Frigate two‑way audio you must use go2rtc’s
tapo://
scheme instead ofrtsp://
(TP‑Link only implements two‑way...🔧 Technical Details
Force mobile apps through a proxy and bypass TLS pinning: Use Frida hooks (link) to override networking APIs so the app honors your proxy and accepts your mitmproxy CA, defeating certificate pinning and enabling HTTPS interception.
Extract default credentials from the Android APK: Decompile with JADX, trace the onboarding login path (e.g., in
CameraOnboardingViewModel
), and identify the function returning the device password used innew Account(...)
. Forencrypt_type: 3
, the default admin password isTPL075526460603
, allowing pre‑cloud authentication.Decrypt vendor encrypted APIs by deriving session keys from handshake artifacts: Capture
cnonce
,nonce
, anddevice_confirm
during the initial login; derivelsk
andivb
t...🤖 Agent Actions
I analyzed the blog and updated HackTricks with the relevant techniques and tooling in existing Android pentesting pages (no new files were necessary). The additions focus on:
What I changed
Reasoning for placement
No other changes were necessary
References added (in the modified pages)
If you want me to also add a small “IoT Camera onboarding decryption” cross-reference in a networking or IoT-related page, I can, but for now the techniques have been integrated into Android app pentesting where they are most broadly applicable.
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.
🗑️ File Cleanup