feat(posture): the security posture as the hardening reading (NetOrk/netork#2893)
get_hardening() reads Secure Boot, the TPM, BitLocker per volume, Defender, the firewall profiles' state and virtualization-based security in one script, each part caught on its own and each cmdlet probed with Get-Command first. BitLocker through Win32_EncryptableVolume, never Get-BitLockerVolume: no recovery password or key protector is read.
This commit is contained in:
1 parent
977ddbd904
commit
62bbc7df49
8 files changed
+729
-2
No files matched your search
+2
-1
@@ -14,7 +14,7 @@ import argparse
|
||||
import getpass
|
||||
import pathlib
|
||||
|
||||
from napalm_windows import WindowsDriver, scheduled_tasks, time_sync
|
||||
from napalm_windows import WindowsDriver, posture, scheduled_tasks, time_sync
|
||||
from napalm_windows import windows as mod
|
||||
|
||||
SCRIPTS = {
|
||||
@@ -27,6 +27,7 @@ SCRIPTS = {
|
||||
"listening": mod._PS_LISTENING,
|
||||
"scheduled_tasks": scheduled_tasks._PS_SCHEDULED_TASKS,
|
||||
"time_sync": time_sync._PS_TIME_SYNC,
|
||||
"posture": posture._PS_POSTURE,
|
||||
}
|
||||
|
||||
OUT = pathlib.Path(__file__).parent / "harvest-out"
|
||||
|
||||
Reference in new issue
Block a user