Skip to content
Shubham-dev-stackPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

CYBERFLIX

The Next-Gen AI Cybersecurity Learning & Interactive Tools Platform

Next.js 16 React 19 TypeScript Tailwind CSS v4 Prisma v7 Jest Tests

Inspired by Netflix content discovery, Apple visual polish, and TryHackMe/Hack The Box gamification.


🌟 Overview

CyberFlix is a state-of-the-art, open-source cybersecurity platform combining cinematic content discovery, real-time security tools, practical CTF lab sandboxes, global leaderboards, structured academy learning paths, and instant AI vulnerability assistance.

Engineered with a zero-trust architecture, Prisma 7 ORM, and a dual-mode AI engine, CyberFlix delivers a seamless, 100% free experience for cybersecurity students, SOC analysts, bug bounty hunters, and ethical hackers to practice and expand their skills.


👥 Authors & Core Contributors

CyberFlix is created and actively maintained by:

  • 👨‍💻 Shubham - Core Architecture, Frontend Design & Database Systems
  • 👨‍💻 Harshit (@harshitthek) - Security Tool Engines, Backend API & Intelligence Integration

🔥 Key Features & Capabilities

🎬 1. Cinematic Netflix-Style Browsing

  • Billboard Hero: High-contrast cybersecurity operations background with multi-directional gradient masks and streaming typography.
  • Horizontal Discovery Rails: Smooth carousels for Trending Tools, Popular Labs, Continue Learning, and Learning Paths.
  • Interactive Card Hover: Elevation, smooth scaling (scale: 1.06), CyberFlix Red ambient glow, and instant metadata overlays.
  • Translucent Minimal Header: Backdrop-blurred navigation header with scroll transitions and debounced global search (⌘K).

🛠️ 2. Live Security Tools Hub (100% Free & Real)

Client and server-side security tools executing real network queries:

  • Port Scanner: Target IP input, scan mode presets, native Node.js socket connection probing (net.Socket).
  • Subdomain Finder: Live Google DNS over HTTPS (DoH) resolution (https://dns.google/resolve) across common subdomains.
  • DNS Lookup: Live DoH authoritative query for A, AAAA, MX, TXT, and NS records.
  • WHOIS Lookup: Real-time Registration Data Access Protocol (RDAP) lookup via https://rdap.org/domain/.
  • Directory Bruteforce: Web URL target input, backend HTTP probe engine checking /admin, /login, /robots.txt, /.env, and /api.
  • Hash Generator: Real-time multi-algorithm hashing (MD5, SHA-1, SHA-256, SHA-512) via Web Crypto API with one-click copy buttons.

🏆 3. Global Leaderboards & User Ranks

  • Competitive Ranking: Real-time global ranking server component querying user currentXp and level progress via Prisma ORM.
  • Cinematic Top-3 Podium: Animated gold, silver, and bronze podium cards powered by Framer Motion.

🧪 4. CTF Lab Arena & Interactive Terminal

  • Lab Sandbox Environment: Real-world scenario briefs, mission objectives, and unlockable hint accordions.
  • Simulated BASH Terminal CLI: Supports terminal commands help, scan, curl, cat flag.txt, exploit, whoami, id, clear.
  • Flag Verification: Instant flag validation (FLAG{...}), completion state toggle, and +XP reward unlocks.
  • Scenarios Offered:
    • ssrf-metadata-extraction - SSRF Cloud Metadata Extraction
    • idor-profile-hijack - Insecure Direct Object Reference
    • sql-injection-fundamentals - SQLi Authentication Bypass
    • xss-reflected-execution - Reflected XSS Cookie Stealer
    • jwt-token-tampering - JWT Signature Forgery
    • linux-privilege-escalation-sudo - Linux Sudo GTFOBins PrivEsc
    • wireshark-pcap-forensics - PCAP Network Analysis
    • buffer-overflow-stack-smash - Binary Stack Smashing

🤖 5. AI Cyber Sentinel Assistant (Dual-Engine)

  • Zero-Cost Streaming: Built-in intelligent streaming engine requiring $0 setup or API keys out of the box.
  • Gemini Integration: Supports Google Gemini 1.5 Flash streaming via Vercel AI SDK when GOOGLE_GENERATIVE_AI_API_KEY is provided.
  • Safety Guardrails: Strict system prompt enforcing defensive guidance and remediation, refusing weaponized exploit requests.

📊 6. Vulnerability Audit Reports & Student Dashboard

  • Audit Dashboard: Security audit logs (REP-2026-0801), risk scores, CVSS ratings, and one-click JSON/CSV exports.
  • Centralized Gamification: XP calculation, Level progress, streak counter, and automatic database sync (store/useUserStore.ts).

🛠️ Tech Stack


📁 Repository Structure

cyberflix/
├── app/                      # Next.js App Router Pages
│   ├── ai/                   # AI Security Assistant (Dual Engine)
│   ├── api/                  # API Endpoints (Auth, Tools Execute, User Progress, AI)
│   ├── browse/               # Streaming Catalog Browser
│   ├── dashboard/            # Student Dashboard & Gamification
│   ├── labs/                 # CTF Lab Sandboxes & Terminal
│   ├── leaderboard/          # Global Leaderboard Page & Podium
│   ├── learn/                # Academy & Career Paths
│   ├── profile/              # User Profile & Achievements
│   ├── reports/              # Vulnerability Reports Dashboard
│   ├── settings/             # Account Settings Page
│   ├── tools/                # Security Tools Hub (Live Engines)
│   ├── layout.tsx            # App Layout & SEO Metadata
│   └── page.tsx              # Netflix Billboard Homepage
├── components/               # UI & Layout Components
├── data/                     # Tools, Labs, Courses, Reports Data
├── lib/                      # Singleton Prisma Client & Constants
├── store/                    # Zustand State & Backend Sync
├── __tests__/                # Jest Unit Test Suites (20 Passing Tests)
└── tests/                    # Playwright E2E Tests

⚡ Getting Started

Prerequisites

Ensure you have Node.js 18.x or higher installed.

Installation

  1. Clone the Repository:

    git clone https://github.com/Shubham-dev-stack/cyberflix.git
    cd cyberflix
  2. Install Dependencies:

    npm install
  3. Configure Environment Variables: Copy .env.example to .env:

    cp .env.example .env
  4. Initialize the Database: Push the Prisma schema to your PostgreSQL database.

    npx prisma db push
    npx prisma generate
  5. Run Development Server:

    npm run dev
  6. Open http://localhost:3000 in your browser.


🧪 Verification & Automated Testing

  • Run Unit Test Suite (Jest):

    npm test

    (Runs 20 automated unit tests covering gamification math, CTF labs data integrity, and tools catalog standards).

  • Run E2E Browser Tests (Playwright):

    npm run test:e2e
  • TypeScript Type Check:

    npx tsc --noEmit

🏗️ System Architecture

graph TD
    Client[Next.js Frontend] --> Zustand[Zustand Global State]
    Client --> Tools[Interactive Tool Engines]
    Client --> Auth[NextAuth.js]
    Client --> AISentinel[AI Sentinel Assistant]
    
    Tools --> DoH[Google DNS over HTTPS]
    Tools --> RDAP[RDAP WHOIS API]
    Tools --> SocketBackend[Node.js net.Socket API]
    
    Auth --> Providers[GitHub / Google OAuth]
    Auth --> Prisma[Prisma ORM 7]
    Prisma --> Postgres[(PostgreSQL DB)]
    
    AISentinel --> Gemini[Google Gemini 1.5 LLM]
    AISentinel --> FreeEngine[Zero-Cost Local Stream Fallback]
Loading

🛡️ Security & Responsible Disclosure

CyberFlix is designed strictly for educational and authorized security training purposes. All security tool engines execute safe network probes or run in client-side Web Crypto API abstractions.

  • No Dangerous Real-World Attack Features: Exploit functionality against unauthorized external targets is strictly blocked.
  • Zero API Key Leakage: No hardcoded API keys, private tokens, or credentials exist within this repository.

📜 License

Distributed under the MIT License.


© 2026 CyberFlix Platform. Created by Shubham & Harshit (@harshitthek).

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages