Preventing Malware and Ransomware Attacks in Your Business
Malware and ransomware prevention requires overlapping layers of technical controls — no single tool provides complete protection. This guide covers the attack pathways attackers use, the controls that block each pathway and the backup and response practices that limit damage when prevention fails.
Nathan Hill-Haimes
Technical Director
How Malware and Ransomware Enter Business Networks
Understanding the attack pathways is the starting point for effective prevention. The NCSC's incident data consistently identifies a small number of routes accounting for the vast majority of malware and ransomware incidents affecting UK SMEs:
- Phishing emails: Malicious links or attachments in email remain the most common delivery mechanism. Users are socially engineered into clicking a link, downloading an attachment or entering credentials on a fake page.
- Exploitation of unpatched vulnerabilities: VPN appliances, remote desktop (RDP), Exchange Server and other internet-facing systems with known unpatched vulnerabilities are actively scanned and exploited by ransomware affiliates. In many well-documented incidents, exploitation occurred within days of public vulnerability disclosure.
- Compromised credentials: Stolen credentials (from phishing, data breach dumps or brute-forcing weak passwords) used to authenticate to internet-facing services — VPN, RDP, Microsoft 365 — provide direct network access without any malware delivery required.
- Malicious websites and drive-by downloads: Browsing to compromised or malicious websites can result in malware installation, particularly on unpatched browsers or systems with Java/Flash (legacy systems).
- USB and removable media: Less common in enterprise environments but still relevant for industrial and manufacturing settings.
Prevention Layer 1: Reduce the Attack Surface
The first layer of prevention limits what attackers can reach before they can attempt exploitation:
- Patch management: Apply critical and high-severity patches within 14 days (industry best practice) — prioritising internet-facing systems, VPN appliances and remote access infrastructure. Automated patch management tools (Windows Update for Business, NinjaRMM, Action1) reduce the operational burden.
- Disable unnecessary services: RDP should not be exposed directly to the internet. If remote desktop access is required, it should be accessible only via VPN or Zero Trust network access (ZTNA), not via a public port. Audit internet-facing services regularly.
- Email filtering: Anti-spam, Safe Attachments (sandboxed detonation) and Safe Links (time-of-click URL scanning) reduce the volume of malicious content reaching users' inboxes.
- DNS filtering: Block connections to known malicious domains at the DNS level, preventing malware that has reached a device from calling home or downloading additional payloads.
Prevention Layer 2: Protect Endpoints
Endpoint detection and response (EDR) is the primary control for detecting and blocking malware that bypasses email and network filters:
- EDR vs traditional antivirus: Traditional antivirus uses signatures to detect known malware. EDR uses behavioural analysis — detecting suspicious behaviour (ransomware-like file encryption activity, process injection, living-off-the-land techniques) regardless of whether the specific malware signature is known.
- Automated response: Modern EDR platforms can automatically isolate an infected endpoint from the network, terminate malicious processes and collect forensic evidence while containing the spread.
- Managed EDR: EDR technology without monitoring is of limited value — alerts that sit unreviewed do not result in containment. Managed EDR (via an MDR service) ensures that detections are acted upon, including outside business hours when attacks commonly detonate.
Prevention Layer 3: Identity and Access Controls
Many malware infections spread through credential-based techniques — attackers steal credentials on one machine and use them to move laterally to others. Access controls limit this:
- MFA on all accounts: Prevents compromised credentials from being used to authenticate to cloud services or VPN
- Least privilege: Users should not have local administrator rights on their own workstations unless required for their role. Local admin rights are frequently required for malware to install and persist.
- Privileged Access Workstations (PAW): For IT administrators, a dedicated workstation used only for privileged tasks reduces the risk of admin credentials being compromised on a general-purpose device
- Credential Guard: Windows Defender Credential Guard protects NTLM hashes in memory, reducing the effectiveness of credential harvesting tools used in lateral movement
Prevention Layer 4: Backups
Backups do not prevent malware infection, but they are what determines whether a ransomware attack results in data loss and ransom payment pressure. The 3-2-1 backup rule remains the minimum: three copies of data, on two different media types, with one copy offline or air-gapped.
Critical points for ransomware-resilient backups:
- Offline or immutable backups cannot be encrypted by ransomware — cloud backup with object lock or tape backups kept offline satisfy this requirement
- Backup systems should have separate credentials from your main environment — if attackers compromise your domain admin account, they should not automatically have access to delete your backups
- Backup restoration should be tested regularly — backup test failures are most commonly discovered during actual incidents
- Microsoft 365 data is not automatically backed up by Microsoft — a third-party backup solution for Exchange, SharePoint and OneDrive data is necessary
What to Do When Prevention Fails
No prevention stack is 100% effective. The incident response priorities when malware is detected are:
- Isolate: Disconnect the affected device from the network immediately — WiFi, Ethernet and any VPN connections. This limits lateral spread.
- Contain: Identify other potentially affected devices through EDR telemetry or network traffic analysis
- Preserve: Do not reimage the affected machine before forensic evidence is collected — this evidence determines how the attacker got in
- Communicate: Notify your IT support or MDR provider, your cyber insurance underwriter and (if personal data may be affected) begin the GDPR breach assessment process
- Recover: Restore from clean backups once the initial compromise vector and scope is understood
How Many Prevention Layers Do You Have in Place?
AMVIA can assess your current malware and ransomware prevention controls and identify the gaps most likely to be exploited — providing a prioritised remediation plan.
Frequently Asked Questions
There is no single most important control — ransomware prevention needs overlapping layers. If forced to prioritise, the combination of MFA (blocks credential-based access), fast patching (removes known exploitation routes) and managed EDR (detects what bypasses preventive controls) delivers the biggest risk reduction for most UK SMEs. Ransomware affecting UK businesses roughly doubled through 2025 (DSIT Cyber Security Breaches Survey 2025), which is why detection matters as much as prevention.
The NCSC and UK law enforcement recommend against paying. Payment does not guarantee recovery — many victims pay and receive non-functional decryptors — it funds criminal groups and marks you as a soft target for repeat attacks. The case against paying is strongest when you hold clean offline backups. Recovery costs land on you whether or not you pay: the government's Cyber Security Breaches Survey 2025 put the average cost of the most disruptive breach at £3,550 for UK businesses reporting a financial outcome, covering downtime, lost business and repairs.
Once detonated, modern ransomware can encrypt files across a network in 30 minutes to a few hours. The earlier access-to-detonation period is usually far longer — attackers often spend days or weeks establishing persistence and exfiltrating data first. That dwell time is your window to detect and contain before the damaging encryption phase, which is why 24/7 monitoring is decisive.
Microsoft provides data-centre resilience, not a backup service. It does not guarantee recovery beyond standard retention windows (typically 90 days for deleted items) and does not protect against an attacker who encrypts OneDrive files or mass-deletes SharePoint content with stolen credentials. A third-party Microsoft 365 backup is necessary for full data protection.
A drive-by download installs malware simply because a user visited a malicious or compromised website — no clicking required beyond loading the page. Prevent it by keeping browsers and extensions fully patched, using DNS or content filtering to block known-bad domains, and running EDR that flags suspicious processes spawned from the browser.
Cyber Essentials covers the five technical controls most relevant to malware: firewalls, secure configuration, user access control, malware protection and patch management. It is a strong baseline rather than a complete defence — it does not include 24/7 detection or backup resilience. AMVIA holds Cyber Essentials Plus and builds detection and recovery on top of that baseline.
Related Reading
What Is Ransomware? | Plain English Guide for Business
How ransomware works, real UK examples and the full picture of what a ransomware incident involves.
Ransomware Protection for UK Businesses | AMVIA Guide
Backups, endpoint security, email filtering and response planning for ransomware protection.
Phishing Protection for UK Businesses | AMVIA Guide
Phishing controls that address the most common initial access vector for malware and ransomware.
Protect your business → Get Cybersecurity Assessment