Cybersecurity exercises with solutions

75 practice problems from the 25 lessons of the Intermediate Cybersecurity Fundamentals course, in lesson order and from easy to hard inside each lesson. Open a problem, write your code and press Submit: the tests run in your browser and nothing is sent to a server.

25 easy problems 25 medium problems 25 hard problems

What security protects: the CIA triad

3 problems · Read the lesson

Threats, vulnerabilities and risk

3 problems · Read the lesson

Attack surface and defence in depth

3 problems · Read the lesson

Classical ciphers and how they break

3 problems · Read the lesson

Symmetric encryption and AES

3 problems · Read the lesson

Public-key encryption with toy RSA

3 problems · Read the lesson

Agreeing on a key: Diffie-Hellman

3 problems · Read the lesson

Digital signatures and certificates

3 problems · Read the lesson

Hash functions and the avalanche effect

3 problems · Read the lesson

Why MD5 and SHA-1 are broken

3 problems · Read the lesson

Storing passwords: salt and slow hashes

3 problems · Read the lesson

Password strength and entropy

3 problems · Read the lesson

Two-factor authentication and one-time codes

3 problems · Read the lesson

Ports and firewalls

3 problems · Read the lesson

The TLS handshake

3 problems · Read the lesson

VPNs and secure tunnels

3 problems · Read the lesson

The OWASP Top 10 and broken access control

3 problems · Read the lesson

SQL injection and parameterized queries

3 problems · Read the lesson

Cross-site scripting (XSS)

3 problems · Read the lesson

Cross-site request forgery (CSRF)

3 problems · Read the lesson

Broken authentication and sessions

3 problems · Read the lesson

Phishing and social engineering

3 problems · Read the lesson

Least privilege and access control in practice

3 problems · Read the lesson

Incident response basics

3 problems · Read the lesson

Security careers and a learning roadmap

3 problems · Read the lesson