AI agent that helps students learn cybersecurity through:
- Clear explanations of security concepts
- Auto-generated practice quizzes
- Progress tracking and personalized recommendations
Google AI Agents Intensive Course - Capstone Project
This AI agent serves as a personalized cybersecurity tutor, making security education accessible to beginners. Built with Google's Gemini 2.0 Flash model, it provides interactive learning experiences through three main tools:
- Explain Tool: Breaks down complex security concepts into simple, beginner-friendly explanations
- Quiz Tool: Generates custom practice quizzes on any security topic
- Progress Tool: Tracks learning progress and provides personalized study recommendations
- Python 3.11 or higher
- Google Gemini API key (free at Google AI Studio)
-
Clone the repository
git clone https://github.com/YOUR_USERNAME/security-study-agent.git cd security-study-agent -
Install dependencies
pip install -r requirements.txt
-
Set up API key
- Get your free API key from: https://aistudio.google.com/app/apikey
- Copy
.env.exampleto.env - Add your API key to
.env:GOOGLE_API_KEY=your_actual_api_key_here
-
Run the agent
python agent.py
explain [topic]- Learn about any security topic (e.g.,explain phishing)quiz [topic]- Take a practice quiz (e.g.,quiz passwords)progress- View your learning statisticshelp- Show available commandsquit- Exit the agent
🔐 CYBERSECURITY STUDY ASSISTANT
============================================================
I'm your AI tutor for learning cybersecurity!
You: explain phishing
🤖 Agent: Let me explain phishing...
Phishing is a cyber attack where criminals send fake emails or messages
pretending to be from legitimate companies to trick you into revealing
personal information like passwords or credit card numbers...
💡 Want to test your knowledge? Try: quiz phishing
You: quiz phishing
🤖 Agent: Generating quiz on phishing...
============================================================
Question 1: What is the main purpose of phishing attacks?
A) To encrypt your files
B) To steal personal information
C) To speed up your computer
D) To update your software
Your answer (A/B/C/D): B
✓ Correct!
-
Explain Concept Tool
- Provides simple, beginner-friendly explanations
- Includes real-world examples
- Tracks which topics you've studied
-
Generate Quiz Tool
- Creates custom multiple-choice questions
- Provides immediate feedback
- Tracks quiz scores and accuracy
-
Progress Tracking Tool
- Shows topics studied
- Displays quiz performance statistics
- Provides personalized study recommendations
- Model: Gemini 1.5 Flash (stable and reliable)
- Language: Python 3.11+
- Storage: JSON-based progress tracking
- Track: Agents for Good
security-study-agent/
├── agent.py # Main agent code
├── requirements.txt # Python dependencies
├── .env.example # API key template
├── .gitignore # Git ignore rules
├── README.md # This file
└── study_progress.json # Progress data (auto-generated)
Competition: Google AI Agents Intensive - Capstone Project
Track: Agents for Good
Submission: GitHub repository + demo video
[Link to demo video will be added here]
- ✅ Simple to Build - Clean, well-documented code (~200 lines)
- ✅ Actually Useful - Helps real students learn cybersecurity
- ✅ Easy to Demo - Judges can test it immediately
- ✅ Clear Impact - Educational value for "Agents for Good" track
- ✅ Well-Documented - Complete README and code comments
pip install --upgrade google-generativeai python-dotenv- Ensure
.envfile exists in the project root - Verify API key is correct (no quotes needed)
- Check API key is active at Google AI Studio
- Try a different topic if JSON parsing fails
- Ensure stable internet connection
- API may be rate-limited (wait a moment and retry)
This project is created for the Google AI Agents Intensive Course capstone project.
- Google AI Studio for providing Gemini API
- Google AI Agents Intensive Course
- Cybersecurity education community
Built with ❤️ for cybersecurity education