AS & A Level Computer Science · Area 1 · AS Level content

Data security and data integrity

Security, privacy and integrity are three different ideas, and the marks are lost when you use them as if they were one. You need to know the threats a network and the internet create, the controls that answer each threat, and how validation and verification keep stored data accurate. The two halves of this topic are usually examined together, so be ready to say which control stops which attack, and which check catches which kind of error.

Not started

Syllabus coverage

  • Explain the difference between the terms security, privacy and integrity of data
  • Show appreciation of the need for both the security of data and the security of the computer system
  • Describe security measures designed to protect computer systems, from a stand-alone PC to a network of computers
  • Security measures including user accounts, passwords, authentication techniques such as digital signatures and biometrics, firewall, anti-virus software, anti-spyware, encryption
  • Show understanding of the threats to computer and data security posed by networks and the internet
  • Threats including malware (virus, spyware), hackers, phishing and pharming
  • Describe methods that can be used to restrict the risks posed by threats
  • Describe security methods designed to protect the security of data, including encryption and access rights
  • Describe how data validation and data verification help protect the integrity of data
  • Describe and use methods of data validation: range check, format check, length check, presence check, existence check, limit check, check digit
  • Describe and use methods of data verification during data entry: visual check, double entry
  • Describe and use methods of data verification during data transfer: parity check (byte and block), checksum

Part of the AS & A Level Computer Science syllabus 9618.

Security, privacy and integrity are three different things

Three words that sound interchangeable, and the examiner tests the difference. Data security is the set of measures that stops data being read, changed or destroyed by anyone who is not entitled to read, change or destroy it. Privacy is about who is allowed to hold information about a person, and what they may do with it. Data integrity is about whether the stored data is an accurate, complete and up-to-date record of what it claims to describe.

The quickest way to keep them apart is to give each one its own question. Security asks who could get at this, and how do we stop them? Privacy asks should this have been collected at all, and who has a right to know it? Integrity asks is it still right?

The three fail independently, which is why the distinction matters. A payroll database behind strong passwords and full-disk encryption, containing a bank account number mistyped three years ago, is secure and private and still has poor integrity: the person it belongs to is not paid. In the same way, a hospital can hold complete and accurate records and still destroy privacy by leaving a printout on a reception desk.

TermWhat it protectsTypical failure
SecurityData and systems, from unauthorised access, change, deletion or disclosureA stolen laptop, a hacked account, a virus that deletes files
PrivacyThe person the data is about, and the right to control its collection and useData collected without consent, or shared with a third party for marketing
IntegrityThe accuracy, completeness and consistency of the data itselfA mistyped value, a lost field in a transfer, an out-of-date record
Do not write that security protects data and privacy protects people - say what each one stops, or who is allowed to use the data and for what.

Why you need both the system and the data to be secure

Security of the computer system means protecting the hardware, the operating system, the installed software and the network from unauthorised use, damage and malware. It covers the physical side (locked server room, locked cases, cable locks, controlled access to the building), the operating system (user accounts, permissions, up-to-date patches, services switched off), the network (firewall, separate segments for staff and guests) and the software (anti-virus, application updates).

Security of the data means protecting the data itself, wherever it happens to be: on a hard disk, on a backup tape in a cupboard, on a USB stick in someone's pocket, in an email in transit, or inside a database table. The controls that work at this level are encryption and access rights, because they travel with the data rather than with the machine.

You need both because each one fails where the other still works. If an attacker gets a legitimate account on a server, the system has been compromised and every file that account can reach is open - unless the files themselves are encrypted or the account's rights stop at the files it needs. In the other direction, a fully patched, firewalled network still leaks data when a manager copies a customer list onto a memory stick and loses it, or emails it to the wrong person; only encryption and rights limit the damage then.

The general principle is layered defence: several independent controls, so that an attacker has to defeat all of them. A single control is a single point of failure, and the exam answers that score highest are the ones that place controls at more than one layer.

A question about the security of data wants encryption and access rights; a list of passwords and firewalls is answering about the system.

User accounts and passwords

A user account ties every action on a system to a named person. Without individual accounts, work cannot be attributed, rights cannot differ between users, and a shared login means nobody can be held responsible for anything done with it. Each account carries a username, a password or other credential, and a set of rights.

A password is a credential the user knows. What makes it strong is the number of guesses an attacker would need: length matters most, then a mix of upper and lower case, digits and symbols, and avoiding dictionary words, names and dates that a guessing tool tries first. The system has to help as well: store only a hash of the password rather than the password itself, limit the number of failed attempts and lock the account, force a change after a suspected breach, disable the accounts of staff who leave immediately, and never issue a default password that is never changed.

Other account controls do as much work as the password. Least privilege gives each user only the rights the job needs, so a receptionist cannot delete the accounts table. A separate administrator account is used only when administration is actually needed, so day-to-day browsing with full rights cannot install anything. Logging records who signed in, when and from where, which is how an intrusion is noticed at all.

  • Unique account per person, never shared, disabled when the person leaves
  • Strong password rules plus lockout after repeated failures
  • Least privilege: rights granted to a group or role, not to everybody
  • Separate administrator account, used only for administration
  • Audit log of logins and failed logins, reviewed rather than merely kept
A mark for a strong password needs the reason attached - it raises the number of guesses needed, so brute-force and dictionary attacks take too long to be worth running.

Authentication: digital signatures and biometrics

Authentication is proving that a user or a message really is what it claims to be. Credentials fall into three groups: something you know (password, PIN), something you have (a smart card, a code generated on a phone, a hardware token) and something you are (a fingerprint, an iris, a face). Using two credentials from different groups is multi-factor authentication, and it is much stronger than two passwords because stealing one factor is not enough.

A digital signature authenticates a message rather than a person at a keyboard. The sender runs the message through a hashing algorithm to produce a short fixed-length digest, then encrypts that digest with the sender's private key and attaches it. The receiver decrypts the signature with the sender's widely available public key, recomputes the hash of the message as received, and compares the two. If they match, only the holder of the private key could have produced the signature and the message has not changed since; this gives authenticity, integrity and non-repudiation, because the sender cannot later deny signing.

Biometrics measure a physical characteristic and compare it with a stored template, not a photograph: a fingerprint's ridge pattern, the pattern of the iris, the geometry of the face, the shape of the hand, a voice print. Because the measurement is never identical twice, the system compares against a threshold, which produces two kinds of error: a false acceptance (the wrong person is let in) and a false rejection (the right person is turned away).

Biometrics cannot be forgotten, lent, written on a sticky note or guessed, and they need the person to be present. Against that, a biometric cannot be changed if it is copied, the reader costs money, some users cannot enrol or fail on a given day, and the template itself is personal data that has to be protected. Any system relying on a biometric therefore needs a fallback method.

MethodWhat it provesMain weakness
PasswordThe user knows a secretCan be guessed, reused, phished or written down
Digital signatureThe message came from the holder of a private key and is unchangedDepends on the private key staying secret; does not hide the message
BiometricsThe physical characteristic matches the enrolled templateCannot be changed if copied; false accepts and false rejects
A digital signature proves where a message came from and that it is intact - it does not make the message secret, so confidentiality still needs encryption.

Restricting the risks: firewalls, anti-virus and anti-spyware

A firewall sits between two networks, usually the internal network and the internet, and decides which traffic may pass. It examines each packet against a set of rules built from source and destination IP address, port number and protocol, and the safe default is to block everything that has not been specifically allowed. That stops an outside attacker from reaching a service that was never meant to be public, and it can also block outgoing connections so that malware cannot contact the server that controls it. A firewall logs the attempts it blocked, which is often the first evidence that a network is being probed.

A firewall cannot see inside traffic it has allowed. If port 443 is open for web browsing, a virus arriving inside a downloaded file passes straight through, and if email is allowed, so are infected attachments. That is the gap that anti-virus software fills: it scans files when they are opened, saved or downloaded, scans email attachments and removable media, and checks memory and startup areas. It detects known malware by matching signatures and unfamiliar malware by heuristics, watching for behaviour that looks wrong, and it then quarantines, repairs or deletes the file. Definitions have to be updated constantly, because a signature cannot exist for a virus written this morning.

Anti-spyware targets the software that hides and reports on the user: keyloggers that record every keystroke, programs that report browsing habits, browser toolbars and hijackers that change the home page or search engine. It scans for unauthorised changes to browser settings and startup entries, and removes the tracking and monitoring code. Many commercial suites bundle anti-virus, anti-spyware and a personal firewall, but the exam expects you to say which component answers which threat.

ControlWhere it worksWhat it stops
FirewallBoundary between networks, or on the hostUnauthorised connections in or out, by address, port and protocol
Anti-virusFiles, email, downloads, memoryKnown and suspicious malicious code inside allowed traffic
Anti-spywareInstalled software, browser settings, startup entriesKeyloggers, tracking software, unwanted monitoring
Match the control to the threat: a firewall cannot see a virus inside a permitted email, and anti-virus cannot close an open port that a hacker is probing.

Threats from networks and the internet

Malware is software written to damage a system, disrupt it or give someone access to it. A virus is code that inserts a copy of itself into another program or file, its host, and runs when the host is run; it then infects further files, and its payload may corrupt data, fill a disk or delete files. A virus needs the user to do something - open the attachment, run the downloaded program, plug in the infected stick - because it cannot spread on its own. Spyware is installed without consent and runs quietly: it records keystrokes, screenshots, browsing history and logins and sends them to a third party, and it may open a back door for more malware. The same family includes worms, which spread across a network by themselves, trojans, which arrive disguised as something useful, and ransomware, which encrypts files and demands payment.

Hackers gain unauthorised access to a system. The way in is usually mundane: an unpatched program with a known flaw, a default or weak password on a router or camera, a service left running that nobody needed, or a convincing phone call to a member of staff. Once inside, the attacker tries to raise their rights to administrator, installs a back door so the access survives a reboot, copies or alters data, and clears the logs that would show what happened.

Phishing is an attack on the user rather than on the machine. A message that appears to come from a bank, a supplier, a colleague or a delivery company asks the recipient to click a link to a login page that is a copy of the real one, or to open an attachment. The login page harvests the username and password; the attachment installs malware. Spear phishing is the same trick aimed at one named person, using details from social media to make the message convincing.

Pharming redirects the user to a fake site without any action by the user at all. The attacker either poisons the cache of a DNS server, so that a correct domain name resolves to the attacker's IP address, or modifies the hosts file on the victim's machine through malware. The address typed is the right one and the browser shows the real URL, so the usual advice to check the link does not help.

  • Apply operating system and application patches promptly, especially for flaws that are already being exploited
  • Switch off services, ports and accounts that are not needed, and change every default password
  • Give ordinary users ordinary rights, and keep administrator rights for administration only
  • Filter email at the gateway and train staff to expect a convincing fake
  • Back up offline and test a restore, so that ransomware costs time rather than the data
  • Log and review activity, so that an intrusion is found in days rather than months
ThreatHow it worksControl that answers it
VirusInfects a host file, runs when the host runs, replicatesAnti-virus, patching, blocking macros and autorun, user care with attachments
SpywareInstalls silently, records activity, reports it outAnti-spyware, firewall rules on outgoing traffic, care with free downloads
HackerExploits a flaw, weak password or open service to gain accessFirewall, patching, strong authentication, least privilege, logging
PhishingA message lures the user to a fake page or an attachmentUser training, email filtering, multi-factor authentication
PharmingDNS poisoning or hosts file change redirects a correct addressDNS security measures, anti-spyware, HTTPS certificate checks
Phishing needs the user to do something; pharming needs nothing at all - that single sentence is what earns the compare mark.

Protecting the data itself: encryption and access rights

Encryption turns plaintext into ciphertext using an algorithm and a key, so that the data is meaningless to anyone without the key. In symmetric encryption the same key encrypts and decrypts: it is fast and suits large volumes, but the key has to reach the other side somehow, and that transfer is itself a risk. In asymmetric encryption each user has a pair of keys, a public key that anyone may hold and a private key that never leaves its owner; data encrypted with one key can only be decrypted with the other, which solves the key distribution problem and makes digital signatures possible.

Encryption protects data in transit - the padlock in a browser is an encrypted connection between the browser and the server, and a VPN encrypts traffic across the internet - and it protects data at rest: a whole disk, a database column of card numbers, a backup tape, a memory stick. The value is that the protection travels with the data, so a stolen laptop or intercepted email gives the attacker ciphertext. What encryption does not do is keep data available: it cannot stop a file being deleted, corrupted or held to ransom.

Access rights control what a logged-in user may do with a particular file, folder, record or field. Typical rights are read, write, execute, delete and create, granted to users or to groups. A well-set system gives a user the rights their role needs and nothing more, makes reference data read-only, keeps the accounts table away from everyone except the payroll system, and logs who changed what. Access rights protect against the insider and against accident - the clerk who would otherwise overwrite the price list - which encryption does not address at all, because an authorised user has the key.

Encryption protects data when control of the system is lost; access rights protect it while the system is running. A full-mark answer gives both and says what each one cannot do.

Validation: keeping rubbish out at the point of entry

Validation is an automated check, made by the system as data is entered, that the data is sensible, reasonable and of the right type before it is accepted. Data that fails is rejected with an error message and the user must correct it, so the database never fills with values that could not possibly be true. Validation checks plausibility, not truth: a date of birth of 01/01/1990 passes every check even if the customer was born in 1975.

The seven checks in the syllabus each answer a different kind of mistake, and the skill is choosing the right one for a given field.

A check digit is an extra digit calculated from the other digits by a fixed rule, usually a weighted sum followed by a modulus, and stored as part of the code. When the code is keyed in, the system recalculates the digit from the digits entered and compares it with the one supplied. Because each position carries a different weight, the check catches a single wrong digit and most cases of two digits typed in the wrong order - 1234 keyed as 1324 gives a different weighted sum. It cannot catch a code that is itself valid but belongs to the wrong person, such as a correctly formed customer number for another customer, and it cannot catch a mistake in a field that carries no check digit at all.

CheckWhat it testsExample
Range checkThe value lies between a lower and an upper limitAge between 11 and 18 for a school system
Format checkThe characters follow a required patternDate as DD/MM/YYYY, postcode as two letters, two digits, two letters
Length checkExactly, or at most, a set number of charactersA UK mobile number of 11 digits
Presence checkSomething, not blank, has been enteredA surname field cannot be left empty
Existence checkThe value already exists in a reference fileA customer ID that must match a record in the customers table
Limit checkThe value does not cross a single boundaryA quantity of no more than 10 per order
Check digitThe digits are internally consistent with a calculated digitThe final digit of an ISBN or a barcode
A range check has two boundaries and a limit check has one - and if a question names a field, choose the check that fits that field rather than listing all seven.

Verification: data entry and data transfer

Verification is a check that the data has been copied or transmitted without error - that what the system now holds is what the source actually said. Validation asks is this acceptable?; verification asks is this the same as the original? A value can be perfectly acceptable and still wrong, so the two work as a pair.

During data entry there are two methods. A visual check means a person reads the screen or the printed record and compares it with the source document, which is cheap and catches obvious slips, but it depends on attention and is useless if the operator is tired or the volume is high. Double entry means the data is keyed in twice, usually by two different operators, and the system compares the two versions; a difference is flagged for correction. It catches almost every keying error, but it doubles the cost, so it is reserved for data where an error is expensive, such as bank details or medical records.

During data transfer the receiving system has to be able to tell that the bits arriving are the bits that were sent, because a phone line, a wireless link or a failing disk can flip a bit without any warning. A parity check adds one extra bit to each byte - byte parity - set so that the total number of 1 bits is always odd (odd parity) or always even (even parity). The receiver counts the 1s again, and a mismatch means an error occurred. Because the position of the bad bit is unknown, the byte has to be re-sent, and an even number of flipped bits in the same byte leaves the count unchanged, so it goes undetected.

Block parity adds a parity bit to each byte and also a parity byte for the block, so there is a parity check for every row and every column. A single flipped bit then fails both its row parity and its column parity, the intersection identifies the bit, and the receiver can flip it back - so block parity can correct one error, not merely detect it. A checksum is calculated from the data itself, for example the sum of the byte values, and sent with it; the receiver recalculates and compares. It catches error patterns that parity misses, but it cannot say where the error is, and two errors that cancel each other out in the sum still slip through.

MethodUsedDetectsCorrects
Visual checkData entryObvious differences from the source documentNo, the operator corrects it
Double entryData entryAlmost all keying errorsNo, the difference is flagged for correction
Byte parityData transferAn odd number of bit errors in a byteNo, the byte is re-sent
Block parityData transferAn odd number of bit errors per row and columnYes, a single bit, located at the intersection
ChecksumData transferMost error patterns in a block of dataNo, the block is re-sent
Always state the limit as well as the use: byte parity cannot correct, block parity corrects one bit, and a checksum detects but never corrects.

Key terms you must be able to define

Data security
The measures that protect data from being read, changed, deleted or disclosed by anyone not entitled to it. Security is about the controls; privacy is about who may hold the data, and integrity is about whether it is accurate.
Privacy
The right of a person to control information about themselves: whether it is collected, who holds it, and what it is used for. Data can be perfectly secure and still held in a way that invades privacy.
Data integrity
The accuracy, consistency and completeness of data, and the extent to which it remains an up-to-date and correct record of what it describes. Integrity can be lost through a typing error or a corrupted transfer without anyone attacking the system.
Malware
Software written to damage a computer system, disrupt it or gain unauthorised access to it. Viruses, spyware, worms, trojans and ransomware are all malware.
Phishing
A fraudulent message that appears to come from a trusted organisation and persuades the recipient to click a link to a fake login page or open an attachment, so that credentials or card details are captured or malware is installed.
Pharming
Redirecting a user to a fake website without any action by the user, by poisoning a DNS server's cache or altering the hosts file, so that a correctly typed address resolves to the attacker's server.
Firewall
Hardware or software that filters traffic passing between two networks against rules based on IP address, port number and protocol, blocking anything not specifically permitted and logging the attempts it blocked.
Encryption
The conversion of plaintext into ciphertext using an algorithm and a key, so that the data cannot be read without the key. Symmetric encryption uses one shared key; asymmetric encryption uses a public and a private key pair.
Access rights
The permissions granted to a user or group for a file, folder, record or field - typically read, write, execute, delete and create - so that each user can reach only the data their role requires.
Digital signature
A hash of a message encrypted with the sender's private key and attached to the message. The receiver decrypts it with the sender's public key and compares hashes, which proves the origin and that the message is unchanged.
Biometrics
Authentication by measuring a physical characteristic such as a fingerprint, iris or face and comparing it with an enrolled template. Because no two readings are identical, the system compares against a threshold, giving false accepts and false rejects.
Validation
An automated check at the point of entry that data is sensible, reasonable and of the correct type before it is accepted - for example a range, format or presence check. It tests plausibility, not accuracy.
Verification
A check that data has been copied or transmitted without error, so that what the system holds matches the source: by visual check or double entry at data entry, and by parity or checksum during transfer.
Checksum
A value calculated from a block of data and sent with it. The receiver recalculates it and compares; a mismatch shows that the data was corrupted in transit. It detects errors but cannot locate or correct them.

Applied to real systems

9618 sets its questions inside systems you already use - a phone, a school network, a supermarket till, a website, a bank. These show how to apply the theory to a context you have not seen before, then you write your own.

Digital signatures in an HTTPS connection

What it shows. When a browser opens a secure connection to a bank, the site sends a certificate containing its public key, and that certificate carries a digital signature made by a certificate authority. The browser already holds the authority's public key, so it can check the signature, confirm that the certificate really belongs to this domain and has not been altered, and only then use the site's public key to agree the keys for the encrypted session. Why it matters in an exam. This is the cleanest illustration of the difference between authentication and encryption: the signature proves the site is genuine and its certificate is intact, while the encrypted session that follows keeps the contents of the page secret. A question that asks how a digital signature works expects the hash, the private key, the public key and the comparison.

Ransomware on a hospital network: WannaCry, May 2017

What happened. WannaCry was ransomware that spread by itself across networks, using an exploit for a flaw in the SMBv1 file-sharing protocol on Windows machines that had not been patched. Once on a machine it encrypted the files and demanded payment for the key, and it needed no user to click anything in order to move to the next machine. Hospital trusts in England were among the organisations affected, and appointments and operations were cancelled while systems were restored. What it shows. Every strand of this topic at once: the malware itself, the importance of patching a known flaw, the way one flat network lets an infection spread sideways (segmentation would have limited it), the difference between the security of the system and the safety of the data, and the value of an offline backup that ransomware cannot reach. It also shows why paying is a poor control - payment does not guarantee the key.

A check digit in an ISBN-13 barcode

How it works. An ISBN-13 is 13 digits, and the last one is a check digit. The first twelve digits are multiplied alternately by 1 and by 3, the twelve products are added, and the check digit is whatever brings the total up to the next multiple of 10. For 5 0 2 1 7 6 4 0 8 9 3 2 the products are 5, 0, 2, 3, 7, 18, 4, 0, 8, 27, 3 and 6, the total is 83, and the check digit is 7, giving 5021764089327. What it shows. The different weights are what makes the check useful: swapping two adjacent digits changes the total, so a transposition that a length check or a format check would never notice is caught at the till. It also shows the limit - a valid code belonging to a different product passes, because the digits are consistent with each other.

Biometric e-passport gates at a border

What it shows. An e-passport carries a chip holding the holder's details and a facial image, protected by a digital signature so that it cannot be altered without detection. At an automated gate the traveller's face is photographed and compared with the image in the chip, using facial recognition rather than a simple photograph match, and the gate opens only if the similarity passes a threshold and the chip's signature checks out. Why it is a good example. It uses a biometric for authentication, a digital signature for integrity of the stored data, and a human official as the fallback when the gate rejects a genuine traveller - the false rejection that every biometric system has to plan for. Compare it with a password: the traveller cannot forget a face or lend it to somebody else, but the template in the chip is personal data that itself has to be kept secure.

Access rights on a Unix or Linux server

How it works. Every file carries permissions for three groups - the owner, the owner's group and everyone else - each set to read, write, execute or a combination, so a configuration file can be readable by the web server but writable only by the administrator. A web server process runs as a low-privilege user, so if an attacker takes over the website they inherit that user's limited rights and cannot rewrite the operating system. What it shows. Access rights as least privilege in practice, and the reason rights sit alongside encryption in the syllabus: they limit what an authorised account can do, including an account that has been taken over, and they stop the accidental damage an ordinary user can cause.

Flashcards

Click a card to flip it. Mark honestly — the tracker uses this.

Q1Explain the difference between the security, the privacy and the integrity of data.
Security is the set of measures that stop data being read, changed or deleted by anyone not entitled to it. Privacy is about who is allowed to hold and use information about a person, and for what purpose. Integrity is about whether the data is an accurate, complete and up-to-date record. A file can be secure and still have poor integrity, or accurate and still breach privacy.
Q2Why is it not enough to secure the computer system alone?
Because the data can leave the system. A stolen laptop, a copied memory stick, an email sent to the wrong person or a backup tape all carry data outside the protection of the system's accounts, firewall and anti-virus. Protecting the data itself needs encryption and access rights, which stay with the data. If the system is compromised, encryption at rest still protects it; if the data leaves, encryption is the only thing left.
Q3Give four controls that make a password system hard to break.
A minimum length with a mix of character types and no dictionary words (raises the number of guesses needed); storing only a salted hash rather than the password; locking the account after a small number of failed attempts (stops brute force); forcing a change after a suspected breach and disabling the accounts of leavers immediately. Least privilege limits the damage if one account is taken over.
Q4How does a digital signature work?
The sender hashes the message to a fixed-length digest, encrypts that digest with their private key and attaches it. The receiver decrypts the signature with the sender's public key, recalculates the hash of the message as received and compares. A match proves the message came from the holder of the private key and has not been altered, which also gives non-repudiation. It does not hide the message.
Q5What are the advantages and disadvantages of biometric authentication?
Advantages: cannot be forgotten, guessed, written down or lent, and the person must be present. Disadvantages: a biometric cannot be reissued if it is copied, readers cost money, some users cannot enrol or fail on the day, the stored template is personal data needing protection, and because comparison uses a threshold there are false accepts and false rejects, so a fallback is needed.
Q6What does a firewall do, and what can it not do?
It filters traffic between networks against rules based on source and destination IP address, port number and protocol, blocking anything not explicitly allowed, and logs blocked attempts. It cannot inspect the contents of traffic it permits, so a virus inside an allowed email or download gets through, and it does nothing about an insider using their own valid account.
Q7How does a virus differ from spyware?
A virus inserts a copy of itself into a host file and runs when the host runs, so it replicates and usually needs the user to open or run something; its payload damages or destroys data. Spyware does not replicate: it installs without consent, runs quietly, records keystrokes, browsing and logins, and reports them to a third party, sometimes opening a back door for more malware.
Q8Distinguish phishing from pharming.
Phishing is a fraudulent message that lures the user into clicking a link to a fake login page or opening an attachment, so it depends on the user acting. Pharming needs no action: DNS cache poisoning or a changed hosts file resolves a correctly typed address to the attacker's server, so the browser shows the right URL over a fake site. User education helps against phishing, not against pharming.
Q9What is the difference between symmetric and asymmetric encryption?
Symmetric uses one shared key for both encryption and decryption: fast, suitable for bulk data, but the key must be distributed securely. Asymmetric uses a pair of keys, a public key anyone may hold and a private key kept secret, and data encrypted with one can only be decrypted with the other. It solves the key distribution problem and enables digital signatures, but it is slower.
Q10List the seven validation checks and one field each would suit.
Range check (age 11 to 18); format check (date DD/MM/YYYY); length check (11-digit mobile number); presence check (surname cannot be blank); existence check (customer ID must exist in the customer table); limit check (no more than 10 items per order); check digit (the last digit of a barcode or ISBN).
Q11How does a check digit work, and what can it not catch?
It is calculated from the other digits by a weighted rule and a modulus and stored as part of the code. On entry the system recalculates it and compares. Different weights per position mean a single wrong digit and most transpositions are caught. It cannot catch a code that is valid but belongs to the wrong person or product, and it cannot check a field that carries no check digit.
Q12Compare byte parity, block parity and a checksum.
Byte parity adds one bit per byte so the count of 1s is odd (or even); the receiver recounts and detects an error, but cannot locate or correct it, and an even number of flipped bits is missed. Block parity adds parity for each row and each column, so a single bit fails both and can be located and corrected. A checksum is calculated from the whole block, sent with it and recalculated; it detects more error patterns but never corrects, and errors that cancel in the sum pass.
0 of 12 marked as known

Exam-style questions

8 questions, 25 marks. Write your answer, then reveal the mark scheme and tick each point you actually made. Answering honestly here is what makes the rest of the site useful.

StateAO11 mark
State what is meant by the term data integrity.

Mark scheme — tick each point you actually made

Examiner tip: One mark, one idea. Do not write about keeping data secret - that is security - and do not write about who is allowed to hold it, which is privacy.
DescribeAO12 marks
Describe the difference between data validation and data verification.

Mark scheme — tick each point you actually made

Examiner tip: Use the two words the examiner is looking for: validation makes data acceptable, verification makes it match the source. Then give one example of each so the distinction is visible.
IdentifyAO12 marks
A hotel booking system stores each guest's date of birth. Identify two validation checks that should be applied to this field and state what each one tests.

Mark scheme — tick each point you actually made

Examiner tip: Name the check and then say what it tests - a bare list of check names earns only half the marks. Choose checks that genuinely suit a date field, not a check digit.
ExplainAO23 marks
Explain how a firewall can restrict the risks posed to a company network by hackers.

Mark scheme — tick each point you actually made

Examiner tip: Explain the mechanism, then the effect on the attacker. 'It stops hackers' on its own is worth nothing; naming address, port and protocol is what earns the first mark.
CalculateAO23 marks
A product code uses twelve data digits followed by a check digit. The check digit is found by multiplying the data digits alternately by 1 and by 3 (starting with 1), adding the twelve products, and taking the digit needed to reach the next multiple of 10. Calculate the check digit for the code 5 0 2 1 7 6 4 0 8 9 3 2. Show your working.

Mark scheme — tick each point you actually made

Examiner tip: Show the products rather than only the total, so that a single arithmetic slip still earns the method marks. Do not stop at 83 - the answer is the digit, not the sum.
ExplainAO24 marks
Explain how each of the following threatens the security of data held on a school network: (a) a virus, (b) phishing.

Mark scheme — tick each point you actually made

Examiner tip: Two threats, two marks each, and each pair should say how the threat works and what it does to the data. Do not spend the whole answer defining malware.
DiscussAO24 marks
A school is considering replacing user accounts and passwords with fingerprint scanners at the door of each computer room. Discuss this proposal.

Mark scheme — tick each point you actually made

Examiner tip: A discussion needs both directions and a consequence attached to each point. If you only list advantages you cap yourself at half marks however long the answer is.
EvaluateAO26 marks
A hospital stores patient records on a networked database. Evaluate the use of encryption and of access rights to protect the security of this data.

Mark scheme — tick each point you actually made

Examiner tip: Six marks means three developed points on each side and a clear judgement. Keep the two methods distinct: encryption answers the lost device and the intercepted transfer, access rights answer the authorised insider.

Exam technique for this topic

  • Learn the three opening definitions as three sentences that each name what is being protected: security protects the data from unauthorised access, privacy protects the person's control over their information, integrity protects the accuracy of the record. If you swap the words in an answer, the examiner cannot award the mark, even when the rest of the sentence is right.
  • For a threats question, write threat, mechanism, control, in that order, and make the control answer that specific threat. A page of controls with no threat attached scores badly, and so does a list of threats with no controls.
  • Validation and verification are marked on two different words. Validation makes data acceptable at entry; verification makes it match the source. Say that a range check cannot tell you the customer's age is right, only that it is possible.
  • Whenever you describe an error-detection method in transmission, add its limitation. Byte parity detects an odd number of bit errors and cannot correct; block parity can locate and correct a single bit; a checksum detects but never corrects. The limitation is usually the extra mark.
  • In a 5 or 6 mark discussion, take two sides and give each side a consequence before you judge. 'Biometrics are convenient' is a point; 'biometrics are convenient because there is no password to forget, which removes the help-desk cost of resets, but the template cannot be reissued if it is copied' is a mark.

Why students lose marks here

A student wroteA student wrote: 'Encryption protects the integrity of the data, because nobody can change it without the key.'
Why it loses marksEncryption protects confidentiality, not integrity in the sense the syllabus uses. It does not stop an authorised user altering the record, it does not stop a disk failing, and unless the system checks for it, a corrupted ciphertext decrypts to corrupted plaintext without any warning. Integrity is protected by validation, verification, access rights and audit trails.
The answer that scoresEncryption converts plaintext into ciphertext so that the data cannot be read without the key, which protects confidentiality in transit and at rest. It does not guarantee integrity: an authorised user with the key can still change the data, and corruption on the disk or in transit still happens. Integrity is protected by validation at entry, verification during entry and transfer, access rights that limit who may write, and an audit trail that records who changed what.
A student wroteA student wrote: 'A range check checks that the customer's age is correct.'
Why it loses marksA range check only tests that the value lies between two limits, so any age that is possible passes - including the wrong one. Validation tests plausibility, not truth, and the mark is lost for claiming it confirms accuracy.
The answer that scoresA range check confirms only that the value lies between a lower and an upper limit, for example that an age is between 11 and 18. An age of 15 for a customer who is really 16 passes the check, so validation cannot establish that the data is true. Confirming accuracy needs verification against the source, such as a visual check against the passport or a second entry of the same data.
A student wroteA student wrote: 'A parity check finds the bit that is wrong and corrects it.'
Why it loses marksWith byte parity the receiver only knows that the count of 1 bits is now wrong; it has no way of telling which of the eight bits changed, so the byte must be re-sent. Correction is only possible with block parity, and then only for a single bit, because the failing row and the failing column identify the position.
The answer that scoresWith byte parity an extra bit is added to each byte so that the number of 1 bits is always odd, or always even. The receiver counts again and detects that an error has occurred, but not where it is, so the byte is re-sent and nothing is corrected. With block parity there is a parity bit for every row and every column, so a single flipped bit fails both its row check and its column check and the intersection gives its position, which allows the receiver to flip that bit back.
A student wroteA student wrote: 'Phishing is when the user is sent to a fake website, and pharming is when they are sent a fake email.'
Why it loses marksThat is the wrong way round on both counts. Phishing is the message that lures the user; pharming is the redirection of a correctly typed address with no message and no action by the user at all.
The answer that scoresPhishing is a fraudulent email or message that appears to come from a trusted organisation and persuades the recipient to click a link to a fake login page or open an attachment, so credentials are captured or malware is installed. Pharming needs no message and no click: the attacker poisons a DNS server's cache or alters the local hosts file so that a correctly typed domain name resolves to the attacker's server, and the browser shows the genuine URL while the user is on a copy of the site.
A student wroteA student wrote: 'The firewall stops viruses from getting onto the network.'
Why it loses marksA firewall filters connections by IP address, port and protocol. It has no idea what is inside a connection it has allowed, so a virus inside an email on port 25 or a download over port 443 passes straight through. The mark is for the control that inspects files.
The answer that scoresA firewall controls which connections may pass between networks, using rules based on source and destination IP address, port number and protocol, so it stops an attacker reaching a service that should not be exposed and can block outbound traffic to a command server. It cannot inspect the content of traffic it permits, so a virus inside an allowed email or download is not stopped by it. Anti-virus software scans those files and attachments, matching known signatures and watching for suspicious behaviour, and quarantines anything it finds.