Cybersecurity-Mastery

Offensive Security — Track

The attacker's methodology end to end, structured on the cyber kill chain and MITRE ATT&CK. Every technique is paired with a lawful, local lab.

Your progress in this track

Set up the lab environment below once, then work the lessons — each one is hands-on-first.

Lab Environment

Set up once, then use it for every chapter in the Offensive Security part. Everything runs locally and isolated — you never touch a system you don't own.

A mini attack range: a vulnerable Linux host to own, a web target to breach, and (optionally) an Active Directory forest for the domain-attack chapters.

What you get

TargetHow to reach it
metasploitableboot-to-root Linux target (recon → exploit → loot)
dvwa / juice-shopweb foothold targets
AD forest (optional)GOAD or a Windows Server eval VM for AD chapters — see notes

Provision it — save this as docker-compose.yml and run docker compose up -d (or import the equivalent spec into CyberForge):

yaml
# offsec-lab/docker-compose.yml  —  Offensive part environment
services:
  target-linux:
    image: tleemcjr/metasploitable2
    networks: [labnet]
    command: /bin/sh -c "/etc/rc.local; tail -f /dev/null"
  target-web:
    image: vulnerables/web-dvwa
    ports: ["8082:80"]
    networks: [labnet]

networks:
  labnet:
    driver: bridge
    internal: true

Attacker box. Kali on labnet runs the full kill chain: nmap/nuclei (recon), metasploit/manual exploits, then local privesc enumeration (linpeas). For AD, use netexec, bloodhound, impacket, kerbrute.

Verify it works

  • nmap -sV target-linux from a Kali container attached to labnet lists exploitable services.

Notes

  • Active Directory: containers can't host a real DC well. For AD chapters, provision GOAD (github.com/Orange-Cyberdefense/GOAD) or a Windows Server evaluation VM in VirtualBox/VMware on an isolated host-only network. A Samba AD-DC container covers Kerberos/LDAP basics only.

Teardown. docker compose down stops it; add -v to also drop volumes. Snapshot before big changes so you can revert.

Safety. Keep intentionally-vulnerable targets on an isolated/internal network. Never expose them to the internet or attack anything outside this lab.

Lessons

#LessonDifficultyHands-onWhat you'll do
1Offensive Security Methodology🟢 Beginner~36mKill chain, ATT&CK, PTES and how engagements, scoping and rules of engagement are structured.
2Reconnaissance🟢 Beginner~60mPassive and active information gathering, footprinting and building a target model.
3OSINT🟢 Beginner~60mPeople, infrastructure and metadata discovery from open sources with a clean audit trail.
4Enumeration🟡 Intermediate~72mService, user, share and application enumeration that turns access into a foothold plan.
5Scanning🟢 Beginner~60mHost discovery, port and service scanning, versioning and safe scan tuning.
6Vulnerability Assessment🟡 Intermediate~48mScanner selection, validation, false-positive triage and risk-based prioritisation.
7Exploitation🟠 Advanced~84mTurning a vulnerability into reliable access, payload selection and staging in a lab.
8Password Attacks🟡 Intermediate~60mGuessing, spraying, cracking, and coercion, plus defensive lockout and detection.
9Persistence🟠 Advanced~72mMaintaining access across reboots on Linux and Windows and the telemetry it generates.
10Privilege Escalation🟠 Advanced~84mLocal escalation on Linux and Windows through misconfiguration, tokens and kernel bugs.
11Lateral Movement🟠 Advanced~72mMoving between hosts with remote execution, pivoting and relayed credentials.
12Defense Evasion🟠 Advanced~72mBypassing controls, obfuscation, and living-off-the-land, with the detections they trip.
13Credential Access🟠 Advanced~72mDumping, sniffing and forging credentials across the OS and directory services.
14Command and Control🟠 Advanced~60mC2 architecture, channels, redirectors, malleable profiles and beacon detection.
15Exfiltration🟠 Advanced~48mStaging, compression, encryption and covert channels, plus DLP and egress detection.
16Post-Exploitation🟠 Advanced~72mSituational awareness, data collection, objective completion and cleanup discipline.
17Active Directory Attacks🔴 Expert~108mKerberoasting, delegation abuse, ACL attacks, DCSync and full domain-compromise chains.
18Wireless Attacks🟠 Advanced~60mCapturing handshakes, evil twins and PMKID attacks against a lab access point.
19Social Engineering🟡 Intermediate~48mPretexting, phishing infrastructure, payload delivery and human-layer defences.
20Red Teaming🔴 Expert~84mObjective-based adversary emulation, infrastructure, OPSEC and reporting.
21Operational Security🟠 Advanced~48mAttribution management, infrastructure hygiene and separating tooling from identity.
22Capture The Flag🟢 Beginner~60mCategories, methodology, tooling and a structured path from first blood to expert.
23Bug Bounty🟡 Intermediate~60mProgram selection, scope, recon automation, reporting and building a repeatable pipeline.
24Exploit Development🔴 Expert~108mFrom crash to control: fuzzing, triage, primitive building and mitigation bypass.

24 lessons.

← Repository home · Full contents · Labs campaign

Cybersecurity-Mastery — interactive security learning · runs locally