Open-source Android app for detecting SS7/cellular network attacks through indirect monitoring.
β οΈ Note: This is a detection tool, NOT a protection tool. It cannot block SS7 attacks or prevent IMSI capture.
SS7 (Signaling System 7) vulnerabilities allow attackers to:
- π Track your location via silent SMS pings
- π Intercept calls and SMS through network manipulation
- πΆ Force 2G downgrades to exploit weaker encryption
- π Clone your identity via IMSI harvesting
SS7 Guardian uses publicly available Android APIs to detect anomalies suggesting an attack.
| Dashboard | Alert | Settings |
|---|---|---|
| Coming Soon | Coming Soon | Coming Soon |
| Threat | Detection Method | Root Required |
|---|---|---|
| IMSI Catcher | Cell tower anomaly analysis | β No |
| 2G Downgrade Attack | Network type monitoring | β No |
| Silent SMS (Class 0) | Broadcast receiver | β No |
| Location Tracking | Cell change frequency | β No |
| Stingray Detection | Signal strength analysis | β No |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SS7 Guardian β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β ββββββββββββββββββ ββββββββββββββββββ ββββββββββββββββββ β
β β Cell Monitor β βNetwork Monitor β β SMS Monitor β β
β β β’ Cell ID/LAC β β β’ Network Type β β β’ Class 0 SMS β β
β β β’ Signal RSSI β β β’ 2G Detection β β β’ WAP Push β β
β β β’ MCC/MNC β β β’ Downgrade β β β’ Binary SMS β β
β βββββββββ¬βββββββββ βββββββββ¬βββββββββ βββββββββ¬βββββββββ β
β βββββββββββββββββββββΌββββββββββββββββββββ β
β βΌ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Anomaly Detection Engine β β
β β β’ Baseline Learning β’ Pattern Matching β β
β β β’ Threat Scoring β’ Historical Analysis β β
β βββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββ β
β βΌ β
β ββββββββββββββββββ ββββββββββββββββββ ββββββββββββββββββ β
β β Alert System β β Local Database β β Trust Scoring β β
β β β’ Notificationsβ β β’ Cell History β β β’ Tower Trust β β
β β β’ Threat Level β β β’ Events Log β β β’ Risk Assess β β
β ββββββββββββββββββ ββββββββββββββββββ ββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
For detailed architecture documentation, see docs/ARCHITECTURE.md.
- Android Studio Hedgehog (2023.1.1) or newer
- JDK 11 or newer
- Android SDK 34
- An Android device or emulator (API 26+)
# Clone the repository
git clone https://github.com/nabz0r/SS7-Guardian.git
cd SS7-Guardian
# Build debug APK
./gradlew assembleDebug
# Install on connected device
adb install app/build/outputs/apk/debug/app-debug.apkOr simply open the project in Android Studio and click Run.
SS7-Guardian/
βββ app/
β βββ src/main/
β β βββ java/com/ss7guardian/
β β β βββ data/ # Data layer
β β β β βββ dao/ # Room DAOs
β β β β βββ entity/ # Database entities
β β β β βββ repository/ # Repository pattern
β β β β βββ AppDatabase.kt # Room database
β β β βββ monitor/ # Detection monitors
β β β β βββ CellMonitor.kt # Cell tower monitoring
β β β β βββ NetworkMonitor.kt # Network type monitoring
β β β β βββ SmsMonitor.kt # SMS monitoring
β β β βββ receiver/ # Broadcast receivers
β β β β βββ BootReceiver.kt # Auto-start on boot
β β β β βββ SmsReceiver.kt # SMS interception
β β β βββ service/ # Background services
β β β β βββ AlertManager.kt # Notification handling
β β β β βββ GuardianService.kt # Main monitoring service
β β β βββ ui/ # User interface
β β β β βββ adapter/ # RecyclerView adapters
β β β β βββ MainActivity.kt # Main screen
β β β βββ util/ # Utility classes
β β β β βββ DateUtils.kt # Date formatting
β β β β βββ NetworkUtils.kt # Network type utils
β β β β βββ PermissionUtils.kt # Permission helpers
β β β βββ SS7GuardianApp.kt # Application class
β β βββ res/ # Resources
β β βββ layout/ # XML layouts
β β βββ drawable/ # Icons and shapes
β β βββ values/ # Colors, strings, themes
β βββ build.gradle.kts # App build config
βββ docs/ # Documentation
β βββ ARCHITECTURE.md # Technical architecture
β βββ SECURITY.md # Security policy
βββ gradle/ # Gradle wrapper
βββ build.gradle.kts # Root build config
βββ settings.gradle.kts # Project settings
βββ CONTRIBUTING.md # Contribution guide
βββ LICENSE # MIT License
βββ README.md # This file
- π‘ Continuous monitoring of connected cell towers
- π Historical database of known trusted towers
- π Detection of new/unknown towers
- π Signal strength anomaly detection
- π― Trust score algorithm for towers
- πΆ Real-time network type monitoring (5G/4G/3G/2G)
β οΈ Alerts on forced 2G downgrades- π Option to auto-disable 2G (Android 12+)
- π¬ Detection of Class 0 (Flash) SMS
- π² WAP Push notification monitoring
- π’ Binary SMS detection
IMSI catchers (Stingrays) typically exhibit:
- Unusually strong signal - Overpowering legitimate towers
- New Cell ID - Not in historical database
- Rapid handoffs - Forcing reconnection
- Missing neighbors - Real towers broadcast neighbor lists
Normal: LTE (4G) βββββββββββββββββββββββββΊ LTE (4G)
Attack: LTE (4G) βββΊ [Jamming] βββΊ GSM (2G) β οΈ ALERT
2G uses A5/1 encryption which can be cracked in real-time, enabling call/SMS interception.
Trust Score = Base(0.5) + Observation Bonus + Age Bonus
// More observations + older tower = higher trust| Level | Color | Meaning | Action |
|---|---|---|---|
| 0 | π’ Green | Safe - No anomalies | None needed |
| 1 | π‘ Yellow | Low - Minor anomaly | Monitor |
| 2 | π Orange | Medium - Multiple indicators | Investigate |
| 3 | π΄ Red | High - Strong attack indicators | Take precautions |
| 4 | β« Black | Critical - Active attack likely | Avoid sensitive comms |
- π No data leaves your device by default
- π All processing happens locally
- π SQLite database stored in private app storage
- π« No analytics or tracking
- ποΈ Open source - verify our claims
Contributions are welcome! Please read our Contributing Guide before submitting PRs.
Areas we need help:
- π§ͺ Testing on different devices
- π Translations
- π± UI/UX improvements
- π¬ Detection algorithm refinement
SS7 Guardian provides detection, not protection. It cannot:
- Block SS7 attacks
- Prevent IMSI capture
- Encrypt your communications
- Guarantee detection of all attacks
Always use additional security measures for sensitive communications.
- EFF: IMSI Catchers Explained
- SRLabs: SnoopSnitch
- 3GPP TS 23.040 - SMS Protocol Specification
- Project Architecture
- Security Policy
This project is licensed under the MIT License - see the LICENSE file for details.
Made with β€οΈ for privacy advocates
Report Bug β’
Request Feature