Introduction and Methodology
Hacking and hacker types, the Cyber Kill Chain, the MITRE ATT&CK framework, ethical hacking vs penetration testing, and the phases of a penetration test. Covers decks 1 (Introduction) and Day 1 (lab intro).
This page covers the course introduction: what hacking is, the kinds of hackers, the core security vocabulary, two attack-modelling frameworks (Cyber Kill Chain and MITRE ATT&CK), and the methodology and phases of a penetration test.
What is hackingSearch on YouTube
Hacking is compromising digital devices and networks through unauthorized access to an account or computer system. It is not always malicious, but it is most often linked to illegal activity and data theft. In security, hacking means misusing devices and networks to:
- damage or corrupt systems,
- gather information on users,
- steal data and documents, or
- disrupt data-related activity.
Real attackers are methodical. Before any exploit runs they study the target (technology stack, employees, public footprint), observe patterns (who logs in, what software is used, where the gaps are), probe boundaries with small low-noise checks, and wait patiently for the right moment. The mindset behind a breach is curiosity, patience, creativity and persistence.
The first public demonstration of a "hack" was in 1903. During Marconi's demonstration of his "secure" wireless system, Nevil Maskelyne injected his own Morse-code signals, tapping out rude messages to prove the system was vulnerable to interference.
Types of hackersSearch on YouTube
| Type | Also called | Behaviour |
|---|---|---|
| Black hat | Crackers | Hack without permission; steal data, disrupt services, install malware/ransomware for gain or malice. |
| White hat | Ethical hackers | The "good guys"; hack with permission to find and fix flaws before black hats do (ethical hacking). |
| Grey hat | — | Sit between the two; break rules without intending harm, often disclosing flaws publicly (which also alerts attackers). |
| Script kiddie | Skid | Lacks knowledge of how an exploit works; runs exploits others wrote, cannot debug or modify them. |
| Elite hacker | — | Deep knowledge; can create new exploits and modify code others wrote. |
Red team and blue teamSearch on YouTube
- Blue team — the defenders. They run vulnerability assessments and security audits on company assets, identify weaknesses, and test the effectiveness of security controls. Their goal is to defend against attacks and prevent future ones.
- Red team — the offensive team. They simulate attacks on the organisation's assets to test the overall security posture and find exploitable weaknesses.
Core security vocabularySearch on YouTube
| Term | Meaning |
|---|---|
| Asset | Anything valuable to an organisation that needs protection. |
| Vulnerability | A weakness in a system that can be exploited. |
| Threat | Any potential danger that could exploit a vulnerability, causing unauthorized access or damage. |
| Risk | The potential for loss or damage when a vulnerability is exploited. |
| Exploit | A technique that takes advantage of a vulnerability. |
| Payload | The actual malicious code delivered after exploitation. |
| Zero-day | An unknown vulnerability with no existing patch. |
Two-mark favourite: define asset, vulnerability, threat and risk, and show how they relate. A threat exploits a vulnerability in an asset, and the resulting exposure is the risk.
Case study: Emotet malware (2014)Search on YouTube
Emotet was a Windows malware that began in 2014 as a banking Trojan and evolved into modular malware (a malware loader). Its job was to break in, stay hidden and open the door for other malware.
Infection flow:
- Arrives by a malicious script, macro-enabled document (Excel/Word) or link in an email attachment.
- Obfuscated macro code launches PowerShell.
- PowerShell downloads Emotet from compromised sites.
- Once installed, it spreads laterally to other endpoints, steals credentials from installed applications, and spams the user's contact list.
Because the spam comes from a hijacked, trusted account, recipients feel safe and are more likely to click. After gaining control, Emotet downloaded other malware: TrickBot (steals credentials, maps the network), QakBot (lateral movement), and Ryuk / Conti (ransomware).
Cyber Kill ChainSearch on YouTube
Every successful cyber attack follows a sequence of steps. If we understand the steps, we can detect, disrupt or stop attacks early. The Cyber Kill Chain, developed by Lockheed Martin, describes the 7 stages of an attack from planning to data exfiltration.
| # | Stage | What happens | Example |
|---|---|---|---|
| 1 | Reconnaissance | Gather intelligence: scan domains, harvest employee names, map technologies. | Scraping job postings to learn the software stack. |
| 2 | Weaponization | Pair an exploit with a backdoor/payload into a deliverable file or link. | A malicious macro inside an invoice document. |
| 3 | Delivery | Transmit the weapon to the target. | A phishing email with a malicious attachment. |
| 4 | Exploitation | The payload's code executes, exploiting a software or human flaw. | A macro runs and exploits an unpatched bug. |
| 5 | Installation | Malware installs and establishes persistence to survive reboot. | A backdoor service auto-starts with the OS. |
| 6 | Command & Control (C2) | An outbound channel gives the attacker live remote control. | The host beacons out to a remote C2 server. |
| 7 | Actions on Objectives | The attacker pursues the real goal: steal, disrupt, or move laterally. | Customer records exfiltrated to an external server. |
Recon, Weaponize, Deliver, Exploit, Install, Command, Act — "Real Weapons Deliver Exploits Into Computers Always."
The initials spell RWDEICA; keep the stages in this order for the exam.
Mapping Emotet to the kill chainSearch on YouTube
| Stage | Emotet behaviour |
|---|---|
| Reconnaissance | Collected target emails from previous infections and stolen contact lists. |
| Weaponization | Created malicious Word documents with macros carrying the payload. |
| Delivery | Sent phishing emails posing as invoices or payment notices. |
| Exploitation | Victims enabled macros, running the embedded PowerShell script. |
| Installation | Installed the Emotet binary; persistence via registry run keys and scheduled tasks. |
| Command & Control | Connected to C2 servers over HTTPS to receive commands and download TrickBot. |
| Actions on Objectives | Stole credentials and financial data, spread across networks. |
MITRE ATT&CK frameworkSearch on YouTube
The kill chain is a bird's-eye view. To zoom in on exact behaviours, use the MITRE ATT&CK framework (Adversarial Tactics, Techniques, and Common Knowledge). It is a globally accessible knowledge base of adversary tactics and techniques based on real-world threats and threat actors. It is more granular than the kill chain, organised as Tactics to Techniques to Procedures (TTPs).
| Level | Meaning |
|---|---|
| Tactics | The adversary's goal — the why of each action (e.g. Initial Access, Exfiltration). Relatively static over time. |
| Techniques | How the goal is achieved (e.g. Phishing, Remote Services). Sub-techniques add deeper granularity, each with a Technique ID, data sources, detection guidance and mitigations. |
| Procedures | The specific way a particular threat actor implements a technique — its "fingerprint". |
Threat actors and APTsSearch on YouTube
Threat actors are individuals, groups or organisations that deliberately harm digital systems. Researchers track them over time and assign group names:
- APT1 (China) — targeted US companies for trade secrets.
- APT28 (Russia) — linked to election interference.
- APT29 (Russia) — behind the SolarWinds hack.
- APT3 (China) — known for spearphishing and privilege escalation.
APT means Advanced Persistent Threat: Advanced (sophisticated tools like zero-days and custom malware), Persistent (stays in the system for months or years, avoiding detection), Threat (intent and capability to cause serious damage).
Emulation vs simulationSearch on YouTube
- Adversary emulation — realistically recreate a known threat actor's TTPs (e.g. APT29's TTPs from ATT&CK). It follows a step-by-step chain of what the real attacker did, is highly structured and repeatable, and tests defences against known attacks.
- Adversary simulation — test how an attacker might break in, known or unknown.
Red and blue teams share ATT&CK as a common language: the cyber-threat-intel team says "this is what the actor does", the blue team checks "can we detect that?", and the red team emulates it with the ATT&CK Navigator (export highlighted techniques as a JSON layer).
Lab 1A asked you to analyse an attack scenario (phishing with a macro-enabled .docm, PowerShell download, registry run key, credential dumping, lateral movement, ransomware) and map each step to the ATT&CK Tactic, Technique and Technique ID, then build and export a Navigator layer as JSON. Lab 1B drilled core Linux commands: cat /etc/passwd, whoami, sudo adduser, sudo usermod -aG sudo <user>, groups <user>, su - <user>, and file/permission commands (touch, chmod 755, chown, wget, curl, grep -r, find).
Ethical hacking vs penetration testingSearch on YouTube
Ethical hacking is the authorized practice of testing and evaluating the security of systems, networks or applications to find vulnerabilities before malicious hackers exploit them. Ethical hackers use the same tools and techniques as attackers, but with permission. They are also called white hat hackers.
| Aspect | Ethical hacking | Penetration testing |
|---|---|---|
| Scope | Broad: find all possible vulnerabilities across many layers and improve posture. | Focused, simulated attack to test defences at specific entry points. |
| Goal | Identify all weaknesses, improve overall security. | Assess specific entry points and how far an attacker can go. |
| Toolset | Broad: recon, exploitation, social engineering, etc. | Specific scanning/exploitation tools (Nmap, Metasploit). |
Prerequisite skills: strong networking (TCP/IP, OSI model, protocols), proficiency in Windows and Linux, programming (Python, C++, Bash), and security basics (cryptography, core principles).
What penetration testing isSearch on YouTube
Penetration testing simulates an attack on a network or system to evaluate its security posture and find exploitable vulnerabilities. Results are documented. It requires written permission and authorization from management, including scope and time frame.
Methodologies (open-source):
- OSSTMM — Open Source Security Testing Methodology Manual.
- OWASP — Open Web Application Security Project.
- NIST Framework.
Approaches and typesSearch on YouTube
Approaches: black box (no prior knowledge), white box (full knowledge), grey box (partial knowledge).
Types of penetration test:
- Network — tests a network environment for vulnerabilities. External (internet-facing, from an outside attacker's view) and internal (attacker already inside; measures damage after initial access). May need VPN access or a physical visit.
- Web application — very common since apps hold critical data (credit cards, credentials).
- Mobile application — newest type; tests Android/iOS apps that serve customers.
- Social engineering — evaluates people, not technology; measures how susceptible staff are to manipulation.
Phases of a penetration testSearch on YouTube
0. Pre-engagementSearch on YouTube
Define the Rules of Engagement (RoE) and goals: identify scope, timeline and target systems; choose the testing approach (black/white/grey box); get written authorization; discuss legal and compliance boundaries.
The RoE defines how the test is laid out and must be mutually agreed. Almost every RoE includes a signed "permission to hack" and non-disclosure agreement, the scope and parts to be tested, the project duration (start and end dates), the methodology, the goals, the allowed and disallowed techniques (e.g. whether DoS testing is permitted), and the liabilities and responsibilities.
1. ReconnaissanceSearch on YouTube
Gather intelligence about the target — the longest phase.
| Passive reconnaissance (no direct contact) | Active reconnaissance (direct interaction, leaves traces) |
|---|---|
| OSINT (Open Source Intelligence) | Ping sweeps and traceroutes |
| WHOIS lookups and DNS records | Port scanning (Nmap) |
| Google Dorking / Shodan | Banner grabbing |
| LinkedIn, GitHub, social media profiling | DNS zone transfer attempts |
| Job listings | Network sniffing / packet capture |
| Wayback Machine / cached content | Social engineering and phishing (with authorization) |
2. Scanning and enumerationSearch on YouTube
Explore live hosts, open ports, services and system info; identify vulnerabilities to exploit. Port scanning discovers open ports and running services. Scanning tools: Nessus, OpenVAS, Nikto.
3. Gaining access / exploitationSearch on YouTube
Exploit the weaknesses found:
- Password attacks — Hashcat, John the Ripper, Hydra.
- Web exploitation — SQLmap, XSSer, Burp Suite.
- Social engineering — SET Toolkit, GoPhish.
- Metasploit — msfconsole, Meterpreter.
4. Post-exploitationSearch on YouTube
- Privilege escalation — elevate from user to root/admin.
- Persistence — maintain access across reboots (backdoors, cron jobs).
- Lateral movement — move from system to system in the network.
- Data exfiltration — simulate stealing sensitive data (limited to scope).
- Pivoting — use a compromised host to attack internal segments.
- Covering tracks — clear logs, hide artifacts, test detection capabilities.
5. ReportingSearch on YouTube
Document the process, findings and vulnerabilities; create a comprehensive report for the client; offer actionable remediation suggestions. The report is the deliverable the client pays for.
Learn the five phases in order: Reconnaissance, Scanning & Enumeration, Gaining Access (Exploitation), Post-Exploitation, Reporting. A pre-engagement/scoping step precedes them to agree the RoE. Exam scenarios (e.g. "black-box test on a bank portal, no disruption") want one key activity or tool per phase.
Quick self-testSearch on YouTube
Who developed the Cyber Kill Chain and how many stages does it have?
Lockheed Martin. It has 7 stages: Reconnaissance, Weaponization, Delivery, Exploitation, Installation, Command & Control, Actions on Objectives.
Define vulnerability, threat and risk, and relate them.
A vulnerability is a weakness that can be exploited. A threat is a potential danger that could exploit that weakness. Risk is the potential loss or damage when a vulnerability is exploited.
What does TTP stand for in MITRE ATT&CK, and what does each level describe?
Tactics, Techniques, Procedures. Tactic = the goal (the why), Technique = how the goal is achieved (the how), Procedure = the specific implementation a threat actor uses.
How does MITRE ATT&CK let defenders zoom in beyond the Cyber Kill Chain?
The kill chain gives a high-level 7-stage view. ATT&CK is a granular knowledge base of real adversary behaviours, so defenders move from "an attack is happening" to "this exact technique is used, here is how to detect and mitigate it".
Difference between adversary emulation and adversary simulation?
Emulation recreates a known threat actor's documented TTPs step by step (structured, repeatable). Simulation tests how an attacker in general might break in, known or unknown.
What does APT stand for and what makes a threat "advanced" and "persistent"?
Advanced Persistent Threat. Advanced = sophisticated tools (zero-days, custom malware). Persistent = stays hidden in the system for months or years. Threat = intent and capability to cause serious damage.
List the three open-source penetration testing methodologies.
OSSTMM (Open Source Security Testing Methodology Manual), OWASP (Open Web Application Security Project), and the NIST framework.
What is the difference between an external and an internal network penetration test?
External tests the internet-facing infrastructure from an outside attacker's view. Internal assumes the attacker is already inside the network and measures how much damage they can do after initial access.
Why must a penetration test always have written authorization, and what document defines it?
Because unauthorized access is illegal and the tester may break things or reach sensitive data; liabilities must be agreed beforehand. The Rules of Engagement (RoE) define scope, timeline, methodology, allowed/disallowed techniques and liabilities, with a signed "permission to hack" and NDA.
Name the five main phases of a penetration test in order.
Reconnaissance, Scanning & Enumeration, Gaining Access (Exploitation), Post-Exploitation, Reporting (preceded by a pre-engagement/scoping step).
- Hacking is unauthorized access to systems; hackers are classed as black hat, white hat, grey hat, script kiddie and elite, with blue (defence) and red (offence) teams.
- Key vocabulary: asset, vulnerability, threat, risk, exploit, payload, zero-day.
- The Cyber Kill Chain (Lockheed Martin) models an attack in 7 stages: Reconnaissance, Weaponization, Delivery, Exploitation, Installation, C2, Actions on Objectives.
- MITRE ATT&CK zooms in with Tactics to Techniques to Procedures (TTPs), a shared language for red and blue teams; adversary emulation recreates a known actor's TTPs.
- Ethical hacking is authorized security testing; penetration testing is a focused simulated attack requiring written authorization and an agreed RoE.
- Pen-test types: network (external/internal), web app, mobile app, social engineering; approaches: black/white/grey box.
- The five phases are Reconnaissance, Scanning & Enumeration, Gaining Access, Post-Exploitation and Reporting.