1. Introduction
Imagine arriving at work, turning on your computer, and discovering that you can no longer open any of your files. A message appears on the screen demanding money in exchange for restoring access. This is a common example of a ransomware attack. Ransomware is a type of malicious software that prevents users from accessing their data or systems, often by encrypting files.
Ransomware is a serious cybersecurity threat because it can disrupt organisations such as schools, banks, hospitals and businesses. It can also cause financial losses, reputational damage and data breaches.
Ransomware attacks can use different techniques, including file-based and fileless approaches. Understanding these techniques helps organisations choose suitable methods for prevention, detection and response.
2. What Is Ransomware?
Ransomware is a type of malware that restricts access to a computer system or its data and demands payment to restore access. Attackers may request payment in cryptocurrency because it can make tracing transactions more difficult, although cryptocurrency payments are not completely untraceable.
Ransomware attacks commonly involve three activities:
- Encryption: The malware encrypts files using cryptographic keys, making them unreadable without the appropriate decryption key.
- Data theft: Some attackers copy sensitive information before or during an attack and threaten to publish it if the victim does not pay. This is sometimes called double extortion.
- Ransom demand: Attackers display a message explaining that the victim's files or data have been compromised and demanding payment.
Example: Imagine an employee opening a malicious email attachment. Soon afterwards, documents on the employee's computer become inaccessible, and a ransom note appears demanding payment within a specified period.
Ransomware has caused serious real-world disruption. In 2021, a ransomware incident affecting Colonial Pipeline led the company to temporarily shut down its pipeline operations. In 2017, the WannaCry attack disrupted healthcare services across the UK's National Health Service (NHS), resulting in thousands of cancelled appointments.
3. What Is File-Based Ransomware?
File-based ransomware is a type of ransomware that relies on malicious files or programs to carry out an attack. These files may be executable programs, scripts or documents containing malicious code. When a victim opens or runs the infected file, the malicious code can execute and begin encrypting files.
It can reach a computer through several methods, including:
- Malicious email attachments.
- Fake software downloads.
- Infected websites.
- Infected USB drives.
- Pirated programs and fake software updates.
Example: An employee receives an email that appears to contain an invoice. The attachment is disguised as a document, but it contains or downloads malicious code. When the employee opens it and follows the requested instructions, the ransomware executes, encrypts files and displays a ransom note.
Real-world example: Locky ransomware, first reported in 2016, was distributed through spam emails containing malicious Word documents. When users enabled the document's macros, the malicious code downloaded and installed the ransomware, which then encrypted files.
Because file-based ransomware often creates or uses malicious files on a device, antivirus software may detect some attacks through file scanning and known malware signatures. However, this does not mean every file-based attack is easy to detect.
4. What Is Fileless Ransomware?
Fileless malware is malware that relies less on traditional malicious files stored on a computer's disk. Instead, it may misuse legitimate system tools, scripts and memory to carry out malicious activities. Fileless ransomware applies these techniques to ransomware attacks.
Some common techniques include:
- Misusing trusted tools: Attackers may abuse legitimate tools such as PowerShell or Windows Management Instrumentation (WMI). Since these tools are normally used for administration, their activity can sometimes appear legitimate.
- Working in memory: Some malicious instructions execute in a computer's RAM (Random Access Memory) instead of relying entirely on a traditional executable file stored on disk.
- Avoiding traditional detection: Antivirus software that focuses mainly on scanning files may miss certain fileless techniques. Monitoring suspicious behaviour, scripts and system activity is also important.
However, fileless does not always mean that an attack leaves no files behind. Some attacks use a combination of malicious documents, scripts, memory-based execution and other techniques. They may also leave logs or forensic evidence.
Example: PowerWare, a ransomware family reported in 2016, used malicious Word documents and PowerShell to execute ransomware-related activity and encrypt files. This example demonstrates how attackers can misuse legitimate system tools as part of a ransomware attack.
5. File-Based vs Fileless Ransomware
Although both approaches can lead to file encryption and data loss, they differ in how malicious activity is carried out.
| Feature | File-Based Ransomware | Fileless Ransomware |
|---|---|---|
| Execution | Relies on malicious files or programs | May misuse legitimate tools, scripts and memory |
| Storage | Often creates or uses files on disk | May operate mainly in memory |
| Detection | File scanning and malware signatures can help | Behaviour and activity monitoring are important |
| Techniques | Malicious attachments and executable files | PowerShell, scripts and legitimate system utilities |
| Investigation | Malicious files can provide evidence | Memory analysis, logs and activity records can be important |
The main difference is the way the malicious activity is executed. File-based ransomware commonly relies on malicious files, while fileless techniques may abuse tools already available on the system.
However, these categories are not always completely separate. Some ransomware attacks combine both approaches. Therefore, security teams should not depend on file scanning alone. They should also monitor system behaviour, memory activity and unusual use of legitimate tools.
6. How Do These Attacks Work?
Although ransomware attacks can vary, many follow a few common stages:
1. Initial Access
Initial Access is the first step of an attack. It means the attacker finds a way to enter a network or system for the first time. Think of it like a thief finding a way into a building.
Common ways attackers get in:
- Targeted phishing (spearphishing): The attacker sends a fake email designed for a particular person or organisation. It looks genuine and trustworthy, encouraging the victim to open an attachment, click a link or share sensitive information.
- Attacking public-facing websites or servers: The attacker looks for security weaknesses in websites, applications or servers that are accessible over the internet.
How long can the access last?
- Long-lasting access: An attacker may use stolen usernames and passwords or remote login services to access a system again. Access may continue until the compromised credentials or entry point are secured.
- Short-lived access: If the attacker relies on stolen credentials, changing the password and revoking active sessions may block that particular way in. However, other attacker access may remain and must also be investigated.
2. Execution
The malicious activity begins. In a file-based attack, a malicious file or program may execute. In a fileless-style attack, the attacker may misuse legitimate tools such as PowerShell.
3. Privilege Escalation
The attacker may attempt to gain higher permissions, such as administrator privileges, to access additional files and system resources.
4. Impact
The ransomware may encrypt files, disrupt systems or steal sensitive information. Some attackers carry out data theft before encrypting files.
5. Ransom Demand
A ransom note appears, demanding payment in exchange for a decryption key or promising not to publish stolen information.
Not every ransomware attack follows exactly the same stages. Some attacks may skip certain steps or carry them out in a different order.
7. How Can Ransomware Attacks Be Prevented?
Organisations can reduce the risk and impact of ransomware by following several cybersecurity practices:
Maintain regular backups: Keep multiple copies of important data and ensure that at least one backup is offline or isolated from the main network. The 3-2-1 backup rule recommends keeping three copies of data, using two different types of storage, with one copy stored off-site. Test backups regularly to ensure that data can be restored.
Keep systems updated: Install security updates for operating systems, applications and other software. Updates help fix known vulnerabilities that attackers may exploit.
Improve email and phishing awareness: Train employees to recognise suspicious links, unexpected attachments and fake messages. Avoid opening attachments from untrusted sources.
Use Endpoint Detection and Response (EDR): EDR tools monitor endpoint activity and can help identify suspicious behaviour, investigate threats and respond to incidents.
Apply least-privilege access: Give users and applications only the permissions they need to perform their tasks. This can limit the damage an attacker causes if an account is compromised.
Restrict unnecessary scripts and applications: Control which scripts and programs can run, especially when they are not required for normal business operations.
Monitor network activity: Use network monitoring and security tools such as Security Information and Event Management (SIEM) systems to identify unusual activity and investigate possible threats.
Prepare an incident response plan: Organisations should decide in advance how to identify, contain and recover from ransomware incidents. A tested plan can reduce confusion, downtime and recovery costs.
8. Conclusion
File-based ransomware relies on malicious files or programs, whereas fileless techniques may misuse legitimate system tools, scripts and memory to carry out malicious activities. Both approaches can cause serious disruption, data loss and financial damage. Understanding how they work helps organisations improve their security practices. Regular backups, software updates, employee awareness, endpoint monitoring and a tested incident response plan are important parts of ransomware defence. Being prepared before an attack occurs is always better than trying to plan a response during a crisis.
