Computer Science ยท Topic 09

Cybersecurity and Digital Safety

Learn how digital systems protect information, how common cyber threats work, and how to make safer decisions online.

1. What Is Cybersecurity?

Cybersecurity is the practice of protecting computers, networks, applications, and data from unauthorized access, disruption, damage, or theft.

It includes technical measures, organizational policies, and the everyday decisions people make while using digital services.

The CIA triad

Confidentiality Information is accessible only to authorized people or systems.
Integrity Information remains accurate and is changed only in authorized ways.
Availability Systems and information remain accessible when needed by authorized users.
Example: A school's student database needs confidentiality to protect private records, integrity to keep grades accurate, and availability so authorized staff can use it.

2. Threats, Vulnerabilities, and Risk

Example

An outdated application may contain a known vulnerability. An attacker may attempt to exploit it. Installing the official security update can reduce that risk.

3. Common Cyber Threats

Malware

Malware is software designed to cause harm, misuse resources, or gain unauthorized access.

Virus Malware that attaches to files or programs and spreads when its host is run.
Worm Malware that can spread between systems, often across networks.
Trojan horse Malicious software disguised as something legitimate or useful.
Ransomware Malware that can lock or encrypt data and demand payment.
Spyware Software that secretly collects information about a user or system.
Adware Software that displays advertisements; some forms also track users or behave deceptively.

Phishing

Phishing is a form of social engineering in which someone pretends to be a trusted person or organization to trick people into revealing information or taking unsafe actions.

Other common threats

4. Social Engineering and Phishing Detection

Social engineering targets human decisions rather than relying only on technical weaknesses. Attackers may create urgency, impersonate authority, or promise rewards to influence a person.

Warning signs

If a message claims to come from a bank, school, delivery service, or other organization, verify it through the organization's official app, website, or a trusted contact method rather than relying on the message.

What should you do with a suspicious message?

  1. Do not click links or open unexpected attachments.
  2. Check the sender and the request carefully.
  3. Open the official website or app independently.
  4. Report the message through the service or your organization's approved process.
  5. If you already shared sensitive information, change affected credentials and contact the relevant service promptly.

5. Passwords and Authentication

Authentication verifies that a user or system is who or what it claims to be.

Good password practices

Multifactor authentication (MFA)

MFA combines two or more different kinds of evidence:

Two passwords are still two examples of the same factor. MFA requires different factor types, not simply multiple questions.

6. Encryption and Hashing

Encryption

Encryption transforms readable data into a form that cannot normally be understood without the appropriate key. It helps protect information during storage and transmission.

Hashing

A cryptographic hash function maps input data to a fixed-size output called a hash. It is designed to make it computationally difficult to find an input that produces a chosen hash or to find two different inputs with the same hash.

EncryptionHashing
Designed to protect confidentiality. Often used to verify data or support integrity checks.
Can be reversed by authorized decryption using the required key. Designed to be one-way, not decrypted back to the original input.
Password systems should not store plain-text passwords. They should use a password-hashing scheme designed for passwords, with unique salts and suitable parameters.

7. Network Security

Network security helps protect communication, connected devices, and services from unauthorized activity.

The padlock or HTTPS indicator means the connection has security properties; it does not prove that a website itself is trustworthy.

8. Updates, Backups, and Device Safety

Security updates

Software updates can fix vulnerabilities, improve reliability, and add security features. Install updates from official, trusted sources.

Backups

Backups help recover data after accidental deletion, device failure, or some cyber incidents. Keep important backups protected from unauthorized access and, where possible, from changes made by compromised devices.

Practical safety checklist

9. Privacy and Digital Footprints

A digital footprint is the trail of information associated with your online activity. It can include posts, comments, uploaded files, account activity, and information collected by websites or apps.

Protecting your privacy

Digital safety includes both cybersecurity and thoughtful decisions about privacy, reputation, and respectful online behaviour.

10. Responsible and Ethical Cybersecurity

Cybersecurity knowledge should be used to protect systems and information. Testing a system without permission can violate privacy, policies, or laws.

Core security principles

11. Knowledge Check

Try answering each question before revealing the answer.

1. What do the letters CIA represent in cybersecurity?

Confidentiality, Integrity, and Availability.

2. What is phishing?

A social-engineering attack that impersonates a trusted source to trick people into revealing information or taking unsafe actions.

3. Why is multifactor authentication useful?

It requires evidence from multiple different factor types, making an account harder to access with only a stolen password.

4. What is the main difference between encryption and hashing?

Encryption is designed to allow authorized decryption with the appropriate key. Cryptographic hashing is designed to be one-way.

5. Does HTTPS guarantee that a website is honest?

No. HTTPS protects the connection, but a fraudulent website can also use HTTPS.

6. Why are software updates important?

Updates can fix known vulnerabilities and improve security, reliability, and functionality.

7. What does the principle of least privilege mean?

Give each user or program only the permissions required to perform its legitimate tasks.

Key Takeaways