Open-source, reverse-engineered tools for security cameras that use the UBox app. These are low-cost 4G/WiFi security and trail cameras sold on AliExpress, Amazon, etc. under brands like UBIA, i-Cam+, Soliom+, and others.
The cameras use a proprietary protocol (UBIA P4P) to stream H.265 video through UBIA's cloud relay infrastructure. This project provides:
- UBoxViewer — Native macOS viewer app for live streaming
- UBoxStreamLib — Swift library and CLI for connecting to cameras and recording streams
- Python client — Python library and CLI for connecting to cameras and recording streams
These cameras offer no meaningful encryption for video streams. The P4P protocol uses a trivial obfuscation cipher (bit-shifts, XOR, byte swaps) with no key exchange — anyone with access to the network traffic or UBIA's relay servers can decode the video in real time. The full cipher implementation is public in this repository.
Do not rely on these cameras for anything you would consider private. They may be acceptable for non-sensitive use cases like wildlife monitoring.