Ransomware is malicious software that encrypts files on a computer or network and then demands payment for the key. Most strains also leave a note naming a contact method and a deadline. Many current attacks go further: before encrypting, the attackers copy data out and threaten to publish it, so paying for a decryption key does not remove the second problem.
Common ways in include phishing emails with attachments or links, stolen or guessed remote desktop and VPN credentials, and unpatched software on servers exposed to the internet. Once inside, attackers often spend days exploring the network, finding backups, and disabling security tools before they start encrypting.
The best defense is boring. Keep backups that the infected network cannot reach, such as offline or immutable copies, and test restoring from them. Apply security updates, turn on multi-factor authentication for email and remote access, and limit who has administrator rights. Train staff to question unexpected attachments.
If you are hit, disconnect affected machines from the network, but leave them powered on if you can, since memory may hold evidence. Don't wipe or reinstall yet. Tell your insurer, and consider the law enforcement reporting options and any breach notice duties that apply to your business. Paying is a business decision with no guarantee, and decryptors from criminals can be slow or incomplete.
Encryption scrambles data so that only someone with the right key or password can read it. That is the point, and it is why encrypted drives are so hard to recover. If the drive fails or the file system is damaged, the data is still encrypted, and any recovery has to read the damaged storage and also have the key.
The main tools are BitLocker on Windows, FileVault on macOS, LUKS on Linux, and the hardware or software encryption built into phones and many SSDs. Each stores the key material in a header or in the system's security chip. If that header is damaged, the drive can become unreadable even to someone who has the password.
Recovery is possible when you have the password or a recovery key and the storage can be read. A lab can image a failing drive and then unlock the image. What no lab can do is guess a strong password, break modern encryption, or recover data when both the key and the header are gone.
Keep recovery keys somewhere separate from the device: a printed copy in a safe, a password manager, or the account where the system saved it. If an encrypted drive starts to fail, back it up right away while it still works, and record where the key lives before anything else goes wrong.
Advanced · encryption · bitlocker · security
Phishing and Data Loss
How phishing attacks lead to data compromise
Phishing is a message designed to trick someone into giving away a password, clicking a malicious link, opening an infected attachment, or sending money. It arrives by email, text message, phone call, or a fake login page, and it often imitates a bank, a delivery service, a coworker, or a software vendor.
How does it lead to data loss? A stolen password can let an attacker into email or cloud storage, where they may read, copy, or delete files and set up forwarding rules to watch for more. An infected attachment can install ransomware or a remote access tool. Business email compromise uses a hijacked or spoofed address to ask for payments.
Warning signs include urgency, unexpected requests, a sender address that is slightly off, links that point somewhere different than the text suggests, and attachments you weren't expecting. The most effective protections are multi-factor authentication, a unique password for each account, and checking unexpected requests by another channel.
If you clicked, change the password from a clean device, sign out all sessions, check mail rules and recent activity, and tell your IT contact. If you opened an attachment, disconnect the computer from the network.
Beginner · phishing · email · social engineering
BitLocker Recovery
Recovering BitLocker encrypted drives
BitLocker is Microsoft's drive encryption for Windows. When it is on, the drive's contents are unreadable without a key. Normally, the key is released automatically by the computer's TPM chip when the system boots as expected,. Windows asks for a recovery key when something changes, such as a replaced motherboard, altered firmware settings, a drive moved to another computer, or a boot problem.
The recovery key is a 48-digit number. Where it is depends on how encryption was set up. For a personal account, it is often saved in the Microsoft account online. On a work or school computer it may be stored in Active Directory or Microsoft Entra ID, where an administrator can retrieve it. It may also have been printed or saved to a USB stick.
If you have the key, the drive can be unlocked and data copied, even from another computer. If you have the password but the drive is damaged, a lab can image the damaged drive and unlock the image. If you have neither the key nor the password, and the encryption is working as designed, there is no practical way in.
Look for the key before doing anything to the drive. Do not reset the PC, reinstall Windows, or format the drive, since each can destroy the information the data depends on.
Advanced · bitlocker · encryption · tpm
FileVault Recovery
Apple FileVault encryption recovery
FileVault is Apple's full-disk encryption for Mac. When it is on, the startup disk is encrypted, and the keys are protected by the user's login password and by the Mac's hardware. Without the right credentials, the data is unreadable.
Apple provides several ways back in. Each user account that is allowed to unlock the disk can do so with its own password. A personal recovery key, a long string of letters and numbers shown when FileVault is turned on, can unlock the disk if you save it. You may have chosen to let your iCloud account reset the password instead, in which case your Apple ID can help. Organizations often use an institutional recovery key held by IT.
Check which of these applies before anything drastic happens. If you can still log in to the Mac, make a backup first. If the Mac is dead but the drive can be read, such as on older Intel Macs, the drive can be imaged and unlocked with the password or recovery key. On Apple silicon Macs and ones with a T2 chip, the key is tied to the machine's hardware, and moving the drive to another computer will not work.
Do not reset the Mac or erase the disk to get past a forgotten password. That deletes the encryption keys, and the data goes with them.
Advanced · filevault · encryption · apple
LUKS Encryption Recovery
Linux LUKS encrypted volume recovery
LUKS, short for Linux Unified Key Setup, is the standard disk encryption format on Linux, handled by the cryptsetup tool. A LUKS volume starts with a header that stores the details of the encryption and a set of key slots. Each slot holds a copy of the real master key, encrypted under a different passphrase or key file. LUKS1 supports eight slots, and LUKS2 supports more.
That design is flexible: you can add a second passphrase, give one to an administrator, or remove one without re-encrypting the drive. It also has a weak point. The master key exists only in the header's key slots. If the header is damaged or overwritten, which can happen with a bad partitioning tool or a failing sector at the start of the disk, the data cannot be decrypted, even with the right passphrase.
The remedy is a header backup. The command cryptsetup luksHeaderBackup saves the header to a file, which should be stored somewhere separate and safe. With a backup, a damaged header can be restored with luksHeaderRestore. Without one, a partly damaged header can sometimes be repaired, but only if enough of the key slot survives.
If an encrypted Linux drive fails, image it first, before attempting to open it. Never run luksFormat on a volume you want to keep, since it replaces the header. Make the header backup right after setup.
Advanced · luks · linux · encryption
Cryptocurrency Recovery
Recovering cryptocurrency wallet data
Cryptocurrency is not stored on your computer. What sits on a drive, phone, or hardware wallet is the key that lets you move coins on the blockchain. Lose the key and the coins stay where they are, visible to everyone and spendable by no one. So real recovery work means finding keys: a wallet file such as Bitcoin Core's wallet.dat, a browser extension's data folder, or a seed phrase that was typed into a note or saved in a screenshot.
When the device fails, a lab can image the drive and search it for wallet files and deleted copies of them. A file found this way is often still encrypted with a passphrase, and that passphrase cannot be bypassed if it is forgotten, beyond guessing at it. Seed phrases written on paper, or stored in a password manager, are far more reliable than anything on one drive. Stop using the device, and do not reinstall the operating system, because new writes can overwrite old wallet data.
The opposite service is a scam. Nobody can reverse a confirmed transaction or pull back crypto that was stolen or sent to a fraudulent site. Companies and individuals who promise to recover stolen coins for an upfront fee, or who find you after you post about a loss, are running the second round of the fraud.
Advanced · cryptocurrency · wallet · private keys
Data Wiping vs Recovery
Understanding data sanitization methods
Wiping and recovery are opposites, and understanding the first tells you whether the second is possible. When you delete a file, the system usually marks its space as free and leaves the contents in place. That is why deleted files can often be recovered. A wipe overwrites the contents, so there is nothing left to bring back.
On a hard drive, a single full overwrite with zeros or random data is generally enough to stop ordinary software recovery. NIST Special Publication 800-88 is the standard guide to media sanitization, and it treats a properly done overwrite as sufficient for modern drives. A quick format or an emptied Recycle Bin is not a wipe. Solid-state drives are different, because overwriting does not reliably reach every cell, and the controller keeps spare areas. Secure erase commands, encryption with the key destroyed afterward, or physical destruction are more reliable there. Phones and many SSDs use the second method: a factory reset destroys the encryption key, which makes the stored data unreadable.
If you wiped a drive on purpose and then regret it, a lab can tell you whether the method used was one that destroys data. If you want a drive gone for good, use a method that matches the media, and verify afterward. Drives with sensitive data that cannot be wiped should be physically destroyed.
Intermediate · wiping · sanitization · overwrite
Types of Ransomware
Encryptors, lockers, extortion, and wipers
Encrypting ransomware scrambles files and demands payment for the key, and it's the most common kind. Screen lockers block access to the computer without encrypting files and are usually easier to clean up. Extortion-only attacks skip encryption and threaten to publish stolen data instead.
Many modern attacks combine encryption with data theft, often called double extortion, so restoring from backup solves the outage but not the leak. Some malware that looks like ransomware is really a wiper: it destroys data, and no key exists whether or not anyone pays.
Identifying the variant from the ransom note, the file extensions, and its behavior helps determine whether a free decryptor exists and which recovery options make sense.
Disconnect affected computers from the network by unplugging cables and turning off Wi-Fi, but avoid powering machines off unless advised to; memory can hold evidence and occasionally keys. Disconnect backup drives and protect backup systems.
Don't delete ransom notes or encrypted files, don't run cleanup tools or reinstall systems, and don't contact the attackers before talking to your insurer, your attorney, and an incident response provider. Changing passwords from an infected machine can hand the attacker the new ones.
Document what you see: screenshots of the notes, which systems are affected, and when it was noticed. Report the attack to the FBI's Internet Crime Complaint Center (IC3). Those records matter for insurance, law enforcement, and any notification duties.
To work faster, many ransomware families encrypt only part of each file: the beginning, every few blocks, or a portion of the content. The file becomes unusable to normal software, but much of the original data is left untouched.
For large files such as databases, virtual machine disks, and video, this sometimes allows partial recovery: rebuilding headers, extracting intact records, or recovering whole files stored inside virtual disks.
Keep encrypted files exactly as they are, even if no decryptor exists today. Techniques and free decryptors appear over time, and some recoveries become possible later.
Consumer and small-business NAS devices are frequent ransomware targets: attackers scan the internet for them and exploit unpatched vulnerabilities or weak passwords. The attack runs on the NAS itself, encrypting shared folders in place.
Prevention is mostly configuration: keep firmware updated, don't expose the admin interface to the internet, disable services you don't use, use strong unique passwords with two-factor authentication, and keep snapshots and an offline backup.
If a NAS is hit, disconnect it from the network, avoid restarting or factory resetting it, and get advice before doing anything else. Snapshots the attacker didn't delete may hold clean copies, and free space on the drives sometimes still holds earlier versions of files.
Paying is a business decision with legal and practical sides. A working decryptor isn't assured, decryptors are often slow and unreliable, and payment doesn't ensure stolen data is deleted. Paying may also mark an organization as a willing target.
The US Treasury Department has warned that payments to sanctioned individuals or groups can create legal liability, and some industries and states have reporting requirements. Cyber insurance policies often set specific rules for how incidents and payments are handled.
Before any decision, involve your attorney, your insurer, and law enforcement, and get a professional assessment of whether backups, snapshots, or partial recovery could restore enough data without paying.
Disgruntled employees or contractors sometimes delete files, wipe laptops, or remove cloud data on their way out. The damage can look like an accident at first, or go unnoticed for weeks.
Work on two fronts: recovery and evidence. Preserve the affected systems and the user's devices without reusing or reimaging them, and collect logs from cloud services and servers before they roll over. Cloud recycle bins and retention can bring deleted data back if you move quickly.
A forensic examination can show what was deleted, when, and from which account, which matters if you take legal action. Talk to your attorney before confronting anyone.
After a ransomware attack, it's tempting to restore backups right away. If the attacker still has access through a compromised account, a remote-access tool, or a hidden foothold, the restored systems can be encrypted all over again.
Recovery should follow investigation: find how they got in, remove their access, reset credentials, fix the entry point, and then restore onto clean systems from backups known to predate the compromise.
Check restored data for malware, and confirm the backups weren't already partly encrypted before the attack was noticed. Restore the most critical systems first, in the order your incident plan sets out.