Small Python scripts and study exercises used to practise cybersecurity concepts, automation, and defensive thinking.
This folder is intentionally limited to security-related Python work. General coursework exercises live in the separate bsc-cybersecurity repository.
python-projects/
├── tools/
│ ├── log_analyzer.py
│ ├── password_audit.py
│ ├── password_generator.py
│ └── port_scanner.py
├── simulators/
│ ├── login_firewall.py
│ └── soc_analyst_simulator.py
├── study-notes/
│ ├── malware_study.py
│ ├── physical_security_study.py
│ ├── security_fundamentals_study.py
│ ├── social_engineering_study.py
│ └── threat_actors_study.py
└── sample-logs/
└── server.log
tools/password_audit.py- Checks password strength against length, uppercase, lowercase, number, and symbol criteria.tools/password_generator.py- Generates random passwords with configurable complexity.tools/port_scanner.py- Basic TCP port scanner for networking practice.tools/log_analyzer.py- Parses a sample server log and counts failed logins, errors, warnings, and info messages.
simulators/login_firewall.py- Demonstrates failed login tracking and account lockout logic.simulators/soc_analyst_simulator.py- Small command-line simulation of SOC alert review and response.
study-notes/malware_study.pystudy-notes/physical_security_study.pystudy-notes/security_fundamentals_study.pystudy-notes/social_engineering_study.pystudy-notes/threat_actors_study.py
These files are learning exercises and revision prompts, not production tools.
- Add docstrings to each script.
- Replace hard-coded examples with safer command-line arguments.
- Add small test cases for the tools.
- Keep filenames lowercase and descriptive.