Skip to content

About

Enterprise Visitor & Identity Access Management (VAMS) platform featuring HMAC-SHA256 cryptographic passes, Edge AI checkpoint HUD, IoT turnstile webhooks, and an adversarial Q-Learning checkpoint simulation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

๐Ÿ›ก๏ธ GatePass Pro (Nexus GPMS)

Enterprise Physical Identity & Visitor Access Management System (VAMS) with Edge AI Vision Checkpoint Terminal and Adversarial Reinforcement Learning Simulator.

PHP MariaDB JavaScript Security AI


๐Ÿ“Œ Executive Overview

GatePass Pro is a physical security management platform combining Enterprise Access Control (VAMS) with an AI Checkpoint Simulation Game.

It transitions conventional, paper-bound security checkpoints into a cryptographic zero-trust perimeter utilizing collision-resistant HMAC-SHA256 digital tokens, live Edge AI optical recognition HUDs, IoT turnstile telemetry webhooks, and an interactive Q-Learning adversarial checkpoint trainer.


๐Ÿ›๏ธ System Architecture

graph TD
    subgraph Public Portal
        A[Visitor Self-Registration] -->|E-Signature & Host Selection| B[Digital NDA Engine]
        B -->|Issue Collision-Resistant Pass| C[HMAC-SHA256 Token Generator]
    end

    subgraph Security Perimeter
        C -->|Encrypted QR Payload| D[Edge AI Checkpoint Terminal]
        D -->|WebRTC Camera Stream| E[jsQR Optical Engine]
        D -->|Facial Landmark Scan| F[Biometric Matcher HUD]
        D -->|Vehicle Tag Scan| G[ALPR Plate Recognition]
    end

    subgraph Hardware & Backend Services
        D -->|Verify Signature| H[API: verify-pass.php]
        H -->|Constant-Time Check| I[(MariaDB Database)]
        J[IoT Gate Barriers / RFID] -->|Status Webhook| K[API: turnstile-webhook.php]
        K --> I
        L[Temporal Background Daemon] -->|Scan Expired Visitors| M[API: overstay-engine.php]
        M -->|Escalate Threat Level| N[Alert Posture Engine]
    end

    subgraph Adversarial Game Engine
        O[Gatekeeper AI Sim] -->|LLM Procedural Agents| P[Forensic Tests: UV/Bio/ALPR/HMAC]
        P -->|Accuracy Telemetry| Q[Q-Learning Difficulty Agent]
        Q -->|Dynamic Reward Balancing| R[Global Leaderboard API]
    end
Loading

โœจ Core Feature Highlights

1. ๐Ÿ” Cryptographic Pass Issuance & Zero-Trust Verification

  • HMAC-SHA256 Digital Sealing: Passes are cryptographically signed over (pass_number, idcardno, todate, category) using an enterprise secret key.
  • Tamper Proofing: Modifying expiration dates, altering categories, or swapping badges invalidates the cryptographic hash instantly via hash_equals().
  • High-Density Encrypted QR: Embeds full security clearance metadata, visitor identity, host approval, and digital hash into a scannable token.

2. ๐Ÿ‘๏ธ Edge AI & Computer Vision Checkpoint Terminal

  • In-Browser WebRTC Optical Scanner: Scans QR codes from physical paper passes or mobile screens at sub-100ms latency.
  • Biometric Facial Recognition HUD: Real-time facial bounding box detector, feature extractor animation, and confidence percentage matching.
  • ALPR (Automated License Plate Recognition): Optical vehicle plate verification against travel manifests.
  • Rapid Operator Dispatch: Single-click access approval, security escalation, or check-out clearance.

3. ๐ŸŒ IoT Hardware & Turnstile Webhook Controller

  • Turnstile Integration API: Standardized JSON webhooks for hardware barriers, optical flap gates, and solenoid locks (ENTRY_GATE_01, EXIT_GATE_01, VIP_LOBBY_01).
  • Enforced State Machine: Prevents double-entry and unauthorized exit (Approved โž” Checked-In โž” Checked-Out).

4. โฑ๏ธ Overstay Anomaly Detection Engine

  • Temporal Background Scanner: Identifies visitors remaining in secure facilities beyond authorized pass expiration.
  • Dynamic Threat Posture: Automatically recalculates site security threat levels (GREEN โž” AMBER โž” RED) based on active security alerts and breaches.

5. โœ๏ธ Self-Service Pre-Registration & Digital NDA Portal

  • Digital NDA Signature Pad: Touch/stylus/mouse HTML5 canvas signature capture with Base64 PNG encryption.
  • Instant Digital Dossier: Visitors generate their own authenticated pass with printable badge layout before physical arrival.

6. ๐ŸŽฎ "Gatekeeper" Adversarial Checkpoint AI Simulator

  • Adversarial Agent Personas: Procedurally generated diplomatic delegates, undercover spies, and rogue contractors with deceptive dialogue.
  • Forensic Inspection Tools:
    • ๐Ÿ”ฆ UV Lamp: Exposes hidden watermarks or missing fluorescent seals.
    • ๐Ÿงฌ Biometric Sensor: Cross-references retina and face data against registry records.
    • ๐Ÿš— Vehicle Plate Matcher: Flags fake or unlisted license plates.
    • ๐Ÿ”‘ HMAC Cryptographic Verifier: Mathematically validates digital signatures.
  • Q-Learning RL Difficulty Controller:
    • Real-time Reinforcement Learning algorithm ($Q(s, a) \leftarrow Q(s, a) + \alpha [R + \gamma \max Q(s', a') - Q(s, a)]$) that dynamically scales adversary deception based on player accuracy.
    • Live Q-Table Telemetry HUD displaying state-action values.

๐Ÿ”Œ REST API Endpoints

Endpoint Method Description
/api/verify-pass.php POST Validates HMAC signature, clearance level, and pass validity.
/api/checkpoint-action.php POST Records operator action (CHECKIN, CHECKOUT, FLAGGED, TURNSTILE_ENTRY).
/api/turnstile-webhook.php POST Hardware turnstile webhook to unlock barriers or trigger lockouts.
/api/overstay-engine.php GET/POST Scans active visitors, flags overstay anomalies, and returns telemetry.
/api/telemetry.php GET Live dashboard metrics feed (active visitors, alerts, threat level).
/api/leaderboard.php GET/POST Retrieves and submits Gatekeeper Simulator high scores.

๐Ÿ› ๏ธ Tech Stack

  • Backend: PHP (Object-Oriented & Procedural Architecture)
  • Database: MariaDB / MySQL
  • Frontend: Vanilla JavaScript (ES6+), HTML5 Canvas, Modern CSS Glassmorphism
  • Libraries / Protocols:
    • jsQR.js โ€” Client-side camera QR barcode processing
    • qrcode.js โ€” Client-side cryptographic QR generation
    • FontAwesome 6 & Google Fonts (Poppins, Orbitron, Share Tech Mono)

๐Ÿš€ Getting Started

Prerequisites

  • XAMPP (Apache 2.4+ and MariaDB 10.4+)
  • PHP 7.4 or PHP 8.x

Installation Steps

  1. Clone the Repository

    git clone https://github.com/<your-username>/gatepass-pro.git
  2. Move into your local web root

    # Move into XAMPP htdocs
    mv gatepass-pro C:/xampp/htdocs/getpass
  3. Database Setup

    • Start Apache and MySQL via XAMPP Control Panel.
    • Open http://localhost/phpmyadmin/.
    • Create a new database named getpassdb.
    • Import the file:
      c:/xampp/htdocs/getpass/database/getpassdb.sql
    • Alternatively, navigate to:
      http://localhost/getpass/database/migrate.php
      
      to auto-execute schema migrations and seed pre-configured records.
  4. Verify Database Configuration

    • Inspect db.php:
      define('DB_SERVER', 'localhost');
      define('DB_USERNAME', 'root');
      define('DB_PASSWORD', '');
      define('DB_NAME', 'getpassdb');
  5. Launch the System


๐Ÿ”‘ Default Credentials & Test Passes

Administrator Credentials

  • Username: admin
  • Password: admin

Pre-Seeded Passes for Demonstration

  • Pass #918237465 โ€” Dr. Vikramaditya Rao
    (Clearance: Secret โ€ข ALPR: DL-08-AX-9942 โ€ข Valid HMAC signature)
  • Pass #845920138 โ€” Elena Rostova
    (Clearance: VIP Delegate โ€ข ALPR: DL-04-CX-8192 โ€ข Valid HMAC signature)
  • Pass #682109789 โ€” Ram Kumar
    (Flagged / Overstay Anomaly โ€ข Expired pass to demonstrate temporal alarm)

๐Ÿ“„ License

This project is open-source and available under the MIT License.

About

Enterprise Visitor & Identity Access Management (VAMS) platform featuring HMAC-SHA256 cryptographic passes, Edge AI checkpoint HUD, IoT turnstile webhooks, and an adversarial Q-Learning checkpoint simulation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages