Security fundamentals
No environment is 100% secure. The goal is to reduce risk, detect suspicious activity and recover safely.
Encryption & hashing
| Type | How it works | Examples & use |
|---|---|---|
| Symmetric | One shared key encrypts and decrypts. Fast. | AES — disk encryption, VPN data, TLS session data |
| Asymmetric | Public key encrypts / verifies, private key decrypts / signs. | RSA, ECC — TLS certificates, SSH keys, signatures |
| Hashing | One-way, fixed-length fingerprint. Can't be reversed. | SHA-256 — integrity checks, password storage (with salt) |
| End-to-end | Only sender and receiver hold the keys. | Signal, WhatsApp |
| Homomorphic | Compute on data while it stays encrypted. | Privacy-preserving analytics |
| Quantum (QKD) | Key exchange based on quantum physics. | BB84 — high-security government links |
In practice TLS uses both: asymmetric crypto to verify the server and agree a key, then fast symmetric AES for the data. MD5 and SHA-1 are broken for security use.
sha256sum ubuntu.iso # verify a download
openssl s_client -connect example.com:443 # inspect a TLS certificate
ssh-keygen -t ed25519 -C "admin@laptop" # create an SSH key pair
Authentication mechanisms
Bearer token.Malware types
| Type | Behaviour | Countermeasure |
|---|---|---|
| Virus | Attaches to files, spreads when run | Antivirus, updates, awareness |
| Worm | Self-replicates across networks | Patching, segmentation |
| Trojan | Pretends to be legitimate software | Application control, cautious downloads |
| Ransomware | Encrypts files, demands payment | Offline/immutable backups, EDR |
| Spyware | Collects keystrokes and data | Endpoint protection |
| Rootkit | Hides deep in the OS for persistence | Secure boot, integrity scans |
| Botnet | Infected machines under remote control | Egress filtering, monitoring |
| Fileless | Runs in memory, abuses PowerShell/WMI | Behavioural detection, logging |
SIEM & monitoring
A SIEM collects logs from servers, endpoints and network devices, correlates them and raises alerts. Wazuh is a popular open-source option with agents, a manager, an indexer and a dashboard.
What to alert on
- Repeated failed logins and account lockouts
- Unexpected privileged logins or new admin accounts
- Changes to critical files (File Integrity Monitoring)
- Malware and vulnerability alerts
- Security services stopping unexpectedly
Investigating an alert
- Identify the endpoint, account, source IP and time.
- Review related logs before and after the event.
- Decide whether the activity is expected (change window? known user?).
- Contain or escalate following your incident-response process.
- Document findings and tune the rule if it was a false positive.
Hardening checklist
# /etc/ssh/sshd_config — then: sudo sshd -t && sudo systemctl reload sshd
PermitRootLogin no
PasswordAuthentication no
PubkeyAuthentication yes
AllowGroups ssh-admins
Tools & frameworks
Only scan or test systems you own or have written permission to test. Practise in your own lab (VMs, Kali, deliberately vulnerable apps).
| Category | Tools |
|---|---|
| Discovery & recon | Nmap, Shodan, theHarvester, Amass |
| Vulnerability scanning | OpenVAS, Nessus, Lynis (Linux audit) |
| Traffic analysis | Wireshark, tcpdump |
| Web app testing | OWASP ZAP, Burp Suite, Nikto |
| Forensics | Autopsy, Sleuth Kit, Volatility |
| Detection | Wazuh, Snort, Suricata, ELK |
nmap -sV 192.168.0.0/24 # discover hosts & service versions (your own network)
sudo lynis audit system # Linux hardening audit
sudo tcpdump -i eth0 port 53 # watch DNS traffic
Frameworks worth knowing
- CIS Controls — prioritised safeguards
- NIST Cybersecurity Framework — Govern, Identify, Protect, Detect, Respond, Recover
- MITRE ATT&CK — catalogue of real attacker techniques
Infographics
Click to open full-size. Use ← → to browse, click the image to zoom.
Related documents
Security-relevant material from the other tracks.