mirror of
https://github.com/NexusOne23/noid-privacy.git
synced 2026-02-21 10:44:14 +01:00
v2.2.0 - Complete Security Hardening Framework (632 Settings)
This commit is contained in:
commit
ba364813ed
195 changed files with 43788 additions and 0 deletions
65
Modules/AdvancedSecurity/AdvancedSecurity.psm1
Normal file
65
Modules/AdvancedSecurity/AdvancedSecurity.psm1
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
# AdvancedSecurity Module Loader
|
||||
# Version: 2.2.0
|
||||
# Description: Advanced Security Hardening - Beyond Microsoft Security Baseline
|
||||
|
||||
# Get module path
|
||||
$ModulePath = $PSScriptRoot
|
||||
|
||||
# Load Private functions
|
||||
$PrivateFunctions = @(
|
||||
'Enable-RdpNLA',
|
||||
'Set-WDigestProtection',
|
||||
'Disable-AdminShares',
|
||||
'Disable-RiskyPorts',
|
||||
'Stop-RiskyServices',
|
||||
'Disable-WPAD',
|
||||
'Disable-LegacyTLS',
|
||||
'Remove-PowerShellV2',
|
||||
'Block-FingerProtocol',
|
||||
'Set-SRPRules',
|
||||
'Set-WindowsUpdate',
|
||||
'Set-WirelessDisplaySecurity',
|
||||
'Set-DiscoveryProtocolsSecurity',
|
||||
'Set-FirewallShieldsUp',
|
||||
'Set-IPv6Security',
|
||||
'Test-RdpSecurity',
|
||||
'Test-WDigest',
|
||||
'Test-RiskyPorts',
|
||||
'Test-RiskyServices',
|
||||
'Test-AdminShares',
|
||||
'Test-SRPCompliance',
|
||||
'Test-WindowsUpdate',
|
||||
'Test-LegacyTLS',
|
||||
'Test-WPAD',
|
||||
'Test-PowerShellV2',
|
||||
'Test-FingerProtocol',
|
||||
'Test-WirelessDisplaySecurity',
|
||||
'Test-DiscoveryProtocolsSecurity',
|
||||
'Test-FirewallShieldsUp',
|
||||
'Test-IPv6Security',
|
||||
'Backup-AdvancedSecuritySettings'
|
||||
)
|
||||
|
||||
foreach ($function in $PrivateFunctions) {
|
||||
$functionPath = Join-Path $ModulePath "Private\$function.ps1"
|
||||
if (Test-Path $functionPath) {
|
||||
. $functionPath
|
||||
}
|
||||
}
|
||||
|
||||
# Load Public functions
|
||||
$PublicFunctions = @(
|
||||
'Invoke-AdvancedSecurity',
|
||||
'Test-AdvancedSecurity',
|
||||
'Restore-AdvancedSecuritySettings'
|
||||
)
|
||||
|
||||
foreach ($function in $PublicFunctions) {
|
||||
$functionPath = Join-Path $ModulePath "Public\$function.ps1"
|
||||
if (Test-Path $functionPath) {
|
||||
. $functionPath
|
||||
}
|
||||
}
|
||||
|
||||
# Export only Public functions
|
||||
Export-ModuleMember -Function $PublicFunctions
|
||||
Loading…
Add table
Add a link
Reference in a new issue