Programming
We provide developers and engineers the guides and tutorials they...
Search
We provide developers and engineers the guides and tutorials they...
Content is king. It's not just about how you're going to write, b...
Looking for an engaging connection with thousands of other people...
How ransomware attacks unfold, from phishing and stolen logins to encryption and extortion, and the defences that matter: backups, MFA, patching, segmentation.
Quick answer: Ransomware is malicious software that encrypts an organisation's files so they cannot be used, then demands payment for the key. Attackers usually get in through a phishing email, stolen or weak login details for remote access, or an unpatched internet-facing system. Modern attacks are rarely instant: intruders spend days or weeks inside the network, gaining wider access, copying sensitive data, and disabling backups, before triggering encryption everywhere at once. The defences that matter most are offline, tested backups, multi-factor authentication, prompt patching, limited privileges and network segmentation.
This article explains how attacks work at a conceptual level, so that defenders know what they are protecting against.
Ransomware uses the same strong, standard encryption that protects online banking. That is exactly why it is effective: correctly encrypted data cannot be recovered without the key.
The general scheme is hybrid encryption, the idea described in how public key cryptography works:
So there is generally no technical shortcut once files are encrypted. Free decryption tools exist for some older or flawed strains, but they are the exception. This is why the outcome of an attack is decided mostly by what was done beforehand.
National cyber security agencies consistently report the same main entry routes:
| Route | What happens |
|---|---|
| Phishing | An email persuades someone to open an attachment, follow a link or enter their password on a fake page. See how email works for how sender checks help |
| Stolen or weak credentials | Passwords reused from earlier breaches or guessed, used against remote desktop, VPN or cloud logins that lack a second factor |
| Unpatched systems | A known vulnerability in an internet-facing device or application that has not been updated |
| Third parties | Access through a supplier, a managed service provider or compromised software |
Once inside, attackers do not act immediately. Over hours to weeks they typically:
They often use the organisation's own legitimate administration tools, which makes the activity harder to tell apart from normal work.
Before encrypting, most groups now copy sensitive data out. This enables double extortion: even if the victim can restore from backups, the attackers threaten to publish the stolen material.
Attackers look for backups and try to delete or encrypt them, and they try to switch off security software. Backups that are reachable from the network with the same administrator account are often lost at this stage.
Encryption is launched across as many systems as possible at once, frequently at night or over a weekend. Files become unreadable and a note explains how to make contact and pay, usually in cryptocurrency.
The gap between entry and encryption is important. It is a window in which the intrusion can be detected and stopped.
Ransomware is organised crime with a division of labour, often called ransomware as a service:
This model lowers the skill needed to run an attack, which is one reason the problem is so widespread. Hospitals, local authorities, schools and businesses of every size have been hit.
Guidance from agencies such as CISA and the UK's NCSC converges on a short list.
Require a second factor on everything exposed to the internet: email, VPN, remote access, cloud consoles, and all administrator accounts. This single measure blocks most attacks that rely on stolen passwords. See how two-factor authentication works.
Prioritise internet-facing systems and vulnerabilities known to be exploited. Remove or isolate systems that can no longer be updated.
The less an initial foothold can reach, the less an attacker can do with it.
If every machine can talk to every other, one infected laptop endangers everything. Dividing the network and restricting traffic between segments contains an intrusion.
Do not expose remote desktop or administrative interfaces directly to the internet. Disable services you do not use.
Use email authentication and filtering, block risky attachment types, and train staff to report suspicious messages. Reporting must be easy and blame-free.
Write an incident response plan, keep a copy that is available when systems are down, know who to call, and rehearse it.
Authorities generally advise against paying. Payment does not guarantee that you will get working keys, does not guarantee that stolen data is deleted, funds further attacks, and may be unlawful in some circumstances. Organisations facing this decision should take legal and specialist advice.
Through phishing emails, stolen or weak passwords on remote access services, or unpatched internet-facing software.
Yes, from clean backups. Occasionally a free decryption tool exists for a particular strain. Otherwise, properly encrypted files cannot be recovered without the key.
Attackers steal data before encrypting it, then threaten to publish it if they are not paid, so that backups alone do not remove the pressure.
They protect against the loss of data and allow recovery, provided they are offline or immutable and tested. They do not prevent the theft and publication of data.
Ransomware succeeds less through technical brilliance than through ordinary gaps: a reused password, a missing patch, backups reachable from the network. The encryption cannot be undone afterwards, so resilience is built in advance. Offline backups, multi-factor authentication, patching, least privilege and segmentation, together with watchful monitoring, turn a potential catastrophe into a recoverable incident.