Skip to content

Sandeep Bhalla's Analysis

An Epistemic Odyssey through Data, Doubt and Discovery.

Menu
  • Home
  • Economics
  • Politics
  • Culture
  • Humour
  • Geopolitics
  • India
Menu
Ransomware protection for Windows

Windows protection from unwanted Ransomware

Posted on August 1, 2025

Protecting Windows computer from Ransomware

Table of Contents

Toggle
  • Protecting Windows computer from Ransomware
    • Common Delivery Methods for Ransomware
  • How to Sandbox Your Downloads Folder (No Execution Allowed)
    • GUI Method
    • PowerShell Equivalent (command line method)
    • Optional: AppLocker Rule (for Pro/Enterprise Edition of Windows)
    • SmartScreen + MOTW
    • SmartScreen Settings
      • 📊 Result

The ransomware attack on Knights of Old, a 158-year-old UK logistics firm (later known as KNP Logistics), was a textbook case of how one weak password can unravel an entire legacy. In 2023, the ransomware gang Akira infiltrated KNP’s systems by guessing an employee’s password. Once inside, they encrypted all company data, locked staff out of critical systems, and left a chilling ransom note:

“If you’re reading this it means the internal infrastructure of your company is fully or partially dead…”

Ransomware is a type of malware that encrypts or blocks access to your files or systems. The attacker then demands a ransom payment to restore access. If unpaid, the data may be leaked, sold, or permanently destroyed.

Common Delivery Methods for Ransomware

  • Phishing Emails: Fake messages trick users into clicking infected attachments or links.
  • Drive-by Downloads: Malware installs when visiting compromised websites.
  • Remote Desktop Protocol (RDP): Attackers brute-force login credentials to gain access.
  • Malvertising: Legit-looking ads hide malicious code.
  • Software Vulnerabilities: Unpatched systems are easy targets.

Though that was an attack on Windows machine, Ransomware is known to have attacked Linux virtual machines as well. But so far has no penetrated Linux OS stand alone computers. Therefore it is better to protect the Windows by preventing any downloaded file from executing itself or by accident. This will help to do that. This will enable the same protection in Windows which is there in Linux by default.

How to Sandbox Your Downloads Folder (No Execution Allowed)

Think of your Downloads folder as quarantine—not a launchpad. Follow these steps to make sure anything dropped here stays inert until granted explicit parole.

GUI Method

  1. Navigate to C:\Users\<YourUsername>\Downloads
  2. Right-click → Properties → Security tab
  3. Click Advanced → Disable Inheritance → Convert permissions
  4. Remove Read & Execute for Users, preserve Read and Write
  5. Apply changes and exit

PowerShell Equivalent (command line method)

(Change USERPROFILE) with your user name)


$downloads = "$env:USERPROFILE\Downloads"
$acl = Get-Acl $downloads
$rule = New-Object System.Security.AccessControl.FileSystemAccessRule("Users","Read,Write","ContainerInherit,ObjectInherit","None","Allow")
$acl.SetAccessRuleProtection($True, $False)  # Disable inheritance
$acl.ResetAccessRule($rule)
Set-Acl -Path $downloads -AclObject $acl
  

Optional: AppLocker Rule (for Pro/Enterprise Edition of Windows)

Use Local Security Policy → AppLocker → Create path rules to block %USERPROFILE%\Downloads. Apply via GPO if needed.

SmartScreen + MOTW

  • Enable SmartScreen: Settings → Privacy → Check apps and files
  • Downloaded files are tagged with MOTW (Mark of the Web)—layered defense!

🧪 If That Option Still Doesn’t Appear…

Let’s verify SmartScreen status via PowerShell:

Get-MpPreference | Select-Object SmartScreenForExplorer

If it returns Disabled, you can enable it with:

Set-MpPreference -SmartScreenForExplorer Enabled

It requires admin rights and Windows Defender to be active.

SmartScreen Settings

  1. Go to Privacy & security in Settings.
  2. Scroll down and click Windows Security.
  3. Then click Open Windows Security.
  4. In the Windows Security window, choose App & browser control.
  5. Under Reputation-based protection, click Reputation-based protection settings.
  6. Look for Check apps and files and toggle it On.

 

Want me to build a script that checks all SmartScreen toggles and logs their status? Or troubleshoot if a Group Policy or registry setting is suppressing the UI? I can modularize it for reuse.

📊 Result

File TypeBehavior in Downloads
.exeBlocked
.ps1, .batBlocked
Moved manually to trusted folderExecution possible (if permissions restored)

Pro tip: This setup mimics chmod -x behavior from Linux—execution must be earned, not assumed.

Now no win.exe or other ransomeware file can be accidentally run to install ransomware on your compute. Be safe and be happy.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *


Recent Posts

  • Artificial Intelligence (AI) is all about Control and that is Politics
  • Chandan Gupta Case: Third-Party Funding of Defence is not Legal Aid
  • Julia Roberts fails herself in “After the Hunt” movie
  • Socialism: Who is Left and Who is Right?
  • Why I Walked Out of “After the Hunt” after 50 Minutes

Recent Comments

  1. Sandeep on Why Media is Silent on decline of Congress Party in India
  2. Artificial Intelligence (AI) is all about Control and that is Politics - Sandeep Bhalla's Analysis on Macaulay’s Minute on Indian Education
  3. Socialism: Who is Left and Who is Right? - Sandeep Bhalla's Analysis on India’s most lucrative start ups: Political Parties
  4. Buddhdev Pandya on Why Media is Silent on decline of Congress Party in India
  5. Bidhusri on British Empire’s Exploitation of Girls and Prostitution for Army Personnel in India.

Archives

  • December 2025
  • November 2025
  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025

Categories

  • Army
  • Artificial Intelligence (AI)
  • Aviation
  • Blog
  • Business
  • Civilisation
  • Computers
  • Corruption
  • Culture
  • Economics
  • Education
  • epistemology
  • Fiction
  • Finance
  • Geopolitics
  • Health
  • History
  • Humanity
  • Humour
  • India
  • Judges
  • Judiciary
  • Law
  • lifestyle
  • Linux
  • Movie
  • National Security
  • Philosophy
  • Politics
  • Relationships
  • Religion
  • Romance
  • Sports
  • Terrorism
  • Tourism
©2025 Sandeep Bhalla's Analysis | Design: Newspaperly WordPress Theme