Practice library / Security fundamentals
Workbook · Easy · 3 hours
Cybersecurity Essentials
The CIA triad, threat actors, vulnerability lifecycle, and security frameworks.
On this page 10 sections
- ·Chapter 1 — The CIA Triad
- ·Chapter 2 — Threat Actors
- ·Chapter 3 — Attack Types
- ·Chapter 4 — Vulnerability Management
- ·Chapter 5 — Penetration Testing Methodology
- ·Chapter 6 — OWASP Top 10 (2021)
- ·Chapter 7 — Cryptography Basics
- ·Chapter 8 — Authentication & Access Control
- ·Chapter 9 — Defence Concepts
- ·Chapter 10 — Certifications Roadmap
Every security engineer shares one vocabulary: the CIA triad, threat actors, vulnerabilities, defences, and the lifecycle that turns them into a test. This workbook covers that vocabulary. It walks through confidentiality, integrity, availability and the extra principles; the classes of threat actor and attack; CVE and CVSS; the OWASP Top 10; and the six phases of a professional penetration test. It also sketches a certification roadmap, from Security+ to OSCP, so that you can plan your own path. The chapters are deliberately conceptual, because the terms here show up in every later workbook and every lab report that you will write.
Chapter 1 — The CIA Triad
The CIA Triad is the foundational model for information security. Every security control, threat, and attack can be mapped to at least one of its three pillars.
Confidentiality
Information is only accessible to those authorised to see it. Broken by: eavesdropping, credential theft, data breaches.
Integrity
Data is accurate and has not been altered. Broken by: man-in-the-middle, SQL injection, ransomware.
Availability
Systems and data are accessible when needed. Broken by: DDoS attacks, ransomware, hardware failure.
Additional Principles
- Non-repudiation — A user cannot deny an action they performed (digital signatures prove this)
- Authentication — Verifying identity (something you know/have/are)
- Authorisation — What an authenticated user is permitted to do
- Accounting/Auditing — Logging who did what and when
Chapter 2 — Threat Actors
| Actor | Motivation | Skill | Example |
|---|---|---|---|
| Script Kiddie | Thrill, notoriety | Low | Running downloaded tools without understanding them |
| Hacktivist | Political/social | Medium | Anonymous DDoS campaigns |
| Cybercriminal | Financial gain | Medium–High | Ransomware gangs, card skimming |
| Insider Threat | Revenge, profit | Variable | Disgruntled employee stealing data |
| Nation-State APT | Espionage, sabotage | Very High | Stuxnet, SolarWinds |
| Penetration Tester | Authorised testing | High | Hired to find weaknesses before attackers do |
Chapter 3 — Attack Types
Network Attacks
- Reconnaissance — Passive (OSINT, Google dorking) and active (port scanning, ping sweeps)
- Man-in-the-Middle (MitM) — ARP spoofing, SSL stripping, DNS poisoning
- DoS/DDoS — SYN flood, UDP flood, volumetric attacks, application layer (Layer 7)
- Packet Sniffing — Capturing cleartext credentials on unencrypted protocols
Application Attacks
- SQL Injection — Manipulating database queries via unsanitised input
- XSS (Cross-Site Scripting) — Injecting malicious JavaScript into web pages
- CSRF — Tricking authenticated users into performing unintended actions
- File Inclusion — LFI/RFI: including local or remote files through vulnerable parameters
- Command Injection — Executing OS commands via web application input
Social Engineering
- Phishing — Deceptive emails to steal credentials or deliver malware
- Spear Phishing — Targeted phishing using personal information
- Vishing — Phone-based social engineering
- Pretexting — Creating a fabricated scenario to manipulate a target
Chapter 4 — Vulnerability Management
CVE & CVSS
CVE (Common Vulnerabilities and Exposures) is the standardised naming system for known vulnerabilities. Each CVE has an ID like CVE-2021-44228 (Log4Shell).
CVSS (Common Vulnerability Scoring System) scores vulnerabilities 0–10:
| Score | Severity |
|---|---|
| 0.0 | None |
| 0.1–3.9 | Low |
| 4.0–6.9 | Medium |
| 7.0–8.9 | High |
| 9.0–10.0 | Critical |
# Search CVEs from command line
searchsploit apache 2.4.49
searchsploit -m 50383 # copy exploit to current dir
# Update searchsploit database
sudo searchsploit -uChapter 5 — Penetration Testing Methodology
Professional penetration testing follows a defined lifecycle. Every phase feeds information into the next.
Planning & Scoping
Define what is in scope (IPs, domains, applications), rules of engagement, testing windows, and emergency contacts. Get the Statement of Work (SoW) signed.
Reconnaissance
Passive: WHOIS, DNS records, Google dorking, LinkedIn, Shodan, Censys — no direct contact with the target. Active: Nmap scans, banner grabbing — direct interaction with target systems.
Scanning & Enumeration
Port scanning, service version detection, OS fingerprinting. Enumerate web directories, SMB shares, SNMP, SMTP users, FTP banners. Build a complete picture of the attack surface.
Exploitation
Gain initial access: exploit vulnerabilities, use found credentials, phish users. Document every step — screenshots, commands, output. Never modify or delete data.
Post-Exploitation
Establish persistence, escalate privileges, pivot to other systems, dump credentials. Demonstrate business impact: "We accessed the payroll database" is more compelling than "We got a shell."
Reporting
Write an executive summary (non-technical) and a technical report with: finding severity, affected systems, proof-of-concept steps, and remediation recommendations.
Chapter 6 — OWASP Top 10 (2021)
| # | Category | Example |
|---|---|---|
| A01 | Broken Access Control | Accessing another user's account by changing an ID in the URL |
| A02 | Cryptographic Failures | Storing passwords in MD5, transmitting data over HTTP |
| A03 | Injection | SQL injection, command injection, LDAP injection |
| A04 | Insecure Design | No rate limiting on login page, no security in SDLC |
| A05 | Security Misconfiguration | Default credentials, exposed admin panels, verbose errors |
| A06 | Vulnerable & Outdated Components | Running Apache 2.4.49 (CVE-2021-41773) |
| A07 | Identification & Auth Failures | Weak passwords, no MFA, broken session management |
| A08 | Software & Data Integrity Failures | Insecure deserialization, unsigned updates |
| A09 | Security Logging & Monitoring Failures | No logs, no alerts for brute force attacks |
| A10 | Server-Side Request Forgery (SSRF) | Fetching internal metadata endpoints via user-supplied URL |
Chapter 7 — Cryptography Basics
Symmetric vs Asymmetric
- Symmetric — The same key encrypts and decrypts. It is fast, but key sharing is the problem. Examples: AES-256, ChaCha20, DES (weak)
- Asymmetric — The public key encrypts and the private key decrypts. It is slow, but it solves key distribution. Examples: RSA, ECC, Diffie-Hellman
Hashing
A hash is a one-way function that turns input into a fixed-length digest. Hashes are used for password storage, file integrity, and digital signatures. Never encrypt passwords — hash them.
# Generate hashes on Linux
echo -n "password" | md5sum
echo -n "password" | sha256sum
echo -n "password" | sha512sum
# OpenSSL
openssl dgst -sha256 file.txt
openssl rand -hex 32 # generate random key
# Base64 (NOT encryption — just encoding)
echo "hello" | base64
echo "aGVsbG8K" | base64 -dChapter 8 — Authentication & Access Control
Authentication Factors
- Something you know — Password, PIN, security question
- Something you have — Hardware token, smart card, phone (OTP)
- Something you are — Fingerprint, face recognition, retina scan
Common Auth Weaknesses
- Default credentials not changed (
admin:admin,admin:password) - No account lockout policy (allows unlimited brute force)
- Weak password policy (minimum 6 chars, no complexity)
- Session tokens predictable or transmitted over HTTP
- Passwords stored in plaintext or weak hash (MD5)
Chapter 9 — Defence Concepts
Defence in Depth
Layer multiple security controls so that if one fails, others still protect the asset. Examples: firewall + IDS + endpoint AV + network segmentation + MFA + logging.
Key Defensive Technologies
| Technology | What it Does |
|---|---|
| Firewall | Filters traffic by IP/port/protocol rules |
| IDS/IPS | Detects (IDS) or blocks (IPS) malicious patterns |
| WAF | Filters HTTP requests — blocks SQLi, XSS, etc. |
| SIEM | Aggregates and correlates logs from all sources |
| EDR | Endpoint detection — behaviour-based AV replacement |
| MFA | Second factor prevents credential-only attacks |
| Network Segmentation | VLANs and ACLs limit lateral movement |
| Patch Management | Close known CVEs before attackers exploit them |
Chapter 10 — Certifications Roadmap
Certifications show employers that a candidate's skills are validated. The following is a recommended progression for offensive security.
CompTIA Security+ — Start Here
This is an entry-level certification. It covers fundamental security concepts, threats, cryptography, and compliance. It is a US DoD baseline requirement. It has no prerequisites.
eJPT (eLearnSecurity Junior Penetration Tester)
A practical, beginner-friendly exam. It is a suitable first certification for aspiring penetration testers. It is relatively inexpensive.
CompTIA PenTest+ / CEH
Mid-level certifications. PenTest+ is more practical; CEH is more theory-heavy. Employers sometimes list them as job requirements.
OSCP (Offensive Security Certified Professional)
A widely recognised certification. The 24-hour hands-on exam requires candidates to compromise a series of machines. Prepare with HackTheBox and the labs on this site.
OSEP / OSED / OSWE — Advanced Specialisations
Offensive Security's advanced tracks: Evasion (OSEP), Exploit Dev (OSED), Web Expert (OSWE). Take these after OSCP.
Workbook complete. You now have a solid conceptual foundation. Continue with the CCNA Foundation workbook or start the labs.
Sign in to track progress and send feedback.
Related
This workbook is extra practice for the course Security fundamentals. Do the lessons first.Open the course