





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






Detailed explanations ⢠Practical examples ⢠Revision questions ⢠Model answers Suitable for BBIT, Information Technology and Computer Science learners
Learning outcomes After studying this topic, learners should be able to define malware and cyberattacks, explain common attack methods, identify warning signs, describe network security controls, apply basic defensive practices and outline an incident response process.
1. Introduction Cybersecurity is the practice of protecting systems, networks, applications and information from unauthorised access, misuse, disruption, modification or destruction. A cyberattack is an attempt to compromise the confidentiality, integrity or availability of digital assets. Attacks may target individuals, businesses, government agencies, universities and critical infrastructure. Attackers may be motivated by financial gain, espionage, disruption, political objectives, personal grievances or the desire to demonstrate technical ability. An attack can exploit technical weaknesses, weak passwords, insecure configurations, human error or gaps in organisational processes. 2. Malware Malware, short for malicious software, is software or code intentionally designed to harm, disrupt, spy on, or gain unauthorised access to a device, system or data. Malware can arrive through malicious email attachments, unsafe downloads, compromised websites, infected removable media, unpatched software or exploited network services.
Type Description Illustrative impact Virus Malicious code that attaches to a legitimate file or program and spreads when the infected host is executed. Files may be damaged or altered. Worm Self-replicating malware that can spread across systems or networks without needing to attach to a host file. Rapid spread and network disruption. Trojan horse Malware disguised as legitimate or useful software; it relies on a user or process to run it. Creates unauthorised access or installs other malware. Ransomware Malware that encrypts or otherwise blocks access to data or systems and demands payment. Business interruption, data loss and extortion. Spyware Software that secretly monitors activity or collects information. Credentials and private information may be stolen. Keylogger A tool that records keystrokes; it may be malicious or used legitimately with consent in controlled settings. Passwords and messages may be captured.
Password attacks attempt to obtain or use credentials without authorisation. Common methods include guessing weak passwords, using leaked credentials from other services, automated brute-force attempts, dictionary attacks and credential phishing. Password reuse makes an account more vulnerable when another service is breached. ļ· Use long, unique passwords or passphrases for each service. ļ· Use a reputable password manager to generate and store credentials. ļ· Enable multi-factor authentication (MFA), preferably using phishing-resistant methods where available. ļ· Apply rate limits, account lockout controls and monitoring carefully to reduce automated guessing. ļ· Never share one-time codes or approve unexpected MFA prompts.
A denial-of-service (DoS) attack attempts to make a service unavailable by overwhelming it or exploiting a weakness. A distributed denial-of-service (DDoS) attack uses traffic from many sources, often compromised devices, to make filtering and mitigation more difficult. Possible defences include upstream DDoS protection, traffic filtering, rate limiting, resilient architecture, content delivery networks, capacity planning and an incident response arrangement with the internet service provider.
A man-in-the-middle (MitM) attack occurs when an attacker positions themselves between communicating parties to observe, relay or potentially alter traffic. Risks increase on untrusted networks, with weak encryption, invalid certificates or unsafe device configurations. Defences include using properly configured HTTPS and other authenticated encryption, validating certificates, avoiding sensitive activity on untrusted networks when protections are absent, using secure VPN services where appropriate and keeping devices updated.
Spoofing involves pretending to be a trusted identity, device or service. Examples include email spoofing, IP address spoofing and fraudulent websites. Session hijacking involves taking control of an authenticated session, for example by stealing a session token. Secure cookies, TLS, short and appropriate session lifetimes, token rotation, MFA and protection against cross-site scripting reduce risk.
SQL injection occurs when an application handles untrusted input in a way that allows an attacker to alter a database query. It can expose, change or delete data. Developers should use parameterised queries or prepared statements, validate input, apply least-privilege database accounts, handle errors safely and test applications securely. Other application threats include cross-site scripting (XSS), cross-site request forgery (CSRF), insecure direct object references, broken access control and insecure file uploads. Secure development practices and regular testing help reduce these risks.
4. Network security Network security refers to policies, technologies and practices that protect network infrastructure and the data that travels through it. It aims to prevent unauthorised access, detect suspicious activity, limit the spread of attacks and maintain service availability.
A firewall monitors and controls network traffic according to defined security rules. It may filter traffic using IP addresses, ports, protocols, connection state or application information. Firewalls can be implemented in hardware, software or cloud services. A firewall should follow a default-deny approach where appropriate, allowing only traffic required for legitimate business needs.
An intrusion detection system (IDS) monitors activity and generates alerts when it identifies suspicious patterns or policy violations. An intrusion prevention system (IPS) can take action to block or restrict detected malicious traffic. Detection may use known signatures, behavioural analysis or anomaly detection. Alerts require review because false positives and false negatives are possible.
A virtual private network (VPN) creates an encrypted tunnel across an underlying network, commonly the internet. It can protect traffic between a remote worker and an organisation or between network sites. A VPN does not make a device automatically safe; endpoint security, authentication, access control and correct configuration remain necessary.
Encryption transforms readable plaintext into ciphertext using an algorithm and a key. Decryption reverses the process for an authorised party. Symmetric encryption uses the same secret key to encrypt and decrypt; asymmetric cryptography uses a related public and private key pair. Encryption helps protect confidentiality, while authenticated encryption can also help protect integrity and authenticity. Concept Meaning Example use Encryption at rest Protects stored data. Encrypting a laptop drive or database backup. Encryption in transit Protects data while moving between systems. HTTPS/TLS protecting a web session. Symmetric cryptography Uses a shared secret key for encryption and decryption. AES in many data-protection systems. Asymmetric cryptography Uses mathematically related public and private keys. Public-key certificates and key exchange/signatures.
Access control determines which users or systems may access particular resources and what actions they may perform. Authentication verifies identity; authorisation determines permissions. The principle of least privilege gives each account only the permissions needed for its tasks, for only as long as necessary.
5. Security principles and defensive controls
Principle Meaning Example control Confidentiality Information is accessible only to authorised people or systems. Encryption, access permissions and MFA. Integrity Information remains accurate Hashes, digital signatures,
Detection and analysis Review alerts, determine what happened, identify affected assets and assess severity. Containment Limit damage, for example by isolating an affected endpoint or disabling a compromised account. Eradication Remove malware, close the exploited weakness, reset compromised credentials and verify the environment. Recovery Restore systems safely, monitor for recurrence and return services to normal in a controlled manner. Lessons learned Document the incident, evaluate response effectiveness and improve controls and training. Evidence should be preserved where required. Staff should not casually delete files, reformat devices or conduct unauthorised investigations because these actions may destroy useful evidence. Escalate incidents through the organisation's approved reporting channel.
8. Practical case study: phishing at a university A student receives an email claiming that their university account will be suspended unless they sign in immediately. The message uses the university logo and includes a link to a page that looks like the normal student portal. The student enters their username, password and one-time code. Later, the student notices unfamiliar login alerts and messages sent from their account.
ļ· Threat: credential phishing and possible account takeover. ļ· Vulnerability: the user trusted an unexpected message and entered credentials on a fraudulent page. ļ· Potential impact: exposure of personal information, access to academic records, impersonation and further phishing of classmates. ļ· Immediate response: report the message to university IT; contact the official service desk through a known channel; reset the password from a trusted device; revoke active sessions; and review MFA and account activity. ļ· Longer-term controls: phishing awareness, MFA, email filtering, domain protection, suspicious-login monitoring and a clear reporting process.
9. Legal, ethical and professional responsibilities Cybersecurity work must be carried out lawfully and with proper authorisation. Testing a system without permission can cause harm and may be unlawful, even if the person claims to be learning. Professionals should respect privacy, protect confidential information, document actions, disclose vulnerabilities responsibly and follow organisational policies. In Kenya, relevant frameworks include the Computer Misuse and Cybercrimes Act, 2018, and the Data Protection Act, 2019, together with applicable regulations and sector requirements. Learners should consult the current official legal texts and qualified guidance for specific legal questions.
10. Examination questions and model answers
Malware is software or code intentionally designed to harm, disrupt, spy on, or gain unauthorised access to a device, system or data.
A virus attaches itself to a host file or program and commonly spreads when the infected host is executed. A worm is self-replicating and can spread across systems or networks without attaching to a host file.
Malware may be distributed through phishing attachments, unsafe downloads, compromised websites and unpatched software vulnerabilities. Removable media and malicious advertising can also be used. Each method attempts to persuade a user to run malicious content or exploit a weakness.
An IDS monitors activity and alerts administrators to suspicious behaviour. An IPS can also take preventive action, such as dropping or blocking traffic identified as malicious.
Maintain secure, tested and offline or immutable backups; patch operating systems and applications; use endpoint protection and email filtering; apply MFA and least privilege; train staff to recognise phishing; segment networks; and monitor suspicious activity. These controls reduce the likelihood of infection and limit its impact.
Confidentiality ensures information is accessed only by authorised parties. Integrity ensures information remains accurate and is changed only in authorised ways. Availability ensures systems and data can be accessed when required. Examples include encryption, audit controls and tested backups respectively.
Preparation establishes roles, tools and plans. Detection and analysis identify and assess the incident. Containment limits damage. Eradication removes the threat and closes the weakness. Recovery restores services safely. Lessons learned reviews the response and improves controls.
Phishing is a deceptive attempt to obtain information or persuade a user to take an unsafe action. Warning signs include unexpected urgency, unusual sender addresses, mismatched links, unexpected attachments, requests for passwords or one-time codes, spelling inconsistencies and requests to bypass normal procedures. Users should verify requests independently and report suspicious messages.
Least privilege means users, applications and services receive only the permissions needed to perform their assigned tasks, and those permissions are limited in scope and duration. It reduces the damage that can result from mistakes or compromised accounts.