A comprehensive, interactive security access control simulator built with Next.js, React, and TypeScript. This application demonstrates various authentication mechanisms, attack simulations, and defense strategies for educational purposes.
This Access Control System Simulator is an educational tool designed to demonstrate:
- Multiple authentication methods (PIN, Badge, Fingerprint)
- Security attack simulations (Brute Force, Badge Cloning, Terminal Attacks)
- Defense mechanisms and security monitoring
- Real-time access logging and statistics
- Interactive building visualization with floor plans
- PIN Code Authentication: Secure PIN-based access control
- Badge Authentication: RFID badge scanning system
- Fingerprint Authentication: Biometric access control
- Multi-Factor Authentication: Combined PIN + Badge verification
- Attack Simulation Panel: Test various security attacks
- Brute Force attacks
- Badge cloning detection
- Terminal-based attacks
- Social engineering attempts
- Defense Mechanisms:
- Maximum attempt limits
- Alarm system with audio alerts
- Cloned badge detection
- Access logging and monitoring
- Real-time Monitoring:
- Access logs with timestamps
- Security alerts
- Attack detection logs
- Statistics dashboard
- Building Visualization: Interactive 4-floor building layout
- Access Control Panel: Main control interface
- Statistics Dashboard: Visual analytics and reports
- Dark/Light Mode: Theme support
- Responsive Design: Works on desktop, tablet, and mobile devices
Before you begin, ensure you have the following installed:
-
Node.js: Version 18.0 or higher
- Download from: https://nodejs.org/
- Verify installation:
node --version
-
npm: Version 9.0 or higher (comes with Node.js)
- Verify installation:
npm --version
- Verify installation:
-
Git: (Optional, for version control)
- Download from: https://git-scm.com/
If you have the project files, navigate to the project directory:
cd access-control-simulatorInstall all required packages using npm:
npm installThis will install all dependencies listed in package.json, including:
- Next.js 16.0.10
- React 19.2.0
- TypeScript 5
- Tailwind CSS 4.1.9
- And other required packages
Note: This process may take a few minutes depending on your internet connection.
Check that all dependencies are installed correctly:
npm list --depth=0Start the development server:
npm run devThe application will be available at:
- Local: http://localhost:3000
- Network: http://[your-ip]:3000
To create an optimized production build:
npm run buildTo start the production server:
npm start- Linting:
npm run lint- Check code for errors - Type Checking: The project uses TypeScript for type safety
access-control-simulator/
βββ app/ # Next.js app directory
β βββ layout.tsx # Root layout with metadata
β βββ page.tsx # Home page
β βββ globals.css # Global styles
β βββ syscontrol/ # System control page
β β βββ page.tsx
β βββ welcome/ # Welcome/floor plan page
β βββ page.tsx
βββ components/ # React components
β βββ access-control-simulator.tsx # Main simulator component
β βββ theme-provider.tsx # Theme management
β βββ ui/ # UI component library
β βββ button.tsx
β βββ card.tsx
β βββ ... (other UI components)
βββ public/ # Static assets
β βββ music/ # Audio files
β βββ ... (icons and images)
βββ lib/ # Utility functions
β βββ utils.ts
βββ hooks/ # Custom React hooks
βββ styles/ # Additional stylesheets
βββ next.config.mjs # Next.js configuration
βββ package.json # Project dependencies
βββ tsconfig.json # TypeScript configuration
βββ README.md # This file
- Start the development server (see Running the Project)
- Open your browser and navigate to
http://localhost:3000 - You'll see the main building visualization
- View the 4-floor building layout
- Each floor represents different departments:
- 4th Floor: Data Center
- 3rd Floor: IT Department
- 2nd Floor: Management & HR
- 1st Floor: Marketing Department
- Navigate to
/syscontrolor click "System Control" - Choose authentication method:
- Simple Mode: PIN or Badge
- Advanced Mode: PIN + Badge (Multi-factor)
- Fingerprint: Biometric authentication
PIN Codes:
123456789999
Badge IDs:
BADGE001BADGE002BADGE003
- Click the "Attaques" (Attacks) button
- Select an attack type to simulate:
- Brute Force: Automated PIN guessing
- Badge Cloning: Attempt to clone a badge
- Terminal Attack: Command-line based attack
- Social Engineering: Phishing attempts
- Enable "DΓ©fenses" (Defenses) toggle
- System will detect and block:
- Cloned badges (ending with
_CLONE) - Multiple failed attempts (max 3)
- Suspicious activities
- Cloned badges (ending with
- View real-time access logs
- Download logs as CSV files
- View statistics dashboard
- Filter logs by type (Access, Security, Attacks)
- Next.js 16.0.10: React framework with App Router
- React 19.2.0: UI library
- TypeScript 5: Type-safe JavaScript
- Tailwind CSS 4.1.9: Utility-first CSS framework
- Radix UI: Accessible component primitives
- Lucide React: Icon library
This simulator is designed for educational purposes to demonstrate:
- Access control system concepts
- Security vulnerabilities and attacks
- Defense mechanisms
- Real-world security scenarios
- Authentication Methods: Multiple ways to verify identity
- Security Vulnerabilities: How systems can be attacked
- Defense Strategies: Methods to protect against attacks
- Logging & Monitoring: Importance of security logs
- Multi-Factor Authentication: Enhanced security through multiple verification steps
- Test all authentication methods
- Attempt various attacks and observe defenses
- Analyze access logs and statistics
- Modify valid credentials in the code
- Add new attack types or defense mechanisms
This project is for educational purposes.
Amine Brihi | Aarafat El Hajjaji | Ayman Elmannany
Access Control System Simulator - Educational Project
