8. Topic 8(COLON) Cyber Security and the Software-Development Process

Lesson 8.2: Defending Systems

#### Lesson focus #### Learning outcomes Students should be able to:.

Lesson 8.2: Defending Systems

Introduction

Welcome, students! 🖐️ Today, we're diving into the critical world of cyber security and how we can defend our systems against various threats. In an era where our lives are increasingly digital, understanding the vulnerabilities we face and how to protect ourselves is essential. By the end of this lesson, you'll be equipped with knowledge about authentication, access control, encryption, and other essential cyber security concepts.

Learning Objectives

By the end of this lesson, you should be able to:

  • Understand authentication, authorization, and access control, including strong passwords and multi-factor authentication.
  • Define encryption at an introductory level, explaining plaintext, ciphertext, and the concepts of keys (symmetric vs asymmetric).
  • Explain the role of firewalls, anti-malware software, patching, and secure configurations in defending systems.
  • Discuss the importance of backups, redundancy, disaster recovery, and secure coding practices.
  • Describe how authentication, access control, and encryption work together to protect a system.

Understanding Authentication and Authorization

Authentication and authorization are the first lines of defense for any system. Let's break these concepts down! 🔑

Authentication

Authentication is the process of verifying the identity of a user or system. Think of it like showing your ID before entering a club. Only those who can prove their identity get in!

Example: Strong Passwords

Imagine your online banking account. To keep your money safe, you wouldn't use a simple password like "123456." A strong password typically includes uppercase letters, lowercase letters, numbers, and special characters. A good example would be "G#9kP@4q!Zr%". Using strong passwords is crucial because it makes it harder for someone to guess or crack your credentials.

Multi-Factor Authentication (MFA)

MFA adds an additional layer of security. Even if someone knows your password, they need another piece of information to access your account. This could be a text message, an email, or a fingerprint!

Real-World Context

A popular example is when you log in to your Google account and receive a verification code on your phone. This code is time-sensitive, adding another level of security, ensuring that you – and only you – can access your account.

Access Control

Once users are authenticated, we need to ensure they can only access resources they are allowed to. This is where access control comes in. It helps prevent unauthorized access to sensitive data and functions.

Role-Based Access Control (RBAC)

RBAC assigns permissions based on the role of a user. For instance, in a school system:

  • Teachers may have access to create and manage assignments.
  • Students can view assignments but cannot change them.

Visualizing Access Control

Consider a drawer with files (resources) in a filing cabinet (system). Only specific people (roles) have keys (permissions) to open certain drawers. This keeps sensitive information secure.

The Importance of Encryption

Encryption transforms readable data (plaintext) into a hidden format (ciphertext) using special algorithms and secret keys. It's like using a locked box to store your personal letters; only someone with the key can read them! 🗝️

Symmetric vs. Asymmetric Encryption

  • Symmetric Encryption: The same key is used for both encrypting and decrypting data. It's faster and used for larger data transfers.
  • Example: Encrypting files on your computer before sending them to a friend.
  • Asymmetric Encryption: Uses a pair of keys – one public (anyone can use it) and one private (known only to the owner). This is most commonly used for secure communications over the Internet.
  • Example: When you send an email, your email service uses asymmetric encryption to keep the content private.

System Defenses

Now that we understand how to secure access to our systems and how encryption works, let's explore some tools and practices that bolster these defenses.

Firewalls

Firewalls act as a barrier between your internal network and the outside world. They monitor incoming and outgoing traffic and can block unauthorized access attempts.

Example

Think of a firewall as a security guard at the entrance of a building, checking whether individuals have permission to enter based on predefined criteria.

Anti-Malware Software

Malware, including viruses and ransomware, can compromise your data. Anti-malware software scans for these threats, quarantines them, and removes them from your system.

Regular Patching and Secure Configuration

Maintaining up-to-date software is crucial. Regular updates address security flaws and vulnerabilities. Secure configuration involves altering default settings to improve security. Both practices ensure you have the latest protections in place.

Backups and Disaster Recovery

Backups are essential to safeguard your data in case of a cyber attack, natural disaster, or hardware failure. A good backup strategy includes:

  • Regularly scheduled backups.
  • Offsite storage for critical data.
  • Testing recovery processes to ensure everything works.

Conclusion

In this lesson, we learned that defending systems against cyber threats involves a multi-faceted approach combining authentication, access control, encryption, and various defensive technologies. Understanding these principles is essential for anyone involved in software development and cybersecurity, ensuring we can create secure and reliable systems.

Study Notes

  • Authentication verifies user identity; strong passwords and MFA enhance security.
  • Access Control ensures users can only access what they are permitted to.
  • Encryption protects data by converting it into an unreadable format.
  • Firewalls and anti-malware software protect against unauthorized access and threats.
  • Regular patching and secure configuration strengthen system defenses.
  • Implementing backups and disaster recovery plans is crucial for data protection.

Practice Quiz

5 questions to test your understanding

Lesson 8.2: Defending Systems — Computing | A-Warded