A web-based SOC (Security Operations Center) Analyst Training Simulator where users role-play as security analysts responding to realistic cyber security incidents.
website link - https://soc-simulator-black.vercel.app/dashboard
-
Three Realistic Scenarios:
- Phishing Attack Campaign (5 minutes)
- Ransomware Infection (6 minutes)
- Data Exfiltration (7 minutes)
-
Professional Training Interface:
- Incident investigation phase
- Response action selection
- Multiple-choice documentation
- Automated scoring system
-
User Progress Tracking:
- Dashboard with statistics
- Scenario completion status
- Score history
- Average performance metrics
- Node.js 18+ installed
- npm or yarn package manager
- Clone the repository:
git clone <repository-url>
cd soc-simulator- Install dependencies:
npm install- Run the development server:
npm run dev- Username: analyst
- Password: demo123
soc-simulator/
├─��� app/
│ ├── layout.js # Root layout
│ ├── page.js # Login page
│ ├── dashboard/
│ │ └── page.js # Dashboard
│ ├── scenario/
│ │ ├── [id]/
│ │ │ └── page.js # Scenario pages
│ │ └── ...
│ └── api/
│ └── submit/
│ └── route.js # Scoring API
├── components/
│ ├── Navbar.js # Navigation bar
│ ├── ProtectedRoute.js # Auth wrapper
│ └── ...
├── styles/
│ ├── globals.css # Global styles
│ ├── login.css # Login page styles
│ ├── dashboard.css # Dashboard styles
│ └── ...
├── data/
│ ├── scenarios.json # Scenario content
│ ├── questions.json # MCQ questions
│ └── correctAnswers.json # Answer key
└── package.json
- Dark Theme: Professional SOC environment aesthetic
- Color Scheme: Blue, red, orange, and green accents
- Responsive: Works on desktop, tablet, and mobile
- Accessibility: Clear typography and high contrast
Simple login system with hardcoded credentials for demo purposes:
- Username:
analyst - Password:
demo123
User session stored in browser localStorage.
Each scenario is scored out of 100 points:
- Investigation Phase: 25-30 points (auto-awarded)
- Response Actions: 35-40 points (based on correct selections)
- Documentation: 25-30 points (MCQ answers)
Pass Threshold: 70/100
- Frontend: Next.js 14, React 18
- Styling: Plain CSS with CSS variables
- State Management: React hooks (useState, useContext)
- Data Storage: JSON files + localStorage
- Deployment: Vercel
npm run dev -- -p 3001Make sure you're running in a browser environment (not SSR context)
Ensure CSS files are imported in the layout or component
- Login: Use demo credentials (analyst/demo123)
- Dashboard: View active incidents and your progress
- Start Scenario: Click "Start" on any incident
- Investigate: Read the incident briefing and analyze evidence
- Respond: Select appropriate response actions
- Document: Answer multiple-choice questions
- Submit: Get your score and feedback
- Retry: Attempt scenarios again to improve your score
After completing this training, users will understand:
- How to identify phishing attacks
- Ransomware detection and containment
- Data exfiltration indicators
- Incident response procedures
- Security incident documentation
MIT License - See LICENSE file for details
- Add scenario data to
data/scenarios.json - Add questions to
data/questions.json - Create new page at
app/scenario/[new-id]/page.js - Update dashboard to include new scenario
Edit CSS variables in styles/globals.css:
:root {
--bg-primary: #0A0E27;
--accent-info: #0A84FF;
/* ... more variables */
}Contributions are welcome! Please feel free to submit a Pull Request.
For issues or questions, please open an issue on GitHub.
Sancheet Pawar
⭐ If you found this project helpful, please give it a star!
Built with ❤️ for cybersecurity education