You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-25Lines changed: 33 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Missions are grouped into three categories on the Hub:
12
12
13
13
### 🎭 Social Engineering
14
14
#### 1. 🕵️ Phishing Detective
15
-
***Adaptive Difficulty:** Timer adjusts based on your XP rank — 10s (Novice), 7s (Specialist), 5s (Elite Guardian). Difficulty badge shown in the AI label.
15
+
***Adaptive Difficulty:** Timer adjusts based on your XP rank — 30s (Novice), 27s (Specialist), 25s (Elite Guardian). Difficulty badge shown in the AI label.
16
16
***Timed Scenarios:** Countdown per question across 5 curated + 1 AI-generated scenario.
17
17
***Header Inspection:** Click the sender address to reveal raw `Authentication-Results` and `X-Original-Sender` headers.
18
18
***Hover-to-Reveal:** Preview destination URLs to spot domain spoofing (e.g., `amaz0n.in` vs `amazon.in`).
@@ -37,7 +37,7 @@ Missions are grouped into three categories on the Hub:
37
37
38
38
#### 4. 🧩 Malware Escape
39
39
***Incident Response:** Manage "System Health" during an active ransomware outbreak.
40
-
***Terminal Interface:** Type commands (`isolate-network`, `run-antivirus`, `restore-backup`, etc.) into a live console.
40
+
***Terminal Interface:** Type commands (`isolate-network`, `run-antivirus`, `restore-backup`, etc.) into a live console with a clearly separated Execute button.
41
41
***Command History:** Use ↑/↓ arrow keys to navigate previous commands; Tab for auto-complete.
42
42
***Glitch Effect:** The UI visually degrades when System Health drops below 40.
43
43
***Safety Protocols:** Actionable security tips shown at mission end.
@@ -55,7 +55,7 @@ Missions are grouped into three categories on the Hub:
55
55
***Completion Screen:** Deep Dive (Adobe 2013 breach, Collection #1 2019) and safety protocols shown at mission end.
56
56
***XP Lock:** Requires 50 XP to unlock.
57
57
58
-
#### 7. 🚨 Incident Response Simulator*(New)*
58
+
#### 7. 🚨 Incident Response Simulator
59
59
***Branching Scenario Tree:** Navigate a realistic multi-step corporate breach — from a phishing email through credential theft, ransomware deployment, and regulatory reporting.
60
60
***Consequence Engine:** Every decision has an immediate consequence shown before the next scene loads. Wrong calls add to the Breach Damage meter.
61
61
***Breach Damage Meter:** A 0–100% damage bar tracks cumulative harm from poor decisions across the scenario.
@@ -65,18 +65,18 @@ Missions are grouped into three categories on the Hub:
65
65
***XP Lock:** Requires 100 XP to unlock.
66
66
67
67
### 🛠️ Tools & Knowledge
68
-
#### 8. ⚡ Daily Challenge*(New)*
68
+
#### 8. ⚡ Daily Challenge
69
69
***One Question Per Day:** A single scenario-based question drawn from a 12-question pool (Phishing, Social Engineering, Password, Malware, Smishing, MFA, Dark Web, Quishing) — seeded deterministically so every player gets the same question each day.
70
70
***30-Second Timer:** Faster correct answers earn more XP (up to 30 XP; wrong answers earn 5 XP).
71
71
***Daily Leaderboard:** Top-10 scores for the current day stored in Firestore under `dailyScores/{dateKey}/players`.
72
72
***Already-Played State:** Shows a live countdown to the next challenge if you've already completed today's question.
73
73
***Explanation Panel:** After answering, the correct answer and a detailed explanation are revealed.
74
74
75
75
#### 9. 📱 Smishing Simulator
76
-
***Mobile Interface:**Identify malicious SMS messages within a realistic phone frame.
77
-
***Drag-and-Drop:** Drag SMS bubbles into "Scam" or "Safe" bins, or use the on-screen buttons.
78
-
***Quishing (QR Phishing):** Some messages contain mock QR codes — tap to reveal the hidden malicious URLbefore deciding.
79
-
***Completion Screen:**Score summary, grade, Deep Dive (FluBot 2021, USPS scam wave) and safety protocols shown at mission end.
76
+
***Two-Column Layout:**Phone frame on the left, Scam/Safe drop bins and feedback on the right — everything visible without scrolling.
77
+
***Drag-and-Drop:** Drag SMS bubbles into "Scam" or "Safe" bins, or click the bins directly.
78
+
***Quishing (QR Phishing):** Some messages contain mock QR codes — click "🔍 Click to reveal hidden URL" to inspect the destination before deciding. Safe links show `https://`, scam links use `http://` or suspicious domains.
79
+
***Completion Screen:**Replaces the game layout entirely — shows score, grade, collapsible Deep Dive (FluBot 2021, USPS scam wave), and safety protocols. Title updates to "📱 Smishing Simulation Complete".
80
80
81
81
#### 10. 🧪 Mission Creator
82
82
***Custom Scenario Builder:** Fill in Sender, Subject, Body, and Link fields with a live email preview pane.
@@ -95,7 +95,7 @@ Missions are grouped into three categories on the Hub:
95
95
96
96
***Frontend:** HTML5, CSS3 (Retro-Cyberpunk aesthetic with CRT effects, scanlines, and neon animations). Fully responsive with mobile media queries (`<600px`, `601–900px`).
97
97
***Database & Auth:****Firebase** (Firestore for XP/Leaderboard/Daily Scores and Firebase Auth for Email/Password + Google Sign-In).
98
-
***Audio Engine:****Web Audio API**for an immersive soundscape — procedurally generated success, error, and click sounds, plus a full ambient cyberpunk music engine with bass drone, mid pad, and rhythmic pulse.
98
+
***Audio Engine:****Web Audio API** — procedurally generated success, error, and click sounds, plus two selectable ambient music tracks (Cyberpunk and Dark Ambient) with reverb, arpeggios, kick/hihat rhythm, and LFO modulation.
99
99
***Logic:** Modular ES6+ JavaScript.
100
100
***AI Integration:** OpenRouter API (Mistral-7B) for live phishing scenario generation with a local fallback engine.
101
101
***Adaptive Learning:**`adaptive.js` engine delivers difficulty scaling (timer, extra steps) and actionable safety protocols based on user XP rank.
@@ -108,27 +108,30 @@ Missions are grouped into three categories on the Hub:
108
108
| :--- | :--- |
109
109
|**XP & Leaderboard**| Earn XP for every successful mission and climb the global top-5 ranks (stored in Firestore). |
110
110
|**Rank System**| Novice (0 XP) → Specialist (100 XP) → Elite Guardian (500 XP), with a progress bar. |
111
-
|**Adaptive Difficulty**| Timer and scenario complexity scale with XP rank. Novice: 10s timer. Specialist: 7s + extra social engineering steps. Elite: 5s + extra steps. |
111
+
|**Adaptive Difficulty**| Timer and scenario complexity scale with XP rank. Novice: 30s timer. Specialist: 27s + extra social engineering steps. Elite: 25s + extra steps. |
|**Mission Locks**| Dark Web (50 XP), AI Crime Lab (75 XP), Incident Response (100 XP), Mission Creator (150 XP). Locked missions show a 🔒 overlay with the required XP. |
114
-
|**Unlock Toasts**| When you earn enough XP to unlock a mission or feature, an animated toast notification appears. |
114
+
|**🔔 Notification Bell**| When you earn enough XP to unlock a mission or feature, a red badge appears on the 🔔 bell icon in the top bar. Click it to see all unlocks — no intrusive popups. Mark all as read to clear the badge. |
115
115
|**Hard Mode**| Unlocked at 300 XP — all missions run at Elite difficulty. |
116
-
|**Mission Completion Tracker**| Profile panel shows ✅/⬜ status for all 10 missions. |
116
+
|**Mission Completion Tracker**| Profile page shows ✅/⬜ status for all 10 missions. |
117
117
|**Unlocks Panel**| Progress bars in the profile show how close you are to each locked mission/feature. |
118
118
|**Daily Challenge**| One question per day from a 12-scenario pool. Faster answers earn more XP. Daily leaderboard resets at midnight. |
119
119
|**System Health**| Visual health bar during Malware Escape; triggers glitch effects at low health. |
120
120
|**Trust Level**| Real-time gauge of psychological manipulation in Social Engineering. |
121
121
|**Breach Damage Meter**| Tracks cumulative damage from poor decisions in Incident Response. |
122
122
|**Safety Protocols**| Actionable, real-world security tips shown at mission end for all mission categories. |
123
123
|**Deep Dives**| Real-world case studies shown on mission completion screens (Phishing, Social, AI, Malware, Password, Dark Web, Smishing). |
124
-
|**Onboarding Tour**|7-step guided tour on first login with spotlight overlay, progress dots, and skip/back/next controls. Replay anytime via the 🧭 Tour button. |
124
+
|**Onboarding Tour**|6-step guided tour on first login with spotlight overlay, progress dots, and skip/back/next controls. Replay anytime via the 🧭 Tour button. |
125
125
|**How to Play Guide**| Modal shown on first login with mission overview, key features, and pro tips. Accessible anytime via the 🎮 Guide button. |
126
+
|**👤 Profile Page**| Dedicated profile page (`profile.html`) with XP, rank, badges, mission tracker, unlocks progress, and global leaderboard — accessible via the 👤 Profile button in the top bar. |
126
127
|**Share Score**| Share your rank, XP, and missions completed via the Web Share API or clipboard copy. |
127
128
|**Activity Ticker**| Live scrolling feed on the Hub simulating global community activity. |
128
129
|**High Contrast Mode**| Accessibility toggle persisted via `localStorage`. |
129
-
|**Font Size Controls**| A/A/A buttons in the audio bar to switch between small, medium, and large text. Persisted via `localStorage`. |
130
-
|**Audio Controls**| Persistent volume slider, mute button, and ambient music toggle (bottom-right corner, all pages). |
130
+
|**⚙️ Settings Panel**| Gear icon (fixed, top-right) opens a panel with Font Size (Small/Medium/Large dropdown), Music Track selector, Volume slider, Mute button, and Music ON/OFF toggle. All settings persisted via `localStorage`. |
131
+
|**Music Tracks**| Two selectable ambient tracks: ⚡ Cyberpunk (120 BPM minor pentatonic arpeggio + kick/hihat + reverb) and 🌑 Dark Ambient (slow evolving pads + sub-bass + occasional deep thuds). |
132
+
|**Audio Controls**| Volume slider, mute button, music toggle, and track selector — all inside the ⚙️ Settings panel. |
131
133
|**Breadcrumbs**| Auto-injected navigation trail on all mission pages. |
134
+
|**Personalized Greeting**| Hub shows "Hi, [name]!" using `displayName` for Google users or the part before `@` for email/password users. |
132
135
|**ARIA & Accessibility**|`aria-live`, `role="progressbar"`, `role="alert"`, `role="toolbar"`, `aria-label` attributes throughout. `focus-visible` styles and `prefers-reduced-motion` support in CSS. |
133
136
134
137
---
@@ -137,30 +140,31 @@ Missions are grouped into three categories on the Hub:
137
140
138
141
```text
139
142
CyberArena/
140
-
├── hub.html # Mission Hub, User Profile, Achievements & Global Leaderboard
143
+
├── hub.html # Mission Hub — missions only, top bar with Profile & Bell
0 commit comments