Skip to content

gilangrizkyr/CyberSec-Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

CyberSec Lab - Web Pentesting Simulation Lab

๐Ÿ“‹ Deskripsi

CyberSec Lab adalah platform edukasi keamanan aplikasi web yang berbentuk simulasi "rumah" untuk belajar tentang vulnerability dan cara mitigasinya secara legal dan aman.

โš ๏ธ PENTING: Website ini HANYA untuk edukasi. Semua vulnerability adalah dummy/simulasi dan TIDAK menargetkan sistem nyata.

๐ŸŽฏ Fitur Utama

1. Landing Page

  • Penjelasan tujuan website
  • Disclaimer legal & edukasi
  • Tombol "Mulai Simulasi"

2. Dashboard Lab (Interactive House)

  • Tampilan rumah interaktif dengan 6 ruangan:
    • Pintu Depan โ†’ Authentication Security
    • Ruang Tamu โ†’ Input Validation
    • Dapur โ†’ Database Security
    • Kamar Tidur โ†’ File System Security
    • Garasi โ†’ API & Backend Security
    • CCTV Room โ†’ Configuration & Monitoring

3. Modul Pentesting (6 Modules)

  • Authentication: Brute Force, Weak Password, Session Hijacking
  • Input Validation: SQL Injection, XSS, Command Injection
  • Database: SQL Injection, Data Exposure, Privilege Escalation
  • File System: Directory Traversal, File Upload, Permission Issues
  • API Security: Broken Auth, Rate Limiting, Missing Validation
  • Configuration: Security Headers, CORS, Debug Mode

๐Ÿ—๏ธ Struktur Project

cybersec-lab/
โ”œโ”€โ”€ frontend/
โ”‚   โ”œโ”€โ”€ index.html
โ”‚   โ”œโ”€โ”€ dashboard.html
โ”‚   โ”œโ”€โ”€ module.html
โ”‚   โ”œโ”€โ”€ css/
โ”‚   โ”‚   โ”œโ”€โ”€ style.css
โ”‚   โ”‚   โ”œโ”€โ”€ dashboard.css
โ”‚   โ”‚   โ”œโ”€โ”€ module.css
โ”‚   โ”‚   โ””โ”€โ”€ themes.css
โ”‚   โ”œโ”€โ”€ js/
โ”‚   โ”‚   โ”œโ”€โ”€ main.js
โ”‚   โ”‚   โ”œโ”€โ”€ dashboard.js
โ”‚   โ”‚   โ”œโ”€โ”€ module.js
โ”‚   โ”‚   โ””โ”€โ”€ simulations/
โ”‚   โ”‚       โ”œโ”€โ”€ auth.js
โ”‚   โ”‚       โ”œโ”€โ”€ input.js
โ”‚   โ”‚       โ”œโ”€โ”€ database.js
โ”‚   โ”‚       โ”œโ”€โ”€ file.js
โ”‚   โ”‚       โ”œโ”€โ”€ api.js
โ”‚   โ”‚       โ””โ”€โ”€ config.js
โ”‚   โ”œโ”€โ”€ assets/
โ”‚   โ”‚   โ””โ”€โ”€ images/
โ”‚   โ””โ”€โ”€ fonts/
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ server.js
โ”‚   โ”œโ”€โ”€ package.json
โ”‚   โ”œโ”€โ”€ routes/
โ”‚   โ”‚   โ”œโ”€โ”€ api.js
โ”‚   โ”‚   โ”œโ”€โ”€ auth.js
โ”‚   โ”‚   โ””โ”€โ”€ modules.js
โ”‚   โ”œโ”€โ”€ controllers/
โ”‚   โ”‚   โ”œโ”€โ”€ simulationController.js
โ”‚   โ”‚   โ””โ”€โ”€ authController.js
โ”‚   โ”œโ”€โ”€ middleware/
โ”‚   โ”‚   โ””โ”€โ”€ security.js
โ”‚   โ””โ”€โ”€ data/
โ”‚       โ”œโ”€โ”€ modules.json
โ”‚       โ””โ”€โ”€ dummyData.json
โ”œโ”€โ”€ docs/
โ”‚   โ”œโ”€โ”€ LEGAL_NOTES.md
โ”‚   โ”œโ”€โ”€ SECURITY_NOTES.md
โ”‚   โ””โ”€โ”€ CONTRIBUTING.md
โ””โ”€โ”€ README.md

๐Ÿš€ Cara Menjalankan

Prerequisites

  • Node.js >= 14.x
  • npm >= 6.x

Installation

  1. Clone atau extract project
cd cybersec-lab
  1. Install dependencies
cd backend
npm install
  1. Jalankan server
npm start
  1. Buka browser
http://localhost:3000

Untuk Development

# Backend dengan hot reload
npm run dev

# Frontend (serve static files)
# Gunakan Live Server di VSCode atau serve

๐Ÿ“š Modul yang Tersedia

๐Ÿ” Authentication (Pintu Depan)

  • Brute Force Simulation: Simulasi login berulang dengan rate limiting
  • Weak Password: Demonstrasi password lemah
  • Session Hijacking: Simulasi session management

๐Ÿ“ Input Validation (Ruang Tamu)

  • SQL Injection (Reflected): Input form dengan simulated SQLi
  • XSS (Cross-Site Scripting): Demonstrasi XSS reflected & stored
  • Command Injection: Simulasi command injection (sandbox)

๐Ÿ—„๏ธ Database (Dapur)

  • SQL Injection (Union Based): Simulasi UNION-based SQLi
  • Data Exposure: Demonstrasi data leakage
  • Privilege Escalation: Simulasi privilege escalation

๐Ÿ“ File System (Kamar Tidur)

  • Directory Traversal: Virtual filesystem traversal
  • Malicious File Upload: Simulasi file upload vulnerability
  • Permission Misconfiguration: File permission issues

๐Ÿ”Œ API & Backend (Garasi)

  • Broken Object Level Authorization: IDOR simulation
  • Missing Authentication: API tanpa auth
  • Rate Limiting: API rate limit demo

โš™๏ธ Configuration (CCTV Room)

  • Missing Security Headers: Demo header keamanan
  • CORS Misconfiguration: Cross-origin issues
  • Debug Mode Enabled: Information leakage

๐Ÿ”’ Keamanan & Legal

Disclaimer

  • Website ini HANYA untuk tujuan edukasi
  • Tidak mengandung vulnerability nyata
  • Semua exploit adalah simulasi/dummy
  • Dilarang menggunakan untuk menyerang sistem nyata

Sandbox Environment

  • Semua input di-filter dan di-sanitize
  • Tidak ada koneksi ke database nyata
  • Environment terisolasi
  • Logging untuk monitoring

๐ŸŽจ UI/UX Features

  • Tema Dark Cyber: Desain sesuai tema hacker/security
  • Animasi Interaktif: Efek hover dan klik pada rumah
  • Progress Tracking: Progress bar pembelajaran
  • Real-time Feedback: Output simulasi langsung
  • Responsive Design: Support desktop & mobile
  • Tooltip Edukasi: Penjelasan setiap elemen

๐Ÿ“– Penggunaan untuk Edukasi

  1. Untuk Pemula: Mulai dari level "Beginner"
  2. Untuk Intermediate: Lanjutkan ke level menengah
  3. Untuk Advanced: Coba semua modul dan eksperimen

Setiap modul menyediakan:

  • Teori vulnerability
  • Simulasi aman
  • Cara mitigasi
  • ReferensiOWASP

๐Ÿ› ๏ธ Tech Stack

Frontend

  • HTML5, CSS3, JavaScript (ES6+)
  • No framework (pure JS untuk transparansi)
  • CSS Variables untuk theming
  • Flexbox/Grid untuk layout

Backend

  • Node.js + Express.js
  • CORS enabled
  • Rate limiting
  • Input validation

Database

  • SQLite (untuk dummy data)
  • JSON files (untuk module configs)

๐Ÿ“„ Lisensi

Project ini dibuat untuk tujuan edukasi. ไฝฟ็”จๆ—ถ่ฏท้ตๅฎˆๅฝ“ๅœฐๆณ•ๅพ‹ๆณ•่ง„ใ€‚


ingat: Keamanan adalah tanggung jawab bersama. Gunakan pengetahuan dengan bijak! ๐Ÿ›ก๏ธ

Web-application-penetration-testing

About

Still in the repair stage, keep monitoring to get extraordinary information

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors