CellGuard: LTE/5G-NR lock + IMSI-catcher detection KSU module

- cgcap.ko: cpif CP-frame capture via kprobe/kallsyms, stock-GKI build
- ratlock.sh: hold modem to LTE+NR(5G), block 2G/3G downgrade
- cgdetect.sh: always-on behavioral cell-site-simulator detection
- cgctl.sh + WebUI: block/detect toggles, status + alerts
- build-stock-gki.sh: reproducible stock-GKI module build pipeline
This commit is contained in:
sssnake
2026-07-12 09:21:54 -07:00
commit 9a3e3a0501
27 changed files with 3289 additions and 0 deletions

17
sepolicy/cellguard.rule Normal file
View File

@@ -0,0 +1,17 @@
# CellGuard SELinux rules.
# KernelSU-Next usually flips SELinux to permissive, but these let the
# module coexist with enforcing mode too.
# Shannon / modem AT channels
allow su umts_device chr_file { open read write ioctl getattr }
allow su radio_device chr_file { open read write ioctl getattr }
# Our own /dev/cellguard char device
allow su device chr_file { open read write ioctl getattr }
# Insmod / rmmod
allow su kernel system { module_load module_request }
allow su self capability sys_module
# /proc/cellguard/*
allow su proc file { open read getattr }