Mabus's notes / Automated
Reverse Engineering the Coway Airmega IconS to Take Local Control
Automated
Scott's write-up explains how a Wi-Fi air purifier ended up depending on a cloud service that kept failing, and how a long-postponed reverse-engineering project got rid of that dependency.
Why a Box Fan Needed the Cloud
The story starts with the 2017 West Coast wildfires. Like many Bay Area households, Scott's home is poorly insulated and not well sealed, so the family bought a Coway Airmega. Scott describes it as "an overpriced box fan with a HEPA filter and an air quality sensor," but it does improve air quality. It also became a white-noise machine at night, one the household now depends on to sleep.
The goal was simple. Scott's lighting runs through Apple Home, and a "Good Night" button turns off all the lights. Scott wanted that same button to raise the fan to his wife's preferred white-noise level. The original Airmega had no Wi-Fi. When it broke, Scott bought its replacement, the now-discontinued Airmega IconS, because it can be controlled over Wi-Fi ("sort of").
The Fragility of the Existing Integration
Coway's iPhone app is slow to load and asks for a password change nearly every time it opens. A community-built Home Assistant integration works around the app by pretending to be it. The integration polls Coway's cloud for status and sends commands through that cloud, and Home Assistant passes everything on to Apple Home.
Because every command still goes through Coway's servers, Scott says the setup broke at least once or twice a year:
- Coway banned the integration for hammering its servers. After a long dispute with the community, Coway allowed it.
- Coway rebranded its app from IoCare to IoCare+, and the integration had to be rewritten.
- Small changes to the HTML the integration scrapes broke it.
- Coway's servers went offline from time to time.
- Coway banned Scott's account for running an old version of the integration. Remote control was gone for weeks until support lifted the ban.
Scott also expects Coway to eventually charge for the service or shut it down, which is what usually happens to IoT services. The IconS has already been discontinued.
Why It Took So Long
Scott admits to putting the project off for years. Scott assumed the fan checked the server's SSL certificate when connecting, which would make a convincing fake server very hard to build. A man-in-the-middle (MitM) setup is also a lot of work. The fan has to sit on an isolated Wi-Fi network that sends all its traffic through a server Scott controls, and that requires routing and firewall rules that are finicky to get right. Even then, that is only the first step.
Two things changed. One was an October 2026 security incident involving eMudhra, one of the trusted internet certificate authorities. The available excerpt of the post cuts off before it explains how this mattered, or what the second change was.
The Flaw: A Root Certificate Over Plain HTTP
The key finding, which Hacker News commenters picked up quickly, is this: "The fan downloads its root CA cert over plain HTTP. It was always MitM-able." The certificate check Scott worried about could be bypassed all along. That was enough for Scott to connect Home Assistant to the purifier directly, on the local network, with no cloud in between. Discussion of the project also mentions a smart plug that measures power draw, so the setup can confirm the fan is actually running.
What Hacker News Made of It
On Hacker News, Aurornis noted how many "weird and poor choices were lying in plain sight." Plenty of people could have found this flaw, but the work is tedious. According to that comment, LLMs now help people who already understand the material get through the tedious parts in their spare time.
Others asked why Coway, or its firmware contractor, would ship this design. One commenter argued that hardware companies treat software as one more cheap part on the bill of materials, with a quality bar of "customer should not return the product." Another guessed that early firmware with no update mechanism broke when a certificate changed, and that downloading the root certificate was a later workaround.
Takeaways
The project shows the cost of cloud-dependent IoT: a fan that works fine needed a remote server just to change speed, and that server failed for reasons the owner could not control. It also shows how much was left unprotected. Fetching a root certificate over unencrypted HTTP undid the protection the rest of the design appeared to provide. For owners of similar devices, the lesson is that a device that looks locked down may not be, and finding out is now easier than it used to be.