TExcelTAD
Home › Security Foundations: Concepts, Law, Ethics & Your Lab › Security Foundations: Introduction

Security Foundations: Introduction

Most people meet security through an attack: a leaked database in the news, a phishing email that almost worked, a video of someone "hacking" a login page. Attacks are the memorable part, but they are not where security work starts. Before you can judge an attack, you need words for what it damages, a way to decide how much it matters, the legal line between research and crime, an understanding of the operating system that is being attacked, and a place to practise where nothing you break belongs to anyone else.

That is this course. It is the first course of the Cybersecurity track, and every later course builds on it: when Web Application Security says "this is an integrity failure with high impact", or Penetration Testing says "confirm the scope in writing first", they mean exactly what is defined here.

The map

core concepts CIA, AAA, risksurface, audits attack landscape 11 categories:mechanism, detection,defence law and ethics authorization, scopeUS, UK, EU, Vietnamdisclosure OS internals processes, memoryLinux and Windows isolated lab VMs, networks,snapshots, safety mini project: lab design + risk register law and ethics come before any hands-on attack
Section What you learn What you run
Getting started the map, the safety line, how to study with the 30/50/20 week a look inside your sandbox
Core concepts CIA, authentication, authorisation and accounting; threat, vulnerability, exploit, risk; attack vectors and surface; likelihood × impact; audits and controls an access check with an audit log, a risk register in Python, listeners counted with ss and Nmap on 127.0.0.1
The attack landscape brute force and password spraying, phishing, DoS and DDoS, man-in-the-middle and replay, session hijacking and credential theft, DNS and ARP spoofing, malware and ransomware, supply chain, privilege escalation; red, blue and purple teams detections on synthetic logs and sample packet captures, a rate limiter, replay protection, YARA on the EICAR test file
Law and ethics written authorization and scope; the US CFAA, the UK Computer Misuse Act, EU and Vietnamese law; responsible disclosure, bug bounties, security.txt a scope checker and a security.txt validator
OS internals processes, privileges and system calls, memory protection, Linux permissions, sudo and SUID, services and logs, Windows accounts, tokens, UAC, the Registry and the Event Log strace, checksec, permission audits, log analysis in Bash, Python and PowerShell
Your isolated lab hypervisors and VM network modes, snapshots, Kali, Ubuntu and Windows Server, Juice Shop, DVWA and Metasploitable, lab safety rules, test accounts and synthetic data a lab-inventory safety checker
Practice exercises over the whole course; a mini project your own lab design and risk register

Where this course sits

You have probably met some of these ideas already in the one-course survey Cybersecurity, which stays the on-ramp to the track: it introduces the CIA triad, threat modelling, crypto basics and the OWASP Top 10. This course does not repeat those lessons; it links to them and goes one level down. After it, the track splits:

The safety line

Every lesson of the track follows five rules. They exist because the skills overlap: the person who can detect password spraying understands password spraying.

  1. Mechanism → detection → fix. No lesson ends at the attack. You learn how it works so you can recognise it and stop it.
  2. Runnable attacks hit only toys the example creates: a database built in the example, a sandboxed frame, a toy program, a synthetic log, a sample packet capture, or a service started inside your own sandbox on 127.0.0.1.
  3. No functional malicious code. No malware, credential stealers, phishing kits, evasion tricks or working exploits for real software. Malware lessons use the harmless EICAR test file and benign samples.
  4. Tool transcripts use lab addresses: 10.10.0.0/24, the documentation ranges 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 (RFC 5737), and names under lab.test. Never a real organisation.
  5. Law and ethics first. Testing a system you don't own without written permission is a crime in most countries, whatever your intentions. The Law and Ethics section of this course comes before any offensive course, and each of those opens by pointing back to it.

How examples run here

  • ```python run examples run in your browser (Python in WebAssembly, with hashlib, hmac, secrets, sqlite3, cryptography, pandas and NetworkX). Seeds, keys and dates are fixed so the output you get is the output shown.
  • ```bash run blocks are recorded tool sessions: the site shows the saved output, and each one was produced by a real run in a sandbox image with OpenSSL, Nmap, tcpdump, tshark, YARA, gcc with sanitizers, gdb and strace. The sandbox runs as an ordinary user, with no root and no network at all, so the only machine a session can reach is itself.
  • ```powershell run blocks are recorded with PowerShell 7.6 on Linux; Windows-only commands appear as plain transcripts labelled lab session, with the lab machine and scope named.

Here is the sandbox describing itself. It is an unprivileged user (uid=1000), its only network interface is the loopback lo, it holds no capabilities (CapEff all zeros) and a system-call filter is on (Seccomp: 2). A request to a documentation address fails with curl's exit code 7, "failed to connect": there is nowhere to connect to. The sample files are what later lessons analyse.

bash · try it yourself
whoami
id
ip -brief address
grep -E '^(CapEff|NoNewPrivs|Seccomp):' /proc/self/status
curl -s --max-time 3 -o /dev/null http://192.0.2.10/ ; echo "curl exit code: $?"
ls /opt/sec-samples /opt/sec-samples/pcap
learner
uid=1000(learner) gid=1000(learner) groups=1000(learner)
lo               UNKNOWN        127.0.0.1/8 ::1/128
CapEff:	0000000000000000
NoNewPrivs:	0
Seccomp:	2
curl exit code: 7
/opt/sec-samples:
SHA256SUMS
dns
files
pcap
pki
rules

/opt/sec-samples/pcap:
arp.pcap
dns.pcap
http.pcap
tls.pcap

This is the same design you will build for your own lab at the end of the course: targets that can't reach the outside world, an account without more privilege than it needs, and data that is synthetic from the start.

What you should know first

The course assumes the survey Cybersecurity, the operating-system ideas of Operating Systems (processes, system calls, virtual memory) and everyday shell use from Linux & Bash (permissions, processes, pipes). Python at the level of loops, dictionaries and functions is enough to read every example. Where a lesson needs more (systemd, sudoers, PowerShell), it links to the exact lesson in Linux Administration or PowerShell.

Start with how to study this track: the habits there (a lab, a journal, a weekly rhythm) matter more for the next fifteen courses than any single fact.

Test yourself

What is the required order of every attack lesson in this track?

  1. Attack, then a quiz
  2. Mechanism, then detection, then fix
  3. Tool, then target, then report
  4. Fix first, then the attack

In the sandbox session, curl to 192.0.2.10 exits with code 7. Why?

  1. The server refused the password
  2. The sandbox has no network interface except loopback, so the connection cannot be made
  3. 192.0.2.10 is a real company that blocks scans
  4. curl is not installed

Which address may a transcript in this track use for a lab target?

  1. The IP address of a well-known website
  2. 10.10.0.20 or a name under lab.test
  3. Any address that answered a ping
  4. Your employer's mail server

Why does the Law and Ethics section come before the offensive courses?

  1. Because laws are easy
  2. Because testing a system without written permission is a crime in most countries, whatever the intent, so authorization and scope must be settled first
  3. Because the offensive courses are optional
  4. Because the law forbids learning about attacks