A team can improve security by checking for weaknesses and by protecting systems during everyday use. Offensive work tests how a weakness could be used, within agreed permission. Defensive work protects systems, detects problems, responds to them and helps restore normal operation.
A capture-the-flag exercise, shortened to CTF, provides deliberately designed challenges for practice. Many ask you to find a flag: a text value submitted as evidence that you reached a puzzle's outcome. A CTF supplies a learning setting with rules; it is not permission to experiment on any system.
Before you begin
- Recommended first
- What cybersecurity is
- Estimated time
- 10 min reading, 10 min activity. Setup and optional practice may take longer.
- Where you work
- Work on this lesson page in a desktop or mobile browser, with paper or a text editor for notes. You need no installation, account or terminal. The cases describe invented situations; your task is to read and reason about them.
- Without a lab
- Every worksheet appears in full on the page. A download saves a copy to your device; it is optional. If you cannot download, copy the fields into your notes. Without JavaScript, predict the decisions and explain your reasons on paper. Answer checking needs JavaScript; keeping the result after you leave also needs browser storage.
After this lesson you can:
- Classify an activity from the action described rather than a person's title.
- Explain how an authorized test can support a defensive improvement.
- Name one responsibility a CTF result does not demonstrate.
01Example
This invented lab case connects a permitted test to a defensive response. A login is the step where someone signs in. The toy login below uses invented accounts in a practice environment; this is a description to read, not a test to perform.
Permission: test one named weakness in a disposable toy login.
Tester: checks whether that weakness can be used within the limits.
Defender: reviews the alert produced by the test.
Together: describe the problem, correct it, then check the correction.
Excluded: real accounts, unrelated services and other people's data.02Classify the action
An alert is a notification that something may need attention. A failed login means a sign-in attempt was not accepted. It could result from a typing mistake or something else; it does not by itself establish an attack.
In the example, trying the permitted weakness is testing. Reviewing the alert and deciding how to protect the system is defensive work. Classify the action described rather than the person's job title: the same person may do both kinds of work at different times.
Authorized means permitted by someone with the right to allow the activity. Scope is the boundary of that permission, including the target and allowed action. A reachable page does not supply permission. You will practice reading these boundaries before running security tools.
03What a CTF leaves out
A puzzle often concentrates on one idea and leaves out much of a real organization's complexity. Its flag shows that a submission matches the event's expected outcome. It does not show how safely someone worked or whether they can explain the effect of a problem and recommend a correction.
A real security test also needs planning, careful evidence handling and reporting. Defensive work includes keeping systems useful over time. Puzzle practice can develop parts of these skills, but a score alone does not establish all of them.
04Sort role cards
Read the fresh cases below and classify the action in each. These are written scenarios; you will not sign in, restore files or join an event.
FICTIONAL ROLE CARDS
CARD 1
A permitted tester checks one named weakness in an isolated toy login.
CARD 2
A maintainer restores a broken club timetable from a tested copy.
CARD 3
A learner solves an event's supplied file puzzle and submits its flag.
For each card, record:
Action / intended outcome / permission or rules to check- For each card, choose the best description: authorized testing, defensive recovery or CTF practice. Explain which action supports your choice before comparing the cases.
- Record the outcome each person wants. Separate discovering a weakness, restoring useful information and reaching a puzzle's expected result.
- For the test, identify the stated target and action limit. For the puzzle, identify whose rules would govern the supplied material and flag submission.
- Review your explanations. A classification should follow the activity, not the person's title. None of the cards gives permission to act on unrelated systems. Stop with your written decisions.
05Work together
A permitted test can give defenders evidence about a weakness. Defenders can help a tester plan a suitable activity and interpret its results. After a correction, another controlled check can help establish whether the particular weakness remains.
Useful work leaves an explanation of what happened and what should improve. You can practice that habit now with clear notes and permission decisions. The next lesson shows how those habits apply when reading a CTF challenge board.
Testing and defensive response exchange evidence under one fixed grant; no correction is claimed to have run.Model. A teaching model drawn by hand. It shows the idea, not real tool output.
Read the full explanation below.
Playback is optional. Step through at your own pace.
Testing is an action within the fixed toy-login permission.
Follow the explanation
- Testing is an action within the fixed toy-login permission.
- Defensive review is a distinct action, not a classification of a person.
- Describe, correct, then check the correction is a plan.
Read every state and value
1. Testing is an action within the fixed toy-login permission.
- Messages shown
- test
- Current message
- test
- Policy decisions
- Status: permitted-model
- Participant roles
- Actor: Tester within the toy-login grant; Text: Checks the named weakness within limits. · Actor: Defender; Text: Receives test evidence; alert details are not supplied.
2. Defensive review is a distinct action, not a classification of a person.
- Messages shown
- test · review
- Current message
- review
- Policy decisions
- Status: permitted-model
- Participant roles
- Actor: Tester within the toy-login grant; Text: Can help interpret the test. · Actor: Defender; Text: Reviews the alert produced by the test.
3. Describe, correct, then check the correction is a plan.
- Messages shown
- test · review · Describe, correct, check the correction
- Current message
- Describe, correct, check the correction
- Policy decisions
- Status: permitted-model
- Participant roles
- Actor: Tester within the toy-login grant; Text: Plans a controlled follow-up. · Actor: Defender; Text: Plans a protective correction; completion is not established.
06Optional challenge
Allow about 5 extra minutes. For the toy-login example, propose one protective improvement and the evidence you would want when checking it. Keep the proposed evidence separate from an observed result; you are writing a plan, not performing a login test.
07Fresh cases for the checks
Use these fictional cases for the checks below. They have different inputs from the worked examples. Read them here or make notes; no installation or external service is needed.
Role case AOwned fixture. An original file made for this course. Follow the activity's instructions in your own lab.
Mira, whose job title is defender, checks one permitted weakness in the named isolated upload lab. Jo, whose title is tester, restores a damaged schedule from a tested copy. Ren solves a provider’s supplied file puzzle and submits its flag under the event rules.
Role case BOwned fixture. An original file made for this course. Follow the activity's instructions in your own lab.
An authorized lab test shows that a reader can change a practice entry. The maintainer plans to restrict changes to editors. No correction or retest has happened yet. The test grant excludes the real club website.
08Explain the evidence exchange
Optional written self-check: Describe a weakness report, a proposed control and a controlled retest. Mark plans as plans and results as results. Check that your target stays inside its permission and that a puzzle score is not used as proof of every security responsibility.
09Common mistakes
If a test seems harmless, still identify its permission and limits. A small test can cross the same boundary as a larger one.
If a person appears to have two roles, classify the particular action in the question. A title does not settle what they are doing now.
If you are using a CTF score as evidence of permission or readiness for a real test, separate the puzzle outcome from those different responsibilities.
If a card lacks facts you would need for a real activity, write down what is missing. Do not invent an action or broaden its permission.
References
- NIST SP 800-115: Technical Guide to Information Security Testing and Assessment
Optional background on planning a test, handling evidence and reporting results. Sections 6–8 and Appendix B explain these principles. This 2008 guide is not an installation guide for current tools.
- NIST Cybersecurity Framework 2.0
A reference for organizing work to manage security risk. It includes protection, detection, response and recovery; you do not need to memorize its categories.