CyberSec Lab adalah platform edukasi keamanan aplikasi web yang berbentuk simulasi "rumah" untuk belajar tentang vulnerability dan cara mitigasinya secara legal dan aman.
- Penjelasan tujuan website
- Disclaimer legal & edukasi
- Tombol "Mulai Simulasi"
- 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
- 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
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
- Node.js >= 14.x
- npm >= 6.x
- Clone atau extract project
cd cybersec-lab- Install dependencies
cd backend
npm install- Jalankan server
npm start- Buka browser
http://localhost:3000
# Backend dengan hot reload
npm run dev
# Frontend (serve static files)
# Gunakan Live Server di VSCode atau serve- Brute Force Simulation: Simulasi login berulang dengan rate limiting
- Weak Password: Demonstrasi password lemah
- Session Hijacking: Simulasi session management
- SQL Injection (Reflected): Input form dengan simulated SQLi
- XSS (Cross-Site Scripting): Demonstrasi XSS reflected & stored
- Command Injection: Simulasi command injection (sandbox)
- SQL Injection (Union Based): Simulasi UNION-based SQLi
- Data Exposure: Demonstrasi data leakage
- Privilege Escalation: Simulasi privilege escalation
- Directory Traversal: Virtual filesystem traversal
- Malicious File Upload: Simulasi file upload vulnerability
- Permission Misconfiguration: File permission issues
- Broken Object Level Authorization: IDOR simulation
- Missing Authentication: API tanpa auth
- Rate Limiting: API rate limit demo
- Missing Security Headers: Demo header keamanan
- CORS Misconfiguration: Cross-origin issues
- Debug Mode Enabled: Information leakage
- Website ini HANYA untuk tujuan edukasi
- Tidak mengandung vulnerability nyata
- Semua exploit adalah simulasi/dummy
- Dilarang menggunakan untuk menyerang sistem nyata
- Semua input di-filter dan di-sanitize
- Tidak ada koneksi ke database nyata
- Environment terisolasi
- Logging untuk monitoring
- 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
- Untuk Pemula: Mulai dari level "Beginner"
- Untuk Intermediate: Lanjutkan ke level menengah
- Untuk Advanced: Coba semua modul dan eksperimen
Setiap modul menyediakan:
- Teori vulnerability
- Simulasi aman
- Cara mitigasi
- ReferensiOWASP
- HTML5, CSS3, JavaScript (ES6+)
- No framework (pure JS untuk transparansi)
- CSS Variables untuk theming
- Flexbox/Grid untuk layout
- Node.js + Express.js
- CORS enabled
- Rate limiting
- Input validation
- SQLite (untuk dummy data)
- JSON files (untuk module configs)
Project ini dibuat untuk tujuan edukasi. ไฝฟ็จๆถ่ฏท้ตๅฎๅฝๅฐๆณๅพๆณ่งใ
ingat: Keamanan adalah tanggung jawab bersama. Gunakan pengetahuan dengan bijak! ๐ก๏ธ