Computer Security & Viruses — Study Notes
What to learn in Computer Security & Viruses
This topic is computer security the way the one-paper exams ask it: what malware is and how each kind spreads, how you protect a computer, how passwords and logins work, how encryption works, how firewalls and network defences work, what the attacks are called, and what the law in Pakistan says. There are 178 practice questions on this page: 137 from the bank and 41 new ones written to fill the gaps the bank leaves — the history of viruses, the newer attacks, and the numbers the papers love to ask. Learn it in the order of the sections below, because each section uses the words of the one before it. You cannot learn the difference between a virus and a worm until you know what malware is, and you cannot learn why a hash is not encryption until you know what encryption is. The same dozen facts come up again and again in PPSC, FPSC, NTS and CSS papers, asked in different words — so learn the fact, not the wording of any one question. Three ideas carry the whole topic: stop the malware getting in, keep secrets secret, and know what each attack is called.
Malware first: the family tree
Malware is short for malicious software — the general name for any program written to harm a computer, steal information, or give an attacker access without permission. Everything else in this section is one kind of malware, and the papers test you by describing one kind and asking for its name, so learn each kind by what makes it different, not by a vague idea of harm. A computer virus is a malicious program that attaches itself to a host file and spreads when that file is run; it needs a human to open or share the infected file. A worm is self-replicating malware that spreads on its own across a network without needing a host file and without any user action — that one difference, host file versus no host file, is the single most-asked distinction in the whole topic. A Trojan horse does not replicate at all: it pretends to be a useful program and tricks the user into installing it, and the harm is hidden inside. Ransomware encrypts a victim's files and demands payment for the decryption key — the name tells you the crime. Spyware secretly watches what a user does and sends the information to someone else. Adware shows unwanted advertisements. A keylogger records every key pressed, so it steals passwords as they are typed. A rootkit hides itself deep in a system so that it and other malware stay undetected, and it gives the attacker hidden, privileged access. A botnet is a network of infected computers controlled remotely by an attacker, often used to send spam or launch DDoS attacks. A backdoor is a hidden way into a system that bypasses normal authentication. A logic bomb lies dormant until a date, time or condition triggers it — a time bomb is a logic bomb set for a particular date. Scareware frightens users with fake virus warnings to sell them useless security products. Two more kinds the bank barely mentions: a macro virus hides in the macros of documents, a boot sector virus infects the boot sector of a disk and runs when the computer starts, and fileless malware lives only in memory, leaving no file on disk for antivirus software to find.
The malware family at a glance
- Malware — the general name for all harmful software
- Virus — attaches to a host file, spreads when the file runs
- Worm — spreads on its own across a network, no host file, no click needed
- Trojan horse — pretends to be useful software, does not replicate
- Ransomware — encrypts files and demands payment
- Spyware — secretly watches activity and sends it to someone else
- Adware — shows unwanted advertisements
- Keylogger — records every keystroke to steal passwords
- Rootkit — hides deep in a system and gives hidden privileged access
- Botnet — a network of infected computers controlled remotely
- Backdoor — a hidden way in that bypasses authentication
- Logic bomb / time bomb — lies dormant until a date or condition triggers it
- Scareware — fake virus warnings used to sell useless products
- Macro virus — hides in document macros; boot sector virus — infects the boot sector
- Fileless malware — lives only in memory, no file on disk
Virus, worm, Trojan — the three-way distinction
If you learn one thing from this page, learn this. Ask three questions about any malware: does it need a host file, does it copy itself, and does it trick the user? A virus needs a host file and copies itself when the file runs. A worm copies itself too, but it needs no host file and no user action — it travels across networks on its own. A Trojan does not copy itself at all; its whole trick is disguise, and the user installs it willingly. That is why the paper asks 'which malware replicates itself without any user action?' and the answer is worm, never virus; and why 'which malware disguises itself as legitimate software?' is always Trojan. A virus is fundamentally software — deliberately created, malicious code — and it damages data and programs, or slows the computer down for no reason, which is the commonest sign of infection. Remember also that a virus is one kind of malware, not the same word: the question 'which is the general name for harmful software such as viruses and spyware?' is answered 'malware'.
Three questions that sort every malware
- Needs a host file? Virus yes, worm no, Trojan no
- Copies itself? Virus yes, worm yes, Trojan no
- Tricks the user into installing it? Trojan yes, virus and worm no
- Needs a click or an opened file? Virus yes, worm no
- Ransomware, spyware, adware, keylogger — named for what they DO, not how they spread
A short history: Creeper to WannaCry
The history questions are easy marks if you know the order, and the papers ask 'which was first' more than anything else. The first virus was Creeper, written in 1971 by Bob Thomas as an experiment on ARPANET — it was not malicious, it just displayed 'I'M THE CREEPER, CATCH ME IF YOU CAN'. The program written to hunt it down, Reaper, is often called the first antivirus. The first virus to infect personal computers was Elk Cloner in 1982, spreading on Apple II floppy disks. The first virus for the IBM PC was Brain, written in January 1986 by two brothers, Basit and Amjad Farooq Alvi, who ran a computer shop in Lahore, Pakistan — it replaced the boot sector of floppy disks and carried the brothers' names and phone number, because they wrote it to stop people pirating their medical software. Do not confuse the three firsts: first virus overall is Creeper (1971), first for personal computers is Elk Cloner (1982), first for the IBM PC is Brain (1986). The Morris worm of 1988 was the first worm to spread widely across the internet. ILOVEYOU spread worldwide in May 2000 through emails carrying an attachment called LOVE-LETTER-FOR-YOU. WannaCry, the ransomware attack that spread worldwide in 2017 and hit the NHS and other organisations, encrypted files and demanded payment in Bitcoin. A virus is deliberately created, not an accident and not a program error — the paper asks that too.
The timeline to memorise
- 1971 — Creeper, the first virus (ARPANET experiment, not malicious)
- 1971 — Reaper, often called the first antivirus
- 1982 — Elk Cloner, first virus for personal computers (Apple II)
- 1986 — Brain, first virus for the IBM PC (Lahore brothers, floppy disks)
- 1988 — Morris worm, first worm to spread widely across the internet
- 2000 — ILOVEYOU, worldwide email worm
- 2017 — WannaCry, worldwide ransomware attack, hit the NHS
Antivirus and protection
Antivirus software finds and removes harmful programs — it detects, blocks and removes viruses and other malware, and quarantines suspicious files by isolating them so they cannot run or spread. It must be updated regularly, because new malware appears every day and an out-of-date antivirus cannot recognise it. Avast and NAV are both antivirus programs; MS Excel, Chrome and Oracle are not. But antivirus is only one layer. The first thing to do when a computer is suspected of being infected is to run a full antivirus scan. Never open attachments from unknown senders, and never click a link in an email from an unknown sender — delete it, and if it asks for your password, delete it and click nothing. Hover over a link before clicking it, to see where it really leads. Scan a USB drive from a stranger before opening it. Log out of your accounts when you finish on a public computer, and never save your password in its browser. Avoid banking and sensitive logins on public Wi-Fi. A backup is a copy of important data kept so it can be restored after an attack — regular backups are the defence that works against ransomware, because you can restore your files instead of paying. The 3-2-1 backup rule says keep three copies in total: the original plus two backups. Patching means applying a vendor-supplied update that fixes a known weakness — a security patch exists to fix a known vulnerability, so keeping software updated is itself a security measure. A sandbox is an isolated environment where analysts run suspicious files safely, and a honeypot is a deliberately vulnerable decoy system set up to attract attackers so their methods can be studied safely.
The protection checklist
- Antivirus — detects, blocks, removes and quarantines malware; update it regularly
- Do not open attachments or click links from unknown senders
- Hover over a link to see its real address before clicking
- Scan an unknown USB drive before opening it
- Log out on a public computer; never save passwords there
- Avoid banking on public Wi-Fi
- Regular backup — the defence against ransomware; 3-2-1 rule: three copies in total
- Patching — apply vendor updates that fix known weaknesses
- Sandbox — run suspicious files in isolation; honeypot — a decoy that attracts attackers
Passwords and authentication
A password is a secret code that only the account holder should know and that is used to log in. A strong password is a long mix of upper- and lower-case letters, numbers and symbols that is hard to guess — never your name, your birth date, 'password' or '123456'. And length beats complexity: a long passphrase of unrelated words is stronger than a short password full of symbols, and easier to remember. Use a different strong password for every account, so one stolen password does not open them all; a password manager stores all your passwords safely in one place so you do not have to remember them. Authentication is the step that verifies who a user is — checking a login name and password — and it comes before authorisation, which decides what that authenticated user is allowed to do. Two-factor authentication (2FA) asks for two different proofs of identity, such as a password plus a code sent to your phone; multi-factor authentication (MFA) is the general idea — two or more different factors — and 2FA is its commonest form. A one-time password (OTP) is a code valid for a single login or a short time. Biometric authentication verifies identity from a physical trait such as a fingerprint or iris scan. A CAPTCHA is the test that tells a human apart from a bot. Passwords should never be stored as plain text: they are hashed, and salting adds a random value to each password before hashing so identical passwords produce different hashes. The attacks on passwords have names too: a brute-force attack tries every possible combination, a dictionary attack tries words from a list of common words, a rainbow table attack looks up stolen hashes in a precomputed table, and credential stuffing replays username and password pairs stolen from one site on many other sites. John the Ripper is a tool for cracking passwords. NIST guidance says a user-chosen password should be at least 8 characters long.
Password rules to memorise
- Strong = long, mixed upper and lower case, numbers and symbols
- A long passphrase of unrelated words beats a short complex password
- Different strong password for every account; use a password manager
- Never your name, birth date, 'password' or '123456'
- Minimum length (NIST): 8 characters
Proving who you are
- Authentication — verifies who you are; authorisation — decides what you may do
- 2FA — two different proofs of identity; MFA — two or more factors
- OTP — a code valid for one login; biometrics — fingerprint or iris
- CAPTCHA — tells a human apart from a bot
- Salting — random value added before hashing, so identical passwords hash differently
Attacks on passwords
- Brute-force — tries every possible combination
- Dictionary — tries words from a list
- Rainbow table — looks up hashes in a precomputed table
- Credential stuffing — replays stolen login pairs on other sites
- John the Ripper — a password-cracking tool
Encryption and cryptography
Encryption converts readable plain text into coded cipher text so that only authorised people with the key can read it; decryption turns it back. Symmetric encryption uses the same single key to encrypt and decrypt — the standard is AES, the Advanced Encryption Standard, adopted by the US government, which uses 128-bit blocks and key sizes of 128, 192 or 256 bits. The older symmetric standard is DES, the Data Encryption Standard, which uses a 56-bit effective key on 64-bit blocks and is now considered insecure because 56 bits is too short. Asymmetric encryption uses a pair of keys: a public key that anyone may share openly, and a private key that only its owner must keep secret. The standard algorithm is RSA, named after Rivest, Shamir and Adleman, based on the difficulty of factoring large numbers, and widely used for secure key exchange and digital signatures. Asymmetric encryption is much slower than symmetric encryption, so in practice it encrypts a small symmetric key and the symmetric key encrypts the data. Public-key encryption is used by HTTPS, email encryption and software signing — all of them. Hashing is different from encryption: it is a one-way process that converts data of any size into a fixed-length digest, and even a tiny change in the data produces a completely different result. MD5 produces a 128-bit digest, SHA-1 produces 160 bits, and SHA-256 produces 256 bits — remember 128, 160, 256 in that order. Comparing a downloaded file's hash with the publisher's published hash proves it was not changed. A digital signature uses the sender's private key to prove a message really came from that sender and was not altered; a digital certificate binds a public key to a website's or person's identity and is signed by a trusted authority, the Certificate Authority (CA). The framework that manages certificates and key pairs is the Public Key Infrastructure (PKI). SSL stands for Secure Sockets Layer; its successor TLS encrypts the data exchanged between a browser and a web server — the padlock in the address bar means the connection is encrypted, not that the site itself is honest. Encryption at rest protects stored data on disk; encryption in transit protects data while it travels over a network. Two old ciphers the papers still name: the Caesar cipher shifts each letter forward by a fixed number of places (Julius Caesar used a shift of 3), and the one-time pad (OTP) — which is the same cipher as the Vernam cipher — is the most secure cipher of all, because its key is random and used only once.
Symmetric versus asymmetric
- Symmetric — one shared key; AES (128-bit blocks; keys of 128, 192, 256 bits)
- DES — older symmetric standard; 56-bit effective key, 64-bit blocks; now insecure
- Asymmetric — public key shared openly, private key kept secret; RSA
- RSA — Rivest-Shamir-Adleman; factoring large numbers; key exchange and signatures
- Asymmetric is slower, so it encrypts the symmetric key, not the data
Hashes to memorise
- MD5 — 128-bit digest
- SHA-1 — 160-bit digest
- SHA-256 — 256-bit digest
- Hashing is one-way; encryption can be reversed with a key
Trust: signatures, certificates, PKI
- Digital signature — sender's private key proves origin and integrity
- Digital certificate — binds a public key to an identity; issued by a CA
- PKI — the framework managing certificates and key pairs
- SSL/TLS — encrypts browser–server data; padlock means encrypted connection
- Encryption at rest — stored data; encryption in transit — data travelling
Firewalls and network defence
A firewall is a security system that monitors incoming and outgoing network traffic and blocks unauthorised access according to a set of preset rules — it protects a network from unauthorised access, while antivirus software protects a computer from viruses. That contrast is itself a paper question: antivirus handles viruses, the firewall handles unauthorised network access. The two firewall types the papers ask most about — the packet-filtering firewall, which filters traffic on IP addresses and port numbers only, and the stateful firewall, which inspects the state of active connections — live on the Computer Networking page, and this page links there rather than repeating them. The third type is covered here: an application-layer firewall inspects the content of traffic, such as web requests, instead of only addresses and ports. An Intrusion Detection System (IDS) monitors network traffic and raises an alert when it detects suspicious activity; an Intrusion Prevention System (IPS) goes further and actively blocks it — IPS blocks, IDS only detects and alerts. A Demilitarised Zone (DMZ) is an isolated network segment between an organisation's internal network and the internet, hosting public-facing servers. Port scanning probes a computer's ports to discover which services are running and open to attack, and packet sniffing captures network traffic to read the data passing over it — which is why encryption matters. Three more network defences live on the Computer Networking page and are linked from here: the VPN, which creates an encrypted tunnel over the public internet; the proxy server, which sits between users and the internet and forwards requests on their behalf; and the man-in-the-middle attack and spoofing, which are covered there with the networking questions.
Network defence at a glance
- Firewall — monitors traffic, blocks unauthorised access by rules
- Antivirus handles viruses; firewall handles unauthorised network access
- Application-layer firewall — inspects the content of traffic
- IDS — detects and alerts; IPS — detects and blocks
- DMZ — isolated segment between internal network and internet
- Port scanning — probes ports to find open services; packet sniffing — reads passing traffic
- On the Computer Networking page: packet-filtering and stateful firewalls, VPN, proxy, man-in-the-middle, spoofing
Attacks: phishing, web attacks, people attacks
Phishing is a trick that uses fake emails or messages that look genuine to steal passwords and bank details — it is a type of cyber attack, and a method of gathering personal information with false emails and websites. The commonest sign of a phishing email is an urgent request to click a link and enter personal details. The phishing family has four named members to tell apart: spear phishing is carefully aimed at one person or organisation using their own details; whaling targets senior executives and other high-profile individuals; vishing uses a voice telephone call, often pretending to be from a bank; and smishing uses deceptive text messages. Pharming is different again: it poisons DNS records so that even the correct address leads to a fake website. Phishing is also the classic example of social engineering — the attack technique that relies on tricking people rather than breaking software. The other people-attacks are pretexting, inventing a false story such as a fake IT support call; baiting, luring a victim with a tempting free offer such as a USB drive carrying malware; tailgating, following an authorised person through a locked door; shoulder surfing, watching over a person's shoulder as they type a password or PIN; and dumpster diving, searching discarded papers and rubbish for confidential information. The web attacks are SQL injection, which inserts malicious SQL code into a website's input field to manipulate or steal data from its database — prevented by prepared statements, which separate SQL code from user data — and cross-site scripting (XSS), which injects a malicious script into a trusted website so it runs in the browsers of other visitors — prevented by output encoding, escaping user input before display. Cross-Site Request Forgery (CSRF) tricks a logged-in user into submitting an unwanted request. Session hijacking steals a user's active session token or cookie to impersonate them without logging in. Clickjacking tricks a user into clicking something different from what they see, such as a hidden button. A drive-by download installs malware on a visitor's computer simply because they visited an infected website. A distributed denial-of-service (DDoS) attack floods a server with traffic from many machines so genuine users cannot reach it; a plain denial-of-service (DoS) attack does the same from a single source. A salami attack steals tiny amounts from a large number of accounts, so each theft goes unnoticed. Spam is unwanted bulk mail; phishing tries to steal your information — the two are not the same thing.
The phishing family
- Phishing — fake emails or messages that look genuine, to steal passwords
- Spear phishing — aimed at one person or organisation, using their details
- Whaling — aimed at senior executives
- Vishing — voice call, often pretending to be a bank
- Smishing — deceptive text messages
- Pharming — DNS poisoning sends the correct address to a fake site
Web attacks
- SQL injection — malicious SQL in an input field; prevented by prepared statements
- Cross-site scripting (XSS) — malicious script in a trusted site; prevented by output encoding
- CSRF — tricks a logged-in user into an unwanted request
- Session hijacking — steals the session token or cookie to impersonate the user
- Clickjacking — tricks the user into clicking something hidden
- Drive-by download — malware installed just by visiting an infected site
- DDoS — traffic from many machines; DoS — from one source
People attacks
- Social engineering — tricking people, not breaking software
- Pretexting — a false story; baiting — a tempting free offer
- Tailgating — following someone through a locked door
- Shoulder surfing — watching someone type; dumpster diving — searching rubbish
- Salami attack — tiny thefts from many accounts
Principles: the CIA triad and friends
Information security rests on the CIA triad: Confidentiality, Integrity and Availability. Confidentiality means only authorised users have access to specific resources or data — encryption protects it. Integrity means data has not been changed — hashing protects it, because even one changed byte gives a completely different hash. Availability means the service is there when genuine users need it — a DDoS attack threatens it. Two more properties the papers name: non-repudiation, which ensures a person cannot later deny having sent a message or performed an action, and authentication, which verifies who a user is before the system decides what they may do. The principle of least privilege says a user should be given only the minimum access rights needed to do their job, and nothing more. Defence in depth uses several layers of security so that one failure does not expose a system. Access control is the mechanism that decides who may read or change a resource, and an Access Control List (ACL) is the list that defines, for each resource, which users may access it and what they may do. The Zero Trust model assumes no user or device is trusted by default, even inside the network, and verifies every request. Cybersecurity is the name for the whole practice of securing networks and software from attacks. Encryption is a logical security measure, not a physical one — physical security is guards and CCTV cameras.
The CIA triad, with an example each
- Confidentiality — only authorised users have access; protected by encryption
- Integrity — data has not been changed; protected by hashing
- Availability — the service is there when needed; threatened by DDoS
- Non-repudiation — nobody can deny sending a message or doing an action
- Least privilege — only the minimum access needed for the job
- Defence in depth — several layers, so one failure does not expose the system
- Zero Trust — trust nobody by default, verify every request
Process: from vulnerability to recovery
A vulnerability is a flaw in software that could allow an attack, and an exploit is code that takes advantage of a vulnerability to attack a system — the two words are not interchangeable, and the papers ask both. A zero-day vulnerability is a weakness unknown to the vendor, so no patch exists for it yet when attackers start exploiting it. Patching fixes known flaws by applying vendor updates. The security process runs in order: a risk assessment identifies threats to an organisation's assets, estimates their likelihood and impact, and guides security decisions; a vulnerability assessment systematically identifies, classifies and ranks the weaknesses present; vulnerability scanning searches systems automatically for known weaknesses; penetration testing is the authorised exercise that simulates a real attack to discover weaknesses before criminals find them — which is also what ethical hacking is, testing a system's security by attempting to break into it with the owner's permission; and a security audit systematically reviews systems and policies to find weaknesses. When a breach happens, incident response is the planned process that handles it from detection through containment to recovery. Digital forensics is the field that collects, preserves and analyses digital evidence from computers after a crime, and malware analysis studies malicious software to understand how it works. A disaster recovery plan sets out how an organisation restores its IT systems and data after a major disaster such as a fire or cyberattack. A black-hat hacker is the opposite of the ethical hacker: someone who breaks into systems illegally for personal gain.
The process in order
- Vulnerability — a flaw that could allow an attack; exploit — code that uses it
- Zero-day — unknown to the vendor, no patch yet
- Risk assessment — threats, likelihood, impact; then choose controls
- Vulnerability assessment — find, classify and rank weaknesses
- Vulnerability scanning — automated search for known weaknesses
- Penetration testing / ethical hacking — authorised simulated attack
- Security audit — systematic review of systems and policies
- Incident response — detection through recovery
- Digital forensics — collect and analyse evidence after a crime
- Disaster recovery plan — restore systems and data after a disaster
Cybercrime and the law in Pakistan
Cybercrime is any illegal activity that involves the use of computer devices, networks and the internet. In Pakistan the law is the Prevention of Electronic Crimes Act, 2016 (PECA), under which offences such as unauthorised access, hacking and cyberstalking are prosecuted. Section 3 makes unauthorised access to an information system or data an offence — up to three months in prison, a fine of up to Rs 50,000, or both. Cyberstalking is Section 24: repeatedly harassing, following or threatening a person through electronic communications. Cyberterrorism is Section 10, electronic fraud is Section 14, and spreading false information online is Section 26A, added in 2025. One fact has changed since many of these questions were written: the Federal Investigation Agency's Cybercrime Wing used to investigate PECA offences, but the National Cyber Crime Investigation Agency (NCCIA) was set up in 2025 and took over those functions — complaints now go to the NCCIA. That is why the one bank question that still keys the FIA Cybercrime Wing is held back from this page and the NCCIA is taught instead; if a past paper asks, answer with the agency the paper expects, but know the current one. A person who gains illegal access to a computer system is known as a hacker.
PECA 2016 — the sections to know
- Section 3 — unauthorised access (up to 3 months, fine up to Rs 50,000)
- Section 10 — cyberterrorism
- Section 14 — electronic fraud
- Section 24 — cyberstalking
- Section 26A — spreading false information (added 2025)
- NCCIA — investigates cybercrime now; took over from the FIA Cybercrime Wing in 2025
How to answer these questions in the paper
Most questions in this topic are definitions in disguise: the question describes a thing and asks for its name, so learn every term as a one-sentence definition and the name will come. Keep the confusion pairs apart, because the papers set them against each other: virus against worm (host file or not), symmetric against asymmetric (one key or two), IDS against IPS (alerts or blocks), authentication against authorisation (who you are, or what you may do), hashing against encryption (one-way or reversible), phishing against spam (theft or bulk mail), and DES against AES (56-bit key or 128/192/256-bit keys). Memorise the numbers as a set: DES 56-bit key and 64-bit blocks, AES 128-bit blocks, MD5 128-bit digest, SHA-1 160-bit, SHA-256 256-bit, RSA 2048-bit keys, 3-2-1 backup means three copies, and a password should be at least 8 characters. Watch for 'which of the following is NOT' and 'which is the strongest' questions — read every option before answering, because the wrong answers are usually the right words in the wrong place. And when a question asks for the first of something, check which first it means: first virus (Creeper, 1971), first for personal computers (Elk Cloner, 1982), or first for the IBM PC (Brain, 1986).
More facts to learn
- Which of the following is an example of malwareA computer virus
- Which of the following best describes a computer virusA malicious program that can harm a computer
- A Computer Virus is fundamentally a type of:Software
- Which of the following is a virusMalware that replicates by attaching to files
- Which general term covers all harmful software, including viruses, worms, trojans and spyware, that is designed to damage or gain unauthorised access to a computerMalware
- Which stealthy malware is designed to hide its own presence and give an attacker hidden, privileged access to a computerRootkit
- Which term describes a network of infected computers that an attacker controls remotely, often to send spam or launch attacksBotnet
- Which deceptive software frightens users with fake warnings about viruses in order to sell them useless security productsScareware
- Which of the following is a common way to protect a computer from virusesInstalling antivirus software
- Which of the following is a safe habit when using a public computerLog out of your accounts when you finish
- In computer security, what is the name of the process of applying a vendor-supplied update that fixes a known weakness in softwarePatching
- According to the 3-2-1 backup rule, how many copies of important data should be kept in totalThree copies
- Why must antivirus software be updated regularlyTo recognise newly discovered malware
- Which of the following is a strong passwordA long password with letters, numbers and symbols
- John the ripper is a tool toCrack passwords
- Which password attack systematically tries every possible combination of characters until the correct password is foundBrute-force attack
- Which test is used on websites to distinguish a human user from an automated bot, for example by asking the user to identify picturesCAPTCHA
- Which security step verifies who a user is, before the system decides what that user is allowed to doAuthentication
- Which term means deciding what an authenticated user is allowed to doAuthorisation
- The type of cryptography in which one key is public and the other is private is calledAsymmetric Key cryptography
- What does SSL stand forSecure sockets layer
- Which mechanism uses the sender's private key to prove that a message really came from that sender and was not altered on the wayDigital signature
- Which asymmetric encryption algorithm is named after its three inventors, Rivest, Shamir and AdlemanRSA
- Which framework manages digital certificates and public-private key pairs so that secure communication can be trustedPublic Key Infrastructure (PKI)
- Which hash algorithm produces a 256-bit digestSHA-256
- Which practice protects data while it travels over a networkEncryption in transit
- Which asymmetric encryption algorithm is based on the difficulty of factoring large numbersRSA
- What is the main function of a firewallTo protect a network from unauthorised access
- Which security system monitors network traffic and raises an alert when it detects suspicious or malicious activityIntrusion Detection System (IDS)
- Which reconnaissance activity probes a computer's ports to discover which services are running and open to attackPort scanning
- A person who gains access to a computer system is known as a hacker.illegal
- Phishing is used for:A type of cyber-attack aimed at stealing personal information through fraudulent emails
- Which attack inserts malicious SQL code into a website's input field in order to manipulate or steal data from its databaseSQL injection
- Which attack technique relies on tricking people, rather than breaking software, into revealing confidential information or granting accessSocial engineering
- Which targeted phishing attack is aimed specifically at senior executives and other high-profile individuals in an organisationWhaling
- Which authorised activity involves testing a system's security by attempting to break into it, with the owner's permission, in order to find and fix weaknessesEthical hacking
- Which attack tricks a user into clicking a hidden button on a web pageClickjacking
- Which attack tricks a logged-in user into submitting an unwanted request to a websiteCross-Site Request Forgery (CSRF)
- Which security principle ensures that only authorized users have access to specific resources or dataConfidentiality
- Which planned process detects, contains and recovers from a security breach in an organised wayIncident response
- Which authorised security exercise simulates a real attack on a system to discover weaknesses before criminals find themPenetration testing
- Which plan sets out how an organisation restores its IT systems and data after a major disaster such as a fire or cyberattackDisaster recovery plan
- Which three goals form the CIA triad, the foundation of information securityConfidentiality, Integrity and Availability
- Which strategy uses several layers of security so that one failure does not expose a systemDefence in depth
- Which automated activity searches systems for known security weaknessesVulnerability scanning
- What is the term for a flaw in software that could allow an attackVulnerability
- Which 1982 virus was the first to infect personal computers, spreading on Apple II floppy disksElk Cloner
- Which program, written in 1971 to hunt down the Creeper virus, is often called the first antivirusReaper
- Which malware runs only in a computer's memory and leaves no file on the disk for antivirus software to findFileless malware
- Which technique hides a secret message inside an ordinary-looking image or audio fileSteganography
- Which social engineering attack involves following an authorised person through a locked door to get insideTailgating
- Which attack takes username and password pairs stolen from one site and tries them on many other sitesCredential stuffing
- Which of the following is the strongest passwordcorrect-horse-battery-staple
- How many bits are in one block of data encrypted by DES64 bits
- What is the main difference between hashing and encryptionHashing is one-way, encryption can be reversed with a key
- Which type of intrusion detection spots attacks by noticing unusual behaviour, rather than by matching known attack signaturesAnomaly-based IDS
- What does the padlock symbol in a browser's address bar tell youThe connection to the website is encrypted
- What should you do before clicking a link in an emailHover over it to check where it really leads
- What is a black-hat hackerA hacker who breaks into systems illegally for personal gain
- Which leg of the CIA triad does encryption protectConfidentiality