Skip to content

Cyber Security Fundamentals

Think like a defender and get SOC-ready.

A defensive, blue-team track from security principles to a working home SOC lab. Learn the networking, operating system, cryptography and identity basics defenders rely on, then detect, investigate and respond to attacks using logs, a SIEM, MITRE ATT&CK and a real incident response process.

01Security principles & threat modelling

The vocabulary and mental models every defender uses.

  1. CIA triad, AAA & non-repudiationThe CIA triad names the three goals security protects: keeping data secret (confidentiality), correct (integrity) and available. AAA and non-repudiation extend this to proving who did what. Classifying an incident by which goal it harmed is the first instinct of a defender.9 min
  2. Assets, threats, vulnerabilities & riskRisk is a threat exploiting a vulnerability in an asset, scored by how likely it is and how badly it would hurt. Defenders cannot fix everything, so they rank risks and choose to mitigate, transfer, accept or avoid each one.9 min
  3. Threat modelling with STRIDEThreat modelling asks, for a specific design, what can go wrong before it is built. STRIDE gives six categories to walk through against each part of a data flow diagram, turning vague worry into a concrete list of threats and mitigations.9 min
  4. Security controls & defence in depthDefence in depth layers independent controls so that one failure does not become a breach. Controls are grouped by type (technical, administrative, physical) and by function (preventive, detective, corrective). Least privilege and zero trust push this idea further.8 min
  5. Security careers & the SOCA Security Operations Centre monitors, detects and responds to threats, usually in tiers. Tier 1 triages alerts, tier 2 investigates, and tier 3 hunts and handles complex incidents. Blue, red and purple teams describe defence, offence and the two working together.8 min

02Networking for security

Know normal traffic so you can spot abnormal traffic.

  1. OSI & TCP/IP modelsThe OSI model splits networking into seven layers and the TCP/IP model into four. Defenders use the layers to place protocols, devices and attacks precisely, which makes troubleshooting and threat analysis systematic rather than guesswork.9 min
  2. Common ports, protocols & DNSServices listen on well-known ports, so recognising a port suggests the protocol in use. DNS turns names into addresses through a chain of resolvers. Knowing the common ports and how DNS resolves is essential for reading scans and logs.8 min
  3. Packet analysis with WiresharkWireshark captures and decodes packets so you can see exactly what crossed a network. Defenders use display filters to isolate traffic, follow streams to reconstruct conversations, and recognise patterns like port scans or malware beaconing.9 min
  4. Firewalls, NAT & network segmentationFirewalls decide which traffic may pass based on rules, and stateful firewalls track connections so replies are allowed automatically. Segmentation with VLANs and a DMZ limits how far an attacker can move. A default-deny stance only allows what is explicitly needed.8 min
  5. Common network attacks & defencesClassic network attacks target the gaps between trusting hosts: spoofing forges identity, man-in-the-middle sits between two parties, and denial of service exhausts resources. Each has a known defence, from encryption to rate limiting and monitoring.9 min

03Linux & Windows security basics

Harden the endpoints and read the logs they produce.

  1. Linux users, permissions & sudoLinux files have read, write and execute permissions for owner, group and others. Special bits like SUID change how programs run. Auditing permissions and sudo rules shows who can do what, which is the foundation of least privilege on Linux.10 min
  2. Linux hardening & logsHardening removes unnecessary exposure: lock down SSH, disable unused services, run a host firewall and keep patches current. Linux auth logs then record who logged in and who failed, which is where many investigations start.10 min
  3. Windows accounts, UAC & Group PolicyWindows has local accounts on one machine and domain accounts managed centrally by Active Directory. User Account Control limits admin power until explicitly needed, and Group Policy pushes settings to many machines at once.10 min
  4. Windows Event Logs & SysmonWindows records security events with numeric IDs, such as 4624 for a logon and 4688 for process creation. Sysmon adds richer telemetry. Knowing the key event IDs and how to query them turns raw logs into an investigation trail.10 min
  5. Vulnerability scanning & patch managementVulnerability management finds weaknesses, rates them and tracks their fix. A CVE names a specific flaw, CVSS scores its severity, and the KEV catalog flags those known to be exploited. Risk-based prioritisation patches what attackers actually use first.10 min

04Cryptography, PKI & identity

How data is protected and how users prove who they are.

  1. Symmetric vs asymmetric encryptionSymmetric encryption uses one shared key and is fast; asymmetric uses a public and private key pair and solves key distribution. Real systems combine them: asymmetric crypto exchanges a symmetric key, which then encrypts the bulk of the data.11 min
  2. Hashing, MACs & digital signaturesA hash is a one-way fingerprint of data: the same input always gives the same output, but you cannot reverse it. Hashes verify integrity, MACs add a secret key, and digital signatures prove origin. Old algorithms like MD5 are retired because collisions are feasible.10 min
  3. PKI, certificates & TLSPublic key infrastructure binds identities to public keys through certificates signed by trusted certificate authorities. TLS uses these certificates to authenticate a server and establish an encrypted session, which is what the padlock in a browser represents.10 min
  4. Authentication, authorization & password storageAuthentication proves who you are; authorization decides what you may do. Passwords must be stored as salted, slow hashes so a stolen database is hard to crack, which is why Argon2, scrypt and bcrypt replace plain or fast hashes.10 min
  5. MFA & phishing-resistant authenticationMulti-factor authentication combines factors from different categories: something you know, have or are. SMS and push can be phished or fatigued, while FIDO2 passkeys bind the login to the real site and resist phishing by design.10 min
  6. OAuth 2.0 & OpenID ConnectOAuth 2.0 lets an app act on a user's behalf without their password by using tokens. OpenID Connect adds an identity layer with an ID token. The authorization code flow with PKCE is the recommended path for web and mobile apps.11 min
  7. Least privilege, RBAC & privileged accessLeast privilege gives each account only the access it needs, no more. Role-based access control groups permissions into roles, separate admin accounts limit blast radius, and periodic reviews remove access that is no longer needed.10 min

05Web security from the defender's view

The OWASP Top 10 explained as risks to prevent and detect.

  1. HTTP, cookies & sessionsHTTP is a request and response protocol with methods and status codes. Because it is stateless, sites use cookies and sessions to remember a logged-in user. Understanding this is the basis for both attacking and defending web apps.10 min
  2. OWASP Top 10 overviewThe OWASP Top 10 is a widely used list of the most critical web application security risks. For a defender it is a checklist: know each category, its typical cause, one prevention and how it might show up in logs.10 min
  3. Injection & XSS defencesInjection and cross-site scripting both happen when untrusted input is treated as code. SQL injection fixes with parameterised queries; XSS fixes with context-aware output encoding and a Content Security Policy. The defender's job is to keep data and code apart.11 min
  4. Broken access control & SSRFBroken access control lets a user reach data or actions they should not, such as changing an ID to view another's record (IDOR). Server-side request forgery tricks a server into making requests, often to internal or cloud metadata endpoints. Both demand checks on the server.10 min
  5. Security headers, WAF & secure SDLCBrowser security headers, a web application firewall and a secure development lifecycle work together. Headers like HSTS and CSP harden the browser, a WAF filters obvious attacks, and building security into development prevents flaws from shipping.11 min

06Malware & the attack lifecycle

How attackers operate, described in frameworks defenders share.

  1. Malware families & how they spreadMalware is classified by how it behaves: viruses attach to files, worms spread by themselves, trojans hide in useful programs, ransomware encrypts for extortion, and infostealers harvest data. Many modern attacks are fileless, abusing legitimate tools.11 min
  2. Phishing & social engineeringSocial engineering targets people rather than software, and phishing is its most common form. Defenders analyse email headers and authentication results (SPF, DKIM, DMARC), inspect links safely, and build easy reporting so users become sensors.11 min
  3. The Cyber Kill ChainThe Cyber Kill Chain breaks an intrusion into ordered phases from reconnaissance to actions on objectives. Its value for defenders is that breaking any one link disrupts the whole attack, so controls can be placed at the cheapest or earliest phase.9 min
  4. MITRE ATT&CKMITRE ATT&CK is a knowledge base of real attacker tactics (the why) and techniques (the how), observed in the wild. Defenders map alerts and incidents to it to describe behaviour precisely, measure detection coverage and find gaps.10 min
  5. Threat intelligence & IOCsThreat intelligence turns data about adversaries into action. Indicators of compromise like IPs and hashes are easy to use but easy for attackers to change; behaviours and TTPs are harder to change, which the Pyramid of Pain captures.10 min

07Logging, SIEM & detection

Turn raw logs into alerts an analyst can act on.

  1. Log sources & what to collectDetection is only as good as the logs collected. High-value sources include endpoint (process and Sysmon), network, identity and cloud logs. Logs must be forwarded reliably, timestamped consistently, and retained long enough to investigate.10 min
  2. SIEM fundamentals: ingest, parse, searchA SIEM ingests logs from many sources, parses them into fields, and lets analysts search and alert across everything in one place. It is the central workbench of a SOC, turning scattered logs into correlated, searchable events.10 min
  3. Writing detection rules with SigmaSigma is a generic, vendor-neutral format for detection rules. You write a rule describing suspicious log patterns, convert it to your SIEM's query language, and test it against both benign and malicious samples so it fires on threats without drowning analysts.11 min
  4. Alert triage & false positivesTriage decides whether an alert is a true positive, a false positive or benign activity, and documents why. A consistent checklist, context on the user and host, and a clear escalation path keep decisions fast and defensible.11 min
  5. IDS, EDR & network monitoringIntrusion detection systems watch network traffic for known patterns, while endpoint detection and response watches process and file behaviour on hosts and can act. Flow logs and Zeek add network context. Together they give both network and endpoint visibility.10 min

08Incident response

A calm, repeatable process for when things go wrong.

  1. The incident response lifecycleIncident response follows a repeatable lifecycle: prepare, detect and analyse, contain, eradicate and recover, then learn. Working the cycle calmly, with defined severities and roles, keeps a crisis from becoming chaos.11 min
  2. Scoping, containment & eradicationScoping finds every affected host and account before you act. Short-term containment stops immediate harm; long-term containment holds the line while you prepare a clean recovery. Eradication removes persistence and resets compromised credentials.11 min
  3. Evidence handling & forensics basicsDigital forensics collects and preserves evidence so conclusions hold up. Volatile data like memory is captured before disk, every item is hashed for integrity, and a chain of custody records who handled what. A timeline ties the artefacts together.10 min
  4. Playbooks, communication & lessons learnedPlaybooks turn hard-won experience into repeatable steps for common incidents like phishing. Clear communication plans decide who is told what and when, and a blameless lessons-learned review turns each incident into lasting improvement.10 min

09Cloud security & governance

Secure cloud accounts and connect security work to risk and compliance.

  1. Shared responsibility & cloud IAMIn the cloud, security duties are split between the provider and you. The provider secures the underlying infrastructure; you secure your data, identities and configuration. The split shifts with the service model, and identity is the new perimeter.10 min
  2. Cloud misconfigurations & loggingMost cloud breaches come from misconfiguration, not provider flaws: public storage buckets, wide-open security groups and disabled audit logs. Enabling audit logging and running posture checks finds these before an attacker does.11 min
  3. NIST CSF, ISO 27001 & CIS ControlsSecurity frameworks give a common structure for a programme. The NIST Cybersecurity Framework organises work into functions, ISO 27001 defines a certifiable management system, and the CIS Controls give a prioritised list of concrete actions.11 min
  4. Risk management, policies & complianceGovernance, risk and compliance connects security work to the business. A risk register tracks risks and their treatment, policies and standards set expectations, and regulations like GDPR or PCI DSS impose requirements that audits verify with evidence.12 min

10Capstone: home SOC lab

Build, attack and defend your own lab, then document it like a SOC analyst.

  1. Build a home SOC labA home SOC lab is an isolated virtual environment where you can safely generate and analyse security data. A Windows host, a Linux host and a SIEM collecting their logs give you the full detection pipeline on your own machine.11 min
  2. Simulate attacks in the labTo test detections you need realistic attacker activity. Safe emulation tools like Atomic Red Team run small, documented tests mapped to ATT&CK techniques in your own lab, letting you see which ones your detections catch.10 min
  3. Detect, investigate & write an incident reportThe core SOC skill is turning telemetry into a story: detect the activity, investigate it across hosts and users, build a timeline, and write a report that both executives and engineers can act on. This is the capstone that proves readiness.11 min
  4. Practice rooms & portfolioGuided blue-team labs build fluency, and documented write-ups make your skills visible to employers. Publishing clear investigations, with diagrams and lessons, turns practice into a portfolio that supports a SOC job application.9 min