Capture-the-flag (CTF) events are where you solve security challenges to find a special code. Ethical hacking exercises let you simulate cyberattacks to find and fix system weaknesses.