Attacks & Malware Questions with Answers

41 practice questions on Attacks & Malware (Cyber Security) with answers and step-by-step solutions. Try 10 samples below, then practise all 41 free in the AptiNest app.

Sample questions

Question 1Easy

A Distributed Denial of Service (DDoS) attack aims to:

  1. Change database records
  2. Make a service unavailable
  3. Steal encryption keys from the server
  4. Guess user passwords

Answer: B. Make a service unavailable

Explanation

Floods of traffic from many sources exhaust bandwidth or server resources.

Step-by-step solution

  1. DDoS uses many machines (a botnet) to send traffic.
  2. The target is overwhelmed and cannot serve real users.
  3. So the goal is loss of availability.

Why the other options are wrong

  • A. That is an integrity attack such as SQL injection.
  • C. That is a key theft attack, not a flood.
  • D. That is brute-forcing or guessing.

Question 2Easy

Shoulder surfing is:

  1. Browsing on a public computer
  2. Sending spam from a hijacked account
  3. Watching someone type a PIN
  4. Surfing websites while working

Answer: C. Watching someone type a PIN

Explanation

Physical observation can capture credentials; privacy screens and awareness help.

Step-by-step solution

  1. Shoulder surfing means watching someone over their shoulder.
  2. It captures information such as a PIN as it is typed.
  3. So it is watching someone type a PIN: option C.

Why the other options are wrong

  • A. Browsing on a public computer is a risk, but not shoulder surfing.
  • B. Sending spam from a hijacked account is a different attack.
  • D. Surfing while working is normal use, not an attack.

Tip: Cover the keypad and use privacy screens.

Question 3Easy

In cyber attacks, a botnet is best described as:

  1. A cluster of firewalls working in parallel
  2. A chatbot used for automated customer service
  3. A network of hijacked devices
  4. A secondary network that holds backup copies

Answer: C. A network of hijacked devices

Explanation

Attackers use botnets for DDoS, spam and credential-stuffing at scale.

Step-by-step solution

  1. A botnet is a group of computers that an attacker controls.
  2. The devices are hijacked without their owners' knowledge.
  3. So a botnet is a network of hijacked devices: option C.

Why the other options are wrong

  • A. A cluster of firewalls is a defence, not an attack network.
  • B. A chatbot is a customer-service tool, not a botnet.
  • D. A backup network is not an attack network.

Tip: Botnet = many hijacked devices under one attacker's control.

Question 4Easy

Phishing that targets senior executives such as a CEO or CFO is often called:

  1. Smishing
  2. Pharming
  3. Vishing
  4. Whaling

Answer: D. Whaling

Explanation

Whaling aims at "big fish" with high authority or access.

Step-by-step solution

  1. Phishing aimed at senior executives is called whaling.
  2. Whaling targets the big fish with high authority.
  3. So option D is correct.

Why the other options are wrong

  • A. Smishing is phishing by SMS text message.
  • B. Pharming redirects users to fake sites through DNS or host changes.
  • C. Vishing is voice phishing by phone.

Tip: Whaling = phishing aimed at senior executives.

Question 5Medium

Cryptojacking is:

  1. Breaking TLS certificates
  2. Covertly mining crypto on a device
  3. Stealing encryption keys from a bank
  4. Encrypting files for ransom

Answer: B. Covertly mining crypto on a device

Explanation

Cryptojacking malware or scripts consume the victim's CPU and power for an attacker's profit.

Step-by-step solution

  1. Cryptojacking secretly uses a victim's device to mine cryptocurrency.
  2. It uses the device's CPU and power for the attacker's profit.
  3. So it covertly mines crypto on a device: option B.

Why the other options are wrong

  • A. Breaking TLS certificates is a different attack.
  • C. Stealing bank keys is not cryptojacking.
  • D. Encrypting files for ransom is ransomware.

Tip: Cryptojacking = hidden mining; ransomware = encryption for payment.

Question 6Medium

Leaving infected USB drives in a company car park hoping employees plug them in is:

  1. Vishing
  2. Tailgating
  3. Baiting
  4. Whaling

Answer: C. Baiting

Explanation

Baiting lures victims with something tempting, such as a free USB drive.

Step-by-step solution

  1. The bait is a USB drive left where employees will find it.
  2. The lure is something tempting, so the victim plugs it in.
  3. That is baiting: option C.

Why the other options are wrong

  • A. Vishing is a phone-based attack, not a planted device.
  • B. Tailgating is following someone through a secure door.
  • D. Whaling targets senior executives with phishing.

Tip: Baiting = tempting lure, such as a free USB drive.

Question 7Medium

A supply-chain attack compromises a target by:

  1. Blocking the company's DNS
  2. Poisoning a trusted vendor's update
  3. Guessing the CEO's password
  4. Physically stealing delivery trucks

Answer: B. Poisoning a trusted vendor's update

Explanation

Attackers poison a dependency or update channel that many victims trust and install.

Step-by-step solution

  1. A supply-chain attack targets a trusted vendor or update channel.
  2. The attacker poisons an update or a dependency that victims install.
  3. So it poisons a trusted vendor's update: option B.

Why the other options are wrong

  • A. Blocking DNS is a denial attack, not a supply-chain attack.
  • C. Guessing the CEO's password is a direct credential attack.
  • D. Stealing delivery trucks is physical theft, not a supply-chain attack.

Tip: Supply chain = attack through a trusted supplier or update.

Question 8Medium

A dictionary attack tries:

  1. Every possible character combination
  2. Keys stored in a dictionary data structure
  3. Common words and known passwords
  4. Only numeric PINs

Answer: C. Common words and known passwords

Explanation

Dictionary attacks use wordlists of likely passwords, which is faster than exhaustive brute force.

Step-by-step solution

  1. A dictionary attack uses a list of likely words and known passwords.
  2. It is faster than trying every combination.
  3. So it tries common words and known passwords: option C.

Why the other options are wrong

  • A. Trying every combination describes brute force.
  • B. Keys in a data structure is not what a dictionary attack does.
  • D. Dictionary attacks are not limited to numeric PINs.

Tip: Dictionary attack = wordlist; brute force = every combination.

Question 9Hard

A business email compromise (BEC) attack most commonly aims to:

  1. Flood the email server with spam
  2. Encrypt all files on the mail server
  3. Steal hardware from offices
  4. Divert payments via fake emails

Answer: D. Divert payments via fake emails

Explanation

Attackers impersonate executives or suppliers to redirect payments; verification by a second channel is a key defence.

Step-by-step solution

  1. BEC impersonates an executive or supplier by email.
  2. The goal is to redirect a payment to the attacker's account.
  3. So BEC diverts payments via fake emails: option D.

Why the other options are wrong

  • A. Flooding the mail server with spam is a denial attack.
  • B. Encrypting the mail server's files is ransomware.
  • C. Stealing hardware from offices is physical theft.

Tip: Verify payment changes through a second channel, such as a phone call.

Question 10Hard

A rainbow table attack is used to:

  1. Flood a network
  2. Reverse unsalted password hashes
  3. Decrypt TLS traffic live
  4. Bypass a firewall

Answer: B. Reverse unsalted password hashes

Explanation

Rainbow tables are precomputed hash chains; unique salts per password make them useless.

Step-by-step solution

  1. A rainbow table is a precomputed hash to password table.
  2. It looks up unsalted hashes quickly.
  3. Salting defeats it.

Why the other options are wrong

  • A. Not a flooding attack.
  • C. Does not decrypt traffic.
  • D. Not a firewall bypass.

Practise all 41 questions free

The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.

Open this topic in the app →

Related topics

See all Cyber Security topics · All topics