Cybersecurity Tutorial
Learn Cybersecurity step by step: 80 lessons in 11 chapters with examples, quizzes, diagrams and projects.
Start learning →
of lessons completed
Security Foundations
- What Is Cybersecurity? Learn what cybersecurity is, what defenders protect, how attackers think, which careers exist, and the legal and ethical rules this course follows.
- History and Trends of Cybersecurity A short history of cybersecurity from the 1970s to today: key incidents, how defenses evolved in each era, and the trends shaping the field now, with timeline code.
- The CIA Triad and Core Principles Learn confidentiality, integrity and availability, plus least privilege, defense in depth, fail-safe defaults and AAA, with a small access-check demo in Python.
- Threats, Vulnerabilities and Risk Understand assets, threat actors, vulnerabilities, exploits and risk (likelihood times impact), and build a simple risk-score calculator in Python.
- Threat Modeling with STRIDE Learn threat modeling step by step: data-flow diagrams, trust boundaries, the six STRIDE categories, attack trees, and a STRIDE checklist built in Python.
- The Attack Lifecycle and MITRE ATT&CK See how attacks unfold in stages, learn the Cyber Kill Chain and MITRE ATT&CK tactics, and map detections to techniques with a Python lookup table.
- Cybercrime, Identity Theft and Cyberstalking Learn the main categories of cybercrime, how identity theft and cyberstalking happen, how to reduce your exposure, and what to do and report if you become a victim.
- Personal Cybersecurity Hygiene A practical guide to everyday security: safe browsing, passwords and updates, social media privacy, smart-home devices and online payments, with small Python checks.
Cryptography Basics
- Cryptography in Plain Language Learn the difference between encoding, encryption and hashing, how symmetric and public-key crypto differ, and why you must never roll your own cryptography.
- Hash Functions and Integrity Learn how cryptographic hash functions work, why one changed bit rewrites the whole digest, how to verify files with hashlib, and why MD5 and SHA-1 are broken.
- HMAC and Message Authentication Learn how HMAC detects tampering with a secret key, why you must compare tags in constant time, and how to build a small signed token with hmac and hashlib.
- Symmetric Encryption and Modes Understand block and stream ciphers, AES, why ECB leaks patterns, how CBC, CTR and GCM use IVs and nonces, and why authenticated encryption is the default.
- Public-Key Cryptography Learn how key pairs, RSA, Diffie-Hellman key exchange, elliptic curves and digital signatures work, with small runnable Python demos using toy numbers.
- TLS, Certificates and PKI Learn how the TLS handshake works, how certificate chains and certificate authorities establish trust, and how expiry, pinning and HSTS keep HTTPS safe.
- PGP and S/MIME: Encrypting Email Learn how PGP and S/MIME sign and encrypt email using hybrid cryptography, how the web of trust compares to certificate authorities, and where email encryption falls short.
- Randomness, Key Management and Secrets Learn why secrets must come from a cryptographic random source, how entropy and key rotation work, why vaults beat config files, and how to scan for leaked secrets.
- Identifying Hashes, Ciphers and Steganography Learn to recognize hash types by length and prefix, tell encoding from encryption using entropy, spot classical ciphers, and understand LSB steganography and its detection.
Authentication and Access Control
- Password Storage Done Right Learn why plain and fast hashes fail for passwords, how salts, peppers and slow key derivation work, and how to store and verify passwords safely in Python.
- Password Strength and Policies Understand password entropy, why length beats complexity rules, what NIST recommends, and how to build a strength estimator and a breached-password check in Python.
- Multi-Factor Authentication and Passkeys Learn the authentication factors, implement the TOTP algorithm with hmac, handle recovery codes safely, and see why passkeys and WebAuthn resist phishing.
- Sessions, Cookies and JWTs Learn how session IDs and cookie flags protect logins, how JWTs are built and verified, and how alg=none and key-confusion attacks work, with Python demos.
- OAuth 2.0, OpenID Connect and SSO Understand OAuth 2.0 roles, the authorization code flow with PKCE, scopes, the state parameter, OpenID Connect and SSO, and the misconfigurations that cause breaches.
- Authorization and Access Control Models Compare DAC, MAC, RBAC and ABAC, learn why broken access control and IDOR top the OWASP list, and build deny-by-default permission checkers in Python.
- Kerberos, LDAP and RADIUS Understand how Kerberos tickets authenticate users without sending passwords, what LDAP and RADIUS do, how they compare with SAML, and how to detect Kerberos abuse.
- Classic Security Models Learn the classic formal security models: Bell-LaPadula for confidentiality, Biba for integrity, Clark-Wilson for transactions and Brewer-Nash for conflicts of interest.
Web Application Security
- The OWASP Top 10 Learn what the OWASP Top 10 is, what each web risk category means, how to turn the list into concrete defenses, and where ASVS fits in.
- SQL Injection and Parameterized Queries See how SQL injection works on a fake in-memory database, then fix it with parameterized queries, allow-lists, ORMs and least-privilege database accounts.
- Cross-Site Scripting and Output Encoding Understand reflected, stored and DOM-based XSS, why context-aware output encoding is the main defense, and how sanitizers and CSP add extra layers.
- CSRF, SameSite and CORS Learn how cross-site request forgery works, how tokens and SameSite cookies stop it, and how to avoid dangerous CORS misconfigurations, with Python simulations.
- Input Validation and Sanitization Learn allow-list validation, canonicalization, path traversal and file upload checks, and how regex pitfalls such as ReDoS can hurt, with Python validators.
- SSRF, Unsafe Deserialization and XXE Learn how server-side request forgery, pickle deserialization and XML external entities work, and how to defend with allow-lists, safe formats and strict parsers.
- Server-Side Template Injection Understand how server-side template injection happens when user input becomes template code, how to detect it safely, and how to fix it with data binding and sandboxes.
- HTTP Security Headers Learn the HTTP security headers that harden every web response: CSP, HSTS, X-Content-Type-Options, frame-ancestors and Referrer-Policy, plus a Python header auditor.
- API Security Secure your APIs: authentication, object-level authorization, rate limiting with a token bucket, mass assignment, excessive data exposure and the OWASP API Top 10.
Network Security
- Networking Essentials for Defenders Learn the networking basics every defender needs: TCP/IP layers, ports, DNS, subnets and CIDR with Python's ipaddress module, and where attacks happen at each layer.
- Firewalls, Segmentation and Zero Trust Understand stateful firewalls, DMZs, VLAN segmentation and zero trust, and build a small first-match rule engine in Python that tests allow and deny decisions.
- Common Network Attacks and Defenses Understand sniffing, spoofing, man-in-the-middle, DNS poisoning and DDoS attacks conceptually, with defenses and a rate-based DDoS detector built on synthetic traffic.
- VPNs, Wi-Fi and Remote Access Security Learn how VPNs (IPsec and WireGuard) work, how WPA3 secures Wi-Fi, and how to harden SSH with keys, jump hosts and a config auditor for remote access.
- IPsec, IKE, AH and ESP Learn how IPsec secures IP traffic: IKE phases and key exchange, AH versus ESP, tunnel versus transport mode, security associations, anti-replay and safe VPN configuration.
- Intrusion Detection and Network Monitoring Learn how IDS and IPS work, how signature and anomaly detection differ, what flow logs show, and build a simple port-scan detector in Python.
- NAT, Proxies and Network Access Control Learn how static, dynamic and PAT address translation works, the main proxy types and their security roles, and how pre-admission and post-admission network access control works.
Secure Coding
- Secure Coding Principles Learn the core habits of secure code: trust boundaries, validating input, failing securely, secure defaults, a small attack surface and safe error handling.
- Python Security Pitfalls Learn the Python features that most often cause vulnerabilities, such as eval, pickle, shell=True, yaml.load, temp files and assert, and the safer alternatives.
- Memory Safety and Why Languages Matter Understand buffer overflows and use-after-free bugs, why memory-safe languages remove whole bug classes, and which hardening flags protect C and C++ code.
- Dependency and Supply Chain Security Learn how vulnerable packages, typosquatting and compromised builds threaten your software, and use lockfiles, SBOMs, hashes and signed releases to defend.
- Secrets, Logging and Error Handling Keep API keys and passwords out of source code and logs. Learn environment config, redaction filters, structured logging and safe error messages in Python.
- Security Code Review, SAST and Testing Learn how to review code for security bugs, what static and dynamic testing find, how fuzzing works, and how to write security unit tests in Python.
- Mobile Application Security Learn how to build and assess secure mobile apps: threat model, secure data storage, permissions, network security and pinning, authentication, code protection and testing methods.
Malware and Endpoint Security
- Malware Types and How They Spread Learn the main kinds of malware, how viruses, worms, trojans, ransomware, spyware and botnets spread, and which defenses break each infection path.
- Botnets and Command-and-Control Understand the botnet lifecycle, C2 architectures (IRC, HTTP, P2P), how defenders spot beaconing and generated domains, and how takedowns and prevention work.
- Phishing and Social Engineering Understand phishing, pretexting and business email compromise, learn the warning signs, and build a simple phishing-score heuristic in Python on fake emails.
- Endpoint Protection and System Hardening Learn how to harden laptops, servers and phones: patching, EDR and antivirus, application allow-listing, CIS benchmarks, disk encryption and a Python auditor.
- Detecting Malicious Behavior Learn how defenders detect intrusions: indicators of compromise, hash and YARA-style matching, entropy checks and behavior baselines, with Python demos on synthetic data.
- Reverse Engineering Basics Learn what reverse engineering is for in security, the levels of abstraction, static versus dynamic analysis, common tools and safe lab habits, with Python demos.
Security Operations and Incident Response
- Logging, Log Analysis and SIEM Learn what to log, common log formats, how to parse logs with regex and pandas, aggregate events and write alert rules, plus how a SIEM ties it all together.
- Network Traffic Analysis and Packet Capture Learn how defenders capture and read network traffic: Wireshark and tcpdump basics, capture versus display filters, flow records, and spotting scans and exfiltration.
- Spotting Attacks in Logs Learn to find brute-force logins, password spraying, impossible travel and odd-hours activity in authentication logs using pandas, with charts.
- The Incident Response Process Learn the incident response lifecycle: preparation, detection, containment, eradication, recovery and lessons learned, with runbooks and communication.
- Digital Forensics Basics Learn the basics of digital forensics: order of volatility, evidence handling, chain of custody, file hashes and building an event timeline in Python.
- Network and Mobile Forensics Learn the steps of network forensics, how investigators correlate captures and logs, and how mobile devices are acquired (logical, file system, physical) and examined, with Python demos.
- Vulnerability Management and Patching Learn how CVE and CVSS work, compute a CVSS 3.1 base score in Python, prioritize vulnerabilities by real risk and set patching deadlines (SLAs).
- Security Metrics and KPIs Learn which security metrics matter: operational, incident-response, risk and compliance KPIs such as MTTD and MTTR, how to compute them, and how to avoid misleading numbers.
Privacy, Cloud and Secure Design
- Privacy and Data Protection Understand personal data, GDPR and CCPA principles, data minimization, retention, and the difference between pseudonymization and anonymization with demos.
- Secure Architecture and Design Patterns Learn secure SDLC, security requirements, shift-left and DevSecOps, secure-by-default design patterns and how to run a security design review.
- Cloud and Container Security Learn the shared responsibility model, least-privilege IAM, how storage gets exposed, and how to harden containers, with Python linters you can run.
- Critical Infrastructure and ICS Security Learn why power grids, water, transport and factories need special security: ICS and SCADA components, the Purdue model, typical threats, and practical defense and monitoring.
- Backups, Resilience and Business Continuity Learn the 3-2-1 backup rule, ransomware-proof recovery, RTO and RPO, disaster recovery testing and backup verification with hashes, with Python demos.
- Compliance and Security Frameworks Understand ISO 27001, SOC 2, NIST CSF and PCI DSS, how audits work, why policies matter, and how to map controls and track evidence, with Python demos.
- Cyber Law, Ethics and Security Policy Learn the main kinds of cyber law, professional ethics for security work, intellectual property in cyberspace, and how to write, enforce and check an information security policy.
Projects
- Project: Password Audit Tool Build a password audit tool in Python: find weak, reused and breached passwords in a fake credential list, store scrypt hashes and report with pandas.
- Project: Security Log Analyzer Build a web-server log analyzer in Python: parse access logs, detect brute force, scanning and injection attempts, then chart the results with pandas.
- Project: A Mini Web Application Firewall Build a mini web application firewall in Python: normalize requests, score them with rules, add allow-lists, measure false positives and write tests.
- Project: Secure Token Service Build a small token service in Python: sign tokens with HMAC, verify claims and expiry, rotate keys with key IDs, block replays and cover it all with tests.
- Project: Phishing Email Classifier Build a phishing email classifier in Python: generate fake emails, engineer features, train a scikit-learn model, tune the threshold and see how attackers evade it.
Practice and Review
- Practice: Fundamentals and Cryptography Six hands-on cybersecurity exercises with solutions: rank risks, audit file hashes, sign tokens with HMAC, see why salts matter and why nonce reuse breaks ciphers.
- Practice: Web Application Security Six web security exercises with runnable solutions in Python: fix SQL injection, escape output, block CSRF, validate paths and uploads, audit headers, stop mass assignment.
- Practice: Detection and Response Six security operations exercises with solutions in Python: detect brute force, impossible travel and scans in logs, build an incident timeline, score CVSS and prioritize fixes.
- Cybersecurity Interview Questions Common cybersecurity interview questions with clear model answers: principles, cryptography, authentication, web attacks, networks, operations and cloud, plus coding drills.
- Cybersecurity Cheat Sheet A one-page cybersecurity cheat sheet: core principles, which crypto to choose, OWASP defenses, security headers and incident response steps, with runnable lookups.
- Cybersecurity Career Roadmap Plan a cybersecurity career: the main roles, the skills and programming languages to learn, how to choose certifications, safe practice platforms and a 12-month study plan.