-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Harden Windows Security v0.6.9 (#391)
New optional sub-category for the Device Guard category: Mandatory mode for VBS (Virtualization based security) and Memory Integrity. New Optional sub-category for the Miscellaneous category: Enable support for long paths for programs in Windows. New Optional sub-category for the Miscellaneous category: Force strong key protection for user keys stored on the computer Updated wiki posts to reflect the recent changes in WDACConfig and Harden Windows Security module. During unprotection process, the logon/logoff audits that turn on in the Miscellaneous category are now reverted. Added process mitigations for the AppControl manager. They protect it against external threats.
- Loading branch information
Showing
70 changed files
with
415 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,6 +134,7 @@ | |
"notcontains", | ||
"ntdll", | ||
"NTFS", | ||
"NTLM", | ||
"OFAC", | ||
"ONENOTE", | ||
"operatingsystem", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
Harden-Windows-Security Module/Main files/C#/Protect Methods/DeviceGuard_MandatoryVBS.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
|
||
#nullable enable | ||
|
||
namespace HardenWindowsSecurity | ||
{ | ||
public partial class DeviceGuard | ||
{ | ||
|
||
/// <summary> | ||
/// Enables mandatory mode of VBS and Memory Integrity | ||
/// </summary> | ||
/// <exception cref="ArgumentNullException"></exception> | ||
public static void DeviceGuard_MandatoryVBS() | ||
{ | ||
|
||
if (GlobalVars.path is null) | ||
{ | ||
throw new ArgumentNullException("GlobalVars.path cannot be null."); | ||
} | ||
|
||
ChangePSConsoleTitle.Set("🖥️ Device Guard"); | ||
|
||
Logger.LogMessage("Setting VBS and Memory Integrity in Mandatory Mode", LogTypeIntel.Information); | ||
|
||
foreach (HardeningRegistryKeys.CsvRecord Item in GlobalVars.RegistryCSVItems!) | ||
{ | ||
if (string.Equals(Item.Category, "DeviceGuard_MandatoryVBS", StringComparison.OrdinalIgnoreCase)) | ||
{ | ||
RegistryEditor.EditRegistry(Item.Path, Item.Key, Item.Value, Item.Type, Item.Action); | ||
} | ||
} | ||
|
||
} | ||
} | ||
} |
Oops, something went wrong.