Technology1 min read

Reverse Engineering my cat's litter box

By · Published by Everything Blog

In short

A cat owner reverse-engineered an automated litter box to ensure cleaning cycles run only when their cat, Maisie, is elsewhere. After initial API requests failed with unauthorized errors, the developer decompiled the companion Android app to discover an MD5-hashed signing process. Further analysis revealed that the client must initially authenticate with an embedded bootstrap key to retrieve region-specific endpoints and keys. Successfully reproducing these credentials allows custom software to interface with the device's account and operational data.

Key points

  • Direct API interaction failed until the developer extracted regional authentication param…: Direct API interaction failed until the developer extracted regional authentication parameters using an embedded bootstrap key.
  • Operating the appliance fully requires managing both signed HTTP web requests and raw bin…: Operating the appliance fully requires managing both signed HTTP web requests and raw binary MQTT messages.
  • The project enables tailored home automation that triggers device maintenance only when t…: The project enables tailored home automation that triggers device maintenance only when the pet has left the area.

Sources checked by our analysis pipeline: 1

Maisie likes to touch the litter box while it is running. I would prefer that she find something else to do during that time.

My idea was to bring the litter box into Home Assistant, add some buttons, and eventually use presence sensors to start a cleaning cycle when she is in another room and distracted. There are probably many more automations I will come up with once I have that working. First, I needed a way to talk to the box.

The phone app already knew how to do everything I needed. I started by watching its traffic with Wireshark and inspecting HTTP requests with HTTP Toolkit, then decompiled the Android app to understand the parts I could not reproduce from the traffic alone.

This turned into two related projects. I needed to reproduce the signed HTTP requests used to access account and device data, then rebuild the binary messages used to operate the box over MQTT.

Recreating the HTTP Requests

The HTTP traffic exposed devices on the account, configuration, waste drawer levels, and records of litter box visits.…

Technology