Scott J. Goldman intercepts a Coway air purifier's traffic to cut out the manufacturer's cloud
The Airmega IconS fetches its root certificate over plain HTTP, opening the door to a self-hosted server.
Scott J. Goldman began the investigation with a Raspberry Pi running as an isolated Wi-Fi access point, aiming to control the Airmega IconS, a discontinued model, without Coway's cloud. The write-up appeared on November 11 on Goldman's blog. The Home Assistant integration Goldman had relied on goes through Coway's servers and broke once or twice a year.
- Redirect ports 80 and 443 on the isolated network to mitmproxy with
nftablesrules. According to Goldman, Claude declined to help and ChatGPT wrote the rules. The Pi's antenna only reached the purifier from the same room, with the Pi wired over Ethernet to a laptop. - Run
mitmwebin transparent mode:
mitmweb \
--mode transparent --showhost \
--listen-host 0.0.0.0 --listen-port 8080 \
--web-host 127.0.0.1 --web-port 8081 \
--set web_open_browser=false \
--emudhra-old
- Use a mitmproxy plugin to replace
AmazonRootCA1.pem, which the device downloads over plain, unencrypted HTTP, with mitmproxy's own certificate authority (CA).
The purifier then trusted the substitute CA, without the eMudhra certificate-authority flaw disclosed in October. App commands use MQTT, a common IoT messaging protocol, encrypted on port 8883. According to Goldman, the MQTT configuration, requested over HTTPS, sets server and keys: whoever controls that response can point the purifier at a self-hosted server.
Before trying this, check in mitmweb whether your model downloads AmazonRootCA1.pem over HTTP; without that request, step 3 has nothing to replace.