Ransomware, zero-day attacks and AI threats

7 min 4 sections 4 practice questions 8 sources citedISC2 objective 3.7

Some attacks get ahead of the defender in ways that patching and strong ciphers alone cannot stop. Ransomware turns good encryption against its victim. A zero-day attack uses a flaw that nobody has fixed. Artificial intelligence can be fooled, poisoned or used to fake a voice. No background beyond the earlier cryptography is assumed. A security manager must know which defences still work in each case, and which decisions belong to senior management.

By the end of this unit you will be able to:

  • Explain how ransomware uses hybrid encryption and why the files cannot be decrypted without the attacker's key
  • Choose the ransomware defences that work: offline backups, segmentation and isolation
  • Explain the legal and practical case against paying a ransom, and who decides
  • Tell apart a zero-day vulnerability, a zero-day exploit and a zero-day attack, and choose defences when no patch exists
  • Tell apart evasion, data poisoning, model poisoning, prompt injection and deepfakes, and attacks that extract data or the model itself

Monday morning at a dental practice

An illustrative example

Staff at a dental practice arrive to find that no patient record will open. Every file has a new ending, and a note on each screen demands payment in cryptocurrency within 72 hours. A second message says that patient records have also been copied, and will be published if the practice does not pay.

The practice backs up every night to a drive that stays plugged into the server. The practice manager wants to pay at once and get back to work.

What should happen first, and who should decide whether to pay?

Ransomware: cryptography used by the attacker

Ransomware is malicious software that the files on a device, making them and every system that relies on them unusable, and then demands payment for the key. The encryption is not a weak home-made . It is sound , used against the owner.

Most ransomware uses hybrid encryption: a fast symmetric cipher encrypts the files, and the attacker's public key encrypts the . One United States advisory describes a group pairing the ChaCha20 with RSA in exactly this way.

  1. The malware creates a fresh symmetric key on the victim's computer.
  2. It encrypts the files quickly with that key.
  3. It encrypts the symmetric key with the attacker's public key and deletes the unprotected copy.
  4. Only the attacker's private key, which never touches the victim's network, can recover the symmetric key.

Double extortion adds a second threat. Before encrypting, the attackers copy data out and threaten to publish it. Some groups now skip encryption and extort with stolen data alone. Backups restore files; they do nothing about a leak.

Three ways an attacker gets ahead
ThreatWhat gives the attacker the leadWhat still works
RansomwareSound encryption under a key only the attacker holdsOffline backups, segmentation, fast isolation
Zero-day attackA flaw with no , unknown to the defenderLayered controls, , monitoring, quick patching once a fix exists
AI threatsSystems that learn from data, and media that can be fakedClean training data, input controls, checks through a second channel

Ransomware defences, and the decision to pay

  • Offline, encrypted backups, tested by restoring from them. Attackers look for reachable backups and delete or encrypt them, so a drive left plugged in is lost with the server.
  • Immutable storage, which cannot be changed or deleted for a set period, where it fits. It needs care: a wrong setting can be costly, and it may not meet every regulation.
  • Segmentation: dividing the network so that an infection on one part cannot reach the rest.
  • A practised response plan. The first step is to find which systems are affected and isolate them at once, if necessary by taking the network offline.

The United States government strongly discourages paying. A payment funds and encourages further attacks, and it gives no guarantee that the data comes back or that the attackers will not return. A payment that reaches a sanctioned person or country can break United States sanctions law. Liability is strict: it applies even to a payer who did not know.

Whether to pay is a business decision with legal consequences, so senior management sets the in advance, with legal advice and law enforcement involved. A technician does not decide it during the incident.

Common misconception

“Paying the ransom is the quickest way to recover.”

There is no guarantee of a working key, and paying does not undo a leak. Payment may break sanctions law and invites further attacks. Tested offline backups are the recovery plan.

Zero-day attacks: when no patch exists

A vulnerability is a flaw that an attacker can use. An exploit is the code or method that uses it. A zero-day attack exploits a vulnerability that was previously unknown, so the maker has had no days to fix it and no patch exists. The vulnerability, the exploit and the attack are all called zero-day until a fix is available.

Patching cannot help yet, so other controls carry the defence.

  • Layers: , segmentation and allow-lists, so that one flaw does not open the whole network.
  • Least privilege, so the exploited program can do little.
  • Monitoring for unusual behaviour. Most security tools recognise attacks by a signature, a known pattern taken from earlier attacks, and an unknown attack has none yet.
  • The maker's interim advice: switching off the affected feature or blocking a route to it.
  • Fast patching once a fix appears. Flaws known to be used by attackers go first.

Common misconception

“A zero-day attack is one that happens on the day a vulnerability is announced.”

Zero-day refers to the days the defender has had to fix the flaw: none. The attack may run for months before anyone discovers the flaw.

Attacks on and with artificial intelligence

A machine learning model is a program that learns its behaviour from examples, its training data, rather than from rules written by hand. Adversarial AI is the deliberate manipulation of such a system, or its use as a weapon.

Threats to and from artificial intelligence
ThreatWhat the attacker doesDefence
EvasionAlters an input slightly, often invisibly to a person, so the model misclassifies itTrain on such inputs; do not rely on one model alone
Data poisoningInserts or alters training examples so the model learns the wrong behaviourControl and check the sources of training data
Model poisoningChanges the trained model itself to plant hidden behaviourObtain models from trusted sources; check their
Privacy attackQueries a model to rebuild its training data, learn whether a person's record was used, or copy the model itselfLimit and watch queries; keep sensitive data out of training
Prompt injectionHides instructions in text that a language model reads, such as a web page or documentTreat model output as untrusted; limit what the model may do
DeepfakeUses AI to fake a real person's voice, face or videoVerify any request through a second channel already known

Poisoning attacks happen while a model learns; evasion happens after, when it is in use. Prompt injection comes in two forms. In a direct attack the user types instructions meant to override the model's rules. In an indirect attack the instructions sit in a web page, email or document that the model is later asked to read, so the person using it never sees them.

A deepfake is audio, video or an image generated or altered by artificial intelligence to imitate a real person. Criminals already use cloned voices of senior people to ask for money or access. The defence is procedural: call the person back on a number already on record, never on one supplied in the message.

A question, worked through

The IT manager of a regional charity arrives at 7am to find two file servers encrypted and a ransom note on each. Other servers and laptops appear normal. Last night's backups sit on a storage system on the same network. The chief executive is on her way in and has asked for a recommendation on the immediate step.

What should the IT manager do FIRST?

  1. Isolate the affected servers and any linked systems from the network
  2. Restore the two encrypted servers from last night's network backups
  3. Contact the attackers through the note to learn the price and terms
  4. Wipe both servers and rebuild them from the charity's clean images
Decide on your answer, then open the reasoning
  1. The question asks for the first step while the attack may still be spreading.
  2. Rule out c. Whether to negotiate or pay is senior management's decision under a policy, with legal advice, not the first technical step.
  3. Rule out d. Wiping destroys evidence of how the attackers got in and does not stop them reaching other machines.
  4. Between a and b: the backups sit on the same network and may be the next target. Restoring before the attackers are shut out risks reinfection.
  5. Isolation stops the spread and protects the backups. Option a is the answer.

Answer: A. Isolate the affected servers and any linked systems from the network

Choosing between good answers

A ransomware scenario asks for the first action
isolate the affected systems. Restore, investigate and decide on payment come after.
A question asks who decides whether to pay a ransom
senior management, under a policy set in advance, with legal advice. Not the security team on the day.
A question asks which backup survives ransomware
choose offline backups that have been tested. Backups reachable from the network can be encrypted too.
A scenario describes a flaw with no patch being exploited
it is a zero-day. Choose layered controls, least privilege and monitoring, not waiting for a patch.
A scenario has a voice or video request from a senior person to move money
verify through a second channel already known before acting. Suspect a deepfake.

Try it

Respond to an encrypted file server and see which step protects the backups and which decision goes to management.

Loading the preview.

Check your understanding

4 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.

These questions are drafts that no named reviewer has approved yet.

Question 1 of 4

A finance officer receives a voice message in the chief executive's voice, asking for an urgent payment to a new supplier and giving a mobile number for questions.

What should the finance officer do FIRST?

What to remember

  • Ransomware encrypts files with a symmetric key and locks that key with the attacker's public key. Without the attacker's private key the files stay locked.
  • Double extortion adds theft and a threat to publish. Backups recover files; they do not stop a leak.
  • Offline, tested backups, segmentation and fast isolation defeat ransomware. Paying is discouraged, may breach sanctions, and is a decision for senior management.
  • A zero-day attack exploits a flaw with no patch. Layered controls, least privilege and monitoring carry the defence.
  • AI threats include evasion, data and model poisoning, privacy attacks, prompt injection and deepfakes. Verify unusual requests through a second, known channel.

Say it from memory

  1. How does ransomware use cryptography, and what defences and decisions does it call for?

    It encrypts files with a symmetric key and encrypts that key with the attacker's public key, so only the attacker can recover them. Double extortion adds stolen data and a threat to publish. Defences: offline, tested backups, segmentation, and isolating affected systems first. Paying is discouraged, unguaranteed and may breach sanctions; senior management decides the policy.

    Read this part again

  2. Why can backups alone not answer double extortion?

    Before encrypting, the attackers copy data out and threaten to publish it. Some groups skip encryption and extort with stolen data alone. Backups restore files; they do nothing about a leak.

    Read this part again

  3. How does direct prompt injection differ from indirect, and when do poisoning and evasion happen?

    In a direct attack the user types instructions meant to override the model's rules. In an indirect attack the instructions sit in a web page, email or document the model is later asked to read, so the person using it never sees them. Poisoning happens while a model learns; evasion happens after, when it is in use.

    Read this part again

Sources