Security Fundamentals: Identity and Crypto · 4 of 5
Malware and Ransomware
Malware is software turned against its owner; ransomware is the business model that makes digital extortion scale.
A computer does exactly what its instructions tell it to do, even when those instructions serve an attacker instead of the person or organization that owns it. Malware, short for malicious software, is any code written or repurposed to cause harm, steal value, spy, disrupt work, or give someone unauthorized control. Ransomware is a particularly visible form of malware because it turns that control into a direct demand: pay, or lose access to your systems, your data, or your reputation.
Start with software and trust
Every digital system is a stack of instructions. Some instructions come from the operating system, the core software that manages hardware and applications. Some come from applications, scripts, updates, documents, browser extensions, and cloud services. The system cannot judge intent in the human sense. It decides what to run based on permissions, configuration, identity, and trust rules.
Malware abuses that trust. It may arrive as a file that looks harmless, a link that leads to a poisoned page, a stolen password used to log in like a real employee, or a software update path that has been compromised. Once it runs, it tries to do what any program does: read, write, copy, connect, hide, or change things. The difference is that it does those things for an unauthorized purpose.
This is why malware is not only a technology problem. It is a control problem. The practical question is not whether bad code exists; it is where code is allowed to run, what it can reach, how quickly unusual behavior is noticed, and how well the organization can recover when prevention fails.
What malware tries to do
Different malware families are named for their behavior, but the labels overlap. A trojan pretends to be useful while hiding a harmful function. A worm spreads itself across systems. Spyware watches activity or collects data. A bot turns a device into a remotely controlled participant in a larger network. A wiper destroys data. Ransomware blocks access to data or systems and demands payment.
The names matter less than the outcomes. Malware usually seeks one or more of four things: control, information, money, or disruption. A single incident can involve several kinds at once. For example, an attacker may use a stolen password to install a remote access tool, use that access to steal files, then deploy ransomware to encrypt servers.
Modern malware often looks less like a single evil program and more like a toolchain. Attackers combine scripts, legitimate administration tools, cloud storage, credential theft, and custom code. This makes detection harder because not every step looks obviously malicious when viewed alone.
How infections begin
An infection begins when an attacker finds a way to make the victim environment execute instructions or grant access. Phishing, which is deceptive messaging designed to make someone click, open, approve, or reveal something, is common because people are part of every system. So are stolen credentials, which are usernames, passwords, tokens, or keys that let an attacker appear legitimate.
Software flaws also matter. A vulnerability is a weakness that can be exploited, such as a server that accepts a dangerous request or an application that mishandles a file. Patching, which means applying software updates that fix known flaws, reduces this risk but does not remove it. Some attacks use newly discovered flaws before defenders have time to patch.
Supply chain compromise is another route. If an attacker compromises a trusted vendor, update service, managed service provider, or widely used library, the malicious code may arrive through a channel that organizations normally allow. This is especially difficult because trust is being abused at a distance.
- Email attachments and links that persuade a user to run code or enter credentials.
- Stolen or guessed passwords, especially where multi-factor authentication is not enforced.
- Unpatched internet-facing systems such as remote access gateways, web servers, and file transfer tools.
- Compromised vendors, software updates, scripts, or shared libraries.
- Removable media or unmanaged devices connected to trusted networks.
What makes ransomware different
Ransomware is malware used for extortion. Early ransomware mostly encrypted local files and displayed a payment demand. Encryption is a mathematical process that transforms readable data into unreadable data unless the right key is available. In a ransomware attack, the attacker keeps or controls that key.
Many current ransomware operations use double extortion. First, they steal data. Then they encrypt or disrupt systems. The victim is pressured both by operational downtime and by the threat that sensitive data will be published, sold, or used against customers, employees, or partners. Some groups add a third pressure point by contacting customers or regulators.
The ransomware itself is only the final visible stage. Before that, attackers may spend days or weeks exploring the network, escalating privileges, disabling security tools, finding backups, and identifying the systems whose loss will hurt most. The goal is leverage, not just damage.
Defense is layered because failure is normal
No single control stops all malware. People make mistakes, software has flaws, credentials leak, and attackers adapt. Strong defense assumes that one layer will fail and makes sure another layer can still limit the damage.
The first layer is reducing opportunity: keep systems patched, remove unnecessary services, restrict where software can run, and require multi-factor authentication, which means a login needs more than a password. The second layer is limiting blast radius: give users and systems only the access they need, separate critical systems from ordinary workstations, and prevent one compromised account from reaching everything.
The third layer is detection and response. Endpoint detection and response, often shortened to EDR, is software that watches laptops, servers, and other endpoints for suspicious behavior and helps investigators contain it. Logging, alerting, and practiced incident response matter because ransomware is easiest to stop before the final encryption stage.
Recovery depends on decisions made before the attack
Backups are copies of data kept so systems can be restored after loss or corruption. For ransomware, ordinary backups are not enough. Attackers often try to find and destroy backups before encrypting production systems. Useful backups are isolated, protected from routine administrator accounts, monitored, and regularly tested by restoring real systems, not just by checking that files exist.
Recovery also requires priorities. Not every system can return at once. Organizations need to know which services are essential, what data those services require, who can approve risky actions, how to communicate if email or chat is down, and when to involve legal counsel, insurers, regulators, law enforcement, customers, and suppliers.
A recovery plan that has never been exercised is a theory. A tabletop exercise, which is a discussion-based rehearsal of an incident, exposes missing phone numbers, unclear authority, weak backups, and unrealistic recovery targets before the organization is under pressure.
The decisions leaders and practitioners actually face
Malware risk becomes real in budget meetings, architecture reviews, vendor choices, and incident calls. A leader may need to decide whether to delay a product launch to patch a critical system. An architect may need to decide whether a convenience feature creates too much access between environments. An operations team may need to decide whether to shut down a network segment to contain spread, even if that interrupts work.
Good decisions start with clear trade-offs. More access often improves speed but increases blast radius. More monitoring improves detection but requires skilled people, careful privacy choices, and disciplined tuning. More standardization can reduce weak spots but may create common failure modes. Outsourcing can add expertise but also adds dependency and shared responsibility.
Ransomware also forces hard governance questions before a crisis. Who has authority to declare an incident? Who can take systems offline? Who speaks to customers? Under what conditions would the organization consider paying, and who must be consulted first? These are business decisions with technical inputs, not technical decisions alone.
- Prioritize patching based on exposure, exploit activity, and business criticality, not only on a calendar.
- Fund identity controls such as multi-factor authentication and least privilege before adding more complex tools.
- Measure backup recovery time with restore tests, not vendor promises or storage reports.
- Segment networks so compromise of one workstation does not automatically endanger critical services.
- Create an incident authority model so urgent containment actions do not wait for improvised approval.
What to do when ransomware is suspected
The first goal is containment. If files are suddenly renamed, ransom notes appear, security tools shut down, or many systems begin failing at once, disconnect affected machines from the network where safe to do so, preserve evidence, and activate the incident response plan. Do not rush to wipe systems before investigators understand how the attackers entered and what they touched.
The second goal is clarity. Teams need to determine whether the attacker still has access, which accounts are compromised, what data may have been stolen, which backups are clean, and what systems are safe to restore. Restoring too quickly into an environment the attacker still controls can repeat the incident.
The third goal is disciplined communication. Employees need simple instructions. Customers and partners may need timely notice. Legal and regulatory duties may apply. Public claims should be careful because early facts are often incomplete. The best incident response is calm, documented, and coordinated.
Key takeaways
- Malware is malicious software; ransomware is malware used to extort payment or concessions.
- Ransomware usually follows earlier steps such as credential theft, exploration, data theft, and disabling defenses.
- Layered defense matters because no single control can prevent every infection or misuse of access.
- Backups help only when they are protected from attackers and proven through real restore tests.
- Leadership choices about access, downtime, payment, disclosure, and authority shape the outcome as much as technical tools do.
Glossary
- Malware
- Software or code designed or used to harm systems, steal information, spy, disrupt operations, or give unauthorized control.
- Ransomware
- Malware that supports extortion by blocking access to systems or data, threatening data exposure, or both.
- Phishing
- A deceptive message or interaction designed to make someone click, open, approve, pay, or reveal sensitive information.
- Credential
- A proof of identity such as a username, password, token, key, or certificate used to access a system.
- Vulnerability
- A weakness in software, hardware, configuration, or process that can be exploited to cause unintended behavior.
- Encryption
- A process that transforms readable data into unreadable data unless the right key is available.
- Multi-factor authentication
- A login method that requires more than one kind of proof, such as a password plus a code, device, or biometric check.
- Endpoint detection and response
- Security software that monitors endpoints such as laptops and servers for suspicious behavior and helps contain incidents.
- Backup
- A separate copy of data kept so information or systems can be restored after deletion, corruption, failure, or attack.