How to Build Hands-On Cybersecurity Training Exercises
DIGITAL4SECURITY | MICROCREDENTIAL INSIGHTS
How to Build a Hands-On Security Exercise Your Team Will Actually Learn From
Most cybersecurity training tells people about attacks. Very little lets them carry one out safely and understand exactly why it worked. Discover how hands-on challenges and Capture the Flag competitions can turn cybersecurity knowledge into practical skills.
Expert insight by Răzvan Deaconescu | POLITEHNICA Bucharest
Most security training tells people about attacks. Very little of it lets them carry one out, safely, and see exactly why it worked.
That gap matters: people who have exploited a weakness themselves spot it faster, fix it properly and explain it better. The good news is that a realistic, hands-on exercise is no longer a large project. With a clear structure and a few free tools, a trainer or team lead can build one in a day and reuse it for years.
Why slides and quizzes don’t stick
A slide that says “never pass user input to a shell command” is easy to agree with and easy to forget. A learner who has just exploited a deliberately vulnerable web form, and watched the server hand over a secret file, does not forget.
They now understand the bug from the attacker’s side, which is the side that matters.
This is the idea behind Capture the Flag (CTF) challenges. A CTF challenge is a small, deliberately vulnerable program or service with a secret string, the “flag”, hidden inside. Learners get the flag by finding and exploiting the weakness.
Getting it is proof they solved the problem, and it can be checked automatically. In our experience, a well-built challenge does three jobs at once: it teaches, it lets learners test themselves, and it lets the trainer see who is stuck and where.
A well-built cybersecurity challenge teaches, tests practical skills and shows trainers exactly where learners need support.
What a good challenge looks like
A good training challenge is focused. It teaches one idea, such as a command injection in a web form, a stack buffer overflow or a key hidden inside a binary. If learners have to fight unrelated obstacles first, they learn frustration instead.
It is also realistic enough to transfer. The vulnerable code should look like something a developer might genuinely write: a small Node.js or PHP app that builds a shell command from a form field, not an artificial puzzle.
And it has a clear difficulty level. We usually pair a guided tutorial with a slightly harder follow-up task on the same topic, so learners first see the technique and then apply it on their own.
PRACTICAL TRAINING EXAMPLE
Making cybersecurity training hands-on
Traditional approach: Explain a command injection vulnerability through slides, code examples and quizzes.
Hands-on approach: Give learners a deliberately vulnerable application in a controlled environment. Ask them to discover and exploit the weakness, retrieve a hidden flag and explain how the vulnerability could be fixed.
The difference is that learners do not simply recognise a vulnerability in theory. They experience how it works, understand its consequences and gain practical knowledge they can apply elsewhere.
Package it so it works every time
The biggest practical problem with hands-on exercises is not designing them. It is keeping them working. A challenge that runs on the trainer’s laptop and breaks on the learner’s machine, or on the training server six months later, wastes everyone’s time.
The fix is to treat each challenge like a small software project. What we propose, and what we have used in the past, is for a challenge to have four parts:
BUILDING RELIABLE CHALLENGES
Four essential components
01 Build
The source code and the script that produces the challenge.
02 Publish
What learners download, such as a binary or ZIP file.
03 Deploy
The configuration that runs the challenge as a network service.
04 Solve
A reference solution that runs automatically.
Every step runs inside Docker containers, so the only tool anyone needs is Docker itself. The automated solver is the part people skip, and it is the part that matters most.
Before every session, you run it. If it captures the flag, the challenge works. If it doesn’t, you find out before twenty learners do.
From one challenge to a full exercise
Once you have a handful of reliable challenges, you can run a full contest. Free platforms such as CTFd give you registration, a scoreboard, hints and timing out of the box. You choose the challenges, set a time window, and let teams compete.
A contest also gives you data a quiz never will: which challenges were solved, how long they took, and where people needed hints.
A challenge nobody solves is probably too hard or badly explained. One everyone solves in two minutes can be worth fewer points next time. Over a few rounds, your exercise tunes itself to your learners.
LEARNING BY DOING
What competitions reveal about learning
Challenge completion: See which vulnerabilities learners can successfully identify and exploit.
Time to solve: Understand how difficult individual exercises are for participants.
Hints and support: Identify where learners encounter difficulties and need guidance.
Post-exercise feedback: Use walkthroughs and discussions to reinforce learning and improve future challenges.
For more advanced groups, the same approach scales up to “vulnerable boxes”: whole virtual machines with several connected weaknesses, much closer to a real network. Learners have to chain findings together, as a real attacker would.
The contest doesn’t end with the scoreboard, either. The most valuable half hour is often the debrief afterwards, when solvers walk the group through their approach.
Learners hear three different ways to reach the same flag, and the trainer hears which parts of the material didn’t land. Write those walkthroughs down and keep them with the challenge. Next time, they become your hints, and the time after that, your teaching notes.
The most valuable part of a cybersecurity competition may not be the scoreboard, but the discussion that follows it.
Where to start
You don’t need a cyber range or a big budget. Pick one weakness your team should understand better, perhaps something that came up in your last penetration test or code review.
Write the smallest program that contains it. Package it with a build, a deploy step and an automated solver, and try it on two colleagues. Watch where they get stuck, adjust, and run it again.
A single well-built challenge, used regularly, will teach your team more than another round of slides. And once you have one, the second takes half the time.
With advances in artificial intelligence, creating, deploying and validating cybersecurity exercises is also becoming easier. AI tools can support educators in developing practical training content and refining challenges more efficiently.
PUT IT INTO PRACTICE
Three questions before your next cybersecurity training exercise
01.
What specific vulnerability or security skill should learners understand?
02.
Can learners practise it in a realistic, repeatable and controlled environment?
03.
How will you verify that the challenge works and measure what participants have learned?
WATCH | MICROCREDENTIAL INSIGHTS
Real Attackers Don’t Hack Slides. Why Should Cybersecurity Training?
Răzvan Deaconescu explains how hands-on challenges, vulnerable systems and Capture the Flag competitions can help educators and security teams bridge the gap between theory and practice.
Part of the Digital4Security Microcredential Insights series.
MEET THE EXPERT
Răzvan Deaconescu
POLITEHNICA Bucharest | Digital4Security Module Lecturer
Răzvan Deaconescu is an Associate Professor at POLITEHNICA Bucharest, where he teaches operating systems and software security.
He coaches the university’s ACS-UPB Capture the Flag team and co-organises Security Summer School, combining technical cybersecurity expertise with practical teaching, mentoring and competition-based learning.
TAKE YOUR SKILLS FURTHER
Learn to Design and Deliver Hands-On Cybersecurity Training
Want to put these ideas into practice?
Digital4Security’s Cybersecurity Education & Training Delivery II microcredential equips educators, trainers and cybersecurity professionals with the skills to design, build and deliver practical cybersecurity challenges and competitions.
Develop your skills in Capture the Flag challenge design, vulnerable systems, practical security exercises and competition-based learning.
5 ECTS | EQF Level 7 | 12 weeks | Online
Starting January 2027. Delivered by POLITEHNICA Bucharest. Explore the course content, learning outcomes and registration information.
DIGITAL4SECURITY MICROCREDENTIAL INSIGHTS
Expert perspectives and practical cybersecurity knowledge from the educators helping develop Europe’s digital skills.
Join our mailing list
Sign up for our newsletter to get the latest MTU CYber Innovate news and updates delivered to your inbox.