Security, encryption and malware – A Level Computer Science (old syllabus, to 2021) (9608)
Quick quiz: 10 random questions from this topic. Answer them all, then open the Summary.
Question text
4
The Secure Socket Layer (SSL) protocol and its successor, the Transport Layer Security (TLS)
protocol, are used in Internet communications between clients and servers.
(a) (i)
Define the term protocol.
…
…
…
… [2]
(ii)
Explain the purpose of the TLS protocol.
…
…
…
…
…
… [3]
(b) A handshake process has to take place before any exchange of data using the TLS protocol.
The handshake process establishes details about how the exchange of data will occur. Digital
certificates and keys are used.
The handshake process starts with:
the client sending some communication data to the server
•
the client asking the server to identify itself
•
the server sending its digital certificate including the public key.
•
Describe, in outline, the other steps in the handshake process.
…
…
…
…
…
… [3]
(c) Give two applications where it would be appropriate to use the TLS protocol.
1 …
…
2 …
…
[2]
Question text
7
Sam wants to send confidential data to an organisation. He has already received the organisation’s
digital certificate. The organisation has asked him to make sure that the message containing the
confidential data is encrypted and is sent with a digital signature.
(a) Explain the process the organisation followed to obtain its digital certificate.
…
…
…
…
…
… [3]
(b) Identify two items included in the organisation’s digital certificate that will be used when
sending the message. Give a reason why each item is required.
Item 1 …
Reason …
…
Item 2 …
Reason …
…
[4]
(c) Identify two other items included in the organisation’s digital certificate.
…
…
…
… [2]
(d) Explain how the digital signature for Sam’s message is produced.
…
…
…
…
…
…
…
Question text
6
(a) The following table shows descriptions and terms relating to data transmission security.
Add appropriate descriptions and terms to complete the table.
Description
Term
The result of encryption that is transmitted to the
A
recipient.
…
The type of cryptography used where different keys are
B
used; one for encryption and one for decryption.
…
…
…
C
Digital certificate
…
…
…
…
D
Private key
…
…
[4]
(b) The sequence of steps 1 to 7 describes what happens when setting up a secure connection
using Secure Socket Layer (SSL).
Four statements are missing from the sequence.
If the browser trusts the certificate, it creates, encrypts and sends the server a
A
symmetric session key using the server’s public key.
B
Server sends the browser an acknowledgement, encrypted with the session key.
C
Server sends a copy of its SSL Certificate and its public key.
D
Server decrypts the symmetric session key using its private key.
Write one letter (A to D) in the appropriate space to complete the sequence.
1.
Browser requests that the server identifies itself.
2.
…
3.
Browser checks the certificate against a list of trusted Certificate Authorities.
4.
…
5.
…
6.
…
7.
Server and browser now encrypt all transmitted data with the session key.
[3]
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge International
Examinations Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cie.org.uk after
the live examination series.
Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local
Question text
4
(a) Three file organisation methods and two file access methods are shown below.
Draw lines to link each file organisation method to its appropriate file access method(s).
File organisation method
File access method
sequential
random
serial
direct
sequential
[4]
(b) An energy company supplies electricity to a large number of customers. Each customer has
a meter that records the amount of electricity used. Customers submit meter readings using
their online account.
The company’s computer system stores data about its customers.
This data includes:
•
account number
•
personal data (name, address, telephone number)
•
meter readings
•
username and encrypted password.
The computer system uses three files:
File
Content
Use
A
Account number and meter readings
Each time a customer submits their
for the current month.
reading, a new record is added to the
file.
B
Customer’s personal data.
At the end of the month to create a
statement that shows the electricity
supplied and the total cost.
C
Usernames and encrypted passwords.
When customers log in to their
accounts to submit meter readings.
For each of the files A, B and C, state an appropriate file organisation method for the use
given in the table.
All three file organisation methods must be different.
Justify your choice.
(i)
File A organisation …
Justification …
…
…
… [3]
(ii)
File B organisation …
Justification …
…
…
… [3]
(iii)
File C organisation …
Justification …
…
…
… [3]
Question text
6
(a) The table below gives descriptions of three types of malware.
Description
Term
Malware that attaches itself to another program.
Malware that redirects the web browser to a fake website.
Email that encourages the receiver to access a website and
give their banking details.
Complete the table by adding the correct terms.
[3]
(b) Ben wants to send a highly confidential email to Mariah so that only she can read it. Plain text
and cipher text will be used in this communication.
(i)
Explain the terms plain text and cipher text.
Plain text …
…
Cipher text …
… [2]
(ii)
Explain how the use of asymmetric key cryptography ensures that only Mariah can read
the email.
…
…
…
…
…
…
…
… [4]
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every reasonable
be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge International
Examinations Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cie.org.uk after
the live examination series.
Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local
Question text
5
Katarina works for a company specialising in the sale of computer parts and accessories. She
works in the London office and her colleague Lucy works in the Hong Kong office. Katarina emails
confidential information to Lucy so that only Lucy can read the information.
(a) Explain how public and private keys are used to ensure that only Lucy has a readable copy of
the confidential information.
…
…
…
…
…
…
…
… [4]
(b) Julio is buying items from the online shop. He already has an account with the shop.
Explain how the use of Secure Socket Layer (SSL) or Transport Layer Security (TLS) helps to
keep Julio’s confidential information secure.
…
…
…
…
…
… [3]
(c) The manager of the company is concerned about the threat of malware.
State three vulnerabilities that a malware can exploit.
1 …
…
2 …
…
3 …
…
[3]
Question text
6
Mohammad is working away from his company’s head office. He wants to send a secure message
over a computer network to the head office.
(a) (i)
Explain the way in which a digital signature for the message would be produced.
…
…
…
…
…
…
…
… [4]
(ii)
State two reasons why a digital signature for the message is required.
1 …
…
2 …
…
[2]
(b) The message is encrypted using asymmetric key cryptography before it is sent and decrypted
when it arrives at the head office.
(i)
Describe this process of encrypting and decrypting the message.
…
…
…
…
…
…
…
…
…
… [5]
(ii)
State one reason for using asymmetric key cryptography.
…
… [1]
Question text
6
Lara wants to send an important message to her bank over the Internet.
(a) Explain why the bank requires a digital signature for the message.
…
…
…
… [2]
(b) Asymmetric key cryptography is used to keep Lara’s message secure during transmission
over the Internet.
Describe this process of encrypting and decrypting Lara’s message.
…
…
…
…
…
…
…
…
…
… [5]
(c) Lara has received an email message that appears to be from her bank. She is not sure
whether it is authentic.
State two problems that could occur if Lara opens and responds to this suspicious email
message.
1 …
…
2 …
…
[2]
Question text
6
Anita is studying computer science and she is confused about some of the computer security
terminology as some of the words are similar.
Anita wants to know the similarities (features that are the same) and differences (features that are
different) between some of the terms.
(a) Give the similarities and differences between a public key and a private key.
Similarities …
…
…
…
…
Differences …
…
…
…
…
[4]
(b) Give the similarities and differences between a digital certificate and a digital signature.
Similarities …
…
…
…
…
Differences …
…
…
…
…
[4]
(c) Give the similarities and differences between phishing and pharming.
Similarities …
…
…
…
Question text
4
A bank has 95 000 customers. Each customer has a unique ID.
When a customer uses an Automated Teller Machine (ATM) to obtain cash, their current balance
is checked. The balance is stored in a file which has the following fields:
•
the customer ID (6-digit number in the range 100000 to 999999)
•
an encrypted PIN
•
the current balance
The file can store a maximum of 100 000 records.
(a) Give a reason why a random organisation would be appropriate for this file.
…
… [1]
(b) An algorithm for inserting a new record in this file uses the following hash function:
CustomerID MOD 100000
RecordKey
where RecordKey is the record position in the file.
(i)
Complete the table to show the values generated by the hash function for the given
customer IDs.
CustomerID
RecordKey
802139
2139
700004
689998
102139
[1]
(ii)
State the range of possible values for RecordKey.
Minimum value of RecordKey: …
Maximum value of RecordKey: …
[2]
(iii)
A procedure is written to insert a new record into the file.
Complete the algorithm for this procedure.
PROCEDURE InsertRecord(CustomerID : INTEGER)
CustomerID MOD 100000
RecordKey
Success
FALSE
// Find position for new record and insert it
REPEAT
IF record at position RecordKey is …
THEN
Insert new record at position RecordKey
Success
TRUE
ELSE
IF RecordKey = …
THEN
…
RecordKey
ELSE
… + 1
RecordKey
ENDIF
ENDIF
UNTIL Success = TRUE
ENDPROCEDURE
[4]
(c) (i)
Explain why an encrypted version of the PIN is stored in the file.
…
…
…
… [2]
(ii)
A customer attempts to withdraw cash from an ATM. An algorithm is used to check if the
customer has entered the correct PIN.
Complete the algorithm.
1. Customer ID is read from card.
2. Customer enters PIN.
3. Customer PIN is …
4. …
5. Customer record is located in file.
6. …
7. If match then transaction can proceed.
[3]