mirror of
https://github.com/NexusOne23/noid-privacy.git
synced 2026-04-05 15:27:21 +02:00
Some checks failed
CI - PowerShell Quality Checks / PSScriptAnalyzer (push) Has been cancelled
CI - PowerShell Quality Checks / Test on PowerShell 5.1 (push) Has been cancelled
CI - PowerShell Quality Checks / Test on PowerShell 7.4 (push) Has been cancelled
CI - PowerShell Quality Checks / Validate Project Structure (push) Has been cancelled
Pester Tests / test (push) Has been cancelled
Version bump across 62 files (2.2.3 → 2.2.4). CHANGELOG.md: New [2.2.4] section with EDR/XDR detection and version tooling. README.md: Updated release highlights, AV detection example output synced with code. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
65 lines
1.6 KiB
PowerShell
65 lines
1.6 KiB
PowerShell
# AdvancedSecurity Module Loader
|
|
# Version: 2.2.4
|
|
# 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
|