Skip to main content

Careers and getting hired · Intermediate · 17 min

Build a security analyst portfolio with lab write-ups

By Padding · Updated 18 Nov 2026
Any blog or GitHub · November 2026

You will publish two defensive-security write-ups, each stating the permission it ran under, in a portfolio that also holds a hardening report, a log investigation and a tested detection rule.

On this page

Entry-level security analyst jobs, often called SOC analyst or security operations roles, ask for things that are hard to show on a CV: reading logs, spotting what does not belong, explaining a finding to someone who has to act on it. A certificate says you studied. A good write-up shows you can do the work, in your own words, with your reasoning visible.

This tutorial builds a small defensive-security portfolio: a hardening report on a server you own, a log investigation from a practice dataset, a detection rule with a test, and write-ups of practice labs from platforms that allow them. It is defensive only. Nothing here involves testing systems that are not yours or that you have not been invited to test.

The running example is Tunde, an IT support technician in Lagos who wants his first analyst role. By the end you will have what he ends with: a public repository or blog with two published write-ups, each opening with the permission it ran under, and nothing in it that would help an attacker or embarrass an employer.

This is not legal advice. Laws change, and the summaries below were checked in November 2026.

Step 1 · Write down your rules and set up the portfolio

Before any lab, decide what you will and will not touch, and write it where readers can see it. Hiring managers for security roles read this section closely, because an analyst who tests things without permission is a liability.

Most countries make it a crime to access a computer system without authorisation, whatever your intentions. Examples:

  • Nigeria: the Cybercrimes (Prohibition, Prevention, etc.) Act 2015, amended in 2024, makes unlawful access to a computer system an offence (section 6).
  • Kenya: the Computer Misuse and Cybercrimes Act 2018, section 14, covers unauthorised access.
  • South Africa: the Cybercrimes Act 19 of 2020, section 2, covers unlawful access.
  • United Kingdom: the Computer Misuse Act 1990, section 1.
  • United States: the Computer Fraud and Abuse Act, 18 U.S.C. 1030.

"I was only practising" and "I was going to report it" are not defences in these laws. The safe rule is simple: only test what you own, or what the owner has invited you to test in writing, such as a practice platform's lab machines under its terms.

Create a public GitHub repository called something like security-portfolio, or a section of your blog, but do not put anything in it yet. Draft every piece in a local folder, or in a private repository, and do not push or make anything public until it has passed the redaction checklist in step 6. Git keeps every version you commit, so a draft with a real address or password in it stays in the history even after you fix the file.

In your local folder, create a README with these headings:

  • About: one line on the role you want.
  • Scope and permission: "Everything here ran on systems I own or on practice platform content whose rules allow write-ups. I do not test systems without written permission."
  • Write-ups: an empty list for now.
  • Learning: certifications and courses, filled in at step 7.

Then add a TEMPLATE.md that every write-up copies. Use these sections, in this order:

  1. Permission: the platform or system, its rule on write-ups (with a link), and its status (retired, or owned by you).
  2. Question: what you were trying to find out, in one sentence.
  3. Environment: tools and versions, and where the data came from.
  4. What I found: the answer first, in two or three sentences.
  5. How I found it: the steps and the evidence, including dead ends.
  6. Detection or fix: what a defender should change or watch for.
  7. Redactions: what you removed or replaced, and why.

Check it worked

Your local README has a "Scope and permission" section in your own words, and TEMPLATE.md starts with a "Permission" section. The public repository is still empty: open it in a private browser window and confirm it shows no files yet.

Step 2 · Choose labs on platforms that allow write-ups

Practice platforms set rules on what you may publish, mostly to keep their active labs useful for other learners. Publishing a walkthrough of an active lab can get your account closed, and it tells a hiring manager you skip rules. In November 2026:

  • Hack The Box allows published solutions only for retired Machines, retired Sherlocks (its defensive investigation labs), retired Challenges, Starting Point machines, Tier 0 Academy modules and a short list of Mini Pro Labs.
  • TryHackMe's acceptable use policy forbids publishing flags, answers or walkthroughs for active content, allows write-ups for content it marks as retired, and says to treat anything not marked retired as active.
  • CyberDefenders, a blue-team platform, restricts written and video write-ups to labs and challenges labelled retired.

Rules change, so open each platform's rules page on the day you publish and quote the line you rely on.

For an analyst portfolio, favour defensive content: Hack The Box Sherlocks, CyberDefenders labs and TryHackMe's SOC and log analysis rooms. A write-up of how you broke into a machine shows less of the job than a write-up of how you worked out what happened on one.

Pick two retired labs. In a file called PLAN.md, write for each: the lab name, its link, the line from the platform rule that allows the write-up, and the date you checked that it is retired.

In Nigeria and across Africa, browser-based lab desktops stream video and can use a lot of prepaid data. Where a lab offers a downloadable file instead, such as a log archive or a packet capture, download it once on Wi-Fi and work offline.

Check it worked

PLAN.md lists two labs. Each has a link to the platform's write-up rule, a quoted line from it, and a "retired" status with the date you checked. If any lab is not clearly marked retired, swap it for one that is.

Step 3 · Write a hardening report on your own server

This piece needs no platform at all, and it is the closest thing in the portfolio to a real work task: look at a system, rank what is wrong, fix the worst of it and show the difference.

Use a server or virtual machine that you own and pay for, or one on your own laptop. Do not use a work machine without written approval from whoever runs it.

Follow audit a server with Lynis to run an audit, and keep the hardening index and the list of suggestions from the first run. Pick three to five suggestions to fix. The follow-up tutorial fix the top Lynis suggestions on a new server covers common ones. Run the audit again.

Write it up with the template. In "What I found", give the before and after hardening index and the items you fixed. In "How I found it", explain why you chose those items first, for example "remote login settings first, because the server is reachable from the internet". Say what you chose not to fix and why. That judgement is what an employer is reading for.

Replace the server's real hostname and public IP address before you save. The redaction checklist in step 6 applies here too.

Check it worked

The report shows two hardening index numbers, a ranked list of what you fixed, at least one item you left and your reason, and a "Permission" line that says "server I own". Search the file for your server's real IP address and hostname: neither appears.

Step 4 · Investigate a practice log dataset

Reading logs is the core of most analyst jobs. Take one dataset recorded for practice and answer a question about it, the way you would answer a ticket.

Good sources are a retired Sherlock or a retired CyberDefenders lab, which give you logs and a scenario, or the Security Datasets project (from the Open Threat Research Forge), which publishes recorded attack and normal activity for detection research. Check the dataset's licence file before you quote from it.

Work through it in this order:

  1. Write the question first, for example "Did anyone log in to this host from outside the office network, and what did they do next?"
  2. Note what normal looks like in the data before you look for anything odd: usual users, usual hours, usual sources.
  3. Build a timeline: time, host, user, event, and the log line or field that shows it. A spreadsheet or a Markdown table both work.
  4. Mark which entries are confirmed by the evidence and which are your inference.

Detect suspicious logins in the auth log shows the kind of patterns to look for on Linux.

Write it up with the template, answer first. Tunde's answer read: "One account logged in from an unfamiliar address after 40 failed attempts, then added an SSH key. I am confident about the login and the key; I infer the failed attempts were the same actor because they share a source address."

Check it worked

Your write-up has a timeline of at least five rows, each with a timestamp and the evidence for it, and every row is labelled "confirmed" or "inferred". A reader can see the answer in the first three sentences without scrolling.

Step 5 · Write a detection rule and test it

A finding is more useful when it becomes something that catches the next case. Turn one thing from your investigation into a rule, and prove it fires when it should and stays quiet when it should not.

Sigma is a widely used open format for writing detection rules once and converting them into queries for different security tools. A rule has a title, a logsource saying which logs it reads, and a detection block with one or more selections and a condition. Here is a small example for a root login over SSH on Linux:

YAML
title: SSH login accepted for the root account
status: experimental
description: Flags a successful SSH login as root, which should not happen on servers where root login is disabled.
logsource:
  product: linux
  service: auth
detection:
  keywords:
    - 'Accepted password for root'
    - 'Accepted publickey for root'
  condition: keywords
falsepositives:
  - A break-glass login that was approved and recorded
level: high

The test is two small sample files kept next to the rule:

  • should-match.log: three log lines the rule must catch, such as a password login and a key login as root.
  • should-not-match.log: three lines that look similar but must not fire, such as a failed root login and a successful login by another user.

If you have a tool that runs Sigma rules, such as sigma-cli converting the rule into a query for a log search tool you run locally, run it against both files and record the counts. If you do not, test the keywords with grep, which counts the lines that contain either phrase:

Text
grep -c -F -e 'Accepted password for root' -e 'Accepted publickey for root' should-match.log
grep -c -F -e 'Accepted password for root' -e 'Accepted publickey for root' should-not-match.log

The first should print 3 and the second 0. Say in your results note that this tests the rule's keywords only, not the converted rule in a real tool. Use log lines from your practice dataset or your own server, with addresses replaced as in the next step.

In the write-up, state what the rule will miss. This one misses root access gained through sudo after a normal login. Naming that gap shows you understand detection, not just syntax.

Check it worked

Your rule folder has the rule, should-match.log and should-not-match.log, and a short results note showing three matches from the first file and zero from the second. The write-up lists at least one thing the rule does not catch.

Step 6 · Redact and check everything before it goes public

A security portfolio that leaks something is worse than no portfolio. Go through every file with this checklist before anything is published:

  • Addresses: replace real IP addresses with the ranges reserved for documentation, 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24, keeping each real address mapped to the same fake one so your timeline still makes sense.
  • Names: replace real domains with example.com, example.org or example.net, which are reserved for examples, and real usernames with roles such as admin-user.
  • Secrets: no passwords, keys, tokens or session cookies, even expired ones, and no hashes you cracked.
  • Flags and answers: none for any lab, retired or not, unless the platform's rule allows them. Describe the method, not the answer.
  • Live targets: no address, hostname or URL of a system you did not own.
  • Screenshots: check the corners for browser tabs, usernames, email addresses and VPN addresses.

Do this before anything is pushed or made public. Git keeps every earlier version of a file, so a password you delete later is still in the repository history until you rewrite it. To check a repository for secrets you missed, follow scan a repository for leaked secrets with Gitleaks.

Fill in the "Redactions" section of each write-up with what you replaced, for example "Source addresses replaced with 203.0.113.0/24, mapped one to one."

Check it worked

Every write-up's "Redactions" section is filled in. Search each file for "password", "token", "key", "flag" and your own real IP address and email address: every hit is either a redacted placeholder or a word in your explanation, never a live value.

Step 7 · Match certifications to the adverts you are applying for

Certifications get CVs past filters, so they belong in the portfolio's "Learning" section, but only those your target jobs ask for. Go back to the job adverts you collected in choose your first tech role or collect ten new analyst adverts, and count how many name each certification.

Names that often appear for entry-level analyst roles include CompTIA Security+, CompTIA CySA+ (the analyst-focused one) and ISC2 Certified in Cybersecurity (CC). Your count, not someone else's list, decides which one to work towards. Check exam versions and current conditions on the vendor's own site before booking, since exams are revised every few years.

In the "Learning" section, list only what you hold or are actively studying for, with the month you expect to sit it. Link each to the write-up that uses the same skill, so the certificate and the evidence support each other.

In Nigeria and across Africa, check the vendor's site for testing centres in your country and whether online proctored exams are offered there, and plan for a stable connection on exam day if you sit it online.

Check it worked

Your notes show a count of certifications across at least ten adverts, and the "Learning" section names only those with a count above zero, each with a date and a link to a related write-up.

Step 8 · Publish two write-ups

Choose your two strongest pieces. For most readers that is the log investigation plus either the hardening report or a lab write-up. Publish them in the repository, on GitHub Pages or on your blog, and link both from the README's "Write-ups" list with one line each saying what the reader will learn.

Read each one aloud from the top. The first thing a reader sees must be the "Permission" section, then the answer. Ask one person to read a write-up and tell you, in a sentence, what you found and how sure you were. If they cannot, move the answer higher and cut steps that do not support it.

Put the repository link on your CV and profile. Write a tech CV that gets read shows how to describe each piece in a line.

Check it worked

Open both published write-ups in a private browser window. Each one opens with a permission statement naming the platform rule or "a server I own", contains no live credentials, flags or targets, and is linked from your README.

Next steps

Need this done for you?

Padding does this work for growing companies, from the first diagnosis to a system that keeps working.

Digital Transformation

Get new tutorials

New tutorials, about twice a month.