Real-Time iOS Threat Detection & Monitoring System
PrivaseeAI.Security is a privacy-preserving iOS threat detection system that provides continuous security monitoring through VPN integrity checks, backup analysis, and behavioral pattern detection. Built in response to a real carrier-level attack, every detection rule is validated against actual threat patterns.
Status: v0.3.0-alpha - MVP Complete | 9,879 lines of Python | 196 tests passing | Production ready
Unlike traditional periodic scans, PrivaseeAI.Security provides continuous real-time monitoring with instant alerts when threats are detected. All analysis happens locally on your machine, ensuring complete privacy and data sovereignty.
- β Battle-Tested: Built from real carrier-level attack (January 26, 2026)
- β Continuous Monitoring: Real-time detection, not periodic scans
- β Privacy-First: 100% local processing, no cloud dependencies
- β Production-Ready: 9,879 lines of code, 196 tests passing
- β Open Source: Apache 2.0 license, full transparency
VPN Integrity Monitor (386 lines)
- Detects TCP fallback when UDP is blocked
- Tracks API rate limiting and cooldown periods
- Identifies server hopping patterns (4+ servers in <10 min)
- Validates certificates against known-good fingerprints
- 14 integration tests covering real attack scenarios
API Abuse Monitor (397 lines)
- Location tracking detection via API abuse
- Rate limit identification and analysis
- Burst pattern detection
- Background activity monitoring
- 19 unit tests validating all detection rules
Carrier Compromise Detector (790 lines)
- Localhost routing detection in VPN profiles
- eSIM profile monitoring
- DNS tampering identification
- Cross-backup persistence tracking
- 28 comprehensive unit tests
Certificate Validator (295 lines)
- Known-good fingerprint database (ProtonVPN baseline)
- Certificate chain validation
- Expiry date checking
- Self-signed certificate detection
- 8 unit tests ensuring accuracy
Telegram Alerting (300 lines)
- Real-time notifications for CRITICAL/HIGH threats
- Severity-based filtering
- Automatic threat deduplication
- Custom message formatting
- Alert throttling to prevent spam
Orchestrator (374 lines)
- Concurrent monitoring using asyncio
- Multi-monitor coordination
- Smart threat aggregation
- Automatic deduplication
- Graceful shutdown handling
CLI Interface (319 lines)
privasee start # Start continuous monitoring
privasee scan # One-time security scan
privasee status # Check system health
privasee config # View configuration
privasee alerts # Show recent threats
privasee dashboard # Launch web dashboard (NEW in v0.3.0)Rich console output with tables and color-coded severity indicators
- Configuration System (180 lines) - YAML support, environment variables, validation
- Device Info Extractor (796 lines) - iOS backup parsing, profile extraction
- File Watcher (97 lines) - Real-time directory monitoring
- Logger (97 lines) - JSON/text formatting, structured logging
- Crypto Module (123 lines) - AES-256 encryption, SHA hashing
196 Tests - 100% Pass Rate
tests/
βββ unit/ (148 tests)
β βββ VPN integrity, API abuse, carrier detection
β βββ Certificate validation, crypto operations
β βββ Configuration, logging, file watching
β
βββ integration/ (48 tests)
βββ Backup monitoring workflow
βββ Real attack pattern detection
βββ End-to-end monitoring scenarios
All tests use real attack logs from the January 26, 2026 incident as fixtures.
- 100% Local Processing - All analysis on your machine
- No Cloud Dependencies - Fully self-hosted, no external services
- Data Sovereignty - You control all security data
- Encrypted Backups Supported - Works with both encrypted and unencrypted iOS backups
- Open Source - Full code transparency, audit the security yourself
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β PrivaseeAI Security CLI β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Threat Orchestrator (asyncio) β β
β ββββββ¬ββββββββββββββ¬βββββββββββββββ¬ββββββββββββββ¬βββ β
β β β β β β
β ββββββΌβββββββ βββββΌβββββββββ ββββΌββββββββββ βββΌβββββ β
β β VPN β β API β β Carrier β βBackupβ β
β β Integrity β β Abuse β βCompromise β β Mon β β
β β Monitor β β Monitor β β Detector β βitor β β
β ββββββ¬βββββββ ββββββ¬ββββββββ ββββ¬ββββββββββ βββ¬βββββ β
β β β β β β
β βββββββββββββββ΄ββββββββββββββ΄βββββββββββββββ β
β β β
β ββββββββββΌβββββββββ β
β β Threat Aggregatorβ β
β β & Deduplication β β
β ββββββββββ¬βββββββββ β
β β β
β ββββββββββΌβββββββββ β
β β Telegram β β
β β Alerter β β
β ββββββββββββββββββββ β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Python 3.11+ (required)
- macOS with iOS device backup capability
- iPhone with iOS 14+ (tested on iPhone 16 Pro, iOS 18.2)
- Telegram Bot (optional, for alerts)
# 1. Clone the repository
git clone https://github.com/aurelianware/PrivaseeAI.Security.git
cd PrivaseeAI.Security
# 2. Create virtual environment (recommended)
python3 -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Install package in development mode
pip install -e .
# 5. Verify installation
privasee --help# Start continuous monitoring
privasee start
# Run one-time scan
privasee scan
# Check system status
privasee status
# View configuration
privasee config
# View recent alerts
privasee alerts
# Launch web dashboard
privasee dashboard
# Visit http://localhost:8000# 1. Create bot with @BotFather on Telegram
# 2. Get your bot token and chat ID
# 3. Configure alerts
export TELEGRAM_BOT_TOKEN="your_token_here"
export TELEGRAM_CHAT_ID="your_chat_id"
# Or add to .env file
echo "TELEGRAM_BOT_TOKEN=your_token" >> .env
echo "TELEGRAM_CHAT_ID=your_chat_id" >> .env- ROADMAP.md - Development timeline and completed features
- USER_GUIDE.md - Complete non-technical walkthrough (657 lines)
- QUICK_START.md - Fast-track setup guide
- iOS_DEVICE_TESTING_GUIDE.md - Live device monitoring setup
- ORCHESTRATOR_GUIDE.md - CLI usage and architecture
- Technical Specification - Complete technical spec (54KB)
- CONTRIBUTING.md - How to contribute
- SECURITY.md - Security policy and vulnerability reporting
- TESTING_SUMMARY.md - Test infrastructure overview
- .github/SOCIAL_PREVIEW_SETUP.md - Social media preview image setup
- Monitor your iPhone for sophisticated attacks
- Detect VPN manipulation in real-time
- Identify location tracking attempts
- Verify iOS backup integrity
- Forensic analysis of compromised devices
- Threat research and pattern identification
- Security auditing for clients
- Incident response tool
- Verify carrier-level security
- Monitor for government surveillance
- Detect spyware and tracking
- Maintain digital privacy
On January 26, 2026, the developer's iPhone was compromised at the carrier level. This system was built to detect and prevent such attacks:
Attack Patterns Detected:
- β UDP blocking forcing WireGuard to TCP
- β API rate limiting (50-minute cooldown) for location tracking
- β Server hopping (4 servers in 7 minutes)
- β Certificate manipulation attempts
- β DNS64 tampering
Every detection rule is validated against these real attack logs.
- iPhone 16 Pro (iOS 18.2) - Full validation
- iPhone 12+ (iOS 14+) - Expected to work
- macOS Ventura/Sonoma - Tested and working
- Core monitoring system
- CLI interface
- Real-time alerting
- Comprehensive testing
- Status: Shipped v0.3.0-alpha
- Background service (launchd)
- Auto-start on boot
- Log rotation
- Crash recovery
- Status: In Progress
- PostgreSQL + TimescaleDB
- Historical analysis
- Multi-device support (3+ devices)
- Query API
- FastAPI REST API
- React dashboard
- Real-time visualization
- Configuration UI
- PDF reports
- AI/ML anomaly detection
- SIEM integrations
- Enterprise features
- Mobile apps
See ROADMAP.md for detailed timeline and milestones.
We welcome contributions! This project needs:
High Priority:
- π΄ Beta testers with iPhones (iOS 14+)
- π΄ Python developers for dashboard
- π UI/UX designers
- π Technical writers
- π‘ Security researchers
Getting Started:
- Read CONTRIBUTING.md
- Check open issues
- Look for
good first issuelabels - Fork, code, test, submit PR
| Metric | Value |
|---|---|
| Total Code | 9,879 lines Python |
| Production Code | 4,322 lines |
| Test Code | 3,568 lines |
| Tests | 196 (100% passing) |
| Documentation | 2,000+ lines |
| Development Time | 6 weeks (MVP) |
| Test Fixtures | Real attack logs |
Reporting Vulnerabilities:
- DO NOT open public issues for security vulnerabilities
- Email: security@aurelianware.com
- See SECURITY.md for responsible disclosure process
Security Features:
- All analysis happens locally
- No telemetry or tracking
- Encrypted backup support
- Open source for full auditability
Apache License 2.0 - See LICENSE for details.
TL;DR: You can use, modify, and distribute this software commercially or non-commercially, with attribution.
Built on the shoulders of giants:
- iOS Security Community - Threat intelligence and research
- MVT Project - Mobile Verification Toolkit indicators
- Amnesty Tech - NSO Pegasus research and STIX feeds
- ProtonVPN - Certificate fingerprint baseline for validation
- Real-World Attack - January 26, 2026 incident that motivated this project
- Issues: Report bugs or request features
- Discussions: Ask questions and share ideas
- Email: support@aurelianware.com
Legal Notice: This tool is designed for monitoring YOUR OWN devices for security threats. Unauthorized monitoring of devices you do not own or have explicit permission to monitor may be illegal in your jurisdiction. Always respect privacy laws and obtain proper authorization.
Use at Your Own Risk: This software is provided "as is" without warranty. While we strive for accuracy, false positives and false negatives may occur. Always verify threats independently.
If you find this project useful, please consider:
- β Starring the repository on GitHub
- π Reporting issues you encounter
- π‘ Suggesting features you'd like to see
- π€ Contributing code or documentation
- π’ Sharing with others who might benefit
Built with π‘οΈ by privacy advocates, for privacy advocates.
Status: v0.3.0-alpha | MVP Complete | Production Ready | 196 tests passing