Reverse engineering my Coway air purifier to ditch the cloud
An engineer reverse-engineered a Coway smart air purifier using AI assistance to bypass its cloud service and control it locally via Home Assistant.
read it It provides a clear, step-by-step technical log of bypassing IoT cloud dependencies through network analysis and Bluetooth protocol reverse engineering.
summary
Frustrated by the unreliability of cloud-dependent smart air purifiers, the author used an LLM to build a transparent proxy and analyze device communication. The investigation revealed that the fan fetches its root certificate over plain HTTP and relies on an encrypted Bluetooth provisioning handshake. By intercepting these requests and spoofing endpoints, the author successfully cut out the vendor cloud entirely. A custom Home Assistant integration now enables direct local control and Apple Home integration.
key points
- The Coway air purifier fetches its root CA certificate over plain HTTP during setup, making it immediately susceptible to man-in-the-middle interception.
- Android Bluetooth debug logs combined with app decompilation revealed an encrypted protobuf provisioning protocol utilizing AES keys derived from the device MAC address.
- By hosting local endpoints for certificate distribution and MQTT configuration, the device can be completely decoupled from manufacturer servers.
who should read it
IoT hobbyists and home automation engineers interested in local control and reverse engineering.
discussion warm
consensus
Commenters are enthusiastic about using LLMs to liberate cloud-dependent consumer hardware, noting that tedious reverse-engineering tasks are now vastly more approachable.
pushback
Some commenters question whether the heavy engineering effort is worthwhile compared to buying non-cloud models or using basic smart plugs.
> The fan downloads its root CA cert over plain HTTP. It was always MitM-able.
The most fascinating part of this wave of LLM reverse engineering is seeing how many weird and poor choices were lying in plain sight.
Any number of people could have discovered and exploited this, but it’s tedious work. Most people who can do this are busy with their job and other things. Now LLMs enable people who understand these things to quickly get through the tedious parts, so they can do a lot more of this work in their free time than they could before.
It captures the broader shift enabled by LLMs, allowing engineers to quickly push through tedious reverse engineering tasks in their spare time.
Generated by an LLM from the article and thread. Check the sources before relying on it.