TExcelTAD

Security Projects Exercises

These exercises cover the whole course: the plan, the platforms, the lab, certifications, careers, the projects and the capstone. Most are judgement calls with a model answer; a few need a calculation. Try each one before opening the answer, and follow the link back to the lesson if an answer surprises you.

1. A plan for someone who already knows networking

A network administrator wants the malware-analysis and DFIR path (career paths) plus this course, at 8 hours a week. They estimate they only need a quarter of Networking for Security and half of Network Security. How long will it take?

python · try it yourself
# Exercise 1: a learner who already works as a network administrator
LESSONS = {"foundations": 34, "networking": 38, "programming": 30, "network-defense": 37,
           "blue-team": 38, "malware-forensics": 36, "reverse-engineering": 32, "projects": 22}
PATH = ["foundations", "networking", "programming", "network-defense", "reverse-engineering",
        "malware-forensics", "blue-team", "projects"]          # malware analysis and DFIR, plus this course
SKIM = {"networking": 0.25, "network-defense": 0.5}            # share of each course still to study
PER_WEEK, HOURS_PER_LESSON = 8, 1 / 0.8

total = 0
for course in PATH:
    n = LESSONS[course] * SKIM.get(course, 1)
    total += n
    print(f"{course:20} {n:5.1f} lessons")
weeks = total * HOURS_PER_LESSON / PER_WEEK
print(f"total {total:.1f} lessons, {weeks:.1f} weeks at {PER_WEEK} h/week")
foundations           34.0 lessons
networking             9.5 lessons
programming           30.0 lessons
network-defense       18.5 lessons
reverse-engineering   32.0 lessons
malware-forensics     36.0 lessons
blue-team             38.0 lessons
projects              22.0 lessons
total 220.0 lessons, 34.4 weeks at 8 h/week
What does the result tell them, and what would you change?

About 34 weeks, eight months, for 220 lessons. Skimming the two networking courses saves about 47 lessons (roughly 7 weeks at this pace). If eight months is too long, the next cut is not more skimming but choosing: Defensive Security and Malware & Forensics are both core to the path; this course's orientation lessons can be read in a weekend, leaving its projects for later. See the study plan for the assumptions.

2. Spot the overloaded month

Using the 12-month plan, a learner at 15 hours a week reaches the end of month 5 with half of Network Security still to do. Is this a failure?

Answer

No. Month 5 needs about 99 hours against a 65-hour budget at 15 hours a week; it was never going to fit. With soft month boundaries, the remainder moves into month 6 and month 7 (pentest methodology, only 27.5 hours) absorbs the delay.

3. Which platform next?

A learner has finished Web Application Security and wants to practise one vulnerability class in depth, with hosted labs, for free. Which platform fits best?

Answer

PortSwigger Web Security Academy: free, organised by vulnerability class, with a hosted lab per topic from apprentice to expert.

4. A scan that went too far

During a lab network assessment, the scan of 10.10.0.0/24 lists 192.168.1.20 too. What happened, and what do you do?

Answer

The scan should not see that address at all: either a lab VM has an adapter on the home network, or the scan target was wrong. Stop, check the scan command and every lab VM's network settings (home lab step 4), fix them, and note the incident in the journal. Do not look at what 192.168.1.20 is running.

5. Certification or project?

You have 60 hours over the next two months and want a junior penetration-testing job. Your count of 20 job ads: 4 name eJPT, 12 ask for "write-ups or a GitHub profile". What do you do with the 60 hours?

Answer

The ads favour a portfolio. Spend most of the time on the web app assessment and the capstone report; eJPT can follow in the next quarter if the ads in your market start asking for it (cert planning).

6. Fix the plan

A project plan reads: "Goal: test the login of my university's student portal for SQL injection, carefully, without breaking anything." Rewrite it so it passes the project guide's linter and the law.

Answer

The university portal is out of the question without written permission from the university, whatever the care taken. Rewrite: "Goal: assess the login of a deliberately vulnerable app (DVWA) in my lab for SQL injection; targets apps.lab.test; out of scope everything else; detection: database error logs and the proxy history; fix: parameterised queries in a patched copy; data: synthetic users." If you think the portal is vulnerable, the disclosure lesson says how to tell the university without testing it.

7. The detection pack's missing test

A colleague adds a YARA rule for a benign sample containing the string LAB-SAMPLE-ONLY and the word powershell, with one positive test file. What is missing before it goes into the pack?

Answer

A negative test: a benign file that mentions powershell without the marker (a lab note, a script), and one with the marker and nothing suspicious. Without them, a rule that matches every file mentioning PowerShell would pass.

8. The fuzzing campaign stalls

Your fuzzer has run for an hour; coverage stopped growing after ten minutes and no crash appeared. The format starts with an 8-byte magic value. What do you try?

Answer

Give it the magic value: a seed input that is a valid file, and a dictionary with the format's magic numbers and keywords (comparison-tracing modes do this automatically in modern fuzzers). An 8-byte magic is practically impossible to guess by mutation alone.

9. Order the hardening plan

Three actions for an AD lab: (a) remove a helpdesk group's reset right on one admin, closing 1 path; (b) tiering of admin logons, closing 9 paths but needing a week of work; (c) LAPS, closing 6 paths in a day. In which order, and why?

Answer

(c) LAPS first: 6 paths in a day, low risk. Then (a): one path but minutes of work. Then (b), the biggest change, planned and tested. "Paths closed per unit of effort and risk" is the ordering rule; a plan that starts with a week-long project leaves the quick wins open for that week.

10. A CVSS argument

In the capstone, a reviewer says F3 (path traversal) should be 9.1 like F6, because it also leaks the signing key. Respond.

Answer

The base score rates the vulnerability itself: reading arbitrary files is C:H (7.5). That one of those files contains the key is a chain with environmental specifics, described in the report's impact section and reflected in priority (F3 is fixed together with F6, and the key is rotated). Some testers do score the realistic worst case; either way, the reason goes in the report.

11. Publish or not?

You solved a Hack The Box machine last night and want to post the write-up. The machine is still active. What do you do?

Answer

Wait until it is retired, as the platform's rules require for active content (platforms); keep the write-up in your private journal until then, and run it through the publishing gate before posting.

12. The one-sentence summary

Write a one-sentence executive summary of the capstone for the library's board.

Answer

For example: "The application should not go live yet: a debug page leaks the key that protects every user's session, and two further flaws expose user data; all but one issue have been fixed and verified, and the remaining one (no limit on password guessing) needs a small change before launch."

Test yourself

In exercise 1, how many lessons does the network administrator save by skimming the two networking courses?

  1. About 9
  2. About 28
  3. About 47
  4. About 75

A scan of the lab range shows a home-network address. What is the first step?

  1. Scan that address to see what it is
  2. Stop and fix the lab's isolation
  3. Ignore it
  4. Add it to the scope

How should hardening actions be ordered?

  1. Biggest change first
  2. By attack paths closed per unit of effort and risk
  3. Alphabetically
  4. By the tool that found them