# guardianproject/haven

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/guardianproject-haven).**

6,792 stars · 750 forks · Java · GPL-3.0

## Links

- GitHub: https://github.com/guardianproject/haven
- Homepage: https://guardianproject.github.io/haven/
- awesome-repositories: https://awesome-repositories.com/repository/guardianproject-haven.md

## Topics

`android` `device-sensors` `monitoring-service` `prototype-android-application` `sensor`

## Description

Haven is an Android physical security monitor that uses device sensors to detect unauthorized intrusions into a personal space. It functions as an encrypted intrusion alert system and an on-device security logger that captures images and audio when sensor thresholds are exceeded.

The project incorporates a Tor-based remote monitor, allowing users to retrieve event logs and captured media from a distant location via secure onion services. It ensures privacy by routing intrusion alerts through encrypted messaging channels and saving media directly to the device filesystem rather than using cloud servers.

The system monitors hardware signals for motion, sound, light, and power to identify physical breaches. This is supported by a background service that manages event triggering and secure message dispatch.

## Tags

### Security & Cryptography

- [Physical Intrusion Alerts](https://awesome-repositories.com/f/security-cryptography/intrusion-protection-systems/physical-intrusion-alerts.md) — Provides an encrypted alert system that notifies the user when physical security boundaries are breached.
- [Local Security Loggers](https://awesome-repositories.com/f/security-cryptography/local-security-loggers.md) — Implements a local storage system that captures images and audio files upon sensor triggers without using cloud servers.
- [Message Encryption](https://awesome-repositories.com/f/security-cryptography/message-encryption.md) — Uses encrypted messaging protocols to ensure intrusion alerts remain private between the device and the user.
- [Physical Security](https://awesome-repositories.com/f/security-cryptography/security/infrastructure-and-hardware/embedded-and-hardware/physical-security.md) — Functions as an Android application designed to prevent and detect unauthorized physical access to a personal space.
- [Tor Routing](https://awesome-repositories.com/f/security-cryptography/network-infrastructure-security/web-network-security/network-security/network-routing-access-control/tor-gateways/tor-routing.md) — Routes traffic through the Tor network to provide anonymous and secure remote access to event logs.
- [Remote Access Security](https://awesome-repositories.com/f/security-cryptography/remote-access-security.md) — Provides a secure mechanism to retrieve event logs and captured media from a remote location using onion services. ([source](https://cdn.jsdelivr.net/gh/guardianproject/haven@master/README.md))
- [Remote Security Log Retrieval](https://awesome-repositories.com/f/security-cryptography/security-logging-management/remote-security-log-retrieval.md) — Allows users to retrieve event records and captured media from a distant location via secure onion services.

### Data & Databases

- [Local-First Storage](https://awesome-repositories.com/f/data-databases/local-first-storage.md) — Saves captured images and audio directly to the device filesystem to prevent privacy leaks associated with cloud storage.

### Graphics & Multimedia

- [Event-Driven Captures](https://awesome-repositories.com/f/graphics-multimedia/audio-music/media-capture-and-playback/event-driven-captures.md) — Automatically records images and sound upon sensor triggers for security logging. ([source](https://cdn.jsdelivr.net/gh/guardianproject/haven@master/README.md))
- [Live Capture and Recording](https://awesome-repositories.com/f/graphics-multimedia/audio-music/media-capture-and-playback/live-capture-and-recording.md) — Captures live audio and images from device sensors and records them to local files.

### Hardware & IoT

- [Sensor-Driven Event Triggers](https://awesome-repositories.com/f/hardware-iot/embedded-robotics/sensor-processing/analog-sensor-calibration/analog-sensor-integrations/sensor-driven-event-triggers.md) — Processes real-time hardware signals from motion, sound, and light sensors to trigger security events.

### System Administration & Monitoring

- [Secure Alerting Systems](https://awesome-repositories.com/f/system-administration-monitoring/alerting-and-incident-management/secure-alerting-systems.md) — Dispatches security alerts through encrypted messaging channels when sensor thresholds are exceeded.
- [Physical Facility Monitoring](https://awesome-repositories.com/f/system-administration-monitoring/physical-facility-monitoring.md) — Monitors motion, sound, light, and power signals to detect unauthorized intrusions into a physical space. ([source](https://cdn.jsdelivr.net/gh/guardianproject/haven@master/README.md))
- [Alert Thresholds](https://awesome-repositories.com/f/system-administration-monitoring/alert-thresholds.md) — Executes recording and alerting logic only when hardware sensor data exceeds predefined numerical limits.
- [Remote Monitoring](https://awesome-repositories.com/f/system-administration-monitoring/remote-monitoring.md) — Provides a secure remote monitoring system to track and retrieve activity from the device via Tor.

### User Interface & Experience

- [Encrypted Alert Delivery](https://awesome-repositories.com/f/user-interface-experience/alerts-notifications/messaging-alerts/encrypted-alert-delivery.md) — Routes intrusion alerts through encrypted messaging channels to maintain privacy. ([source](https://cdn.jsdelivr.net/gh/guardianproject/haven@master/README.md))

### Mobile Development

- [Background Service Persistence](https://awesome-repositories.com/f/mobile-development/background-service-persistence.md) — Implements persistent background processing on Android to ensure the security monitor remains active for continuous coverage.
