Skip to content
Cambridge AS & A Level9618

Data Security

Computer Science 9618 Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Data Security notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Data Security notes as text: skim, search, and jump between subtopics.

~14 min read

1. Security, privacy and integrity

Security protects data against loss. Privacy protects data against unauthorised access. Integrity is ensuring the accuracy, completeness and consistency of data.

A firewall, access rights and a password are security measures. Validation and verification, such as double entry and a presence check, protect integrity.

Examiner insight

“Some candidates gave methods of ensuring the integrity of the data rather than stating what was meant by integrity of data.”

Worked example 12 marks

A company has several security measures in place to prevent unauthorised access to the data on its computers.

Describe the difference between the security and privacy of data.

  1. 1

    Security protects data against loss. [1]

  2. 2

    Privacy protects data against unauthorised access. [1]

2. Why the data and the system both need protecting

Data needs protecting from someone amending, deleting or taking it. It is also kept secure so that it is not lost or corrupted, and so that it can be recovered.

The computer system needs protecting too. Without that, people can, for example, install malware or damage the system.

Worked example 12 marks

A school stores personal data about its staff and students on its computer system.

Explain why the school needs to keep both its data and its computer system secure from unauthorised access.

  1. 1

    Data: it needs protecting from someone amending, deleting or taking it. [1]

  2. 2

    Computer system: it needs protecting to stop people, for example, installing malware or damaging the system. [1]

3. Threats from networks and the internet

Malware is malicious software. A virus replicates itself on the computer and can fill storage or delete, corrupt or change data. Spyware is downloaded without the user's knowledge, secretly records the user's actions or keystrokes, and sends the logs to a third party.

A hacker is a person who gains unauthorised access to a computer system.

Phishing is an email that pretends to be from an official body and persuades people to disclose private information, such as bank details, or to click a link. Pharming is malicious code that redirects a user to a fake website, with no action needed from the user.

Examiner insight

“Some candidates need to improve their understanding of the difference between phishing and pharming.” “Some candidates need to understand that at this level answers should contain more than just general knowledge and that when describing a difference between two things, a statement about both is required.”

Worked example 14 marks

Describe the following threats to a computer system.

Phishing email

Spyware

  1. 1

    Phishing email: the email pretends to be from an official body. [1]

  2. 2

    ... persuading individuals to disclose private information, such as bank details, or inviting a user to click a link. [1]

  3. 3

    Spyware: malware downloaded without the user's knowledge that secretly records the user's actions or keystrokes. [1]

  4. 4

    ... and sends logs of the actions to a third party. [1]

4. Firewalls and malware-scanning software

A firewall monitors incoming and outgoing traffic and compares it with criteria set by the user, such as an allow list or deny list of IP addresses, or specific ports. It blocks transmissions that do not meet the criteria.

Anti-virus software scans the computer and compares files with a stored database of viruses, which must be updated regularly. It deletes or quarantines what it finds. Anti-spyware does the same for spyware.

A physical method can also protect the data. For example, the computer storing the data cannot be accessed without the key to the room.

Examiner insight

“At this level of study, it is expected that descriptions will be complete and inclusive, so it was not enough, for example, to simply say that an anti-virus software checks for viruses. The description needed to include something about scanning the computer, comparing against a database of viruses and deleting or putting anything suspicious into quarantine.” “The question asked ‘how’ a firewall protects data, so statements such as it acts like a wall stopping malicious code are not enough at this level of study.”

Worked example 13 marks

A student uses a networked laptop computer to send an email to a colleague.

Describe how a firewall protects the data on the computer.

  1. 1

    It monitors incoming and outgoing packets / traffic. [1]

  2. 2

    It checks them against an allow list / deny list of IP addresses, or a set of rules for acceptable data / ports. [1]

  3. 3

    It blocks transmissions that do not meet the criteria / rules, and allows through those that do. [1]

5. User accounts, passwords and biometrics

A user account with a username and password controls who can log on. A strong password has a mixture of different types of characters, has at least a set number of characters, and is not connected to the individual, such as a date of birth.

Authentication can also use a second form of verification at log-in, such as biometrics or an authenticator app. Key card access is another measure.

Facial recognition is a biometric method. It captures an image of the face, uses image recognition trained on a large number of images, and uses the probability of a match.

Worked example 13 marks

A hacker is another threat to data.

Complete the table by describing what is meant by a hacker. Identify and describe one method to restrict the risk posed by a hacker.

  1. 1

    Hacker: a person who gains unauthorised access to a computer system. [1]

  2. 2

    Method: multi-factor authentication. [1]

  3. 3

    Description: a second form of verification, such as biometrics or an authenticator app, is required for logging in. [1]

6. Digital signatures

A digital signature authenticates a document. The sender puts the document through a hashing algorithm to produce a digest. The sender encrypts the digest with the sender's private key. The result is the signature.

The message and the signature are sent. The receiver decrypts the signature with the matching public key to reproduce the digest.

The receiver hashes the document received with the same algorithm to produce a second digest. If both digests are the same, the document is authentic and has not changed.

Examiner insight

“Responses included vague references to encrypting and decrypting keys, without identifying them as private and public and with little reference to which key would be used for encryption and which for decryption.” “There was a lot of confusion with using a finger or stylus to sign on a touchscreen device.”

Worked example 15 marks

The banker receives confidential data across the internet. The data includes a digital signature.

Explain how a digital signature can make sure the data has not been changed during transmission.

  1. 1

    The sender hashes the document / message to produce a digest. [1]

  2. 2

    The sender encrypts the digest to create the digital signature. [1]

  3. 3

    The message and the signature are sent to the receiver, who decrypts the signature to reproduce the digest. [1]

  4. 4

    The receiver uses the same hashing algorithm on the document received to produce a second digest. [1]

  5. 5

    The receiver compares this digest with the one from the digital signature. If both are the same, the document has not changed. [1]

7. Restricting the risk of malware

Install and run an anti-malware program, so that regular scans can be made for known malware. Anything found is quarantined or removed, and the anti-malware definitions are regularly updated.

Download programs from reputable websites, as these are less likely to contain malware. Back up the computer system, so it can be restored after data loss from malware.

Use a firewall to block unused ports, so that malware cannot enter the computer system. Deny administrator privileges to everyday users, so that they cannot download malware. Avoid the use of removable devices, so that malware cannot be installed from them.

Examiner insight

“Some candidates must ensure that they take care with the precision of their answers. For example, just downloading an anti-virus program is not enough; it must be clear that the anti-virus program is installed and running.”

Worked example 13 marks

Explain how the data security risks of malware can be restricted.

  1. 1

    Install and run an anti-malware program. [1]

  2. 2

    ... so that regular scans can be made for known malware, and if malware is found it can be quarantined / removed. [1]

  3. 3

    Download programs from reputable websites, as these are less likely to contain malware. [1]

8. Encryption and access rights

Encryption turns data into cipher text using a key. If the data is intercepted, it cannot be understood without the decryption key.

Access rights are a software-based measure that restricts access to the data. Each user has a different account or login, and each account has its own access rights, for example no access, read-only, or read and write.

Examiner insight

“Some candidates should understand that encryption does not prevent access to the data, the encryption makes the data incomprehensible if accessed.” “Some answers gave just a list of methods which is not enough for a description.”

Worked example 12 marks

Data is encrypted when it is transmitted within the school network, or externally such as over the internet.

Describe what is meant by encryption and explain why it is used.

  1. 1

    Data is turned into cipher text // data is encoded. [1]

  2. 2

    It is used so that the data cannot be understood if intercepted without the decryption key. [1]

Recap

  • Security protects data against loss. Privacy protects it against unauthorised access. Integrity is accuracy, completeness and consistency.
  • Data needs protecting from amendment, deletion or theft. The system needs protecting from malware and damage.
  • Threats: virus, spyware, hacker, phishing (an email) and pharming (a redirect to a fake website).
  • Firewall: monitors traffic, compares with criteria, blocks. Anti-virus: scans, compares with a database, deletes or quarantines.
  • Strong password, second form of verification, biometrics such as facial recognition.
  • Digital signature: hash, encrypt the digest, send, decrypt, hash again, compare two digests.
  • Encryption makes data unreadable without the key. Access rights give each account its own rights: no access, read-only, or read and write.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State what is meant by the privacy of data.1 mark
    Answer
    1. Ensuring data can only be accessed by authorised persons.

    Trap: Protection against loss is security, not privacy.

  2. A clinic keeps patient records. Four measures are listed: a firewall, double entry, a password, a presence check. State which two protect data security and which two protect data integrity.2 marks
    Answer
    1. Security: the firewall and the password [1].
    2. Integrity: double entry and the presence check [1].

    Trap: Validation and verification check the data entered. They protect integrity, not security.

  3. A library keeps its members' records on a server. Explain why the library must protect both the records and the server from unauthorised access.2 marks
    Answer
    1. Records: they must be protected from someone amending, deleting or taking them [1].
    2. Server: it must be protected to stop people installing malware or damaging the system [1].

    Trap: Answering for the data only, or repeating ‘to keep it safe’.

  4. A student gets an email that looks as if it is from her bank. It asks her to click a link to confirm her details. The link opens a copy of the bank's website. State one difference and one similarity between phishing and pharming.2 marks
    Answer
    1. Difference: phishing uses an email to prompt user action, but pharming is malicious code that redirects to a fake website automatically [1].
    2. Similarity: both try to obtain financial or personal information [1].

    Trap: A difference needs a statement about both threats, not about one.

  5. Describe how a firewall helps to protect the data on a small office network.3 marks
    Answer
    1. It monitors incoming and outgoing traffic [1].
    2. It compares the traffic with criteria, such as an allow list of IP addresses [1].
    3. It blocks transmissions that do not meet the criteria [1].

    Trap: ‘It acts like a wall stopping malicious code’ does not say how.

  6. Describe how anti-virus software protects a computer.3 marks
    Answer
    1. It scans the computer [1].
    2. It compares files with a stored database of viruses, which is updated regularly [1].
    3. It deletes or quarantines anything it finds [1].

    Trap: ‘It checks for viruses’ is too vague. Software that is only downloaded does not protect: it must be installed and running.

  7. A user wants a strong password for her account. Describe three features of a strong password.3 marks
    Answer
    1. It has a mixture of different types of characters [1].
    2. It has at least a set number of characters [1].
    3. It is not connected to the individual, such as a date of birth [1].

    Trap: ‘Hard to guess’ is vague. Name the features.

  8. Every employee of a company logs on with a username and a strong password. Describe how access rights can also be used to protect the company's data from unauthorised access.3 marks
    Answer
    1. Each employee has a different account or login [1].
    2. Each account is given its own access rights to different parts of the data [1].
    3. For example, an employee may have no access, read-only access, or read and write access to a file [1].

    Trap: Passwords and biometrics are authentication: access rights decide what a user who has logged on may do with the data.

  9. A software company lets users download an update from its website. A digital signature is included with the download. (a) Explain how the company creates the digital signature. Name the key it uses. [3] (b) A user's computer checks the download. The digest it reproduces from the signature is different from the digest it calculates from the update. Explain how the computer obtains each digest, and state what the difference shows. [3]6 marks
    Answer
    1. (a)
    2. The update is put through a hashing algorithm to produce a digest [1].
    3. The digest is encrypted with the company's (the sender's) private key [1].
    4. The encrypted digest is the digital signature, and it is sent with the update [1].
    5. (b)
    6. The computer decrypts the signature with the company's matching public key to reproduce the first digest [1].
    7. It puts the update received through the same hashing algorithm to produce a second digest [1].
    8. The digests are different, so the update is not authentic: it has been changed since it was signed [1].

    Trap: Examiners reported vague ‘encrypting and decrypting keys’ with no private or public key named, and answers that described a handwritten signature.

  10. An accountant works from home on a laptop connected to the internet. She logs on with the password `rover`, her dog's name. She often downloads free programs from websites she does not know. She emails clients' tax files to her office. (a) Explain why her password is not strong. [3] (b) Explain two different ways she can restrict the risk of malware on the laptop. [4] (c) Her manager says: ‘Encrypting the tax files will stop a hacker getting them.’ Explain why the manager is wrong and what encryption does do. [2]9 marks
    Answer
    1. (a)
    2. It uses only one type of character (lower-case letters): a strong password has a mixture of different types of characters [1].
    3. It is only five characters long: a strong password has at least a set number of characters [1].
    4. It is her dog's name, so it is connected to her: a strong password is not connected to the individual [1].
    5. (b)
    6. Install and run an anti-malware program [1] so that regular scans are made for known malware, and any found is quarantined or removed [1].
    7. Download programs only from reputable websites [1], as these are less likely to contain malware [1].
    8. (c)
    9. Encryption does not prevent access to the files [1].
    10. It turns them into cipher text, so if they are accessed or intercepted they cannot be understood without the decryption key [1].

    Trap: Examiners reported anti-virus that is only ‘downloaded’, not installed and running, and the belief that encryption prevents access.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
Integrity: validation and verification.Integrity is ensuring the accuracy, completeness and consistency of data.
A digital signature is a scanned image of a handwritten signature.The document is hashed to a digest, the digest is encrypted, and the receiver compares it with a second digest.
A firewall acts like a wall stopping malicious code.A firewall monitors incoming and outgoing traffic, compares it with criteria and blocks what does not meet them.
Encryption stops people getting at the data.Encryption makes the data incomprehensible if it is accessed without the decryption key.

Frequently asked questions

What is the difference between the security and privacy of data?
Security protects data against loss. Privacy protects data against unauthorised access. Integrity is a third idea: ensuring the accuracy, completeness and consistency of data. Validation and verification, such as double entry and a presence check, protect integrity.
How does a digital signature show that a document has not been changed?
The sender hashes the document to produce a digest, then encrypts the digest with the sender's private key. The receiver decrypts the signature with the matching public key to reproduce the digest, then hashes the document received to produce a second digest. If the two digests are the same, the document has not changed.
What is phishing, and how is it different from pharming?
Phishing is an email that pretends to be from an official body and persuades people to disclose private information, such as bank details, or to click a link. Pharming is malicious code that redirects a user to a fake website, with no action needed from the user.
How does a firewall protect the data on a computer?
A firewall monitors incoming and outgoing traffic and compares it with criteria set by the user, such as an allow list or deny list of IP addresses, or specific ports. It blocks transmissions that do not meet the criteria. Saying that it acts like a wall stopping malicious code does not say how it works.
What makes a password strong?
A strong password has a mixture of different types of characters, has at least a set number of characters and is not connected to the individual, such as a date of birth. Calling a password hard to guess is vague, so name the features. A second form of verification, such as biometrics, adds further protection.
Is a digital signature a scanned image of a handwritten signature?
No. A digital signature is made by hashing the document to a digest, encrypting the digest and having the receiver compare it with a second digest. Examiners reported that the most usual answer described a scanned image of a traditional signature, which is not how a digital signature works.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters