Unit 8: Security

T Level Digital core content area 8: security risks, threats and vulnerabilities, threat mitigation, the CIA triad and the IAAA model.

Read the lesson, study the diagrams, watch the video, then open the matching workbook section.

8.1 Security risks T Level core · 8.1.1 – 8.1.3

Confidential information and why it must be protected

By the end you can: identify the confidential information organisations hold, explain why each type must be kept confidential, and describe the impact of failing to do so.

Every organisation holds information that would cause harm if the wrong people saw it. Security starts with knowing what you are protecting and why.

Confidential information held by an organisationHuman resourcessalaries and benefitsstaff personal detailsCommercially sensitiveclient detailsstakeholder detailsintellectual propertysales numberscontractsAccess informationusernames, passwordspassphrases, PINsaccess codesMFA detailsbiometric data
Three kinds of confidential information. Access information is the key to all the rest: if it leaks, attackers can reach everything else.
8.1.2 Reasons for confidentiality
InformationWhy keep it confidential?
Salaries and benefitsstops competitors offering higher wages to poach staff; stops staff comparing pay and demanding the same
Staff personal detailsprotects their privacy (a legal duty); stops competitors contacting them directly
Intellectual propertystops competitors copying designs, code, recipes or processes
Client detailsstops competitors contacting clients; protects clients’ privacy
Sales numbers and contractscompetitors could undercut prices or target weak areas
Access informationprevents unauthorised access to systems, buildings and all the other data
What happens when confidentiality failsData breachconfidential data leaksNon-compliancefines, loss of licence to practiseLoss of trustclients and staff leaveDamaged imagebad press, fewer customersFinancial lossfines, refunds, lost contractsLegal actionclients and regulators sueReduced securityleaked logins open more doors
One leak can trigger several impacts at once: regulatory, reputational, financial and legal.
Impacts of failing to keep information confidential
Impact (8.1.3)Example
Non-compliance with regulationsa data protection breach leads to a regulator’s fine; a solicitor or pharmacy could lose its licence to practise
Loss of trust and damaged imagecustomers read about the leak and move to a competitor
Financial lossfines, refunds to customers, lost earnings, contracts terminated
Legal actioncustomers or partners sue for damages
Reduced securityleaked passwords let attackers back in, or are reused on other systems

In the real world: a leaked customer database

An online retailer stores customer names, addresses and card details. An attacker copies the database. The retailer must tell the regulator and its customers, pays refunds and a fine, loses customers who no longer trust it, and faces legal claims. The leaked passwords are tried on other websites, where many customers reused them.

Key terms

Confidential
information only authorised people should see.
Intellectual property
original designs, code, inventions and ideas owned by the organisation.
Biometric data
physical characteristics used for identification, e.g. fingerprints or face.
Data breach
confidential data being accessed, leaked or stolen.

Exam focus

Link each type of information to a specific reason and impact. “Client details must be confidential so competitors cannot contact the clients and so the firm complies with data protection law” scores more than “it’s private”.

Think it through

Why is access information described as the ‘key’ to other confidential information?

Usernames, passwords, PINs and MFA details let someone log in or enter a building, so leaking them exposes every system and file those accounts can reach.

A marketing agency’s client list leaks. Give two impacts.

Competitors can approach the clients and win their business (financial loss); clients lose trust in the agency; possible fines for breaching data protection.

Watch

Why attackers target organisations, and what they are after.

Watch and think:

  • Which kinds of confidential information would each attacker want?

Open on YouTube ↗

8.2 Types of threats and vulnerabilities T Level core · 8.2.1

Malware, botnets and denial of service

By the end you can: explain types of malware, botnets and DoS/DDoS attacks, their impacts, and how to prevent and mitigate them.

Types of malware
MalwareWhat it doesPrevention and mitigation
Virusattaches to a file or program; spreads when the file is run and sharedanti-malware, do not open unknown files, updates
Wormspreads by itself across a network through unpatched weaknessespatching, firewalls, network segregation
Keyloggerrecords keystrokes to steal passwords and card numbersanti-malware, MFA (a stolen password alone is not enough)
Ransomwareencrypts files and demands payment for the keyoffline/offsite backups, patching, staff training, least privilege
Spywaresecretly monitors activity and sends data to the attackeranti-malware, app permissions, trusted sources only
Remote access trojan (RAT)disguised as useful software; gives the attacker hidden remote controldownload from trusted sources, anti-malware, outbound firewall rules
A botnet launching a DDoS attackAttackerbot herderCommand andcontrol serverinfected bot 1infected bot 2infected bot 3infected bot 4infected bot 5target websiteoverwhelmedThe owners of the bots usually do not know their devices are infected.
A botnet is a network of infected devices controlled remotely. Together they can flood a target with traffic (DDoS), send spam or crack passwords.
Botnets and denial of service
AttackWhat happensImpactPrevention and mitigation
Denial of service (DoS)one machine floods a server with requestswebsite or service unavailable; lost salesfirewall rules, rate limiting, blocking the source IP
Distributed DoS (DDoS)a botnet of thousands of devices floods the target at oncemuch harder to block: traffic comes from everywhereDDoS protection services, extra capacity (cloud), traffic filtering
Botnetinfected devices controlled togetherowners’ devices slow; used for DDoS, spam, password crackinganti-malware, patching, change default IoT passwords

In the real world: WannaCry, 2017

A ransomware worm spread worldwide through an unpatched weakness in older Windows systems. It encrypted files in organisations including hospitals, where appointments and operations had to be cancelled. Patching and good backups would have limited the damage.

Key terms

Malware
malicious software designed to damage, disrupt or gain access.
Payload
the harmful action malware carries out.
Botnet
a network of infected devices controlled by an attacker.
DDoS
a denial of service attack from many devices at once.

Exam focus

For each threat, learn three things: what it is, its impact, and how to prevent and mitigate it. Prevention stops it happening; mitigation reduces the damage when it does (e.g. backups for ransomware).

Think it through

Why is a DDoS attack harder to stop than a DoS attack?

The traffic comes from thousands of different IP addresses, so blocking one source does not help and it is hard to tell attack traffic from real users.

How do backups mitigate ransomware?

If clean copies are stored offline or offsite, the organisation can restore its files without paying, reducing downtime and data loss.

Watch

Viruses, worms, trojans, ransomware and spyware compared.

Watch and think:

  • How does a worm spread without anyone opening a file?

Open on YouTube ↗

How infected devices are combined to knock services offline.

Watch and think:

  • Why are DDoS attacks hard to block?

Open on YouTube ↗

Stretch: a close look at the ransomware worm that hit hospitals in 2017.

Watch and think:

  • Which two controls would have limited the damage most?

Open on YouTube ↗

8.2 Types of threats and vulnerabilities T Level core · 8.2.1

Malicious hacking

By the end you can: explain who malicious hackers are and how password cracking, brute force, cross-site scripting, SQL injection and buffer overflow attacks work and are prevented.

Who hacks, and why
HackerUsual motive
Hacktivistsa political or social cause: defacing websites, leaking data to make a point
Nation statesspying, disrupting another country’s infrastructure, stealing research
Organised crimemoney: ransomware, stolen card data, fraud
Individualscuriosity, challenge, revenge (e.g. a sacked employee) or money

Password cracking and brute force

How password length affects brute-force time6 lower-case letters309 million combinations8 lower-case letters209 billion combinations8 mixed characters (94)6 quadrillion combinations4 random words (7,776 each)3.7 quadrillion combinations12 mixed characters476 sextillion combinationsBar length is on a log scale: each extra character multiplies the work.
Brute force tries every combination. Length adds far more protection than complexity alone, which is why long passphrases are recommended.

Brute force tries every possible combination. Dictionary attacks try common words and leaked passwords first. Prevention: long passphrases, account lockout after failed attempts, MFA, and storing passwords as salted hashes.

SQL injection

How SQL injection changes a queryLogin form' OR '1'='1Username field: the attacker typesSQL code instead of a nameQuery the website buildsSELECT * FROM usersWHERE name = '' OR '1'='1''1'='1' is always true, so every row matchesPrevention: parameterised queries (input is treated as data, never as code),input validation, least-privilege database accounts, web application firewall
SQL injection: the website pastes user input straight into a database command, so the attacker’s input becomes part of the command.

Cross-site scripting (XSS)

The attacker gets a website to include their script in a page other people view, e.g. in a comment or search box. The script runs in victims’ browsers and can steal session cookies or redirect them. Prevention: validate input and encode output so text is displayed, never run; content security policies.

Buffer overflow

A buffer overflowMemory set aside for an 8-character name:AAAAAAAAAAAAoverwrites the next memory:e.g. where the program jumps nextPrevention: check input length (bounds checking), safe languages and functions, updates and patches
If a program does not check input length, extra data spills into neighbouring memory. Attackers use this to crash the program or run their own code.

Key terms

Brute force
trying every possible password until one works.
SQL injection
entering SQL code into an input to change a database query.
Cross-site scripting
injecting a script into a web page that runs in other users’ browsers.
Buffer overflow
writing more data than a memory area holds so it overwrites nearby memory.

Exam focus

Say how each attack works and give a matching prevention. SQL injection → parameterised queries and input validation; XSS → output encoding; buffer overflow → bounds checking and patches; brute force → length, lockout and MFA.

Think it through

Why does account lockout defeat online brute-force attacks?

After a few wrong guesses the account locks or slows down, so the attacker cannot try millions of combinations.

A website search box shows whatever you type back on the page. Which attack could this allow and how is it prevented?

Cross-site scripting: if the text is not encoded, a script typed in could run in visitors’ browsers. Encode output and validate input.

Watch

How brute-force password attacks work.

Watch and think:

  • Why does a longer password take so much longer to crack?

Open on YouTube ↗

SQL injection, DoS and interception in one short video.

Watch and think:

  • What makes a website vulnerable to SQL injection?

Open on YouTube ↗

Stretch: a real SQL injection demonstrated on a test site.

Watch and think:

  • How do parameterised queries stop this attack?

Open on YouTube ↗

Stretch: how a script typed into a page can run in other people’s browsers.

Watch and think:

  • What could the attacker steal with the script?

Open on YouTube ↗

Stretch: how cracking tools guess hashed passwords.

Watch and think:

  • Why do salted hashes slow attackers down?

Open on YouTube ↗

8.2 Types of threats and vulnerabilities T Level core · 8.2.1

Social engineering

By the end you can: explain phishing, spear phishing, smishing, vishing, pharming, watering hole attacks and USB baiting, and how to prevent them.

Social engineering tricks people, rather than computers, into giving away information or access. It works because it exploits trust, fear, curiosity and urgency.

Spotting a phishing emailFrom: IT Support <support@micros0ft-help.co>Subject: URGENT: your account closes in 2 hoursDear user,We detected unusual sign-ins. Verify yourpassword now or lose all your files.Verify my accountLink goes to: http://micros0ft-login.xyzAttachment: invoice.pdf.exeLook-alike sender address (0 for o)Urgency and threatsGeneric greeting, not your nameButton hides the real linkUnfamiliar web addressDouble extension: really a program
Red flags in a phishing email. Real organisations do not ask you to confirm your password through a link.
Types of social engineering
AttackHow it worksPrevention
Phishingmass emails pretending to be a trusted organisation, linking to fake login pagesstaff training, email filtering, MFA, report suspicious emails
Spear phishinga targeted email using personal details (name, manager, project) to look genuinetraining, verify unusual requests by another channel
Smishingphishing by SMS text message, e.g. a fake parcel delivery linkdo not click links in texts; go to the official app or site
Vishingphone calls pretending to be the bank, IT support or policecall back on a known number; never give passwords or PINs
Pharmingredirects a correct web address to a fake site (malware or DNS changes)check for HTTPS and the correct address, anti-malware, secure DNS
Watering holeinfects a website the target group often visitspatching, browser security, anti-malware
USB baitingleaves infected USB sticks for people to find and plug inpolicy: never plug in unknown devices; disable USB auto-run

In the real world: the fake invoice

A finance assistant receives an email that appears to come from the managing director, asking for an urgent payment to a new supplier. The address is one letter different. Because the college’s policy says all new bank details must be confirmed by phone, the assistant calls the director and the fraud is stopped.

Key terms

Social engineering
manipulating people into revealing information or giving access.
Spear phishing
phishing aimed at a specific person or organisation.
Pharming
redirecting users from a real website to a fake one.
Watering hole attack
compromising a website that the targets are known to visit.

Exam focus

Staff training is the main defence against social engineering, but the best answers pair it with a technical control, e.g. training and MFA, so a stolen password alone is useless.

Think it through

Why is spear phishing more successful than ordinary phishing?

It uses personal, accurate details, so the message looks genuine and the victim is less suspicious.

How does pharming differ from phishing?

Phishing tricks you into clicking a fake link; pharming sends you to a fake site even when you type the correct address.

Watch

The main social engineering attacks and how to spot them.

Watch and think:

  • What is the difference between phishing and pharming?

Open on YouTube ↗

More social engineering methods and their impact on organisations.

Watch and think:

  • Which attack would work best against a busy receptionist, and why?

Open on YouTube ↗

8.2 Types of threats and vulnerabilities T Level core · 8.2.1

DNS attacks, insecure APIs, man-in-the-middle and open Wi-Fi

By the end you can: explain DNS attacks and traffic redirection, insecure APIs, man-in-the-middle attacks and open Wi-Fi, with prevention and mitigation.

A man-in-the-middle attack on open Wi-FiCustomerFake ‘Cafe_Free_WiFi’Attackerreads and alters trafficBank websiteProtection: HTTPS/TLS everywhere, VPN on publicWi-Fi, check certificate warnings, WPA3/WPA2
In a man-in-the-middle attack, traffic passes through the attacker, who can read or change it. Open Wi-Fi and fake access points make this easy.
Network and web threats
ThreatHow it worksImpactPrevention and mitigation
DNS attack / redirectionthe attacker changes DNS records or poisons a DNS cache so a real name points to a fake IP addressusers land on fake sites and type their passwords (pharming)secure DNS (DNSSEC), patch DNS servers, protect registrar accounts with MFA, HTTPS certificate checks
Insecure APIan application programming interface with weak authentication, no rate limits or too much data returnedattackers pull or change data directly, bypassing the appauthentication tokens, access control, rate limiting, input validation, API testing and certification
Man-in-the-middlethe attacker sits between two parties and intercepts or alters trafficstolen logins, altered paymentsencryption (HTTPS/TLS), VPNs, certificate checks, MFA
Open / unsecured Wi-Fino encryption, or a fake hotspot set up by an attackertraffic can be read; devices can be attackeduse a VPN, only HTTPS sites, WPA2/WPA3 on your own networks, turn off auto-connect

Key terms

DNS
the system that turns domain names into IP addresses.
API
a set of rules that lets one program request data or services from another.
Man-in-the-middle
an attacker secretly relaying and possibly altering communication.
Rate limiting
restricting how many requests a user can make in a period.

Exam focus

These threats all attack data in transit. Encryption (HTTPS/TLS, VPN) is the common defence; add a specific one for each (DNSSEC for DNS, authentication and rate limits for APIs).

Think it through

Why does a VPN protect you on public Wi-Fi?

It encrypts all traffic between your device and the VPN server, so anyone intercepting it on the Wi-Fi network sees only scrambled data.

An app’s API returns every customer record if you change a number in the request. What is the weakness?

Missing authorisation/access control: the API does not check that the user may see that record. Fix with proper access checks and testing.

Watch

How an attacker sits between you and a website, and a real case where laptops shipped with the problem.

Watch and think:

  • Why do certificate warnings matter?

Open on YouTube ↗

Stretch: how a DNS server can be tricked into sending users to the wrong site.

Watch and think:

  • Which users are affected when a DNS cache is poisoned?

Open on YouTube ↗

Stretch: a real weakness found in Wi-Fi security and why patches mattered.

Watch and think:

  • Why did this attack need devices to be updated?

Open on YouTube ↗

8.2 Types of threats and vulnerabilities T Level core · 8.2.2

Technical vulnerabilities

By the end you can: explain how inadequate security processes and out-of-date hardware, software and firmware make systems vulnerable.

A threat is something that could cause harm. A vulnerability is a weakness a threat can exploit. Attackers look for the easiest weakness.

8.2.2 Technical vulnerabilities
VulnerabilityWhy it is a weakness
Weak encryptionold or short-key algorithms can be broken, so ‘protected’ data can be read
Inadequate password policyshort, reused or default passwords are guessed or cracked quickly
Failure to use MFAone stolen password is enough to log in
Out-of-date hardwareno longer supported; may not run current security software or updates
Out-of-date softwarelack of support means no patches; legacy systems may be kept for compatibility; zero-day bugs are exploited before a fix exists
Out-of-date firmwarerouters, cameras and printers with old firmware have well-known weaknesses and default logins
The life of a software vulnerabilityBug in codeunknown to anyoneDiscovered by attackerzero-day: no patch yetVendor releases patchfix availablePatch installedgap closedWindow of risk: from discovery until the patch is installed on YOUR systemsUnsupported (end-of-life) software never gets the patch, so the window never closes.
Out-of-date components leave the window of risk open. Updating quickly shortens it.

In the real world: the forgotten camera

An office installs an internet-connected camera and never changes its default password or updates its firmware. Attackers scanning the internet find it, log in, and use it as a way into the office network.

Key terms

Vulnerability
a weakness that could be exploited.
Zero-day
a vulnerability attackers exploit before a patch exists.
Legacy system
old software or hardware still in use, often because other systems depend on it.
Firmware
software stored in a device’s hardware that controls it.

Exam focus

Explain the chain: vulnerability → how a threat exploits it → impact → fix. For legacy systems, recognise the trade-off: replacing them costs money and may break compatibility, so isolate them if they must stay.

Think it through

Why might an organisation keep using unsupported software, and how can it reduce the risk?

Other systems depend on it or replacement is expensive. Reduce risk by isolating it on a separate network segment, restricting access and planning a replacement.

What is a zero-day vulnerability?

A weakness unknown to the vendor, or with no patch yet, that attackers exploit immediately.

Watch

Technical and human vulnerabilities in organisations.

Watch and think:

  • Which vulnerabilities are caused by out-of-date components?

Open on YouTube ↗

A security researcher shows how cars, pacemakers and phones can be attacked.

Watch and think:

  • Why are embedded devices often left unpatched?

Open on YouTube ↗

An attack through an unsecured smart thermostat on an unsegmented network.

Watch and think:

  • Which vulnerabilities did the attacker exploit?
  • Which lesson M5 control would have stopped it?

Open on YouTube ↗

8.2 Types of threats and vulnerabilities T Level core · 8.2.3

Human threats

By the end you can: explain human error, malicious employees, disguised criminals and poor cyber hygiene, with prevention and mitigation methods.

Many incidents start with a person, not a piece of technology. Some are accidents; some are deliberate.

8.2.3 Human threats
Human threatExamplePrevention and mitigation
Human erroremailing a spreadsheet to the wrong person; deleting a shared folderfile properties (read-only, permissions), confirmation boxes before deleting or sending, staff training
Malicious employeea sacked employee copies client data or deletes filesimmediate removal from the premises, suspend user accounts immediately, least privilege, audit logs
Disguised criminalsomeone in a hi-vis jacket claims to be ‘from IT’ and walks to the server roomaccompany all visitors, check identification, visitor badges and sign-in
Poor cyber hygieneunlocked PCs, passwords on sticky notes, the same password everywherelock all unattended machines, do not write passwords down, password managers, training

In the real world: the unlocked screen

A receptionist leaves the desk without locking the PC. A visitor opens the customer booking system and photographs a screen of personal details. A short lock-screen timeout and the habit of pressing Windows+L would have prevented it.

Key terms

Insider threat
a risk from someone inside the organisation.
Cyber hygiene
everyday habits that keep systems secure.
Least privilege
giving users only the access they need for their job.
Tailgating
following an authorised person through a secure door.

Exam focus

Match the control to the threat: a malicious employee is stopped by removing access at once; human error by confirmation boxes and file properties; a disguised criminal by ID checks and escorts.

Think it through

Why must a dismissed employee’s account be suspended immediately?

Until it is disabled they could still log in remotely and copy, change or delete data.

Give two good cyber hygiene habits.

Lock the screen when leaving the desk; use unique passphrases stored in a password manager rather than written down.

Watch

Accidental and deliberate threats from inside an organisation.

Watch and think:

  • How should an organisation respond when a malicious employee is dismissed?

Open on YouTube ↗

8.2 Types of threats and vulnerabilities T Level core · 8.2.4 · 8.2.5

Physical vulnerabilities and the impact of threats

By the end you can: explain physical vulnerabilities and their prevention, and the potential impact of threats and vulnerabilities on an organisation.

Layers of physical securityOuter perimeter: fence, gates, lighting, CCTV, car park barriersBuilding: entry control, reception, visitor badgesServer roomswipe card + PINaccess logged and auditedAn intruder has to beat every layer: defence in depth.
Physical security in layers, from the site boundary to the server room.
8.2.4 Physical vulnerabilities
Physical vulnerabilityPrevention and mitigation
Lack of access controlentry control systems: swipe cards, key fobs, keypads, biometric locks
Poor access controldo not allow tailgating; use complex access codes and change them regularly; monitor access areas (CCTV, guards); audit staff access to secure areas
Nature of locationprotect against shoulder surfing (privacy screens, screen position); protect against the environment (flood, heat, dust: raised floors, air conditioning); protect against vandalism (locked cabinets, alarms)
Poor system robustnessrugged machines for harsh environments such as building sites, factories and vehicles
Natural disastersoffsite backups and a disaster recovery site; choose locations away from flood risk
Impact of threats and vulnerabilities
Impact (8.2.5)Example
Loss or leaking of sensitive dataa stolen laptop holds unencrypted client files
Unauthorised access to digital systemsa tailgater plugs a device into an office network port
Data corruptiona power cut or flood damages a server and its data
Disruption of serviceransomware or a fire stops the business trading
Unauthorised access to restricted areasan intruder reaches the server room or stock room

Practical: perimeter security proposal

  1. You are the design architect for a warehouse with a customer entrance, staff door and loading bays.
  2. Define its outer perimeter, inner perimeter and interior areas, and one key vulnerability for each.
  3. Recommend access-control and monitoring devices (barriers, swipe entry, CCTV, lighting) with approximate costs.
  4. Present your solution in no more than five slides.

Based on your teacher’s Perimeter Security activity worksheet.

Key terms

Tailgating
following an authorised person through a door without using your own access.
Shoulder surfing
watching someone type a PIN or password.
Entry control system
technology that decides who may enter an area, e.g. swipe cards.
Rugged machine
a device built to survive drops, dust, water and extremes.

Exam focus

Physical security questions often give a floor plan or scenario. Work from the outside in (site, building, room, device) and give one vulnerability and one control for each layer.

Think it through

Why should door access codes be changed regularly?

Codes get shared or observed over time; changing them removes access for people who should no longer have it.

A delivery driver follows staff through a secure door. Name the vulnerability and two controls.

Tailgating (poor access control). Controls: staff training and a no-tailgating policy, turnstiles or airlock doors, CCTV monitoring.

Watch

Locks, access control and biometrics.

Watch and think:

  • Which physical controls stop tailgating?

Open on YouTube ↗

More physical protection for sites and equipment.

Watch and think:

  • Pick one control for each layer: perimeter, building, server room.

Open on YouTube ↗

8.3 Threat mitigation T Level core · 8.3.1

Technical defences: settings, anti-malware, detection, hardening and updates

By the end you can: explain the purpose, process, benefits and drawbacks of security settings, anti-malware, intrusion detection, device hardening, updates and air gaps.

Where defences sit on a networkInternetFirewallSwitchIDS sensorwatches copiesPC: anti-malware, updatesServer: hardenedLaptop: encrypted diskAlert to the security team
Defence in depth: a firewall at the edge, an intrusion detection system watching traffic, and hardened, updated, protected devices inside.
8.3.1 Technical mitigation techniques
TechniquePurpose and processBenefitsDrawbacks
Security settings (hardware and software)configure devices and software securely: BIOS/UEFI passwords, disable unused ports, browser and OS privacy settingscheap; closes easy gapsneeds knowledge; settings can be changed back or forgotten
Anti-malware softwarefunction: scans files, emails and downloads against signatures and suspicious behaviour; actions: quarantine, delete, alertstops most known malware automaticallymust be updated; may miss new malware; can slow the device; false positives
Intrusion detection (IDS)monitors network or device activity for suspicious patterns and raises alerts (an IPS also blocks)spots attacks in progress; evidence for investigationfalse alarms; someone must respond; cost
Device hardeningremove unneeded software, services, ports, accounts and default passwordssmaller attack surfacetakes time; may break features if done carelessly
Software updatesinstall patches that fix security bugs, ideally automaticallycloses known vulnerabilities quicklyupdates can fail or cause compatibility issues; need testing and restarts
Firmware / driver updatesupdate the low-level code in routers, BIOS, printers and devicesfixes hardware-level weaknessesrisky if interrupted; often forgotten
Air gapskeep a critical system physically disconnected from other networkscannot be attacked over the networkinconvenient data transfer; still vulnerable to USB and insiders

Key terms

Signature
a pattern that identifies known malware.
Quarantine
isolating a suspicious file so it cannot run.
IDS
intrusion detection system: monitors and alerts on suspicious activity.
Air gap
physical separation of a system from any network.

Exam focus

‘Benefits and drawbacks’ is in the specification for every mitigation technique. Learn at least one of each: e.g. air gaps are very secure but make updating and sharing data slow.

Think it through

Why does anti-malware need regular updates?

New malware appears constantly; without updated signatures and detection rules the software will not recognise it.

Give an example of a system that might use an air gap, and one weakness.

A power station’s control system or a military network; it can still be infected by a USB stick or an insider.

Watch

Anti-malware, updates and other defences.

Watch and think:

  • What actions can anti-malware take when it finds a threat?

Open on YouTube ↗

Detecting and preventing attacks on systems.

Watch and think:

  • What is the difference between detection and prevention?

Open on YouTube ↗

A tour of prevention measures used by organisations.

Watch and think:

  • Which measures are physical, which technical, and which people-based?

Open on YouTube ↗

8.3 Threat mitigation T Level core · 8.3.1

Encryption: hashing, symmetric and asymmetric

By the end you can: explain the purpose, process, benefits and drawbacks of hashing, symmetric encryption and asymmetric encryption.

Encryption scrambles data with a key so only someone with the right key can read it. It protects data at rest (on disks and backups) and in transit (across networks).

Hashing a passwordpasswordSHA-2565e884898da28047151d0e56f…PasswordSHA-256e7cf3ef4f17c3999a94f2c6f…password1SHA-2560b14d501a594442a01c68595…One-way: you cannot turn the hash back into the password. A tiny change gives a totally different hash.
A hash is a fixed-length fingerprint of data. Systems store password hashes (with a random salt), then hash what you type and compare.
Symmetric and asymmetric encryptionSymmetric: one shared keyPlaintextCiphertextPlaintextencrypt with key Kdecrypt with the same Kfast; good for large data (AES)problem: how do you share K safely?Asymmetric: a key pairPlaintextCiphertextPlaintextencrypt with thereceiver’s PUBLIC keydecrypt with theirPRIVATE keyno shared secret needed; slower (RSA)also used for digital signatures
Symmetric encryption is fast but needs a shared key. Asymmetric encryption solves key sharing, so HTTPS uses asymmetric methods to agree a symmetric session key.
Diffie-Hellman key exchange with small numbersPublic: P = 23, G = 9Alice: secret a = 4sends 9⁴ mod 23 = 6receives 1616⁴ mod 23 = 9Bob: secret b = 3sends 9³ mod 23 = 16receives 66³ mod 23 = 9616Both reach the shared key 9. An eavesdropper sees only 23, 9, 6 and 16.
Two people agree a secret key over a public channel without ever sending it. Real systems use numbers hundreds of digits long.
Comparing the three methods
MethodBenefitsDrawbacksUsed for
Hashingone-way; passwords are never stored in readable form; detects any change to data (integrity)cannot be reversed to recover data; weak or unsalted hashes can be cracked with precomputed tablespassword storage, file integrity checks, digital signatures
Symmetricfast and efficient for large amounts of datathe key must be shared securely; if it leaks, all data is exposeddisk encryption, Wi-Fi (WPA2/3), bulk data in HTTPS
Asymmetricno need to share a secret key; enables digital signatures and certificatesmuch slower; needs key management and trusted certificatesHTTPS handshakes, secure email, digital signatures

Practical: Diffie-Hellman by hand

  1. Work through the example above with a partner: choose your own secret numbers with P = 23 and G = 5.
  2. Calculate your public values, swap them, and calculate the shared key. Check you both get the same answer.
  3. Explain why an eavesdropper who sees P, G and both public values still cannot easily find the key.

Based on your teacher’s Diffie-Hellman spreadsheet.

Key terms

Plaintext / ciphertext
readable data / encrypted data.
Hash
a fixed-length, one-way fingerprint of data.
Salt
random data added to a password before hashing so identical passwords get different hashes.
Public / private key
the pair used in asymmetric encryption: share the public one, never the private one.

Exam focus

Hashing is not encryption: it cannot be reversed. Say which method fits the purpose: hashing for stored passwords and integrity, symmetric for speed, asymmetric for sharing keys and signatures.

Think it through

Why do websites store password hashes rather than encrypted passwords?

A hash cannot be reversed, so even if the database is stolen the passwords are not directly readable; the site only needs to compare hashes.

Why does HTTPS use both asymmetric and symmetric encryption?

Asymmetric encryption safely agrees a session key; the faster symmetric encryption then protects the rest of the data.

Watch

One key or a key pair: how each works.

Watch and think:

  • Why is asymmetric encryption used to share a symmetric key?

Open on YouTube ↗

What a hash is and why it is used for passwords.

Watch and think:

  • Why can’t a hash be reversed?

Open on YouTube ↗

The colour-mixing explanation of agreeing a key in public.

Watch and think:

  • What does the eavesdropper see, and why is it not enough?

Open on YouTube ↗

8.3 Threat mitigation T Level core · 8.3.1

People and access: policies, vetting, training, MFA, VPNs and APIs

By the end you can: explain user access policies, staff vetting and training, software-based access control, MFA, password managers, VPNs and API certification, with benefits and drawbacks.

The factors of authentication?Something you knowpassword, passphrase, PIN▭Something you havephone app code, smart card, security key◉Something you arefingerprint, face, iris, voiceMFA = two or more DIFFERENT factors. A password plus a PIN is still one factor.
Multi-factor authentication means a stolen password alone is not enough to log in.
8.3.1 People and access controls
TechniquePurpose and processBenefitsDrawbacks
User access policieswritten rules for who gets which access, how passwords work and how accounts are created and removedconsistent, least-privilege accessmust be enforced and reviewed
Staff vettingchecks before employment: references, identity, criminal record (e.g. DBS) for sensitive rolesreduces insider risktakes time and money; people can change after joining
Staff trainingteach staff to spot phishing, use strong passwords, lock screens and report incidentstackles the biggest risk: peopleneeds repeating; some staff ignore it
Software-based access controlpermissions on files, folders, apps and databases by user or roleusers see only what they needcomplex to manage; mistakes grant too much access
Multi-factor authenticationcombine two or more factor types at loginstolen passwords alone are uselessslower login; lost phone or token needs a recovery process
Password managersgenerate, store and fill unique strong passwords in an encrypted vaultone strong master password; no reusethe vault is a single target; needs MFA and trust in the provider
VPNsencrypt traffic between a device and the organisation’s networksafe remote working on any Wi-Fican slow connections; the VPN itself must be patched
Certification of APIsAPIs are tested and certified to meet security standards before usetrusted integrations; fewer insecure APIscost and time; certification can go out of date

In the real world: MFA stops a phishing attack

An employee enters their password on a fake login page. The attacker tries it, but the account requires a code from the employee’s authenticator app, so the login fails and the security team is alerted.

Key terms

MFA
multi-factor authentication: at least two different factor types.
Vetting
background checks on staff before they are given access.
Password manager
software that stores and creates strong passwords.
VPN
an encrypted tunnel across an untrusted network.

Exam focus

When asked to recommend controls, combine a people control with a technical one, and state a drawback. That shows balance, which ‘evaluate’ and ‘discuss’ questions reward.

Think it through

Why is a password plus a security question not true multi-factor authentication?

Both are ‘something you know’, so they are the same factor; an attacker who phishes one can phish the other.

Give one benefit and one drawback of password managers.

Benefit: every account can have a unique, long password. Drawback: if the master password is weak or stolen, all passwords are exposed.

Watch

How two-factor authentication works and why it helps.

Watch and think:

  • Which factor types does an authenticator app use?

Open on YouTube ↗

A clear case for turning on 2FA everywhere.

Watch and think:

  • What happens to a stolen password when 2FA is on?

Open on YouTube ↗

What a password manager stores and how it is protected.

Watch and think:

  • What is the biggest risk of a password manager, and how is it reduced?

Open on YouTube ↗

8.3 Threat mitigation T Level core · 8.3.1

Backups, port scanning and penetration testing

By the end you can: explain backup types and safe storage, port scanning and penetration testing (ethical and unethical hacking), with benefits and drawbacks.

Full, incremental and differential backups over a weekSunMonTueWedThuIncrementalDifferentialFullFullMonMonTue onlyMon→TueWed onlyMon→WedThu onlyMon→ThuEach backs up only what changed since the previous backup: quick to make, but a restore needs the full backup plus every incremental.Each backs up everything changed since the full backup: grows each day, but a restore needs only the full backup plus the latest one.3-2-1 rule: 3 copies of the data, on 2 kinds of media, with 1 copy off-site.
Backup strategies. The choice trades time and space for making backups against the time and effort to restore.
Backup types
Backup typeBenefitDrawback
Fulleverything in one set: simplest, fastest restoreslowest to make; most storage
Incrementalonly changes since the last backup of any kind: quickest, least storagerestore needs the full plus every incremental in order
Differentialchanges since the last full backupgrows each day; restore needs the full plus the latest differential

Safe storage: keep at least one copy offsite or in the cloud and one offline (so ransomware cannot reach it), encrypt backups, and test restoring regularly. A common rule is 3-2-1: three copies, on two kinds of media, one offsite.

Port scanning

A port scan checks which network ports on a device are open and which services are listening. Defenders scan their own systems to find services that should be closed; attackers scan to find a way in.

nmap -sn 10.6.6.0/24        # which hosts are up?
nmap -sV 10.6.6.23          # open ports and service versions
nmap -p 1-1000 10.6.6.23    # scan a range of ports
nmap -O 10.6.6.23           # guess the operating system

Nmap commands used in the lab network practical.

The stages of a penetration test1 Plan and agreewritten permission2 Reconnaissancegather information3 Scanports, services, versions4 Exploitsafely test weaknesses5 Reportfindings and fixesEthical hackers have permission and report to the owner. Unethical hackers do not.
Penetration testing finds weaknesses before criminals do.
Ethical vs unethical hacking
Ethical hacking (penetration testing)Unethical hacking
Permissionwritten permission and an agreed scopenone: illegal under computer misuse law
Purposefind and fix weaknessessteal, damage, extort or show off
Outcomea report to the owner with recommendationsharm to the organisation and its clients
Stay legal and ethical. Only scan or test systems you own or have written permission to test. Scanning other networks can be a criminal offence. Use the college lab or a virtual lab only.

Key terms

Port
a numbered endpoint for a network service, e.g. 443 for HTTPS.
Port scan
checking which ports on a host are open.
Penetration test
an authorised simulated attack to find weaknesses.
Scope
the systems a tester is allowed to test.

Exam focus

Benefits of penetration testing: finds real weaknesses before criminals, tests staff responses. Drawbacks: costly, only a snapshot in time, may disrupt services, testers must be trusted.

Think it through

Why is a restore test as important as the backup itself?

A backup that cannot be restored is useless; testing proves the data and the process work before a real disaster.

What makes a penetration tester’s work legal when an attacker’s identical actions are not?

The tester has the owner’s written permission and works within an agreed scope.

Watch

Full, incremental and differential backups and where to keep them.

Watch and think:

  • Which backup type gives the fastest restore?

Open on YouTube ↗

What penetration testers do and why it must be authorised.

Watch and think:

  • What makes hacking ‘ethical’?

Open on YouTube ↗

8.3 Threat mitigation T Level core · 8.3.2

Firewalls, network segregation and monitoring

By the end you can: explain firewall configuration, network segregation, network monitoring and port scanning, and why they are used.

Firewall rules and network segregationInternetFirewallDMZpublic web and mail serversInternal LANstaff PCs, file server,databaseRule table (checked top to bottom)ALLOWin: any → DMZ web, port 443ALLOWout: LAN → any, ports 80, 443DENYin: any → LAN, all portsDENYapp: file-sharing softwareDENYIP: known bad address listAnything not allowed is denied.
A firewall applies rules to inbound and outbound traffic by type, application and IP address. Segregation keeps public servers away from the internal network.
8.3.2 Firewall configuration
Firewall rule typeExampleWhy
Rules for traffic (inbound and outbound)block all inbound except web traffic to the web server; allow outbound web browsingstops unrequested connections in, and malware calling out
Traffic type rulesallow HTTPS (443) and DNS (53); block Telnet (23)only needed, secure protocols are used
Application rulesblock file-sharing or remote-control appsstops risky software even on allowed ports
IP address rulesblock known malicious addresses; allow the admin VPN only from office IPslimits who can connect at all
Other internet security processes
ProcessWhat it isWhy it is used
Virtual segregationVLANs and subnets split one physical network into separate logical networksa breach in one segment (e.g. guest Wi-Fi) cannot reach another (finance)
Physical segregationseparate cabling and switches for sensitive systemsstrongest separation for critical systems
Offline networka network with no connection to the internetprotects the most critical systems, e.g. industrial control
Network monitoringtools watch traffic, logs, bandwidth and alerts continuouslyspot attacks, faults and unusual use early
Port scanningregularly scan your own network for open portsfind unexpected services before attackers do

Practical: configure a firewall in Packet Tracer

  1. Build a network with three PCs, a switch and a server (addresses 1.0.0.1–1.0.0.4, mask 255.0.0.0).
  2. Check that every PC can ping the server and open its web page.
  3. On the server, open Services → Firewall and turn it on.
  4. Add a rule to deny ICMP from one PC and allow it from the others. Test with ping.
  5. Add a rule to allow only HTTP. Explain what changed and why a default-deny rule is safer.

Based on your teacher’s ‘Basic firewall configuration in Cisco Packet Tracer’ practical.

Key terms

Firewall
hardware or software that filters traffic using rules.
DMZ
a separate network zone for public-facing servers.
Network segregation
dividing a network into separate zones.
Default deny
blocking everything not explicitly allowed.

Exam focus

Say what each firewall rule type controls and give a realistic example. For segregation, explain the benefit (containing a breach) and a drawback (more complex to manage).

Think it through

Why should a firewall filter outbound traffic as well as inbound?

Malware already inside may try to send data out or contact its controller; outbound rules can block this.

Why put a public web server in a DMZ rather than on the internal LAN?

If the web server is hacked, the attacker is still separated from the internal network by the firewall.

Watch

How firewalls filter traffic with rules.

Watch and think:

  • Give one inbound and one outbound rule for a school.

Open on YouTube ↗

How an attack unfolds, and where monitoring and segregation help.

Watch and think:

  • At which point could network monitoring have spotted the attacker?

Open on YouTube ↗

8.4 Effective security T Level core · 8.4.1

The CIA triad

By the end you can: explain confidentiality, integrity and availability and how they interrelate.

The CIA triadConfidentialityonly authorised peopleIntegritynot tampered withAvailabilitythere when neededDATAaccess controlprotects integritycorrect data isuseful dataWeakening one side weakens the others.
Confidentiality, integrity and availability depend on each other.
8.4.1 The three elements
ElementMeaningControlsExample of failure
Confidentialitydata is kept private by controlling who has accessaccess control, encryption, MFAa leaked customer list
Integritydata has not been tampered with; maintained partly by keeping it confidential (fewer people can change it)hashing, permissions, audit logs, validationan attacker changes bank details on invoices
Availabilitydata is available and useful when needed; useful only if its integrity is intactbackups, redundancy, DDoS protection, patchingransomware or a DDoS takes a service offline

The elements interrelate: controlling access (confidentiality) protects integrity, because fewer people can alter the data. Integrity supports availability, because data that is available but wrong is not useful. Too much confidentiality can harm availability, e.g. so many locks that staff cannot reach what they need, so security is always a balance.

Key terms

Confidentiality
only authorised users can access data.
Integrity
data is accurate and unaltered.
Availability
authorised users can access data when needed.
Trade-off
strengthening one element may weaken another.

Exam focus

When given an incident, name which element(s) of CIA were affected. Ransomware hits availability (and integrity); a leak hits confidentiality; altered records hit integrity.

Think it through

Explain how maintaining confidentiality helps integrity.

If only authorised people can access the data, fewer people are able to change it, so it is less likely to be tampered with.

A hospital locks down its records so tightly that doctors cannot open them in an emergency. Which element suffers?

Availability: the data is not available to authorised users when needed.

Watch

Confidentiality, integrity and availability explained by a security architect.

Watch and think:

  • Give an attack that mainly affects each element.

Open on YouTube ↗

8.4 Effective security T Level core · 8.4.2

Identification, authentication, authorisation and accountability (IAAA)

By the end you can: explain the elements of the IAAA model and the techniques used, with their benefits and drawbacks.

The IAAA modelIdentificationWho do you claim to be?username, card, faceAuthenticationProve itpassword + app code, fingerprintAuthorisationWhat may you do?role, access control listAccountabilityWhat did you do?audit logs, user activityExample: log in as jsmith → enter password and app code → HR role opens HR folders only → every file opened is logged
Identification, authentication, authorisation and accountability work in order every time someone uses a system.
8.4.2 The IAAA model
ElementTechniquesBenefitsDrawbacks
Identification: recognising the individualknowledge-based (username); possession-based (ID card, key fob); biometric (face, fingerprint)simple and quicka username alone proves nothing; cards can be lost or stolen
Authentication: verifying the claimed identitypasswords and passphrases; MFA; biometric authenticationMFA and biometrics are hard to fakepasswords are forgotten or guessed; biometrics cannot be changed if stolen; cost of readers
Authorisation: only permitted resources and actionsrole-based access control (RBAC); access control lists (ACLs)least privilege; easy to manage by roleroles must be kept up to date; ACL mistakes grant too much
Accountability: actions traced to a useraudit logs; monitoring user activitydeters misuse; evidence for investigationslogs need storage and review; privacy concerns
$ ls -l /srv/hr
-rw-r----- 1 jsmith  hr  4096 salaries.xlsx
$ sudo usermod -aG hr akhan     # authorise: add a user to the hr group
$ sudo last -n 5                 # accountability: recent logins

Linux permissions (authorisation) and login history (accountability), from the Linux commands practical.

In the real world: shared logins

A shop’s staff all use one shared till login. When money goes missing there is no way to know who processed which refund. Individual accounts (identification), PINs (authentication), refund rights for managers only (authorisation) and a transaction log (accountability) fix every stage.

Key terms

Identification
claiming an identity, e.g. entering a username.
Authentication
proving the identity claimed.
Authorisation
granting the permissions that identity is allowed.
Accountability
tracing actions back to the user responsible.

Exam focus

Do not mix up authentication (proving who you are) and authorisation (what you may do). Shared accounts break accountability, which is a common exam scenario.

Think it through

Why are shared user accounts a problem for accountability?

Audit logs can only record the shared account, so actions cannot be traced to one person.

Give one benefit and one drawback of role-based access control.

Benefit: permissions are set once per role and applied to everyone in it. Drawback: if someone changes job and their role is not updated, they keep access they no longer need.

Watch

Stretch: how identity, authentication, authorisation and accounting work in real networks.

Watch and think:

  • Which part of IAAA do audit logs support?

Open on YouTube ↗