simeononsecurity / Applocker-Hardening

Ultimate Applocker Hardening Configuration Script.
https://simeononsecurity.com/github/Applocker-Hardening
MIT License
25 stars 1 forks source link
applocker applocker-rule hardening powershell powershell-script windows windows-10

Applocker-Hardening

Sponsor VirusTotal Scan

The following script is an automation process for installing AppLocker policies in a Windows environment using PowerShell. The script first sets the error handling preference to "silently continue" and elevates the privileges of the current process. It then sets the directory to the location of the script and installs the policies from the Files directory. The AppLocker service is then enabled and started, and the status of the service is checked. Finally, the active AppLocker rule categories are printed and the script tests the block rules for executables in the C:\Windows\System32 directory for the user "Everyone".

What does this script do?

Recommended reading:

How to run the script:

Manual Install:

If manually downloaded, the script must be launched from an administrative powershell in the directory containing all the files from the GitHub Repository

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force
Get-ChildItem -Recurse *.ps1 | Unblock-File
.\sos-applockerhardening.ps1

Automated Install:

The script may be launched from the extracted GitHub download like this:

iex ((New-Object System.Net.WebClient).DownloadString('https://simeononsecurity.ch/scripts/sosapplocker.ps1'))

 

Explore the World of Cybersecurity

  SimeonOnSecurity Logo

Links: