Inspiration

Cybersecurity education often feels dry and disconnected from real-world challenges. Traditional methods like lectures, static quizzes, or generic simulations lack personalization and fail to captivate learners. We were inspired by the idea of blending interactive storytelling with cutting-edge AI technology to create a more engaging and effective way to learn cybersecurity. Imagine stepping into a scenario where you are the decision-maker facing a phishing attack or a ransomware crisis—and learning from the consequences of your choices. Our goal was to make cybersecurity education feel like an immersive game while delivering the practical insights of real-world experience.

What It Does

CyberSaga is an open-source, AI-powered platform designed to revolutionize cybersecurity education. It creates personalized, interactive scenarios tailored to a user’s industry (e.g., healthcare, finance), role (e.g., IT admin, executive), and experience level (beginner to advanced). Users dive into realistic challenges like identifying phishing emails or responding to a data breach making decisions at key moments. The AI provides instant feedback, explaining why a choice was right or wrong, and offers “learning moments” to reinforce cybersecurity concepts. After completing a scenario, users take a customized quiz, earn a certificate, and track their progress on a dashboard that highlights strengths and areas for growth.

How We Built It

We crafted CyberSaga with a mix of modern tools and thoughtful design:

  • Frontend: Built with Streamlit for its simplicity and interactivity, creating a user-friendly interface.
  • Backend: Powered by Python, using the Groq LLM API (llama-3.3-70b-versatile model) to generate dynamic scenarios, decision points, and feedback.
  • Modular Components:
    • agent.py: Manages AI-driven scenario generation and decision analysis.
    • scenarios.py: Defines cybersecurity domains like phishing and ransomware.
    • user_profile.py: Handles user data and personalizes content.
    • certificate_generator.py: Generates downloadable certificates using PIL.
  • Data Storage: Local JSON files for lightweight persistence.
  • Design: Custom CSS for a polished, responsive look.

The platform is open-source, downloadable for free, and built to encourage community contributions.

Challenges We Ran Into

Building CyberSaga wasn’t without hurdles:

  • AI Consistency: Getting the AI to produce coherent, educational scenarios required careful prompt tuning and JSON parsing error handling.
  • Personalization: Adjusting scenario difficulty for beginners versus experts was a balancing act to ensure accessibility for all.
  • User Experience: Crafting an intuitive flow in Streamlit that felt immersive yet simple took several design iterations.
  • Performance: Optimizing Groq LLM API calls to avoid lag during scenario generation was critical for a smooth experience.

Accomplishments That We’re Proud Of

We’re thrilled with what we’ve achieved:

  • AI-Driven Personalization: The platform adapts scenarios to each user’s unique context, making learning relevant and engaging.
  • Engaging UI: A clean, responsive Streamlit interface that guides users through complex scenarios effortlessly.
  • Educational Impact: Real-time feedback and learning moments help users not just act, but understand cybersecurity principles.
  • Open-Source Spirit: We’ve created a free, community-friendly tool that aligns with the ethos of sharing knowledge.

What We Learned

This project taught us a ton:

  • Prompt Engineering: How to shape LLM prompts for structured, educational outputs.
  • Streamlit Power: Using Streamlit’s features for rapid prototyping and interactivity.
  • Cybersecurity Education: How to teach complex topics through hands-on, experiential learning.
  • Design Thinking: Iterating based on user needs to make the platform accessible to diverse audiences.

What’s Next for CyberSaga

We’re excited to take CyberSaga further:

  • More Scenarios: Add domains like IoT security, cloud threats, and secure coding.
  • Collaboration: Introduce team-based challenges and forums for peer discussion.
  • Analytics: Enhance progress tracking with detailed insights and custom learning paths.
  • Integration: Explore LMS compatibility and APIs for wider educational reach.

Built With

  • aiagents
  • genai
  • groq
  • llama
  • streamlit
+ 248 more
Share this project:

Updates