A comprehensive command-line cybersecurity awareness quiz designed to test and improve knowledge of essential security concepts.
- Interactive CLI Interface: Clean, colorful command-line interface with user-friendly prompts
- Comprehensive Question Bank: Questions covering multiple cybersecurity domains
- Real-time Feedback: Immediate explanations for each answer
- Category Tracking: Performance breakdown by security topic
- Smart Recommendations: Personalized suggestions based on quiz performance
- Progress Tracking: Visual progress indicators and detailed scoring
- Phishing: Email security and phishing attack recognition
- Passwords: Password security best practices
- Social Engineering: Human-based attack vectors
- Malware: Malicious software identification and prevention
- And more... (easily expandable)
- Python
- pip
- Clone or download the project:
git clone <repository-url>
cd SecuQuiz- Install required dependencies:
pip install -r requirements.txt- Run the quiz:
python3 main.pySecuQuiz/
├── main.py #containg program entry point
├── quiz_engine.py # contains Core quiz logic
├── utils.py # Utility functions for display and styling
├── requirements.txt #contain Python dependencies
├── README.md #conatin Project documentation
├── data/
│ └── questions.json #serves as database Quiz question
└── src/
└── question_manager.py # future work
-
Start the Quiz:
python3 main.py
-
Answer Questions: Type A, B, C, or D for each question
-
Review Results: Get immediate feedback and final performance report
-
Learn from Mistakes: Read explanations for each question
Questions are stored in data/questions.json. To add new questions:
- Open
data/questions.json - Add your question following this format:
{
"id": 6,
"category": "network_security",
"question": "What is the purpose of a firewall?",
"options": [
"A) To prevent physical access to computers",
"B) To block unauthorized network traffic",
"C) To encrypt data on hard drives",
"D) To scan for viruses"
],
"correct_answer": "B",
"explanation": "Firewalls monitor and control incoming and outgoing network traffic based on predetermined security rules."
}- Individual Questions: Correct/Incorrect with explanations
- Overall Score: Percentage based on correct answers
- Category Breakdown: Performance analysis by topic
- Recommendations: Suggested focus areas for improvement
colorama: For colored terminal outputjson: For question data management (built-in)os,sys: For system operations (built-in)
- Fork the repository
- Create a feature branch
- Add your questions or improvements
- Test thoroughly
- Submit a pull request
When adding questions:
- Keep questions clear and concise
- Provide accurate, educational explanations
- Cover practical, real-world scenarios
- Include current best practices
- Avoid overly technical jargon
This quiz covers essential cybersecurity concepts including:
- Recognizing phishing attempts
- Password security best practices
- Social engineering awareness
- Malware prevention
- Security policy compliance
This project is open source. Feel free to use, modify, and distribute for educational purposes.
For issues, questions, or suggestions:
- Create an issue in the repository
- Review the code for customization options
- Check the question format in
data/questions.json
- Web-based interface
- User progress tracking
- Additional question categories
- Timed quiz mode
- Difficulty levels
- Question randomization
Stay secure, stay informed!


