NEXUS REMOTE strictly implements defense-in-depth:
- No covert monitoring: All features (camera, screen sharing, file access) require explicit, official Android framework dialogs.
- Object-level backend authorization: Users cannot access or control another user's device by changing IDs in requests.
- No plaintext credentials: Passwords use PBKDF2-HMAC-SHA256 with 200,000 iterations and random salt. Device keys are salted and hashed.
- Immediate revocation: Revoking device access deletes device credentials from the database and closes active WebSocket streams.
Bot Guard (bot-guard-py) executes before router dispatch and authentication handlers:
Incoming Request
|
v
Cloudflare / Reverse Proxy
|
v
Limbo HTTP Server
|
v
BOT GUARD (Pre-Auth)
|
+---+---+
| |
Allowed Suspicious (Blocked/Throttled)
| |
v v
Router Security Event Logged
|
v
Authentication & Authorization
- Trusted Proxy Resolution: Client IP extraction inspects
CF-Connecting-IPorX-Forwarded-Foronly when the immediate peer IP belongs to a pre-configured trusted proxy subnet. - Brute-Force Flood Protection: Token bucket rate limiters protect
/api/v1/auth/login(10/min) and/api/v1/pairing/*(20/min). - Behavioral Scoring: Inspects user agent signatures, CLI tools, headless browser markers, and header anomalies.
- Modes: Configurable between
shadow(observability telemetry) andenforce(blocking requests exceeding policy threshold).
- Pairing codes are 6-character unambiguous alphanumeric strings (
23456789ABCDEFGHJKLMNPQRSTUVWXYZ). - Codes expire automatically after 300 seconds (5 minutes).
- Entering the code in the Web Dashboard marks it
VERIFIED, but association is not created until the physical device user taps Approve on the Android screen.