Home / Blog

Cybersecurity · 8 min read · Log Academy training team

What is CTF? How to get started with cybersecurity competitions

CTF (Capture The Flag) is a competition in which players solve cybersecurity challenges in a purpose-built, authorized environment to find a hidden string of text called the “flag.” Every flag you find earns points. CTFs train skills such as web security, cryptography, digital forensics and reverse engineering in a game format. For beginners, they are one of the most accessible ways to turn theory into practice.

  • There are two main types of CTF: Jeopardy (challenges grouped by category) and Attack-Defense (teams go after each other’s services).
  • The most suitable starting point for beginners is the Jeopardy format and free “wargame”-style platforms.
  • CTF isn’t just for Red Team: forensics and log analysis challenges are core Blue Team skills.
  • Techniques learned in CTFs belong only in authorized environments — testing a real system without permission is against the law.
  • Reading and writing solution writeups after a competition is half the learning.

What is CTF and how do you play?

Every CTF challenge is a puzzle. You get a web page, an encrypted message, a network traffic capture or a program. Somewhere inside is a string in a specific format, such as flag{...}. Find it, submit it on the competition site and you score points.

Competitions usually run for 24–48 hours and take place online. You can play solo or as a team. The calendar of open competitions worldwide and the team rankings are collected on CTFtime.

What types of CTF are there?

CTF formats compared
FormatHow it worksSuited to
JeopardyChallenges are split into categories; harder challenges are worth more pointsBeginners and solo players
Attack-DefenseEvery team has the same vulnerable services: defend your own and hunt for flags in your opponents’Experienced teams
King of the HillTake control of a machine and hold it for as long as possibleIntermediate and advanced players
WargameLevels with no time limit that get progressively harderComplete beginners, self-paced practice

Attack-Defense is the closest to real-world work because it demands offense and defense at the same time: patching your own service, watching logs and finding your opponent’s weakness all at once. For your first competition, though, Jeopardy makes more sense — you can pick challenges at your own pace.

What categories are CTF challenges divided into?

Jeopardy CTF categories and the skills they train
CategoryChallengeJob-relevant skill
WebFind a vulnerability in a web applicationWeb application pentesting, secure coding
CryptoBreak weak encryptionUnderstanding encryption algorithms
ForensicsFind traces in a traffic capture, disk image or memory dumpSOC and incident response
ReverseFigure out how a program works without its source codeMalware analysis
PwnExploit a memory bug in a programVulnerability research
OSINTFind information in open sourcesReconnaissance, threat research

For beginners, web, forensics and OSINT are the easiest entry points. Pwn and reverse require programming, assembly and knowledge of operating system internals, so they can wait until later.

How is CTF different from real penetration testing?

CTF sharpens your skills, but it isn’t the same as a pentesting job. In a CTF you know the flag exists, and the challenge is built specifically to be solved. In real penetration testing there may be no vulnerability at all, the scope is defined by a contract, and the main deliverable isn’t a flag but a report the client can read and act on.

CTF vs penetration testing
CriterionCTFPentest
GoalFind the flag, score pointsFind risks and recommend fixes
EnvironmentA challenge built for the competitionThe client’s real system, with written permission
OutcomePoints and rankingA professional report
TimeHours or daysAn agreed timeframe with a strict scope

How do you start CTF from scratch?

  1. Get comfortable with the Linux terminal: the file system, permissions, grep, find and simple scripts. OverTheWire’s Bandit levels are designed exactly for this.
  2. Cover networking basics: TCP/IP, ports, DNS and how an HTTP request is structured. Look at your own traffic in Wireshark.
  3. Practice on a free platform built for beginners, such as the picoCTF archive.
  4. Pick one category and solve 10–15 challenges in it: you’ll learn more than by dabbling in everything.
  5. After a competition, read the writeups for challenges you couldn’t solve and keep your own notes.
  6. Choose a beginner-level online competition from the CTFtime calendar and take part for the first time.

The legal line

Use the techniques you learn in CTFs only in the competition environment, in your own lab or on systems you have written permission to test. Scanning someone else’s website or network without permission “just to check” isn’t ethical pentesting — it’s breaking the law.

Are there CTFs for Blue Team?

Yes. CTF is often associated with offense, but the forensics category is pure defender work: finding a malicious connection in a traffic capture, spotting a suspicious process in a memory dump, rebuilding an attack timeline from logs. In recent years, “Blue Team CTF” formats made up entirely of defensive challenges have also become common.

If you want to become a SOC analyst, these challenges are the closest practice to the hands-on questions asked in interviews. They also show anyone interested in Red Team what an attack looks like from the defender’s side.

Does CTF replace cybersecurity training?

No, but it complements it well. CTF builds isolated skills: recognizing a specific vulnerability, using a tool, solving a puzzle. Structured training connects those dots: defining the scope, following a methodology, documenting findings and writing a report.

The most effective approach is to do both in parallel. Test what you covered in class on a CTF challenge the same week, and when you get stuck in a CTF, go back to the theory. Interviewers often ask, too: “What challenge have you solved recently, and how?”

How we do it in our lab

In the Log Academy Red Team program, all exercises run in an isolated lab environment. The first module starts with the same skills as the CTF web category: running recon and finding vulnerabilities such as SQLi, XSS, CSRF and SSRF with Burp Suite, Nmap, ffuf and sqlmap. The difference shows at the end: the course finishes not with a flag but with a professional pentest report. The program is at an intermediate level, so it’s recommended to come with a grasp of Linux and networking basics.

Frequently asked questions

What is CTF, in short?
CTF is a competition where players solve cybersecurity challenges in an authorized environment to find a hidden “flag.”
Does it cost money to play CTF?
Most open online competitions and practice platforms such as picoCTF and OverTheWire are free. Some platforms offer extra features with a subscription.
Do you need to know programming for CTF?
Not at the start. You can begin web, forensics and OSINT challenges with Linux and networking basics. Being able to write simple Python scripts, however, helps a lot fairly quickly.
Does CTF help you get a job?
CTF experience and the writeups you publish demonstrate practical skills and give you concrete examples to talk about in interviews. On their own, though, they don’t replace a degree or work experience.
Where can I build on my CTF skills in a structured way?
In hands-on pentesting training. In the 6-month Log Academy Red Team program, web, server, API and Active Directory attacks plus reporting are covered in an isolated lab, in both in-person and online formats. The first lesson is free.
Book a consultationView course →

We teach these skills hands-on here: penetration testing course.

Related articles

Red Team course: how do you learn penetration testing?What is the difference between Red Team, Blue Team and Purple Team?Active Directory security: the misconfigurations that lead to domain adminCybersecurity lab: why it matters and how to build one