The internet, the web and browsers
People often say “the internet” when they mean the web, but the two are different things. The internet is the network. The web is the pages that use it. A browser uses a URL to find, fetch and show a page.
The internet
The infrastructure: a global network of connected computers and networks.
The world wide web (WWW)
The collection of websites and web pages that are accessed using the internet.
URL: uniform resource locator, the address of a web page written as text
Every web address splits into the same three parts: the rules for fetching the page, the server that holds it, and the file on that server.
Web browser
Main purpose: render HTML and display web pages. Other functions:
- storing bookmarks and favourites
- recording the user’s history
- allowing multiple tabs
- storing cookies
- navigation tools: back, forward, refresh
- an address bar to enter a URL
How a web page is located, retrieved and displayed
A browser cannot fetch a page by its name alone: first it needs the server’s IP address. Describe the six numbered steps in order: who sends what, and to whom.
Step 4 uses one of two sets of rules, and only one of them protects the data on its way.
HTTP · hypertext transfer protocol
The set of rules a browser and web server use to request and send web pages.
HTTPS · HTTP secure
HTTP with SSL/TLS: the server’s digital certificate is checked and the data is encrypted, so intercepted data cannot be understood.
1 In https://shop.example.net/offers/today.html, name the protocol, the domain name and the web page.
2 Which server turns a domain name into an IP address?
3 What does HTTPS add to HTTP?
- 1protocol:
https· domain name:shop.example.net· web page:/offers/today.html - 2the DNS server
- 3SSL/TLS: the server’s digital certificate is checked and the data is encrypted
Cookies, digital currency and blockchain
A website would forget you between pages unless it left a note on your device. A cookie is that note: a small file a website stores on your device. Online money needs the opposite, a record nobody can quietly rewrite. A blockchain is a chain of linked blocks that is hard to change.
Cookies: small text files that store data about a user
Follow the cookie: the server sends it on the first visit, and the browser hands it back on the next one. Then say what cookies are used for, and tell a session cookie from a persistent one.
Used for
- saving personal details, e.g. name and address
- storing login details
- tracking user preferences, e.g. language
- holding items in an online shopping cart
- targeted advertising based on browsing
Session cookie
- Temporary: held in RAM.
- Deleted when the browser is closed.
e.g. keeps items in a shopping cart while you browse.
Persistent cookie
- Saved on secondary storage.
- Kept until its expiry date or until the user deletes it.
- Also called permanent cookies.
e.g. remembers login details, or keeps cart items after the browser is closed.
Digital currency and blockchain
Money that exists only as data needs a record everyone can trust. Say what each one is, and explain how the hashes link the blocks.
Digital currency
- A currency that only exists electronically: there are no notes or coins.
- Used to pay for goods and services online or to send money to another person (e.g. cryptocurrency).
- Many use a blockchain, a decentralised database that no single bank controls.
Blockchain
A digital ledger: a time-stamped series of records that cannot be altered.
- 1Transactions are stored in blocks.
- 2A full block is added to the chain.
- 3The updated chain is shared with every computer in the network, so every transaction can be tracked.
For a payment, the device encrypts the payment data before sending it to the digital ledger. Recording the transaction in the chain is a separate step.
How the blocks are linked
Compare the hashes from block to block: the violet previous hash in each block is a copy of the blue block hash in the block before it.
Digital currency
A currency that only exists electronically: there are no notes or coins. It is used to pay for goods and services online or to send money to another person (e.g. cryptocurrency).
Many use a blockchain, a decentralised database that no single bank controls.
Blockchain
A digital ledger: a time-stamped series of records that cannot be altered. Transactions are stored in blocks. A full block is added to the chain, and the updated chain is shared with every computer in the network, so every transaction can be tracked.
For a payment, the device encrypts the payment data before sending it to the digital ledger. Recording the transaction in the chain is a separate step.
- 1A hash is a fingerprint calculated from a block’s contents (shortened here).
- 2Each block stores the previous block’s hash.
- 3Changing an old record changes its hash, so its link to the next block no longer matches.
A hash is a fingerprint calculated from a block’s contents (shortened here). Each block stores the previous block’s hash. Changing an old record changes its hash, so its link to the next block no longer matches.
1 A shop website keeps your cart items only until you close the browser. Which type of cookie does it use, and where is it held?
2 In a blockchain, what does block 2 store from block 1?
3 Why does changing an old record break the chain?
- 1a session cookie, held in RAM and deleted when the browser closes
- 2block 1’s hash, as its previous hash
- 3the old record’s hash changes, so the previous hash stored in the next block no longer matches
Malware
Harmful programs do not all work the same way: one copies itself from file to file, another locks your files and demands money. Malware is malicious software installed on a device without the user’s permission.
For each type, say what it does and give its aim. Name the specific behaviour, not just “damages the computer”.
Virus
Attaches to files and replicates itself.
Aim: to delete or corrupt data, or fill memory
Worm
Replicates across a network by itself, exploiting weaknesses.
Aim: to use up bandwidth and slow the network
Trojan horse
Disguised as legitimate software; once downloaded it releases the malware it contains.
Aim: to get other malware installed
Spyware
Records key presses (or webcam or GPS data) and sends it to a third party.
Aim: to steal passwords and personal data
Adware
Displays unwanted adverts such as pop-ups.
Aim: to make money from adverts
Ransomware
Encrypts the user’s data so it cannot be accessed.
Aim: to demand payment (a ransom) for the key
Anti-malware, including anti-virus and anti-spyware
1 Which malware is disguised as a useful program?
2 Which malware encrypts a user’s files and demands payment?
3 Why must anti-malware be updated?
- 1a Trojan horse
- 2ransomware
- 3it compares files with a database of known malware, so new threats must be added to the database
Hacking, brute force, interception and DDoS
Not every attack needs malware on the victim’s device. An attacker can guess a password, read data as it travels, or flood a website until nobody else can reach it.
Threats to accounts and data
Say what each attack is, and give its aim.
Hacking
Gaining unauthorised access to a computer, account or system.
Aim: to steal, change, delete or leak data.
Brute-force attack
Repeatedly trying different password combinations, often using software, until one works.
Aim: to get into an account and its data.
Data interception
A packet sniffer analyses data packets in transit; useful ones go to a third party.
Aim: to steal data such as passwords or card numbers.
DDoS: distributed denial of service
One request is harmless. Thousands at once, from many computers, can shut a website down. Follow the arrows from the attacker to the genuine user who is shut out.
Process and aim
- 1The attacker makes many bots send requests to one web server at the same time.
- 2The server cannot cope, so genuine users cannot reach the website.
Aim: disrupt a business, extort money, or protest.
The attacker makes many bots send requests to one web server at the same time. The server cannot cope, so genuine users cannot reach the website. Aim: disrupt a business, extort money, or protest.
Solution
A proxy server examines each request and limits how many reach the web server (see Firewalls, proxy servers and SSL).
1 Software tries thousands of passwords in turn until one works. Name the attack.
2 In a DDoS attack, what are the bots and what do they do?
3 Which solution helps against a DDoS attack?
- 1a brute-force attack
- 2bots are devices taken over by malware; they all send requests to one web server at the same time
- 3a proxy server, which limits and blocks requests before they reach the web server
Authentication, access levels and solutions
A system has to know who is logging in before it can decide what they may do. Security solutions prove who you are, limit what each account can do, and are matched to the threat they stop.
Authentication: prove who you are
A password alone can be guessed or stolen, so many systems add a second check. Follow the log-in through both checks to the open lock.
Biometrics
A unique physical feature: fingerprint, face, voice or iris. Very hard to guess, copy or forget.
Why two steps?
A stolen password on its own is not enough to log in: the attacker also needs the user’s phone or email.
Access levels: limit what each account can do
Even a genuine user should not be able to change everything. In this example policy, administrator permission is needed to install system software or change protected settings.
| Access level | View data | Edit or delete it | Administrator settings |
|---|---|---|---|
| No access | ✗ | ✗ | ✗ |
| Read-only | ✓ | ✗ | ✗ |
| Read/write | ✓ | ✓ | ✗ |
| Administrator | ✓ | ✓ | ✓ |
- Each user gets only the permissions they need.
- If an attacker gets into an account, they can only read or change the data that account is allowed to access.
- A read-only account can view the permitted data, but cannot edit or delete it.
Match the solution to the threat
Name a solution that fits the threat in the question, and say how it helps.
| Threat | Solutions that help |
|---|---|
| Brute-force attack | strong passwords · limit login attempts · two-step verification · biometrics |
| Data interception | encryption, e.g. SSL / HTTPS, so intercepted data cannot be understood |
| Hacking | firewall · strong passwords and two-step verification · access levels |
| Malware | anti-malware (anti-virus, anti-spyware) · automatic software updates · firewall |
| DDoS attack | proxy server: limits and blocks requests before they reach the web server |
| Phishing | check the sender’s address, spelling and tone · check the URL attached to the link |
| Pharming | anti-malware · check the actual domain and certificate warnings |
| Social engineering | never share passwords · two-step verification · privacy settings |
1 Which access level lets a user view and edit data but not change administrator settings?
2 A hacker knows a user’s password. Why does two-step verification still stop them?
3 Name a solution for data interception.
- 1read/write
- 2they also need the code sent to the user’s phone or email
- 3encryption, e.g. SSL / HTTPS, so intercepted data cannot be understood
Firewalls, proxy servers and SSL
Some threats can be turned away before they reach a device, and data can be scrambled so that anything intercepted is useless. A firewall and a proxy server filter traffic. SSL encrypts data between a browser and a web server.
Both filters stand in the path of traffic and inspect it before letting it through. In the firewall drawing, follow each packet’s address to Allow or Block.
Firewall
- Hardware or software.
- Examines incoming and outgoing traffic.
- Compares it with set criteria (e.g. blocked IP addresses or ports), allowing or blocking it.
Hardware or software that examines incoming and outgoing traffic and compares it with set criteria (e.g. blocked IP addresses or ports), allowing or blocking it.
Proxy server
- Sits between users and the web server; every request passes through it.
- Examines each request, limits how many reach the server and blocks suspicious IP addresses, so it can stop a DDoS flood.
- A client proxy can hide the user’s public IP address from visited websites.
- Caches popular pages and answers repeat requests itself.
SSL: secure socket layer
A security protocol that encrypts data sent between a browser and a web server. HTTP + SSL/TLS = HTTPS.
Time runs down the drawing: follow messages 1 to 4 between the browser and the server. No data is sent until step 3 has checked the certificate.
For asymmetric encryption from browser to server, the browser encrypts with the server’s public key. The server decrypts with the matching private key, which it keeps secret.
Two more defences
Say how each one protects a user.
Automating software updates
Security fixes are installed as soon as they are released, so known weaknesses are patched before criminals can use them.
Privacy settings
Control who can see a user’s personal information and posts, and who can contact them, e.g. on social media.
1 What does a firewall compare each packet with?
2 What does the browser check before it sends data over HTTPS?
3 Which key does the browser use to encrypt data for the server?
- 1a set of rules or criteria, such as blocked IP addresses or ports
- 2it authenticates the server’s digital certificate; if it is not valid, no data is sent
- 3the server’s public key; only the server’s private key can decrypt it
Social engineering, phishing and pharming
The easiest way into a system is often a person, not the software. Social engineering is when a criminal manipulates or deceives people into giving away confidential or personal data, or into breaking normal security procedures.
Phishing: a fake message that looks legitimate
Read the email first: each orange note marks a warning sign. The chain below it shows what happens if the user clicks.
Protect yourself
Pharming: redirected even when the URL is correct
Follow the numbers. This time the user does nothing wrong: malicious code already on the computer sends the correct address to a fake site.
Aim, defence and other tricks
Give the aim with the process, and a way to stop each attack.
Aim of phishing and pharming
To obtain personal data such as login details or bank details, for fraud or identity theft.
Stop pharming
Anti-malware finds and removes the redirecting code. Check the actual domain and certificate warnings. HTTPS protects a connection; it does not prove the site’s intentions.
Other social engineering
Pretending to be IT support and asking for a password; looking over a shoulder as a PIN is typed (shoulder surfing); leaving an infected USB stick to be found (baiting).
Aim of phishing and pharming
To obtain personal data such as login details or bank details, for fraud or identity theft.
Stop pharming
Other social engineering
1 An email says “Your parcel is held. Pay a fee now at parcel-fee.example”. Is this phishing or pharming? Why?
2 Which attack redirects a user to a fake site even when the correct URL is typed?
3 Give two signs that a message is a phishing attempt.