Reverse Engineering My Coway Air Purifier to Ditch the Cloud scottjg.com · 319 p...

@best30

Reverse Engineering My Coway Air Purifier to Ditch the Cloud scottjg.com · 319 points · 85 comments · HN thread

TL;DR Scott Gilbert reverse engineers his Coway Airmega IconS air purifier to remove its dependence on the Coway IoCare cloud, which had repeatedly broken his Home Assistant integration. He finds the fan downloads its root CA over plain HTTP, so MitM was possible without the eMudhra certificate flaw, and then uses AI-assisted Bluetooth protocol analysis to write a provisioning script that points the device at his own servers, ending with a Home Assistant integration bridged to Apple Home.

  • The Coway IconS was controlled through a Home Assistant integration that scraped and imitated the phone app's cloud API, which broke several times (bans, rebrands, HTML changes, server outages).
  • A MitM setup on a Raspberry Pi with nftables and mitmproxy showed the fan fetches the Amazon root CA over plain HTTP, so it trusts whatever CA it is served and the eMudhra weakness was not needed.
  • Device control runs over MQTT over TLS on port 8883; the cloud API response supplies the MQTT host, port and client certificates, so the author could control which server the fan talks to.
  • Using Android Bluetooth logs and AI-driven decompilation, the author reimplemented the BLE provisioning protocol (AES-encrypted Wi-Fi and server URL payload) in about 20 minutes.
  • The final result is a Home Assistant custom integration with Web Bluetooth provisioning, so the fan talks only to the local server and is exposed to Apple Home.

Discussion The thread is a mix of enthusiasm for freeing a cloud-dependent device and a broader debate about smart home lock-in. Many commenters cheer on local control and Home Assistant, while others argue that a plain non-Wi-Fi model or a Corsi-Rosenthal box makes this unnecessary. A side thread debates whether AI companies will restrict reverse engineering help, and another discusses whether subsidized hardware should be bought and liberated. The mood is appreciative and playful, with a steady undercurrent of cynicism about manufacturers.

  • Cheering local control and freeing devices from vendor clouds (many): Many commenters applaud reclaiming ownership of hardware and see reverse engineering cloud-locked devices as a welcome trend. Several say they reward local-first products and avoid cloud-dependent purchases.
  • Why buy a connected air purifier at all (some): Some question the need for Wi-Fi on an air purifier, noting that a dumb model works fine and that monitoring adds maintenance and little value. Others reply that app-based air quality data and remote control are convenient.
  • Buying subsidized hardware and breaking lock-in harms vendors (some): One thread argues that subsidized devices are a loss leader funded by ads and subscriptions, so liberating them hurts the business model. Others counter that the price difference is small and vendors profit anyway.
  • Matter and Zigbee are the better local options (some): Commenters compare protocols: Zigbee and Z-Wave are local-only, while Matter is criticized for requiring internet-based certification and for devices that can reach the internet by default.
  • Corsi-Rosenthal box or a dumb model is simpler (a few): Several recommend a box fan with MERV filters as a cheap, effective purifier, or suggest buying the non-Wi-Fi Coway model and using a HomeKit plug, saying it solves the problem without reverse engineering.
  • AI assistants may start blocking reverse engineering (a few): Some say model providers will restrict help with reverse engineering and anti-cheat topics. Others report no refusals in their own RE projects and point to open-weight models as an alternative.

Links from the comments

#reverseEngineering #smartHome #iot #homeAssistant #privacy #airPurifier